-
Notifications
You must be signed in to change notification settings - Fork 5
/
shapetrees-schema.shex
65 lines (57 loc) · 1.36 KB
/
shapetrees-schema.shex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
BASE <http://www.w3.org/ns/shapetrees>
PREFIX st: <http://www.w3.org/ns/shapetrees#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
<#ShapeTreeShape> {
a [st:ShapeTree] ;
(
st:expectsType [st:Container] ;
st:contains @<#LocalOrExternalShape> * ;
|
st:expectsType [st:Resource st:NonRDFResource]
) ;
rdfs:label xsd:string ? ;
st:references @<#ReferenceShape> * ;
st:shape IRI ?
}
<#LocalOrExternalShape>
@<#ShapeTreeShape> OR
((@<#ReservedShapeTree> OR IRI) AND {})
<#ReservedShapeTree> [
st:ResourceTree
st:ContainerTree
st:NonRDFResourceTree
]
<#ReferenceShape> {
st:referencesShapeTree IRI ;
( st:viaShapePath xsd:string
|
st:viaPredicate IRI )
}
<#ManagerShape> {
a [st:Manager] ;
st:hasAssignment @<#AssignmentShape> +
}
<#AssignmentShape> {
a [st:Assignment] ;
st:assigns IRI ;
st:manages IRI ;
st:hasRootAssignment IRI ;
( st:focusNode IRI ;
st:shape IRI ) ?
}
<#DescriptionSetShape> {
a [st:DescriptionSet] ;
st:usesLanguage xsd:language
}
<#DescriptionShape> {
a [st:Description] ;
st:inDescriptionSet @<#DescriptionSetShape> ;
st:describes IRI ;
st:describesInstance IRI ? ;
skos:prefLabel xsd:string ;
skos:definition xsd:string ? ;
skos:narrower IRI ? ;
skos:broader IRI? ;
}