@Context
DS-V5 uses almost the same @context as the previous version DS-V4 with some additions and changes.
Additions and changes
Additions to the @context are:
sh:languageIn
sh:equals
sh:disjoint
sh:lessThan
sh:lessThanOrEquals
ds (this is a namespace/vocabulary for DS related specifications, which is also part of DS-V5)
ds:usedVocabularies
Since we want to use sh:in to constraints the possible values for literals too (we used it only for enumeration values before), we have to remove the corresponding "@type": "@id" from the @context. This means, that enumeration values are now wrapped with @id:
in DS-V4
@context:
...
"sh:in": {
"@id": "sh:in",
"@type": "@id",
"@container": "@list"
}
...
@graph:
...
{
"sh:class": "schema:DayOfWeek",
"sh:in": [
"schema:Wednesday",
"schema:Saturday",
"schema:Thursday"
]
}
...in DS-V5
To enable a listing of allowed language tags without having a wrapping @list, we need to add the following to the context:
Value for property pair constraints have always an URI as values, so it wise to add that type in the context:
@context for DS-V5
Last updated