1#
2# Copyright (c) 2007 NEPOMUK Consortium
3# All rights reserved, licensed under either CC-BY or BSD.
4#
5# You are free:
6#  * to Share - to copy, distribute and transmit the work
7#  * to Remix - to adapt the work
8# Under the following conditions:
9#  * Attribution - You must attribute the work in the manner specified by the author
10#    or licensor (but not in any way that suggests that they endorse you or your use
11#    of the work).
12#
13# Redistribution and use in source and binary forms, with or without modification,
14# are permitted provided that the following conditions are met:
15#  * Redistributions of source code must retain the above copyright notice, this
16#    list of conditions and the following disclaimer.
17#  * Redistributions in binary form must reproduce the above copyright notice, this
18#    list of conditions and the following disclaimer in the documentation and/or
19#    other materials provided with the distribution.
20#  * Neither the names of the authors nor the names of contributors may
21#    be used to endorse or promote products derived from this ontology without
22#    specific prior written permission.
23#
24# THIS ONTOLOGY IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
25# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
28# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33# THIS ONTOLOGY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34#
35
36@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
37@prefix nao:     <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
38@prefix nrl:     <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
39@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
40@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
41
42<http://www.semanticdesktop.org/ontologies/2007/08/15/nrl> {
43    nrl:imports
44          a       rdf:Property ;
45          rdfs:comment "Models a subsumption relationship between two graphs, stating that the object graph is imported and included in the subject graph" ;
46          rdfs:domain nrl:Data ;
47          rdfs:label "imports" ;
48          rdfs:range nrl:Data ;
49          rdfs:subPropertyOf nrl:superGraphOf .
50
51    nrl:ruleLanguage
52          a       rdf:Property ;
53          rdfs:comment "Specifies the rule language for a view specification that is driven by rules" ;
54          rdfs:domain nrl:RuleViewSpecification ;
55          rdfs:label "ruleLanguage" ;
56          rdfs:range rdfs:Literal .
57
58    nrl:cardinality
59          a       rdf:Property ;
60          rdfs:comment "Specifies the precise value cardinality for a specific property" ;
61          rdfs:domain rdf:Property ;
62          rdfs:label "cardinality" ;
63          rdfs:range rdfs:Literal .
64
65    nrl:InverseFunctionalProperty
66          a       rdfs:Class ;
67          rdfs:comment "A marker class to identify inverse functional properties" ;
68          rdfs:label "InverseFunctionalProperty" ;
69          rdfs:subClassOf rdfs:Resource .
70
71    nrl:Graph
72          a       rdfs:Class ;
73          rdfs:comment "Represents a named graph" ;
74          rdfs:label "Graph" ;
75          rdfs:subClassOf rdfs:Resource .
76
77    nrl:hasSpecification
78          a       rdf:Property ;
79          rdfs:comment "Points to the representation of the view specification required to generate the graph view in question" ;
80          rdfs:domain nrl:GraphView ;
81          rdfs:label "hasSpecification" ;
82          rdfs:range nrl:ViewSpecification .
83
84    nrl:DocumentGraph
85          a       rdfs:Class ;
86          rdfs:comment "A marker class to identify named graphs that exist within a physical document" ;
87          rdfs:label "DocumentGraph" ;
88          rdfs:subClassOf nrl:Graph .
89
90    nrl:coreGraphMetadataFor
91          a       rdf:Property , nrl:InverseFunctionalProperty ;
92          rdfs:subPropertyOf nrl:graphMetadataFor ;
93          rdfs:comment "Links a metadata graph to the graph for which it specifies the core graph properties including the semantics and the graph namespace. A graph can have only one unique core metadata graph" ;
94          rdfs:domain nrl:GraphMetadata ;
95          rdfs:label "coreGraphMetadataFor" ;
96          rdfs:range nrl:Graph .
97
98    nrl:TransitiveProperty
99          a       rdfs:Class ;
100          rdfs:comment "A marker class to identify transitive properties" ;
101          rdfs:label "TransitiveProperty" ;
102          rdfs:subClassOf rdfs:Resource .
103
104    nrl:FunctionalProperty
105          a       rdfs:Class ;
106          rdfs:comment "A marker class to identify functional properties" ;
107          rdfs:label "FunctionalProperty" ;
108          rdfs:subClassOf rdfs:Resource .
109
110    nrl:KnowledgeBase
111          a       rdfs:Class ;
112          rdfs:comment "Represents a named graph containing both schematic and instance data" ;
113          rdfs:label "KnowledgeBase" ;
114          rdfs:subClassOf nrl:Ontology , nrl:InstanceBase .
115
116    nrl:externalRealizer
117          a       rdf:Property ;
118          rdfs:comment "Points to the location of the realizer for the external view specification" ;
119          rdfs:domain nrl:ExternalViewSpecification ;
120          rdfs:label "externalRealizer" ;
121          rdfs:range rdfs:Literal .
122
123    nrl:subGraphOf
124          a       rdf:Property ;
125          rdfs:comment "Specifies a containment relationship between two graphs, meaning that the subject graph is included in the object graph" ;
126          rdfs:domain nrl:Graph ;
127          rdfs:label "subGraphOf" ;
128          rdfs:range nrl:Graph ;
129          nrl:inverseProperty nrl:superGraphOf .
130
131    nrl:Configuration
132          a       rdfs:Class ;
133          rdfs:comment "Represents a named graph containing configuration data" ;
134          rdfs:label "Configuration" ;
135          rdfs:subClassOf nrl:Data .
136
137    nrl:ViewSpecification
138          a       rdfs:Class ;
139          rdfs:comment "Represents a specification of the means to achieve a transformation of an input graph into the required graph view" ;
140          rdfs:label "ViewSpecification" ;
141          rdfs:subClassOf rdfs:Resource .
142
143    nrl:hasSemantics
144          a       rdf:Property ;
145          rdfs:comment "Points to a representation of the declarative semantics for a graph role" ;
146          rdfs:domain nrl:Data ;
147          rdfs:label "hasSemantics" ;
148          rdfs:range nrl:Semantics .
149
150    nrl:ExternalViewSpecification
151          a       rdfs:Class ;
152          rdfs:comment "Represents an external view specification, this usually being a program which automatically generates the required view for an input graph" ;
153          rdfs:label "ExternalViewSpecification" ;
154          rdfs:subClassOf nrl:ViewSpecification .
155
156    nrl:DefaultGraph
157          a       nrl:Graph ;
158          rdfs:comment "Represents the default graph, the graph which contains any triple that does not belong to any other named graph" ;
159          rdfs:label "DefaultGraph" .
160
161    nrl:updatable
162          a       rdf:Property ;
163          rdfs:comment "A core graph metadata property, this defines whether a graph can be freely updated '1' or otherwise '0'" ;
164          rdfs:domain nrl:Graph ;
165          rdfs:label "updatable" ;
166          rdfs:range xsd:boolean ;
167          nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
168
169    nrl:Semantics
170          a       rdfs:Class ;
171          rdfs:comment "Represents some declarative semantics" ;
172          rdfs:label "Semantics" ;
173          rdfs:subClassOf rdfs:Resource .
174
175    nrl:equivalentGraph
176          a       rdf:Property , nrl:SymmetricProperty ;
177          rdfs:comment "Links two equivalent named graphs. A symmetric property" ;
178          rdfs:domain nrl:Graph ;
179          rdfs:label "equivalentGraph" ;
180          rdfs:range nrl:Graph .
181
182    nrl:ReflexiveProperty
183          a       rdfs:Class ;
184          rdfs:comment "A marker class to identify reflexive properties" ;
185          rdfs:label "ReflexiveProperty" ;
186          rdfs:subClassOf rdfs:Resource .
187
188    nrl:AsymmetricProperty
189          a       rdfs:Class ;
190          rdfs:comment "A marker class to identify asymmetric properties" ;
191          rdfs:label "AsymmetricProperty" ;
192          rdfs:subClassOf rdfs:Resource .
193
194    nrl:maxCardinality
195          a       rdf:Property ;
196          rdfs:comment "Specifies a maximum value cardinality for a specific property" ;
197          rdfs:domain rdf:Property ;
198          rdfs:label "maxCardinality" ;
199          rdfs:range rdfs:Literal .
200
201    nrl:viewOn
202          a       rdf:Property ;
203          rdfs:comment "Points to a graph view over the subject named graph" ;
204          rdfs:domain nrl:GraphView ;
205          rdfs:label "viewOn" ;
206          rdfs:range nrl:Graph .
207
208    nrl:SymmetricProperty
209          a       rdfs:Class ;
210          rdfs:comment "A marker class to identify symmetric properties" ;
211          rdfs:label "SymmetricProperty" ;
212          rdfs:subClassOf rdfs:Resource .
213
214    nrl:superGraphOf
215          a       rdf:Property ;
216          rdfs:comment "Specifies a subsumption relationship between two graphs, meaning that the object graph is included in the subject graph" ;
217          rdfs:domain nrl:Graph ;
218          rdfs:label "superGraphOf" ;
219          rdfs:range nrl:Graph ;
220          nrl:inverseProperty nrl:subGraphOf .
221
222    nrl:Ontology
223          a       rdfs:Class ;
224          rdfs:comment "Represents a named graph having the role of an Ontology" ;
225          rdfs:label "Ontology" ;
226          rdfs:subClassOf nrl:Schema .
227
228    nrl:realizes
229          a       rdf:Property ;
230          rdfs:comment "Points to a representation of the declarative semantics that the view specification realizes" ;
231          rdfs:domain nrl:ViewSpecification ;
232          rdfs:label "realizes" ;
233          rdfs:range nrl:Semantics .
234
235    nrl:minCardinality
236          a       rdf:Property ;
237          rdfs:comment "Specifies a minimum value cardinality for a specific property" ;
238          rdfs:domain rdf:Property ;
239          rdfs:label "minCardinality" ;
240          rdfs:range rdfs:Literal .
241
242    nrl:rule
243          a       rdf:Property ;
244          rdfs:comment "Specifies rules for a view specification that is driven by rules" ;
245          rdfs:domain nrl:RuleViewSpecification ;
246          rdfs:label "rule" ;
247          rdfs:range rdfs:Literal .
248
249    nrl:InstanceBase
250          a       rdfs:Class ;
251          rdfs:comment "Represents a named graph containing instance data" ;
252          rdfs:label "InstanceBase" ;
253          rdfs:subClassOf nrl:Data .
254
255    nrl:DiscardableInstanceBase
256          a       rdfs:Class ;
257          rdfs:comment "A named graph containing instance data that can be recreated by analyzing the original resources. Intended to be used by metadata extractors." ;
258          rdfs:label "DiscardableInstanceBase" ;
259          rdfs:subClassOf nrl:InstanceBase .
260
261    nrl:RuleViewSpecification
262          a       rdfs:Class ;
263          rdfs:comment "Represents a view specification that is composed of a set of rules which generate the required view from the input graph upon firing" ;
264          rdfs:label "RuleViewSpecification" ;
265          rdfs:subClassOf nrl:ViewSpecification .
266
267    nrl:semanticsDefinedBy
268          a       rdf:Property ;
269          rdfs:comment "Points to the human readable specifications for a representation of some declarative semantics" ;
270          rdfs:domain nrl:Semantics ;
271          rdfs:label "semanticsDefinedBy" ;
272          rdfs:range rdfs:Resource .
273
274    nrl:GraphMetadata
275          a       rdfs:Class ;
276          rdfs:comment "Represents a special named graph that contains metadata for another graph" ;
277          rdfs:label "GraphMetadata" ;
278          rdfs:subClassOf nrl:Data .
279
280    nrl:graphMetadataFor
281          a       rdf:Property ;
282          rdfs:comment "Links a metadata graph to the graph that is being described. A unique value is compulsory" ;
283          rdfs:domain nrl:GraphMetadata ;
284          rdfs:label "graphMetadataFor" ;
285          rdfs:range nrl:Graph ;
286          nrl:minCardinality "1"^^xsd:nonNegativeInteger .
287
288    nrl:GraphView
289          a       rdfs:Class ;
290          rdfs:comment "Identifies a graph which is itself a view of another named graph" ;
291          rdfs:label "GraphView" ;
292          rdfs:subClassOf nrl:Graph .
293
294    nrl:Data
295          a       rdfs:Class ;
296          rdfs:comment "An abstract class representing all named graph roles" ;
297          rdfs:label "Data" ;
298          rdfs:subClassOf nrl:Graph .
299
300    nrl:inverseProperty
301          a       rdf:Property ;
302          rdfs:comment "Links two properties and specifies their inverse behaviour" ;
303          rdfs:domain rdf:Property ;
304          rdfs:label "inverseProperty" ;
305          rdfs:range rdf:Property .
306
307    nrl:Schema
308          a       rdfs:Class ;
309          rdfs:comment "Represents a named graph containing schematic data" ;
310          rdfs:label "Schema" ;
311          rdfs:subClassOf nrl:Data .
312}
313
314<http://www.semanticdesktop.org/ontologies/2007/08/15/nrl/metadata>
315{
316    <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl>
317          a       nrl:DocumentGraph , nrl:KnowledgeBase ;
318          nao:hasDefaultNamespace "http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#" ;
319          nao:hasDefaultNamespaceAbbreviation "nrl" ;
320          nao:lastModified "2007-08-22T13:38:32.866Z" ;
321          nao:serializationLanguage "TriG" ;
322          nao:status "Testing" ;
323          nrl:updatable "0" ;
324          nao:version "0.5" .
325
326    <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl/metadata>
327          a       nrl:GraphMetadata , nrl:DocumentGraph ;
328          nao:serializationLanguage "TriG" ;
329          nrl:coreGraphMetadataFor <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl> .
330
331}
332