diff options
author | Sebastian Trueg <trueg@kde.org> | 2009-11-09 11:12:57 +0000 |
---|---|---|
committer | Sebastian Trueg <trueg@kde.org> | 2009-11-09 11:12:57 +0000 |
commit | 5839310bd95a42f032246e344201a113c8013d55 (patch) | |
tree | 930b810c53049697f263f9d0212c70ec532711e2 | |
parent | 04921294005965c5031622a97d2b76e16a19168c (diff) |
Converted RDF and RDFS to trig - the rest will follow shortly
-rw-r--r-- | base/rdf.trig | 106 | ||||
-rw-r--r-- | base/rdfs.trig | 108 |
2 files changed, 214 insertions, 0 deletions
diff --git a/base/rdf.trig b/base/rdf.trig new file mode 100644 index 0000000..7dd6d57 --- /dev/null +++ b/base/rdf.trig @@ -0,0 +1,106 @@ +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix dc: <http://purl.org/dc/elements/1.1/> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . + +rdf: { + rdf:type rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "type" ; + rdfs:comment "The subject is an instance of a class." ; + rdfs:range rdfs:Class ; + rdfs:domain rdfs:Resource . + rdf:Property rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "Property" ; + rdfs:comment "The class of RDF properties." ; + rdfs:subClassOf rdfs:Resource . + rdf:Statement rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "Statement" ; + rdfs:subClassOf rdfs:Resource ; + rdfs:comment "The class of RDF statements." . + rdf:subject rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "subject" ; + rdfs:comment "The subject of the subject RDF statement." ; + rdfs:domain rdf:Statement ; + rdfs:range rdfs:Resource . + rdf:predicate rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "predicate" ; + rdfs:comment "The predicate of the subject RDF statement." ; + rdfs:domain rdf:Statement ; + rdfs:range rdfs:Resource . + rdf:object rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "object" ; + rdfs:comment "The object of the subject RDF statement." ; + rdfs:domain rdf:Statement ; + rdfs:range rdfs:Resource . + rdf:Bag rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "Bag" ; + rdfs:comment "The class of unordered containers." ; + rdfs:subClassOf rdfs:Container . + rdf:Seq rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "Seq" ; + rdfs:comment "The class of ordered containers." ; + rdfs:subClassOf rdfs:Container . + rdf:Alt rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "Alt" ; + rdfs:comment "The class of containers of alternatives." ; + rdfs:subClassOf rdfs:Container . + rdf:value rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "value" ; + rdfs:comment "Idiomatic property used for structured values." ; + rdfs:domain rdfs:Resource ; + rdfs:range rdfs:Resource . + rdf:List rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "List" ; + rdfs:comment "The class of RDF Lists." ; + rdfs:subClassOf rdfs:Resource . + rdf:nil rdf:type rdf:List ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "nil" ; + rdfs:comment "The empty list, with no items in it. If the rest of a list is nil then the list has no more items in it." . + rdf:first rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "first" ; + rdfs:comment "The first item in the subject RDF list." ; + rdfs:domain rdf:List ; + rdfs:range rdfs:Resource . + rdf:rest rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "rest" ; + rdfs:comment "The rest of the subject RDF list after the first item." ; + rdfs:domain rdf:List ; + rdfs:range rdf:List . + rdf:XMLLiteral rdf:type rdfs:Datatype ; + rdfs:subClassOf rdfs:Literal ; + rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ; + rdfs:label "XMLLiteral" ; + rdfs:comment "The class of XML literal values." . +} + +<http://www.w3.org/1999/02/22-rdf-syntax-ns-metadata> { + <http://www.w3.org/1999/02/22-rdf-syntax-ns-metadata> + a nrl:GraphMetadata ; + nrl:coreGraphMetadataFor rdf: . + + rdf: + a nrl:Ontology, nrl:DocumentGraph, owl:Ontology ; + dc:title "The RDF Vocabulary (RDF)" ; + dc:description "This is the RDF Schema for the RDF vocabulary defined in the RDF namespace." ; + rdfs:seeAlso <http://www.w3.org/2000/01/rdf-schema-more> ; + nao:hasDefaultNamespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ; + nao:hasDefaultNamespaceAbbreviation "rdf" ; + nao:serializationLanguage "TriG" ; + nao:status "Stable" ; + nrl:updatable "0" ; + nao:version "1" . +} diff --git a/base/rdfs.trig b/base/rdfs.trig new file mode 100644 index 0000000..a347b74 --- /dev/null +++ b/base/rdfs.trig @@ -0,0 +1,108 @@ +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix dc: <http://purl.org/dc/elements/1.1/> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . + +rdfs: { + rdfs:Resource rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "Resource" ; + rdfs:comment "The class resource, everything." . + rdfs:Class rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "Class" ; + rdfs:comment "The class of classes." ; + rdfs:subClassOf rdfs:Resource . + rdfs:subClassOf rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "subClassOf" ; + rdfs:comment "The subject is a subclass of a class." ; + rdfs:range rdfs:Class ; + rdfs:domain rdfs:Class . + rdfs:subPropertyOf rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "subPropertyOf" ; + rdfs:comment "The subject is a subproperty of a property." ; + rdfs:range rdf:Property ; + rdfs:domain rdf:Property . + rdfs:comment rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "comment" ; + rdfs:comment "A description of the subject resource." ; + rdfs:domain rdfs:Resource ; + rdfs:range rdfs:Literal . + rdfs:label rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "label" ; + rdfs:comment "A human-readable name for the subject." ; + rdfs:domain rdfs:Resource ; + rdfs:range rdfs:Literal . + rdfs:domain rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "domain" ; + rdfs:comment "A domain of the subject property." ; + rdfs:range rdfs:Class ; + rdfs:domain rdf:Property . + rdfs:range rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "range" ; + rdfs:comment "A range of the subject property." ; + rdfs:range rdfs:Class ; + rdfs:domain rdf:Property . + rdfs:seeAlso rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "seeAlso" ; + rdfs:comment "Further information about the subject resource." ; + rdfs:range rdfs:Resource ; + rdfs:domain rdfs:Resource . + rdfs:isDefinedBy rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:subPropertyOf rdfs:seeAlso ; + rdfs:label "isDefinedBy" ; + rdfs:comment "The defininition of the subject resource." ; + rdfs:range rdfs:Resource ; + rdfs:domain rdfs:Resource . + rdfs:Literal rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "Literal" ; + rdfs:comment "The class of literal values, eg. textual strings and integers." ; + rdfs:subClassOf rdfs:Resource . + rdfs:Container rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "Container" ; + rdfs:subClassOf rdfs:Resource ; + rdfs:comment "The class of RDF containers." . + rdfs:ContainerMembershipProperty rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "ContainerMembershipProperty" ; + rdfs:comment "The class of container membership properties, rdf:_1, rdf:_2, ...,\r\n all of which are sub-properties of 'member'." ; + rdfs:subClassOf rdf:Property . + rdfs:member rdf:type rdf:Property ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "member" ; + rdfs:comment "A member of the subject resource." ; + rdfs:domain rdfs:Resource ; + rdfs:range rdfs:Resource . + rdfs:Datatype rdf:type rdfs:Class ; + rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; + rdfs:label "Datatype" ; + rdfs:comment "The class of RDF datatypes." ; + rdfs:subClassOf rdfs:Class . +} + +<http://www.w3.org/2000/01/rdf-schema-metadata> { + <http://www.w3.org/2000/01/rdf-schema-metadata> + a nrl:GraphMetadata ; + nrl:coreGraphMetadataFor rdfs: . + + rdfs: + a nrl:Ontology, nrl:DocumentGraph, owl:Ontology ; + dc:title "The RDF Schema vocabulary (RDFS)" ; + rdfs:seeAlso <http://www.w3.org/2000/01/rdf-schema-more> ; + nao:hasDefaultNamespace "http://www.w3.org/2000/01/rdf-schema#" ; + nao:hasDefaultNamespaceAbbreviation "rdfs" ; + nao:serializationLanguage "TriG" ; + nao:status "Stable" ; + nrl:updatable "0" ; + nao:version "1" . +} |