-
Notifications
You must be signed in to change notification settings - Fork 0
/
co.rdf
155 lines (138 loc) · 8.47 KB
/
co.rdf
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:co="http://purl.org/co/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:sh="http://www.w3.org/ns/shacl#"
xmlns:uco-co="https://ontology.unifiedcyberontology.org/co/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<owl:Ontology rdf:about="https://ontology.unifiedcyberontology.org/co">
<rdfs:label xml:lang="en">uco-co</rdfs:label>
<rdfs:comment xml:lang="en">This ontology defines SHACL shapes to supplement the OWL 2 DL definitions in the Collections Ontology.</rdfs:comment>
<owl:backwardCompatibleWith rdf:resource="https://ontology.unifiedcyberontology.org/co/1.2.0"/>
<owl:imports rdf:resource="http://purl.org/co"/>
<owl:priorVersion rdf:resource="https://ontology.unifiedcyberontology.org/co/1.2.0"/>
<owl:versionIRI rdf:resource="https://ontology.unifiedcyberontology.org/co/1.3.0"/>
</owl:Ontology>
<rdf:Description rdf:about="http://purl.org/co/ListItem">
<rdfs:subClassOf rdf:resource="http://purl.org/co/Item"/>
</rdf:Description>
<sh:NodeShape rdf:about="https://ontology.unifiedcyberontology.org/co/List-shape">
<sh:property>
<rdf:Description>
<sh:class rdf:resource="http://purl.org/co/ListItem"/>
<sh:path rdf:resource="http://purl.org/co/item"/>
</rdf:Description>
</sh:property>
<sh:targetClass rdf:resource="http://purl.org/co/List"/>
</sh:NodeShape>
<sh:NodeShape rdf:about="https://ontology.unifiedcyberontology.org/co/ListItem-shape">
<sh:property>
<rdf:Description>
<rdfs:comment xml:lang="en">Adapted from restriction on co:ListItem.</rdfs:comment>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:path rdf:resource="http://purl.org/co/index"/>
</rdf:Description>
</sh:property>
<sh:targetClass rdf:resource="http://purl.org/co/ListItem"/>
</sh:NodeShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/firstItem-subjects-previousItem-shape">
<sh:description xml:lang="en">The first item in a list must not have a previous item.</sh:description>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</sh:maxCount>
<sh:path rdf:parseType="Collection">
<rdf:Description rdf:about="http://purl.org/co/firstItem">
</rdf:Description>
<rdf:Description rdf:about="http://purl.org/co/previousItem">
</rdf:Description>
</sh:path>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/firstItem"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/firstItem-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/ListItem"/>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/firstItem"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/firstItem"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/followedBy-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/Item"/>
<sh:description xml:lang="en">This shape encodes in SHACL that co:followedBy has range co:Item (induced via the propertyChainAxiom on co:item and superproperty relationship with co:nextItem).</sh:description>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/followedBy"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/followedBy"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/index-subjects-shape">
<sh:datatype rdf:resource="http://www.w3.org/2001/XMLSchema#positiveInteger"/>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#Literal"/>
<sh:path rdf:resource="http://purl.org/co/index"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/index"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/item-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/Item"/>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/item"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/item"/>
</sh:PropertyShape>
<sh:NodeShape rdf:about="https://ontology.unifiedcyberontology.org/co/itemContent-subjects-shape">
<sh:not>
<sh:PropertyShape>
<sh:class rdf:resource="http://purl.org/co/Item"/>
<sh:description xml:lang="en">This shape encodes in SHACL that the range of co:itemContent is the complement of co:Item.</sh:description>
<sh:path rdf:resource="http://purl.org/co/itemContent"/>
</sh:PropertyShape>
</sh:not>
<sh:property>
<sh:PropertyShape>
<sh:description xml:lang="en">This shape encodes in SHACL that co:itemContent is an OWL FunctionalProperty (giving the sh:maxCount constraint).</sh:description>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/itemContent"/>
</sh:PropertyShape>
</sh:property>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/itemContent"/>
</sh:NodeShape>
<rdf:Description rdf:about="https://ontology.unifiedcyberontology.org/co/lastItem-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/ListItem"/>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/lastItem"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/lastItem"/>
</rdf:Description>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/nextItem-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/Item"/>
<sh:description xml:lang="en">This shape encodes in SHACL that co:nextItem is a FunctionalProperty (giving the sh:maxCount constraint), and has range co:Item (induced via the propertyChainAxiom on co:item).</sh:description>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/nextItem"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/nextItem"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/precededBy-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/Item"/>
<sh:description xml:lang="en">This shape encodes in SHACL that co:precededBy has range co:Item (induced via the propertyChainAxiom on co:item and superproperty relationship with co:previousItem).</sh:description>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/precededBy"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/precededBy"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/previousItem-subjects-shape">
<sh:class rdf:resource="http://purl.org/co/Item"/>
<sh:description xml:lang="en">This shape encodes in SHACL that co:previousItem is a FunctionalProperty (giving the sh:maxCount constraint), and has range co:Item (induced via the propertyChainAxiom on co:item).</sh:description>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#BlankNodeOrIRI"/>
<sh:path rdf:resource="http://purl.org/co/previousItem"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/previousItem"/>
</sh:PropertyShape>
<sh:PropertyShape rdf:about="https://ontology.unifiedcyberontology.org/co/size-subjects-shape">
<sh:datatype rdf:resource="http://www.w3.org/2001/XMLSchema#nonNegativeInteger"/>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:nodeKind rdf:resource="http://www.w3.org/ns/shacl#Literal"/>
<sh:path rdf:resource="http://purl.org/co/size"/>
<sh:targetSubjectsOf rdf:resource="http://purl.org/co/size"/>
</sh:PropertyShape>
<owl:Axiom>
<rdfs:comment xml:lang="en">This triple is repeated from the Collections Ontology.</rdfs:comment>
<owl:annotatedProperty rdf:resource="http://www.w3.org/2000/01/rdf-schema#subClassOf"/>
<owl:annotatedSource rdf:resource="http://purl.org/co/ListItem"/>
<owl:annotatedTarget rdf:resource="http://purl.org/co/Item"/>
</owl:Axiom>
</rdf:RDF>