summaryrefslogtreecommitdiffstats
path: root/tests/rdfs-namespace.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-12 22:50:07 +0000
committerDavid Robillard <d@drobilla.net>2011-05-12 22:50:07 +0000
commit22f5f5c7e32b043433103edb404bfbe43effa15d (patch)
tree2bb579f0af8415d0fb78eef788ba1714079f3824 /tests/rdfs-namespace.ttl
parentd1a185c160bf8767e9001a6357f46ac6cfc6f94d (diff)
downloadsord-22f5f5c7e32b043433103edb404bfbe43effa15d.tar.gz
sord-22f5f5c7e32b043433103edb404bfbe43effa15d.tar.bz2
sord-22f5f5c7e32b043433103edb404bfbe43effa15d.zip
Add base_uri parameter to sord_read_file.
Add sord_write_writer. Use command line base URI in sordi if given. Use correct output style options for output syntax in sordi. Use sord_write_writer in sordi instead of manual writing code. Abbreviate serialised model output for Turtle. Preserve UTF-8 length information for nodes from Serd. Use string lengths not including terminator (match new Serd). Add test suite. git-svn-id: http://svn.drobilla.net/sord/trunk@111 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'tests/rdfs-namespace.ttl')
-rw-r--r--tests/rdfs-namespace.ttl160
1 files changed, 160 insertions, 0 deletions
diff --git a/tests/rdfs-namespace.ttl b/tests/rdfs-namespace.ttl
new file mode 100644
index 0000000..0d73e6b
--- /dev/null
+++ b/tests/rdfs-namespace.ttl
@@ -0,0 +1,160 @@
+# RDFS Namespace document converted into Turtle
+
+@prefix : <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+rdf:type a rdf:Property;
+ :comment "Indicates membership of a class";
+ :domain :Resource;
+ :isDefinedBy rdf:;
+ :label "type"@en;
+ :range :Class .
+
+rdf:Alt a :Class;
+ :comment "A collection of alternatives."@en;
+ :isDefinedBy rdf:;
+ :label "Alt"@en;
+ :subClassOf :Container .
+
+rdf:Bag a :Class;
+ :comment "An unordered collection."@en;
+ :isDefinedBy rdf:;
+ :label "Bag"@en;
+ :subClassOf :Container .
+
+rdf:Property a :Class;
+ :comment "The concept of a property.";
+ :isDefinedBy rdf:;
+ :label "Property"@en;
+ :subClassOf :Resource .
+
+rdf:Seq a :Class;
+ :comment "An ordered collection."@en;
+ :isDefinedBy rdf:;
+ :label "Seq"@en;
+ :subClassOf :Container .
+
+rdf:Statement a :Class;
+ :comment "The class of RDF statements.";
+ :isDefinedBy rdf:;
+ :label "Statement"@en;
+ :subClassOf :Resource .
+
+rdf:object a rdf:Property;
+ :comment "The object of an RDF statement.";
+ :domain rdf:Statement;
+ :isDefinedBy rdf:;
+ :label "object"@en .
+
+rdf:predicate a rdf:Property;
+ :comment "the predicate of an RDF statement.";
+ :domain rdf:Statement;
+ :isDefinedBy rdf:;
+ :label "predicate"@en;
+ :range rdf:Property .
+
+rdf:subject a rdf:Property;
+ :comment "The subject of an RDF statement.";
+ :domain rdf:Statement;
+ :isDefinedBy rdf:;
+ :label "subject"@en;
+ :range :Resource .
+
+rdf:value a rdf:Property;
+ :comment "Identifies the principal value (usually a string) of a property when the property value is a structured resource";
+ :domain :Resource;
+ :isDefinedBy rdf:;
+ :label "value"@en .
+
+: :seeAlso <http://www.w3.org/2000/01/rdf-schema-more> .
+
+:Class a :Class;
+ :comment "The concept of Class";
+ :isDefinedBy :;
+ :label "Class"@en;
+ :subClassOf :Resource .
+
+:Container a :Class;
+ :comment "This represents the set Containers.";
+ :isDefinedBy :;
+ :label "Container"@en;
+ :subClassOf :Resource .
+
+:ContainerMembershipProperty a :Class;
+ :comment "The container membership properties, rdf:1, rdf:2, ..., all of which are sub-properties of 'member'.";
+ :isDefinedBy :;
+ :label "ContainerMembershipProperty"@en;
+ :subClassOf rdf:Property .
+
+:Literal a :Class;
+ :comment "This represents the set of atomic values, eg. textual strings.";
+ :isDefinedBy :;
+ :label "Literal"@en .
+
+:Resource a :Class;
+ :comment "The class resource, everything.";
+ :isDefinedBy :;
+ :label "Resource"@en .
+
+:comment a rdf:Property;
+ :comment "Use this for descriptions";
+ :domain :Resource;
+ :isDefinedBy :;
+ :label "comment"@en;
+ :range :Literal .
+
+:domain a rdf:Property;
+ :comment "A domain class for a property type";
+ :domain rdf:Property;
+ :isDefinedBy :;
+ :label "domain"@en;
+ :range :Class .
+
+:isDefinedBy a rdf:Property;
+ :comment "Indicates the namespace of a resource";
+ :domain :Resource;
+ :isDefinedBy :;
+ :label "isDefinedBy"@en;
+ :range :Resource;
+ :subPropertyOf :seeAlso .
+
+:label a rdf:Property;
+ :comment "Provides a human-readable version of a resource name.";
+ :domain :Resource;
+ :isDefinedBy :;
+ :label "label"@en;
+ :range :Literal .
+
+:member a rdf:Property;
+ :comment "a member of a container";
+ :domain :Container;
+ :isDefinedBy :;
+ :label "member"@en .
+
+:range a rdf:Property;
+ :comment "A range class for a property type";
+ :domain rdf:Property;
+ :isDefinedBy :;
+ :label "range"@en;
+ :range :Class .
+
+:seeAlso a rdf:Property;
+ :comment "A resource that provides information about the subject resource";
+ :domain :Resource;
+ :isDefinedBy :;
+ :label "seeAlso"@en;
+ :range :Resource .
+
+:subClassOf a rdf:Property;
+ :comment "Indicates membership of a class";
+ :domain :Class;
+ :isDefinedBy :;
+ :label "subClassOf"@en;
+ :range :Class .
+
+:subPropertyOf a rdf:Property;
+ :comment "Indicates specialization of properties";
+ :domain rdf:Property;
+ :isDefinedBy :;
+ :label "subPropertyOf"@en;
+ :range rdf:Property .