semweb and http compile now (but they don't work properly yet).
This commit is contained in:
20
packages/semweb/Tests/Turtle/README.txt
Normal file
20
packages/semweb/Tests/Turtle/README.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
These are the tests for the Turtle Terse RDF Triple Language
|
||||
that must be passed by conformant systems. See
|
||||
http://www.dajobe.org/2004/01/turtle/
|
||||
for the full conformance information.
|
||||
|
||||
The format is a set of good tests and bad tests.
|
||||
|
||||
Good tests are a pair of files:
|
||||
abc.ttl abc.out
|
||||
which are the input Turtle file and the expected output RDF triples,
|
||||
written in N-Triples.
|
||||
|
||||
bad tests are of the form
|
||||
bad-XX.ttl
|
||||
which must fail.
|
||||
|
||||
The tests should be performed with an assumed base URI
|
||||
of http://www.w3.org/2001/sw/DataAccess/df1/tests/
|
||||
|
||||
Dave
|
2
packages/semweb/Tests/Turtle/bad-00.ttl
Normal file
2
packages/semweb/Tests/Turtle/bad-00.ttl
Normal file
@@ -0,0 +1,2 @@
|
||||
# prefix name must end in a :
|
||||
@prefix a <#> .
|
3
packages/semweb/Tests/Turtle/bad-01.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-01.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# Forbidden by RDF - predicate cannot be blank
|
||||
@prefix : <http://example.org/base#> .
|
||||
:a [ :b :c ] :d .
|
3
packages/semweb/Tests/Turtle/bad-02.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-02.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# Forbidden by RDF - predicate cannot be blank
|
||||
@prefix : <http://example.org/base#> .
|
||||
:a [] :b .
|
3
packages/semweb/Tests/Turtle/bad-03.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-03.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# 'a' only allowed as a predicate
|
||||
@prefix : <http://example.org/base#> .
|
||||
a :a :b .
|
3
packages/semweb/Tests/Turtle/bad-04.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-04.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# No comma is allowed in collections
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a :b ( "apple", "banana" ) .
|
4
packages/semweb/Tests/Turtle/bad-05.ttl
Normal file
4
packages/semweb/Tests/Turtle/bad-05.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
# N3 {}s are not in Turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
{ :a :b :c . } :d :e .
|
||||
|
3
packages/semweb/Tests/Turtle/bad-06.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-06.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# is and of are not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a is :b of :c .
|
4
packages/semweb/Tests/Turtle/bad-07.ttl
Normal file
4
packages/semweb/Tests/Turtle/bad-07.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
# paths are not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a.:b.:c .
|
||||
:a^:b^:c .
|
2
packages/semweb/Tests/Turtle/bad-08.ttl
Normal file
2
packages/semweb/Tests/Turtle/bad-08.ttl
Normal file
@@ -0,0 +1,2 @@
|
||||
@keywords something.
|
||||
# @keywords is not in turtle
|
3
packages/semweb/Tests/Turtle/bad-09.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-09.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# implies is not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a => :b .
|
3
packages/semweb/Tests/Turtle/bad-10.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-10.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# equivalence is not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a = :b .
|
3
packages/semweb/Tests/Turtle/bad-11.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-11.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# @forAll is not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
@forAll :x .
|
3
packages/semweb/Tests/Turtle/bad-12.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-12.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# @forSome is not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
@forSome :x .
|
3
packages/semweb/Tests/Turtle/bad-13.ttl
Normal file
3
packages/semweb/Tests/Turtle/bad-13.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# <= is not in turtle
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a <= :b .
|
6
packages/semweb/Tests/Turtle/bad-14.ttl
Normal file
6
packages/semweb/Tests/Turtle/bad-14.ttl
Normal file
@@ -0,0 +1,6 @@
|
||||
# Test long literals with missing end
|
||||
@prefix : <http://example.org/ex#> .
|
||||
:a :b """a long
|
||||
literal
|
||||
with
|
||||
newlines
|
88
packages/semweb/Tests/Turtle/manifest-bad.ttl
Normal file
88
packages/semweb/Tests/Turtle/manifest-bad.ttl
Normal file
@@ -0,0 +1,88 @@
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
|
||||
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
|
||||
|
||||
<> rdf:type mf:Manifest ;
|
||||
rdfs:comment "Turtle bad syntax test cases (must fail)" ;
|
||||
mf:entries
|
||||
(
|
||||
|
||||
[ mf:name "bad-00" ;
|
||||
rdfs:comment "prefix name must end in a :" ;
|
||||
mf:action [ qt:data <bad-00.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-01" ;
|
||||
rdfs:comment "blank predicate forbidden" ;
|
||||
mf:action [ qt:data <bad-01.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-02" ;
|
||||
rdfs:comment "blank predicate forbidden" ;
|
||||
mf:action [ qt:data <bad-02.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-03" ;
|
||||
rdfs:comment "a forbidden as subject" ;
|
||||
mf:action [ qt:data <bad-03.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-04" ;
|
||||
rdfs:comment ", not allowed in collections" ;
|
||||
mf:action [ qt:data <bad-04.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-05" ;
|
||||
rdfs:comment "{} not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-05.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-06" ;
|
||||
rdfs:comment "is and of not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-06.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-07" ;
|
||||
rdfs:comment "paths not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-07.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-08" ;
|
||||
rdfs:comment "@keywords not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-08.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-09" ;
|
||||
rdfs:comment "=> not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-09.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-10" ;
|
||||
rdfs:comment "= not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-10.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-11" ;
|
||||
rdfs:comment "@forAll not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-11.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-12" ;
|
||||
rdfs:comment "@forSome not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-12.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-13" ;
|
||||
rdfs:comment "<= not allowed in Turtle" ;
|
||||
mf:action [ qt:data <bad-13.ttl> ] ;
|
||||
]
|
||||
|
||||
[ mf:name "bad-14" ;
|
||||
rdfs:comment "long literal with missing end" ;
|
||||
mf:action [ qt:data <bad-14.ttl> ] ;
|
||||
]
|
||||
|
||||
|
||||
# End of tests
|
||||
).
|
215
packages/semweb/Tests/Turtle/manifest.ttl
Normal file
215
packages/semweb/Tests/Turtle/manifest.ttl
Normal file
@@ -0,0 +1,215 @@
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
|
||||
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
|
||||
|
||||
<> rdf:type mf:Manifest ;
|
||||
rdfs:comment "Turtle good syntax test cases (must pass)" ;
|
||||
mf:entries
|
||||
(
|
||||
[ mf:name "test-00" ;
|
||||
rdfs:comment "Blank subject" ;
|
||||
mf:action [ qt:data <test-00.ttl> ] ;
|
||||
mf:result <test-00.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-01" ;
|
||||
rdfs:comment "@prefix and qnames" ;
|
||||
mf:action [ qt:data <test-01.ttl> ] ;
|
||||
mf:result <test-01.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-02" ;
|
||||
rdfs:comment ", operator" ;
|
||||
mf:action [ qt:data <test-02.ttl> ] ;
|
||||
mf:result <test-02.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-03" ;
|
||||
rdfs:comment "; operator" ;
|
||||
mf:action [ qt:data <test-03.ttl> ] ;
|
||||
mf:result <test-03.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-04" ;
|
||||
rdfs:comment "empty [] as subject and object" ;
|
||||
mf:action [ qt:data <test-04.ttl> ] ;
|
||||
mf:result <test-04.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-05" ;
|
||||
rdfs:comment "non-empty [] as subject and object" ;
|
||||
mf:action [ qt:data <test-05.ttl> ] ;
|
||||
mf:result <test-05.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-06" ;
|
||||
rdfs:comment "'a' as predicate" ;
|
||||
mf:action [ qt:data <test-06.ttl> ] ;
|
||||
mf:result <test-06.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-07" ;
|
||||
rdfs:comment "simple collection" ;
|
||||
mf:action [ qt:data <test-07.ttl> ] ;
|
||||
mf:result <test-07.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-08" ;
|
||||
rdfs:comment "empty collection" ;
|
||||
mf:action [ qt:data <test-08.ttl> ] ;
|
||||
mf:result <test-08.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-09" ;
|
||||
rdfs:comment "integer datatyped literal" ;
|
||||
mf:action [ qt:data <test-09.ttl> ] ;
|
||||
mf:result <test-09.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-10" ;
|
||||
rdfs:comment "decimal integer canonicalization" ;
|
||||
mf:action [ qt:data <test-10.ttl> ] ;
|
||||
mf:result <test-10.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-11" ;
|
||||
rdfs:comment "- and _ in names and qnames" ;
|
||||
mf:action [ qt:data <test-11.ttl> ] ;
|
||||
mf:result <test-11.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-12" ;
|
||||
rdfs:comment "tests for rdf:_<numbers> and other qnames starting with _" ;
|
||||
mf:action [ qt:data <test-12.ttl> ] ;
|
||||
mf:result <test-12.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-13" ;
|
||||
rdfs:comment "bare : allowed" ;
|
||||
mf:action [ qt:data <test-13.ttl> ] ;
|
||||
mf:result <test-13.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-14" ;
|
||||
rdfs:comment "10000 triples, more than the default Bison stack size" ;
|
||||
mf:action [ qt:data <test-14.ttl> ] ;
|
||||
mf:result <test-14.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-15" ;
|
||||
rdfs:comment "10000 triple objects (10000 triples)" ;
|
||||
mf:action [ qt:data <test-15.ttl> ] ;
|
||||
mf:result <test-15.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-16" ;
|
||||
rdfs:comment "10000 items (10000 triples)" ;
|
||||
mf:action [ qt:data <test-16.ttl> ] ;
|
||||
mf:result <test-16.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-17" ;
|
||||
rdfs:comment "simple long literal" ;
|
||||
mf:action [ qt:data <test-17.ttl> ] ;
|
||||
mf:result <test-17.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-18" ;
|
||||
rdfs:comment "long literals with escapes" ;
|
||||
mf:action [ qt:data <test-18.ttl> ] ;
|
||||
mf:result <test-18.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-19" ;
|
||||
rdfs:comment "floating point number" ;
|
||||
mf:action [ qt:data <test-19.ttl> ] ;
|
||||
mf:result <test-19.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-20" ;
|
||||
rdfs:comment "empty literals, normal and long variant" ;
|
||||
mf:action [ qt:data <test-20.ttl> ] ;
|
||||
mf:result <test-20.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-21" ;
|
||||
rdfs:comment "positive integer, decimal and doubles" ;
|
||||
mf:action [ qt:data <test-21.ttl> ] ;
|
||||
mf:result <test-21.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-22" ;
|
||||
rdfs:comment "negative integer, decimal and doubles" ;
|
||||
mf:action [ qt:data <test-22.ttl> ] ;
|
||||
mf:result <test-22.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-23" ;
|
||||
rdfs:comment "long literal ending in double quote" ;
|
||||
mf:action [ qt:data <test-23.ttl> ] ;
|
||||
mf:result <test-23.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-24" ;
|
||||
rdfs:comment "boolean literals" ;
|
||||
mf:action [ qt:data <test-24.ttl> ] ;
|
||||
mf:result <test-24.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-25" ;
|
||||
rdfs:comment "comments" ;
|
||||
mf:action [ qt:data <test-25.ttl> ] ;
|
||||
mf:result <test-25.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-26" ;
|
||||
rdfs:comment "no final mewline" ;
|
||||
mf:action [ qt:data <test-26.ttl> ] ;
|
||||
mf:result <test-26.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-27" ;
|
||||
rdfs:comment "duplicate prefix" ;
|
||||
mf:action [ qt:data <test-27.ttl> ] ;
|
||||
mf:result <test-27.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-28" ;
|
||||
rdfs:comment "decimal data types (serializing test)" ;
|
||||
mf:action [ qt:data <test-28.ttl> ] ;
|
||||
mf:result <test-28.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-29" ;
|
||||
rdfs:comment "Escaping U+0001 to U+007F in a URI" ;
|
||||
mf:action [ qt:data <test-29.ttl> ] ;
|
||||
mf:result <test-29.out>
|
||||
]
|
||||
|
||||
[ mf:name "test-30" ;
|
||||
rdfs:comment "@base" ;
|
||||
mf:action [ qt:data <test-30.ttl> ] ;
|
||||
mf:result <test-30.out>
|
||||
]
|
||||
|
||||
[ mf:name "rdf-schema" ;
|
||||
rdfs:comment "RDF Namespace document converted into Turtle" ;
|
||||
mf:action [ qt:data <rdf-schema.ttl> ] ;
|
||||
mf:result <rdf-schema.out>
|
||||
]
|
||||
|
||||
[ mf:name "rdfs-namespace" ;
|
||||
rdfs:comment "RDFS Namespace document converted into Turtle" ;
|
||||
mf:action [ qt:data <rdfs-namespace.ttl> ] ;
|
||||
mf:result <rdfs-namespace.out>
|
||||
]
|
||||
|
||||
[ mf:name "rdfq-results" ;
|
||||
rdfs:comment "Example query result from http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html" ;
|
||||
mf:action [ qt:data <rdfq-results.ttl> ] ;
|
||||
mf:result <rdfq-results.out>
|
||||
]
|
||||
|
||||
# End of tests
|
||||
).
|
126
packages/semweb/Tests/Turtle/rdf-schema.out
Normal file
126
packages/semweb/Tests/Turtle/rdf-schema.out
Normal file
@@ -0,0 +1,126 @@
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates membership of a class" .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#label> "type"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#label> "type"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#comment> "The concept of Class" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#label> "Class"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#label> "Classe"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> <http://www.w3.org/2000/01/rdf-schema#comment> "Properties used to express RDF Schema constraints." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> <http://www.w3.org/2000/01/rdf-schema#label> "ConstraintProperty"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> <http://www.w3.org/2000/01/rdf-schema#label> "Propri\u00E9t\u00E9Contrainte"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#ConstraintResource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintResource> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintResource> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintResource> <http://www.w3.org/2000/01/rdf-schema#comment> "Resources used to express RDF Schema constraints." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintResource> <http://www.w3.org/2000/01/rdf-schema#label> "ConstraintResource"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintResource> <http://www.w3.org/2000/01/rdf-schema#label> "RessourceContrainte"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ConstraintResource> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#comment> "This represents the set Containers." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#label> "Container"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#label> "Enveloppe"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/2000/01/rdf-schema#label> "ContainerMembershipProperty"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/2000/01/rdf-schema#comment> "This represents the set of atomic values, eg. textual strings." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/2000/01/rdf-schema#label> "Literal"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/2000/01/rdf-schema#label> "Litt\u00E9ral"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/2000/01/rdf-schema#comment> "The most general class" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/2000/01/rdf-schema#label> "Resource"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/2000/01/rdf-schema#label> "Ressource"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#comment> "Use this for descriptions" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#label> "comment"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#label> "commentaire"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Literal> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#comment> "This is how we associate a class with properties that its instances can have" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#label> "domain"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#label> "domaine"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates a resource containing and defining the subject resource." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#label> "esD\u00E9finiPar"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#label> "isDefinedBy"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#seeAlso> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#comment> "Provides a human-readable version of a resource name." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#label> "label"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#label> "label"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Literal> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#ConstraintProperty> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#comment> "Properties that can be used in a schema to provide constraints" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#label> "range"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#label> "\u00E9tendue"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates a resource that provides information about the subject resource." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#label> "seeAlso"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#label> "voirAussi"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates membership of a class" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#label> "sousClasseDe"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#label> "subClassOf"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates specialization of properties" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#label> "sousPropri\u00E9t\u00E9De"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#label> "subPropertyOf"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#label> "Alt"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#label> "Choix"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#label> "Bag"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#label> "Ensemble"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#comment> "The concept of a property." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#label> "Property"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#label> "Propri\u00E9t\u00E9"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#label> "Sequence"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#label> "S\u00E9quence"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#comment> "This represents the set of reified statements." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#label> "D\u00E9claration"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#label> "Statement"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#label> "object"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#label> "objet"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#label> "predicate"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#label> "pr\u00E9dicat"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#label> "subject"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#label> "sujet"@fr .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/2000/01/rdf-schema#label> "object"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/2000/01/rdf-schema#label> "value"@fr .
|
||||
<http://www.w3.org/2000/01/rdf-schema#> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema-more> .
|
156
packages/semweb/Tests/Turtle/rdf-schema.ttl
Normal file
156
packages/semweb/Tests/Turtle/rdf-schema.ttl
Normal file
@@ -0,0 +1,156 @@
|
||||
# RDF 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";
|
||||
:label "type"@en,
|
||||
"type"@fr;
|
||||
:range :Class .
|
||||
|
||||
:Class a :Class;
|
||||
:comment "The concept of Class";
|
||||
:label "Class"@en,
|
||||
"Classe"@fr;
|
||||
:subClassOf :Resource .
|
||||
|
||||
:ConstraintProperty a :Class;
|
||||
:comment "Properties used to express RDF Schema constraints.";
|
||||
:label "ConstraintProperty"@en,
|
||||
"Propri\u00E9t\u00E9Contrainte"@fr;
|
||||
:subClassOf :ConstraintResource,
|
||||
rdf:Property .
|
||||
|
||||
:ConstraintResource a :Class,
|
||||
:Class;
|
||||
:comment "Resources used to express RDF Schema constraints.";
|
||||
:label "ConstraintResource"@en,
|
||||
"RessourceContrainte"@fr;
|
||||
:subClassOf :Resource .
|
||||
|
||||
:Container a :Class;
|
||||
:comment "This represents the set Containers.";
|
||||
:label "Container"@en,
|
||||
"Enveloppe"@fr;
|
||||
:subClassOf :Resource .
|
||||
|
||||
:ContainerMembershipProperty a :Class;
|
||||
:label "ContainerMembershipProperty"@en;
|
||||
:subClassOf rdf:Property .
|
||||
|
||||
:Literal a :Class,
|
||||
:Class;
|
||||
:comment "This represents the set of atomic values, eg. textual strings.";
|
||||
:label "Literal"@en,
|
||||
"Litt\u00E9ral"@fr .
|
||||
|
||||
:Resource a :Class;
|
||||
:comment "The most general class";
|
||||
:label "Resource"@en,
|
||||
"Ressource"@fr .
|
||||
|
||||
:comment a rdf:Property;
|
||||
:comment "Use this for descriptions";
|
||||
:domain :Resource;
|
||||
:label "comment"@en,
|
||||
"commentaire"@fr;
|
||||
:range :Literal .
|
||||
|
||||
:domain a :ConstraintProperty;
|
||||
:comment "This is how we associate a class with properties that its instances can have";
|
||||
:label "domain"@en,
|
||||
"domaine"@fr .
|
||||
|
||||
:isDefinedBy a rdf:Property;
|
||||
:comment "Indicates a resource containing and defining the subject resource.";
|
||||
:domain :Resource;
|
||||
:label "esD\u00E9finiPar"@fr,
|
||||
"isDefinedBy"@en;
|
||||
:range :Resource;
|
||||
:subPropertyOf :seeAlso .
|
||||
|
||||
:label a rdf:Property;
|
||||
:comment "Provides a human-readable version of a resource name.";
|
||||
:domain :Resource;
|
||||
:label "label"@en,
|
||||
"label"@fr;
|
||||
:range :Literal .
|
||||
|
||||
:range a :ConstraintProperty;
|
||||
:comment "Properties that can be used in a schema to provide constraints";
|
||||
:domain rdf:Property;
|
||||
:label "range"@en,
|
||||
"\u00E9tendue"@fr;
|
||||
:range :Class .
|
||||
|
||||
:seeAlso a rdf:Property;
|
||||
:comment "Indicates a resource that provides information about the subject resource.";
|
||||
:domain :Resource;
|
||||
:label "seeAlso"@en,
|
||||
"voirAussi"@fr;
|
||||
:range :Resource .
|
||||
|
||||
:subClassOf a rdf:Property;
|
||||
:comment "Indicates membership of a class";
|
||||
:domain :Class;
|
||||
:label "sousClasseDe"@fr,
|
||||
"subClassOf"@en;
|
||||
:range :Class .
|
||||
|
||||
:subPropertyOf a rdf:Property;
|
||||
:comment "Indicates specialization of properties";
|
||||
:domain rdf:Property;
|
||||
:label "sousPropri\u00E9t\u00E9De"@fr,
|
||||
"subPropertyOf"@en;
|
||||
:range rdf:Property .
|
||||
|
||||
rdf:Alt a :Class;
|
||||
:label "Alt"@en,
|
||||
"Choix"@fr;
|
||||
:subClassOf :Container .
|
||||
|
||||
rdf:Bag a :Class;
|
||||
:label "Bag"@en,
|
||||
"Ensemble"@fr;
|
||||
:subClassOf :Container .
|
||||
|
||||
rdf:Property a :Class;
|
||||
:comment "The concept of a property.";
|
||||
:label "Property"@en,
|
||||
"Propri\u00E9t\u00E9"@fr;
|
||||
:subClassOf :Resource .
|
||||
|
||||
rdf:Seq a :Class;
|
||||
:label "Sequence"@en,
|
||||
"S\u00E9quence"@fr;
|
||||
:subClassOf :Container .
|
||||
|
||||
rdf:Statement a :Class;
|
||||
:comment "This represents the set of reified statements.";
|
||||
:label "D\u00E9claration"@fr,
|
||||
"Statement"@en;
|
||||
:subClassOf :Resource .
|
||||
|
||||
rdf:object a rdf:Property;
|
||||
:domain rdf:Statement;
|
||||
:label "object"@en,
|
||||
"objet"@fr .
|
||||
|
||||
rdf:predicate a rdf:Property;
|
||||
:domain rdf:Statement;
|
||||
:label "predicate"@en,
|
||||
"pr\u00E9dicat"@fr;
|
||||
:range rdf:Property .
|
||||
|
||||
rdf:subject a rdf:Property;
|
||||
:domain rdf:Statement;
|
||||
:label "subject"@en,
|
||||
"sujet"@fr;
|
||||
:range :Resource .
|
||||
|
||||
rdf:value a rdf:Property;
|
||||
:label "object"@en,
|
||||
"value"@fr .
|
||||
|
||||
: :seeAlso <http://www.w3.org/2000/01/rdf-schema-more> .
|
36
packages/semweb/Tests/Turtle/rdfq-results.out
Normal file
36
packages/semweb/Tests/Turtle/rdfq-results.out
Normal file
@@ -0,0 +1,36 @@
|
||||
_:genid1 <http://jena.hpl.hp.com/2003/03/result-set#variable> "x" .
|
||||
_:genid1 <http://jena.hpl.hp.com/2003/03/result-set#value> "123"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
_:genid2 <http://jena.hpl.hp.com/2003/03/result-set#variable> "y" .
|
||||
_:genid2 <http://jena.hpl.hp.com/2003/03/result-set#value> <http://example.com/resource1> .
|
||||
_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://jena.hpl.hp.com/2003/03/result-set#ResultSolution> .
|
||||
_:genid3 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid1 .
|
||||
_:genid3 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid2 .
|
||||
_:genid4 <http://jena.hpl.hp.com/2003/03/result-set#variable> "x" .
|
||||
_:genid4 <http://jena.hpl.hp.com/2003/03/result-set#value> "2003-01-21" .
|
||||
_:genid5 <http://jena.hpl.hp.com/2003/03/result-set#variable> "y" .
|
||||
_:genid5 <http://jena.hpl.hp.com/2003/03/result-set#value> <http://example.com/resource2> .
|
||||
_:genid6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://jena.hpl.hp.com/2003/03/result-set#ResultSolution> .
|
||||
_:genid6 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid4 .
|
||||
_:genid6 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid5 .
|
||||
_:genid7 <http://jena.hpl.hp.com/2003/03/result-set#variable> "x" .
|
||||
_:genid7 <http://jena.hpl.hp.com/2003/03/result-set#value> "anon1" .
|
||||
_:genid8 <http://jena.hpl.hp.com/2003/03/result-set#variable> "y" .
|
||||
_:genid8 <http://jena.hpl.hp.com/2003/03/result-set#value> _:a .
|
||||
_:genid9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://jena.hpl.hp.com/2003/03/result-set#ResultSolution> .
|
||||
_:genid9 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid7 .
|
||||
_:genid9 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid8 .
|
||||
_:genid10 <http://jena.hpl.hp.com/2003/03/result-set#variable> "x" .
|
||||
_:genid10 <http://jena.hpl.hp.com/2003/03/result-set#value> "anon2" .
|
||||
_:genid11 <http://jena.hpl.hp.com/2003/03/result-set#variable> "y" .
|
||||
_:genid11 <http://jena.hpl.hp.com/2003/03/result-set#value> _:a .
|
||||
_:genid12 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://jena.hpl.hp.com/2003/03/result-set#ResultSolution> .
|
||||
_:genid12 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid10 .
|
||||
_:genid12 <http://jena.hpl.hp.com/2003/03/result-set#binding> _:genid11 .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://jena.hpl.hp.com/2003/03/result-set#ResultSet> .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#size> "4"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#resultVariable> "x" .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#resultVariable> "y" .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#solution> _:genid3 .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#solution> _:genid6 .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#solution> _:genid9 .
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> <http://jena.hpl.hp.com/2003/03/result-set#solution> _:genid12 .
|
39
packages/semweb/Tests/Turtle/rdfq-results.ttl
Normal file
39
packages/semweb/Tests/Turtle/rdfq-results.ttl
Normal file
@@ -0,0 +1,39 @@
|
||||
# from http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html
|
||||
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rs: <http://jena.hpl.hp.com/2003/03/result-set#> .
|
||||
|
||||
|
||||
<> rdf:type rs:ResultSet ;
|
||||
rs:size 4 ;
|
||||
rs:resultVariable "x" ; rs:resultVariable "y" ;
|
||||
rs:solution
|
||||
[ rdf:type rs:ResultSolution ;
|
||||
rs:binding [ rs:variable "x" ; rs:value 123 ] ;
|
||||
rs:binding [ rs:variable "y" ; rs:value <http://example.com/resource1> ]
|
||||
] ;
|
||||
|
||||
rs:solution
|
||||
[ rdf:type rs:ResultSolution ;
|
||||
rs:binding [ rs:variable "x" ;
|
||||
rs:value "2003-01-21" ] ;
|
||||
rs:binding [ rs:variable "y" ;
|
||||
rs:value <http://example.com/resource2> ]
|
||||
] ;
|
||||
|
||||
rs:solution
|
||||
[ rdf:type rs:ResultSolution ;
|
||||
rs:binding [ rs:variable "x" ;
|
||||
rs:value "anon1" ] ;
|
||||
rs:binding [ rs:variable "y" ;
|
||||
rs:value _:a ]
|
||||
] ;
|
||||
|
||||
rs:solution
|
||||
[ rdf:type rs:ResultSolution ;
|
||||
rs:binding [ rs:variable "x" ;
|
||||
rs:value "anon2" ] ;
|
||||
rs:binding [ rs:variable "y" ;
|
||||
rs:value _:a ]
|
||||
] ;
|
||||
.
|
131
packages/semweb/Tests/Turtle/rdfs-namespace.out
Normal file
131
packages/semweb/Tests/Turtle/rdfs-namespace.out
Normal file
@@ -0,0 +1,131 @@
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates membership of a class" .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#label> "type"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#comment> "A collection of alternatives."@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#label> "Alt"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#comment> "An unordered collection."@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#label> "Bag"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#comment> "The concept of a property." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#label> "Property"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#comment> "An ordered collection."@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#label> "Seq"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#comment> "The class of RDF statements." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#label> "Statement"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#comment> "The object of an RDF statement." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://www.w3.org/2000/01/rdf-schema#label> "object"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#comment> "the predicate of an RDF statement." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#label> "predicate"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#comment> "The subject of an RDF statement." .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#label> "subject"@en .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/2000/01/rdf-schema#comment> "Identifies the principal value (usually a string) of a property when the property value is a structured resource" .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/2000/01/rdf-schema#label> "value"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema-more> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#comment> "The concept of Class" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#label> "Class"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Class> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#comment> "This represents the set Containers." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#label> "Container"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Container> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/2000/01/rdf-schema#comment> "The container membership properties, rdf:1, rdf:2, ..., all of which are sub-properties of 'member'." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/2000/01/rdf-schema#label> "ContainerMembershipProperty"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/2000/01/rdf-schema#comment> "This represents the set of atomic values, eg. textual strings." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Literal> <http://www.w3.org/2000/01/rdf-schema#label> "Literal"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/2000/01/rdf-schema#comment> "The class resource, everything." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#Resource> <http://www.w3.org/2000/01/rdf-schema#label> "Resource"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#comment> "Use this for descriptions" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#label> "comment"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Literal> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#comment> "A domain class for a property type" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#label> "domain"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates the namespace of a resource" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#label> "isDefinedBy"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#seeAlso> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#comment> "Provides a human-readable version of a resource name." .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#label> "label"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#label> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Literal> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#member> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#member> <http://www.w3.org/2000/01/rdf-schema#comment> "a member of a container" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#member> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Container> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#member> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#member> <http://www.w3.org/2000/01/rdf-schema#label> "member"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#comment> "A range class for a property type" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#label> "range"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#comment> "A resource that provides information about the subject resource" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#label> "seeAlso"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Resource> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates membership of a class" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#label> "subClassOf"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2000/01/rdf-schema#Class> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates specialization of properties" .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#label> "subPropertyOf"@en .
|
||||
<http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
|
160
packages/semweb/Tests/Turtle/rdfs-namespace.ttl
Normal file
160
packages/semweb/Tests/Turtle/rdfs-namespace.ttl
Normal file
@@ -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 .
|
1
packages/semweb/Tests/Turtle/test-00.out
Normal file
1
packages/semweb/Tests/Turtle/test-00.out
Normal file
@@ -0,0 +1 @@
|
||||
_:genid1 <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-00.ttl#x> <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-00.ttl#y> .
|
2
packages/semweb/Tests/Turtle/test-00.ttl
Normal file
2
packages/semweb/Tests/Turtle/test-00.ttl
Normal file
@@ -0,0 +1,2 @@
|
||||
@prefix : <#> .
|
||||
[] :x :y .
|
3
packages/semweb/Tests/Turtle/test-01.out
Normal file
3
packages/semweb/Tests/Turtle/test-01.out
Normal file
@@ -0,0 +1,3 @@
|
||||
<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> .
|
||||
<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> .
|
||||
<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> .
|
7
packages/semweb/Tests/Turtle/test-01.ttl
Normal file
7
packages/semweb/Tests/Turtle/test-01.ttl
Normal file
@@ -0,0 +1,7 @@
|
||||
# Test @prefix and qnames
|
||||
@prefix : <http://example.org/base1#> .
|
||||
@prefix a: <http://example.org/base2#> .
|
||||
@prefix b: <http://example.org/base3#> .
|
||||
:a :b :c .
|
||||
a:a a:b a:c .
|
||||
:a a:a b:a .
|
3
packages/semweb/Tests/Turtle/test-02.out
Normal file
3
packages/semweb/Tests/Turtle/test-02.out
Normal file
@@ -0,0 +1,3 @@
|
||||
<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> .
|
||||
<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> .
|
||||
<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> .
|
5
packages/semweb/Tests/Turtle/test-02.ttl
Normal file
5
packages/semweb/Tests/Turtle/test-02.ttl
Normal file
@@ -0,0 +1,5 @@
|
||||
# Test , operator
|
||||
@prefix : <http://example.org/base#> .
|
||||
:a :b :c,
|
||||
:d,
|
||||
:e .
|
3
packages/semweb/Tests/Turtle/test-03.out
Normal file
3
packages/semweb/Tests/Turtle/test-03.out
Normal file
@@ -0,0 +1,3 @@
|
||||
<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> .
|
||||
<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> .
|
||||
<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> .
|
5
packages/semweb/Tests/Turtle/test-03.ttl
Normal file
5
packages/semweb/Tests/Turtle/test-03.ttl
Normal file
@@ -0,0 +1,5 @@
|
||||
# Test ; operator
|
||||
@prefix : <http://example.org/base#> .
|
||||
:a :b :c ;
|
||||
:d :e ;
|
||||
:f :g .
|
2
packages/semweb/Tests/Turtle/test-04.out
Normal file
2
packages/semweb/Tests/Turtle/test-04.out
Normal file
@@ -0,0 +1,2 @@
|
||||
_:genid1 <http://example.org/base#a> <http://example.org/base#b> .
|
||||
<http://example.org/base#c> <http://example.org/base#d> _:genid2 .
|
4
packages/semweb/Tests/Turtle/test-04.ttl
Normal file
4
packages/semweb/Tests/Turtle/test-04.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
# Test empty [] operator; not allowed as predicate
|
||||
@prefix : <http://example.org/base#> .
|
||||
[] :a :b .
|
||||
:c :d [] .
|
4
packages/semweb/Tests/Turtle/test-05.out
Normal file
4
packages/semweb/Tests/Turtle/test-05.out
Normal file
@@ -0,0 +1,4 @@
|
||||
_:genid1 <http://example.org/base#a> <http://example.org/base#b> .
|
||||
_:genid1 <http://example.org/base#c> <http://example.org/base#d> .
|
||||
_:genid2 <http://example.org/base#g> <http://example.org/base#h> .
|
||||
<http://example.org/base#e> <http://example.org/base#f> _:genid2 .
|
4
packages/semweb/Tests/Turtle/test-05.ttl
Normal file
4
packages/semweb/Tests/Turtle/test-05.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
# Test non empty [] operator; not allowed as predicate
|
||||
@prefix : <http://example.org/base#> .
|
||||
[ :a :b ] :c :d .
|
||||
:e :f [ :g :h ] .
|
1
packages/semweb/Tests/Turtle/test-06.out
Normal file
1
packages/semweb/Tests/Turtle/test-06.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> .
|
3
packages/semweb/Tests/Turtle/test-06.ttl
Normal file
3
packages/semweb/Tests/Turtle/test-06.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# 'a' only allowed as a predicate
|
||||
@prefix : <http://example.org/base#> .
|
||||
:a a :b .
|
5
packages/semweb/Tests/Turtle/test-07.out
Normal file
5
packages/semweb/Tests/Turtle/test-07.out
Normal file
@@ -0,0 +1,5 @@
|
||||
_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana" .
|
||||
_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
||||
_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" .
|
||||
_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:genid1 .
|
||||
<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:genid2 .
|
3
packages/semweb/Tests/Turtle/test-07.ttl
Normal file
3
packages/semweb/Tests/Turtle/test-07.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a :b ( "apple" "banana" ) .
|
||||
|
1
packages/semweb/Tests/Turtle/test-08.out
Normal file
1
packages/semweb/Tests/Turtle/test-08.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
|
3
packages/semweb/Tests/Turtle/test-08.ttl
Normal file
3
packages/semweb/Tests/Turtle/test-08.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
@prefix : <http://example.org/stuff/1.0/> .
|
||||
:a :b ( ) .
|
||||
|
4
packages/semweb/Tests/Turtle/test-09.out
Normal file
4
packages/semweb/Tests/Turtle/test-09.out
Normal file
@@ -0,0 +1,4 @@
|
||||
_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> .
|
||||
_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> .
|
||||
_:genid1 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent .
|
||||
_:genid1 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
10
packages/semweb/Tests/Turtle/test-09.ttl
Normal file
10
packages/semweb/Tests/Turtle/test-09.ttl
Normal file
@@ -0,0 +1,10 @@
|
||||
# Test integer datatyped literals using an OWL cardinality constraint
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
|
||||
# based on examples in the OWL Reference
|
||||
|
||||
_:hasParent a owl:ObjectProperty .
|
||||
|
||||
[] a owl:Restriction ;
|
||||
owl:onProperty _:hasParent ;
|
||||
owl:maxCardinality 2 .
|
5
packages/semweb/Tests/Turtle/test-10.out
Normal file
5
packages/semweb/Tests/Turtle/test-10.out
Normal file
@@ -0,0 +1,5 @@
|
||||
<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
5
packages/semweb/Tests/Turtle/test-10.ttl
Normal file
5
packages/semweb/Tests/Turtle/test-10.ttl
Normal file
@@ -0,0 +1,5 @@
|
||||
<http://example.org/res1> <http://example.org/prop1> 000000 .
|
||||
<http://example.org/res2> <http://example.org/prop2> 0 .
|
||||
<http://example.org/res3> <http://example.org/prop3> 000001 .
|
||||
<http://example.org/res4> <http://example.org/prop4> 2 .
|
||||
<http://example.org/res5> <http://example.org/prop5> 4 .
|
4
packages/semweb/Tests/Turtle/test-11.out
Normal file
4
packages/semweb/Tests/Turtle/test-11.out
Normal file
@@ -0,0 +1,4 @@
|
||||
<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" .
|
||||
<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" .
|
||||
<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" .
|
||||
<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" .
|
10
packages/semweb/Tests/Turtle/test-11.ttl
Normal file
10
packages/semweb/Tests/Turtle/test-11.ttl
Normal file
@@ -0,0 +1,10 @@
|
||||
# Tests for - and _ in names, qnames
|
||||
@prefix ex1: <http://example.org/ex1#> .
|
||||
@prefix ex-2: <http://example.org/ex2#> .
|
||||
@prefix ex3_: <http://example.org/ex3#> .
|
||||
@prefix ex4-: <http://example.org/ex4#> .
|
||||
|
||||
ex1:foo-bar ex1:foo_bar "a" .
|
||||
ex-2:foo-bar ex-2:foo_bar "b" .
|
||||
ex3_:foo-bar ex3_:foo_bar "c" .
|
||||
ex4-:foo-bar ex4-:foo_bar "d" .
|
4
packages/semweb/Tests/Turtle/test-12.out
Normal file
4
packages/semweb/Tests/Turtle/test-12.out
Normal file
@@ -0,0 +1,4 @@
|
||||
<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" .
|
||||
<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
|
||||
<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" .
|
||||
<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" .
|
9
packages/semweb/Tests/Turtle/test-12.ttl
Normal file
9
packages/semweb/Tests/Turtle/test-12.ttl
Normal file
@@ -0,0 +1,9 @@
|
||||
# Tests for rdf:_<numbers> and other qnames starting with _
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix ex: <http://example.org/ex#> .
|
||||
@prefix : <http://example.org/myprop#> .
|
||||
|
||||
ex:foo rdf:_1 "1" .
|
||||
ex:foo rdf:_2 "2" .
|
||||
ex:foo :_abc "def" .
|
||||
ex:foo :_345 "678" .
|
2
packages/semweb/Tests/Turtle/test-13.out
Normal file
2
packages/semweb/Tests/Turtle/test-13.out
Normal file
@@ -0,0 +1,2 @@
|
||||
_:genid1 <http://example.org/ron> _:genid2 .
|
||||
<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> .
|
7
packages/semweb/Tests/Turtle/test-13.ttl
Normal file
7
packages/semweb/Tests/Turtle/test-13.ttl
Normal file
@@ -0,0 +1,7 @@
|
||||
# Test for : allowed
|
||||
@prefix : <http://example.org/ron> .
|
||||
|
||||
[] : [] .
|
||||
|
||||
: : : .
|
||||
|
10000
packages/semweb/Tests/Turtle/test-14.out
Normal file
10000
packages/semweb/Tests/Turtle/test-14.out
Normal file
File diff suppressed because it is too large
Load Diff
10002
packages/semweb/Tests/Turtle/test-14.ttl
Normal file
10002
packages/semweb/Tests/Turtle/test-14.ttl
Normal file
File diff suppressed because it is too large
Load Diff
10000
packages/semweb/Tests/Turtle/test-15.out
Normal file
10000
packages/semweb/Tests/Turtle/test-15.out
Normal file
File diff suppressed because it is too large
Load Diff
3
packages/semweb/Tests/Turtle/test-15.ttl
Normal file
3
packages/semweb/Tests/Turtle/test-15.ttl
Normal file
File diff suppressed because one or more lines are too long
10000
packages/semweb/Tests/Turtle/test-16.out
Normal file
10000
packages/semweb/Tests/Turtle/test-16.out
Normal file
File diff suppressed because it is too large
Load Diff
10002
packages/semweb/Tests/Turtle/test-16.ttl
Normal file
10002
packages/semweb/Tests/Turtle/test-16.ttl
Normal file
File diff suppressed because it is too large
Load Diff
1
packages/semweb/Tests/Turtle/test-17.out
Normal file
1
packages/semweb/Tests/Turtle/test-17.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" .
|
6
packages/semweb/Tests/Turtle/test-17.ttl
Normal file
6
packages/semweb/Tests/Turtle/test-17.ttl
Normal file
@@ -0,0 +1,6 @@
|
||||
# Test long literal
|
||||
@prefix : <http://example.org/ex#> .
|
||||
:a :b """a long
|
||||
literal
|
||||
with
|
||||
newlines""" .
|
2
packages/semweb/Tests/Turtle/test-18.out
Normal file
2
packages/semweb/Tests/Turtle/test-18.out
Normal file
@@ -0,0 +1,2 @@
|
||||
<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00015678long\t\nliteral\uABCD\n" .
|
||||
<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00015678another\n\none\n" .
|
9
packages/semweb/Tests/Turtle/test-18.ttl
Normal file
9
packages/semweb/Tests/Turtle/test-18.ttl
Normal file
@@ -0,0 +1,9 @@
|
||||
@prefix : <http://example.org/foo#> .
|
||||
|
||||
:a :b """\nthis \ris a \U00015678long\t
|
||||
literal\uABCD
|
||||
""" .
|
||||
|
||||
:d :e """\tThis \uABCDis\r \U00015678another\n
|
||||
one
|
||||
""" .
|
1
packages/semweb/Tests/Turtle/test-19.out
Normal file
1
packages/semweb/Tests/Turtle/test-19.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
4
packages/semweb/Tests/Turtle/test-19.ttl
Normal file
4
packages/semweb/Tests/Turtle/test-19.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
@prefix : <http://example.org/#> .
|
||||
|
||||
:a :b 1.0 .
|
||||
|
2
packages/semweb/Tests/Turtle/test-20.out
Normal file
2
packages/semweb/Tests/Turtle/test-20.out
Normal file
@@ -0,0 +1,2 @@
|
||||
<http://example.org/#a> <http://example.org/#b> "" .
|
||||
<http://example.org/#c> <http://example.org/#d> "" .
|
6
packages/semweb/Tests/Turtle/test-20.ttl
Normal file
6
packages/semweb/Tests/Turtle/test-20.ttl
Normal file
@@ -0,0 +1,6 @@
|
||||
@prefix : <http://example.org/#> .
|
||||
|
||||
:a :b "" .
|
||||
|
||||
:c :d """""" .
|
||||
|
3
packages/semweb/Tests/Turtle/test-21.out
Normal file
3
packages/semweb/Tests/Turtle/test-21.out
Normal file
@@ -0,0 +1,3 @@
|
||||
<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> .
|
4
packages/semweb/Tests/Turtle/test-21.ttl
Normal file
4
packages/semweb/Tests/Turtle/test-21.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
@prefix : <http://example.org#> .
|
||||
:a :b 1.0 .
|
||||
:c :d 1 .
|
||||
:e :f 1.0e0 .
|
3
packages/semweb/Tests/Turtle/test-22.out
Normal file
3
packages/semweb/Tests/Turtle/test-22.out
Normal file
@@ -0,0 +1,3 @@
|
||||
<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> .
|
||||
<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> .
|
4
packages/semweb/Tests/Turtle/test-22.ttl
Normal file
4
packages/semweb/Tests/Turtle/test-22.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
@prefix : <http://example.org#> .
|
||||
:a :b -1.0 .
|
||||
:c :d -1 .
|
||||
:e :f -1.0e0 .
|
1
packages/semweb/Tests/Turtle/test-23.out
Normal file
1
packages/semweb/Tests/Turtle/test-23.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" .
|
3
packages/semweb/Tests/Turtle/test-23.ttl
Normal file
3
packages/semweb/Tests/Turtle/test-23.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
# Test long literal
|
||||
@prefix : <http://example.org/ex#> .
|
||||
:a :b """John said: "Hello World!\"""" .
|
2
packages/semweb/Tests/Turtle/test-24.out
Normal file
2
packages/semweb/Tests/Turtle/test-24.out
Normal file
@@ -0,0 +1,2 @@
|
||||
<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
|
||||
<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
|
3
packages/semweb/Tests/Turtle/test-24.ttl
Normal file
3
packages/semweb/Tests/Turtle/test-24.ttl
Normal file
@@ -0,0 +1,3 @@
|
||||
@prefix : <http://example.org#> .
|
||||
:a :b true .
|
||||
:c :d false .
|
7
packages/semweb/Tests/Turtle/test-25.out
Normal file
7
packages/semweb/Tests/Turtle/test-25.out
Normal file
@@ -0,0 +1,7 @@
|
||||
<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> .
|
||||
<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> .
|
||||
<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> .
|
||||
<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> .
|
||||
<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> .
|
||||
<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> .
|
||||
<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> .
|
14
packages/semweb/Tests/Turtle/test-25.ttl
Normal file
14
packages/semweb/Tests/Turtle/test-25.ttl
Normal file
@@ -0,0 +1,14 @@
|
||||
# comment test
|
||||
@prefix : <http://example.org/#> .
|
||||
:a :b :c . # end of line comment
|
||||
:d # ignore me
|
||||
:e # and me
|
||||
:f # and me
|
||||
.
|
||||
:g :h #ignore me
|
||||
:i, # and me
|
||||
:j . # and me
|
||||
|
||||
:k :l :m ; #ignore me
|
||||
:n :o ; # and me
|
||||
:p :q . # and me
|
1
packages/semweb/Tests/Turtle/test-26.out
Normal file
1
packages/semweb/Tests/Turtle/test-26.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> .
|
4
packages/semweb/Tests/Turtle/test-26.ttl
Normal file
4
packages/semweb/Tests/Turtle/test-26.ttl
Normal file
@@ -0,0 +1,4 @@
|
||||
# comment line with no final newline test
|
||||
@prefix : <http://example.org/#> .
|
||||
:a :b :c .
|
||||
#foo
|
1
packages/semweb/Tests/Turtle/test-27.out
Normal file
1
packages/semweb/Tests/Turtle/test-27.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> .
|
5
packages/semweb/Tests/Turtle/test-27.ttl
Normal file
5
packages/semweb/Tests/Turtle/test-27.ttl
Normal file
@@ -0,0 +1,5 @@
|
||||
@prefix foo: <http://example.org/foo#> .
|
||||
@prefix foo: <http://example.org/bar#> .
|
||||
|
||||
foo:blah foo:blah foo:blah .
|
||||
|
6
packages/semweb/Tests/Turtle/test-28-out.ttl
Normal file
6
packages/semweb/Tests/Turtle/test-28-out.ttl
Normal file
@@ -0,0 +1,6 @@
|
||||
@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-28.ttl> .
|
||||
@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
<http://example.org/foo>
|
||||
<http://example.org/bar> 2.345, 1, 1.0, 1., 1.000000000, 2.3, 2.234000005, 2.2340000005, 2.23400000005, 2.234000000005, 2.2340000000005, 2.23400000000005, 2.234000000000005, 2.2340000000000005, 2.23400000000000005, 2.234000000000000005, 2.2340000000000000005, 2.23400000000000000005, 2.234000000000000000005, 2.2340000000000000000005, 2.23400000000000000000005, 1.2345678901234567890123457890 .
|
||||
|
22
packages/semweb/Tests/Turtle/test-28.out
Normal file
22
packages/semweb/Tests/Turtle/test-28.out
Normal file
@@ -0,0 +1,22 @@
|
||||
<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.30"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.2345678901234567"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
22
packages/semweb/Tests/Turtle/test-28.ttl
Normal file
22
packages/semweb/Tests/Turtle/test-28.ttl
Normal file
@@ -0,0 +1,22 @@
|
||||
<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
||||
<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> .
|
1
packages/semweb/Tests/Turtle/test-29.out
Normal file
1
packages/semweb/Tests/Turtle/test-29.out
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/node> <http://example.org/prop> <scheme:\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\n\u000B\u000C\r\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F !"#$%&'()*+,-./0123456789:/<=\u003E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F> .
|
1
packages/semweb/Tests/Turtle/test-29.ttl
Normal file
1
packages/semweb/Tests/Turtle/test-29.ttl
Normal file
@@ -0,0 +1 @@
|
||||
<http://example.org/node> <http://example.org/prop> <scheme:\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\n\u000B\u000C\r\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F !"#$%&'()*+,-./0123456789:/<=\u003E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F> .
|
5
packages/semweb/Tests/Turtle/test-30.out
Normal file
5
packages/semweb/Tests/Turtle/test-30.out
Normal file
@@ -0,0 +1,5 @@
|
||||
<http://www.w3.org/2001/sw/DataAccess/df1/tests/a1> <http://www.w3.org/2001/sw/DataAccess/df1/tests/b1> <http://www.w3.org/2001/sw/DataAccess/df1/tests/c1> .
|
||||
<http://example.org/ns/a2> <http://example.org/ns/b2> <http://example.org/ns/c2> .
|
||||
<http://example.org/ns/foo/a3> <http://example.org/ns/foo/b3> <http://example.org/ns/foo/c3> .
|
||||
<http://example.org/ns/foo/bar#a4> <http://example.org/ns/foo/bar#b4> <http://example.org/ns/foo/bar#c4> .
|
||||
<http://example.org/ns2#a5> <http://example.org/ns2#b5> <http://example.org/ns2#c5> .
|
12
packages/semweb/Tests/Turtle/test-30.ttl
Normal file
12
packages/semweb/Tests/Turtle/test-30.ttl
Normal file
@@ -0,0 +1,12 @@
|
||||
# In-scope base URI is http://www.w3.org/2001/sw/DataAccess/df1/tests/ at this point
|
||||
<a1> <b1> <c1> .
|
||||
@base <http://example.org/ns/> .
|
||||
# In-scope base URI is http://example.org/ns/ at this point
|
||||
<a2> <http://example.org/ns/b2> <c2> .
|
||||
@base <foo/> .
|
||||
# In-scope base URI is http://example.org/ns/foo/ at this point
|
||||
<a3> <b3> <c3> .
|
||||
@prefix : <bar#> .
|
||||
:a4 :b4 :c4 .
|
||||
@prefix : <http://example.org/ns2#> .
|
||||
:a5 :b5 :c5 .
|
41
packages/semweb/Tests/lit.pl
Normal file
41
packages/semweb/Tests/lit.pl
Normal file
@@ -0,0 +1,41 @@
|
||||
:- module(lit,
|
||||
[ lit/0
|
||||
]).
|
||||
:- use_module('../rdf_db').
|
||||
|
||||
data(string, '').
|
||||
data(string, 'This is a nice string').
|
||||
|
||||
data(int, 0).
|
||||
data(int, -67).
|
||||
data(int, 327848).
|
||||
|
||||
data(float, 0.0).
|
||||
data(float, 48.25).
|
||||
|
||||
data(term, [let, us, test, a, list]).
|
||||
data(term, [let, us, test, another, list]).
|
||||
|
||||
create :-
|
||||
( data(Type, Value),
|
||||
rdf_assert(subject, Type, literal(Value)),
|
||||
fail
|
||||
; true
|
||||
).
|
||||
|
||||
lookup :-
|
||||
findall(T-V, (rdf(subject, T, X), X = literal(V)), Pairs),
|
||||
findall(T-V, data(T, V), Data),
|
||||
Data == Pairs.
|
||||
|
||||
|
||||
/*******************************
|
||||
* MAIN *
|
||||
*******************************/
|
||||
|
||||
lit :-
|
||||
rdf_reset_db,
|
||||
create,
|
||||
lookup.
|
||||
|
||||
|
32
packages/semweb/Tests/subprop.pl
Normal file
32
packages/semweb/Tests/subprop.pl
Normal file
@@ -0,0 +1,32 @@
|
||||
:- module(subprop,
|
||||
[ subprop/0
|
||||
]).
|
||||
:- use_module('../rdf_db').
|
||||
|
||||
rdf_db:ns(test, 'http://www.test.org/').
|
||||
|
||||
% :- rdf_debug(10).
|
||||
|
||||
t1 :-
|
||||
rdf_assert(test:a, rdfs:subPropertyOf, test:r1),
|
||||
rdf_assert(test:jan, test:a, literal(jan)).
|
||||
|
||||
t2 :-
|
||||
rdf_assert(test:a, rdfs:subPropertyOf, test:r1),
|
||||
rdf_assert(test:a, rdfs:subPropertyOf, test:r2),
|
||||
rdf_assert(test:jan, test:a, literal(jan)).
|
||||
|
||||
t3 :-
|
||||
rdf_assert(test:a, rdfs:subPropertyOf, test:r1),
|
||||
rdf_assert(test:a, rdfs:subPropertyOf, test:r2),
|
||||
rdf_assert(test:b, rdfs:subPropertyOf, test:r3),
|
||||
rdf_assert(test:b, rdfs:subPropertyOf, test:r4),
|
||||
rdf_assert(test:c, rdfs:subPropertyOf, test:a),
|
||||
rdf_assert(test:c, rdfs:subPropertyOf, test:b),
|
||||
rdf_assert(test:jan, test:a, literal(jan)).
|
||||
|
||||
subprop :-
|
||||
rdf_reset_db,
|
||||
t3,
|
||||
rdf_has(test:jan, test:r1, Name),
|
||||
Name == literal(jan).
|
17
packages/semweb/Tests/test-001.rdf
Normal file
17
packages/semweb/Tests/test-001.rdf
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE rdf:RDF [
|
||||
<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
|
||||
<!ENTITY test 'http://www.swi-prolog.org/ns/test/'>
|
||||
]>
|
||||
|
||||
<!-- Simple test data
|
||||
-->
|
||||
|
||||
<rdf:RDF xmlns:rdf="&rdf;"
|
||||
xmlns:test="&test;">
|
||||
|
||||
<test:Root>
|
||||
</test:Root>
|
||||
|
||||
</rdf:RDF>
|
BIN
packages/semweb/Tests/test-002.rdf.gz
Normal file
BIN
packages/semweb/Tests/test-002.rdf.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user