From f47cca66aebe510ec6af488e413f7432a9a525e3 Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Tue, 4 Jan 2011 10:44:33 +0100 Subject: [PATCH] New mime-type application/x-trig which represents the encoding used for all RDF ontologies in the shared-desktop-ontologies package. https://bugs.freedesktop.org/show_bug.cgi?id=32812 --- freedesktop.org.xml.in | 9 ++ tests/list | 1 + tests/nrl.trig | 331 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 341 insertions(+) create mode 100644 tests/nrl.trig diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 0e020e3..6b400db 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -6100,4 +6100,13 @@ command to generate the output files. + + + <_comment>TriG RDF document + TriG + TriG RDF Graph Triple Language + + + + diff --git a/tests/list b/tests/list index 542664b..1466b59 100644 --- a/tests/list +++ b/tests/list @@ -423,3 +423,4 @@ test-en.mo application/x-gettext-translation LiberationSans-Regular.ttf application/x-font-ttf # Converted from LiberationSans-Regular.ttf with http://ttf2woff.com/ LiberationSans-Regular.woff application/font-woff +nrl.trig application/x-trig oxo diff --git a/tests/nrl.trig b/tests/nrl.trig new file mode 100644 index 0000000..d05060a --- /dev/null +++ b/tests/nrl.trig @@ -0,0 +1,331 @@ +# +# Copyright (c) 2007 NEPOMUK Consortium +# All rights reserved, licensed under either CC-BY or BSD. +# +# You are free: +# * to Share - to copy, distribute and transmit the work +# * to Remix - to adapt the work +# Under the following conditions: +# * Attribution - You must attribute the work in the manner specified by the author +# or licensor (but not in any way that suggests that they endorse you or your use +# of the work). +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, this +# list of conditions and the following disclaimer in the documentation and/or +# other materials provided with the distribution. +# * Neither the names of the authors nor the names of contributors may +# be used to endorse or promote products derived from this ontology without +# specific prior written permission. +# +# THIS ONTOLOGY IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS ONTOLOGY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +@prefix rdfs: . +@prefix nao: . +@prefix nrl: . +@prefix xsd: . +@prefix rdf: . + + { + nrl:imports + a rdf:Property ; + rdfs:comment "Models a subsumption relationship between two graphs, stating that the object graph is imported and included in the subject graph" ; + rdfs:domain nrl:Data ; + rdfs:label "imports" ; + rdfs:range nrl:Data ; + rdfs:subPropertyOf nrl:superGraphOf . + + nrl:ruleLanguage + a rdf:Property ; + rdfs:comment "Specifies the rule language for a view specification that is driven by rules" ; + rdfs:domain nrl:RuleViewSpecification ; + rdfs:label "ruleLanguage" ; + rdfs:range rdfs:Literal . + + nrl:cardinality + a rdf:Property ; + rdfs:comment "Specifies the precise value cardinality for a specific property" ; + rdfs:domain rdf:Property ; + rdfs:label "cardinality" ; + rdfs:range rdfs:Literal . + + nrl:InverseFunctionalProperty + a rdfs:Class ; + rdfs:comment "A marker class to identify inverse functional properties" ; + rdfs:label "InverseFunctionalProperty" ; + rdfs:subClassOf rdfs:Resource . + + nrl:Graph + a rdfs:Class ; + rdfs:comment "Represents a named graph" ; + rdfs:label "Graph" ; + rdfs:subClassOf rdfs:Resource . + + nrl:hasSpecification + a rdf:Property ; + rdfs:comment "Points to the representation of the view specification required to generate the graph view in question" ; + rdfs:domain nrl:GraphView ; + rdfs:label "hasSpecification" ; + rdfs:range nrl:ViewSpecification . + + nrl:DocumentGraph + a rdfs:Class ; + rdfs:comment "A marker class to identify named graphs that exist within a physical document" ; + rdfs:label "DocumentGraph" ; + rdfs:subClassOf nrl:Graph . + + nrl:coreGraphMetadataFor + a rdf:Property , nrl:InverseFunctionalProperty ; + rdfs:subPropertyOf nrl:graphMetadataFor ; + 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" ; + rdfs:domain nrl:GraphMetadata ; + rdfs:label "coreGraphMetadataFor" ; + rdfs:range nrl:Graph . + + nrl:TransitiveProperty + a rdfs:Class ; + rdfs:comment "A marker class to identify transitive properties" ; + rdfs:label "TransitiveProperty" ; + rdfs:subClassOf rdfs:Resource . + + nrl:FunctionalProperty + a rdfs:Class ; + rdfs:comment "A marker class to identify functional properties" ; + rdfs:label "FunctionalProperty" ; + rdfs:subClassOf rdfs:Resource . + + nrl:KnowledgeBase + a rdfs:Class ; + rdfs:comment "Represents a named graph containing both schematic and instance data" ; + rdfs:label "KnowledgeBase" ; + rdfs:subClassOf nrl:Ontology , nrl:InstanceBase . + + nrl:externalRealizer + a rdf:Property ; + rdfs:comment "Points to the location of the realizer for the external view specification" ; + rdfs:domain nrl:ExternalViewSpecification ; + rdfs:label "externalRealizer" ; + rdfs:range rdfs:Literal . + + nrl:subGraphOf + a rdf:Property ; + rdfs:comment "Specifies a containment relationship between two graphs, meaning that the subject graph is included in the object graph" ; + rdfs:domain nrl:Graph ; + rdfs:label "subGraphOf" ; + rdfs:range nrl:Graph ; + nrl:inverseProperty nrl:superGraphOf . + + nrl:Configuration + a rdfs:Class ; + rdfs:comment "Represents a named graph containing configuration data" ; + rdfs:label "Configuration" ; + rdfs:subClassOf nrl:Data . + + nrl:ViewSpecification + a rdfs:Class ; + rdfs:comment "Represents a specification of the means to achieve a transformation of an input graph into the required graph view" ; + rdfs:label "ViewSpecification" ; + rdfs:subClassOf rdfs:Resource . + + nrl:hasSemantics + a rdf:Property ; + rdfs:comment "Points to a representation of the declarative semantics for a graph role" ; + rdfs:domain nrl:Data ; + rdfs:label "hasSemantics" ; + rdfs:range nrl:Semantics . + + nrl:ExternalViewSpecification + a rdfs:Class ; + rdfs:comment "Represents an external view specification, this usually being a program which automatically generates the required view for an input graph" ; + rdfs:label "ExternalViewSpecification" ; + rdfs:subClassOf nrl:ViewSpecification . + + nrl:DefaultGraph + a nrl:Graph ; + rdfs:comment "Represents the default graph, the graph which contains any triple that does not belong to any other named graph" ; + rdfs:label "DefaultGraph" . + + nrl:updatable + a rdf:Property ; + rdfs:comment "A core graph metadata property, this defines whether a graph can be freely updated '1' or otherwise '0'" ; + rdfs:domain nrl:Graph ; + rdfs:label "updatable" ; + rdfs:range xsd:boolean ; + nrl:maxCardinality "1"^^xsd:nonNegativeInteger . + + nrl:Semantics + a rdfs:Class ; + rdfs:comment "Represents some declarative semantics" ; + rdfs:label "Semantics" ; + rdfs:subClassOf rdfs:Resource . + + nrl:equivalentGraph + a rdf:Property , nrl:SymmetricProperty ; + rdfs:comment "Links two equivalent named graphs. A symmetric property" ; + rdfs:domain nrl:Graph ; + rdfs:label "equivalentGraph" ; + rdfs:range nrl:Graph . + + nrl:ReflexiveProperty + a rdfs:Class ; + rdfs:comment "A marker class to identify reflexive properties" ; + rdfs:label "ReflexiveProperty" ; + rdfs:subClassOf rdfs:Resource . + + nrl:AsymmetricProperty + a rdfs:Class ; + rdfs:comment "A marker class to identify asymmetric properties" ; + rdfs:label "AsymmetricProperty" ; + rdfs:subClassOf rdfs:Resource . + + nrl:maxCardinality + a rdf:Property ; + rdfs:comment "Specifies a maximum value cardinality for a specific property" ; + rdfs:domain rdf:Property ; + rdfs:label "maxCardinality" ; + rdfs:range rdfs:Literal . + + nrl:viewOn + a rdf:Property ; + rdfs:comment "Points to a graph view over the subject named graph" ; + rdfs:domain nrl:GraphView ; + rdfs:label "viewOn" ; + rdfs:range nrl:Graph . + + nrl:SymmetricProperty + a rdfs:Class ; + rdfs:comment "A marker class to identify symmetric properties" ; + rdfs:label "SymmetricProperty" ; + rdfs:subClassOf rdfs:Resource . + + nrl:superGraphOf + a rdf:Property ; + rdfs:comment "Specifies a subsumption relationship between two graphs, meaning that the object graph is included in the subject graph" ; + rdfs:domain nrl:Graph ; + rdfs:label "superGraphOf" ; + rdfs:range nrl:Graph ; + nrl:inverseProperty nrl:subGraphOf . + + nrl:Ontology + a rdfs:Class ; + rdfs:comment "Represents a named graph having the role of an Ontology" ; + rdfs:label "Ontology" ; + rdfs:subClassOf nrl:Schema . + + nrl:realizes + a rdf:Property ; + rdfs:comment "Points to a representation of the declarative semantics that the view specification realizes" ; + rdfs:domain nrl:ViewSpecification ; + rdfs:label "realizes" ; + rdfs:range nrl:Semantics . + + nrl:minCardinality + a rdf:Property ; + rdfs:comment "Specifies a minimum value cardinality for a specific property" ; + rdfs:domain rdf:Property ; + rdfs:label "minCardinality" ; + rdfs:range rdfs:Literal . + + nrl:rule + a rdf:Property ; + rdfs:comment "Specifies rules for a view specification that is driven by rules" ; + rdfs:domain nrl:RuleViewSpecification ; + rdfs:label "rule" ; + rdfs:range rdfs:Literal . + + nrl:InstanceBase + a rdfs:Class ; + rdfs:comment "Represents a named graph containing instance data" ; + rdfs:label "InstanceBase" ; + rdfs:subClassOf nrl:Data . + + nrl:DiscardableInstanceBase + a rdfs:Class ; + rdfs:comment "A named graph containing instance data that can be recreated by analyzing the original resources. Intended to be used by metadata extractors." ; + rdfs:label "DiscardableInstanceBase" ; + rdfs:subClassOf nrl:InstanceBase . + + nrl:RuleViewSpecification + a rdfs:Class ; + 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" ; + rdfs:label "RuleViewSpecification" ; + rdfs:subClassOf nrl:ViewSpecification . + + nrl:semanticsDefinedBy + a rdf:Property ; + rdfs:comment "Points to the human readable specifications for a representation of some declarative semantics" ; + rdfs:domain nrl:Semantics ; + rdfs:label "semanticsDefinedBy" ; + rdfs:range rdfs:Resource . + + nrl:GraphMetadata + a rdfs:Class ; + rdfs:comment "Represents a special named graph that contains metadata for another graph" ; + rdfs:label "GraphMetadata" ; + rdfs:subClassOf nrl:Data . + + nrl:graphMetadataFor + a rdf:Property ; + rdfs:comment "Links a metadata graph to the graph that is being described. A unique value is compulsory" ; + rdfs:domain nrl:GraphMetadata ; + rdfs:label "graphMetadataFor" ; + rdfs:range nrl:Graph ; + nrl:minCardinality "1"^^xsd:nonNegativeInteger . + + nrl:GraphView + a rdfs:Class ; + rdfs:comment "Identifies a graph which is itself a view of another named graph" ; + rdfs:label "GraphView" ; + rdfs:subClassOf nrl:Graph . + + nrl:Data + a rdfs:Class ; + rdfs:comment "An abstract class representing all named graph roles" ; + rdfs:label "Data" ; + rdfs:subClassOf nrl:Graph . + + nrl:inverseProperty + a rdf:Property ; + rdfs:comment "Links two properties and specifies their inverse behaviour" ; + rdfs:domain rdf:Property ; + rdfs:label "inverseProperty" ; + rdfs:range rdf:Property . + + nrl:Schema + a rdfs:Class ; + rdfs:comment "Represents a named graph containing schematic data" ; + rdfs:label "Schema" ; + rdfs:subClassOf nrl:Data . +} + + +{ + + a nrl:DocumentGraph , nrl:KnowledgeBase ; + nao:hasDefaultNamespace "http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#" ; + nao:hasDefaultNamespaceAbbreviation "nrl" ; + nao:lastModified "2007-08-22T13:38:32.866Z" ; + nao:serializationLanguage "TriG" ; + nao:status "Testing" ; + nrl:updatable "0" ; + nao:version "0.5" . + + + a nrl:GraphMetadata , nrl:DocumentGraph ; + nao:serializationLanguage "TriG" ; + nrl:coreGraphMetadataFor . + +} -- 1.7.12.4