summaryrefslogtreecommitdiff
path: root/tests/trig
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2011-07-11 09:55:44 -0700
committerDave Beckett <dave@dajobe.org>2011-07-11 09:55:44 -0700
commitaa5ca76de1ec0193cebe9f8a1b43a204b3d82eef (patch)
tree06afb22cf6b866bbdc35ed2ce1f194c1533eb81e /tests/trig
parent27d98bcaa57734f367e5fec93341d00e95167c8f (diff)
downloadraptor-aa5ca76de1ec0193cebe9f8a1b43a204b3d82eef.tar.gz
Add tests for bug 451 - fixing TrIG to be legal
Diffstat (limited to 'tests/trig')
-rw-r--r--tests/trig/Makefile.am4
-rw-r--r--tests/trig/bug451.out6
-rw-r--r--tests/trig/bug451.trig24
-rw-r--r--tests/trig/example2.trig2
4 files changed, 33 insertions, 3 deletions
diff --git a/tests/trig/Makefile.am b/tests/trig/Makefile.am
index e7fbff7f..3e6136eb 100644
--- a/tests/trig/Makefile.am
+++ b/tests/trig/Makefile.am
@@ -21,10 +21,10 @@
#
TEST_FILES=\
-example1.trig example2.trig example3.trig bug370.trig
+example1.trig example2.trig example3.trig bug370.trig bug451.trig
TEST_OUT_FILES=\
-example1.out example2.out example3.out bug370.out
+example1.out example2.out example3.out bug370.out bug451.out
# Used to make N-triples output consistent
BASE_URI=http://example.librdf.org/
diff --git a/tests/trig/bug451.out b/tests/trig/bug451.out
new file mode 100644
index 00000000..67d86e24
--- /dev/null
+++ b/tests/trig/bug451.out
@@ -0,0 +1,6 @@
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie#characterSet> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie#characterSet> <http://www.w3.org/2000/01/rdf-schema#comment> "Characterset in which the content of the InformationElement was created." <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie#characterSet> <http://www.w3.org/2000/01/rdf-schema#domain> <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#InformationElement> <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie#characterSet> <http://www.w3.org/2000/01/rdf-schema#label> "characterSet" <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie#characterSet> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2001/XMLSchema#string> <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie#characterSet> <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#maxCardinality> "1" <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
diff --git a/tests/trig/bug451.trig b/tests/trig/bug451.trig
new file mode 100644
index 00000000..e5bc17d9
--- /dev/null
+++ b/tests/trig/bug451.trig
@@ -0,0 +1,24 @@
+@prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+@prefix dcterms: <http://purl.org/dc/terms/> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+# HERE "nie:" is used as graph name
+nie: {nie:characterSet
+ a rdf:Property ;
+ rdfs:comment "Characterset in which the content of the InformationElement was created." ;
+ rdfs:domain nie:InformationElement ;
+ rdfs:label "characterSet" ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality "1" .
+}
+
+<http://www.semanticdesktop.org/ontologies/2007/01/19/nie_metadata#> {
+ nie: a nrl:Ontology ;
+ <http://www.semanticdesktop.org/ontologies/2007/01/19/nie_metadata#>
+ a nrl:GraphMetadata ;
+ nrl:coreGraphMetadataFor
+ nie: .
+}
diff --git a/tests/trig/example2.trig b/tests/trig/example2.trig
index c2637aaf..7c5cd064 100644
--- a/tests/trig/example2.trig
+++ b/tests/trig/example2.trig
@@ -3,7 +3,7 @@
@prefix ex: <http://www.example.org/vocabulary#> .
@prefix : <http://www.example.org/exampleDocument#> .
-:G1 :- { :Monica a ex:Person ;
+:G1 = { :Monica a ex:Person ;
ex:name "Monica Murphy" ;
ex:homepage <http://www.monicamurphy.org> ;
ex:email <mailto:monica@monicamurphy.org> ;