summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2001-06-04 22:50:10 +0000
committerDave Beckett <dave@dajobe.org>2001-06-04 22:50:10 +0000
commit9a25f55a2744ae108f593db844fce7d54c39027a (patch)
tree36096f9eec2810a396f9c41ad4da72625d04cc63
parent36dfb72a94ffcec2d7c0d722a32ff7293f966bf3 (diff)
downloadraptor-9a25f55a2744ae108f593db844fce7d54c39027a.tar.gz
Test RDf/XML files
-rw-r--r--tests/ex-00.rdf6
-rw-r--r--tests/ex-01.rdf5
-rw-r--r--tests/ex-02.rdf9
-rw-r--r--tests/ex-03.rdf21
-rw-r--r--tests/ex-04.rdf5
-rw-r--r--tests/ex-05.rdf6
-rw-r--r--tests/ex-06.rdf13
-rw-r--r--tests/ex-07.rdf11
-rw-r--r--tests/ex-08.rdf7
-rw-r--r--tests/ex-09.rdf8
-rw-r--r--tests/ex-10.rdf14
11 files changed, 105 insertions, 0 deletions
diff --git a/tests/ex-00.rdf b/tests/ex-00.rdf
new file mode 100644
index 00000000..e4d09e77
--- /dev/null
+++ b/tests/ex-00.rdf
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- This may be distinguishable from <a></a> in XML parsers -->
+ <a xmlns="http://example.org/"/>
+</rdf:RDF>
+
diff --git a/tests/ex-01.rdf b/tests/ex-01.rdf
new file mode 100644
index 00000000..feccc303
--- /dev/null
+++ b/tests/ex-01.rdf
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- This may be distinguishable from <a/> in XML parsers -->
+ <a xmlns="http://example.org/"></a>
+</rdf:RDF>
diff --git a/tests/ex-02.rdf b/tests/ex-02.rdf
new file mode 100644
index 00000000..c07fffe2
--- /dev/null
+++ b/tests/ex-02.rdf
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- test that empty descriptions work with variants of the
+ about attribute -->
+ <rdf:Description rdf:about="http://example.org/resource/"/>
+
+ <!-- Below is deprecated -->
+ <rdf:Description about="http://example.org/resource/"/>
+</rdf:RDF>
diff --git a/tests/ex-03.rdf b/tests/ex-03.rdf
new file mode 100644
index 00000000..44daacb5
--- /dev/null
+++ b/tests/ex-03.rdf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- Test rdf:Description and all combinations of syntax-related
+ rdf: attributes that can be used on it
+ -->
+ <rdf:Description rdf:about="http://example.org/resource/"/>
+ <rdf:Description rdf:aboutEach="a"/>
+ <rdf:Description rdf:about="http://example.org/resource/" rdf:bagID="b"/>
+ <rdf:Description rdf:aboutEach="a" rdf:bagID="b"/>
+
+ <!-- Below is deprecated -->
+ <rdf:Description rdf:aboutEachPrefix="a"/>
+ <rdf:Description rdf:aboutEachPrefix="a" rdf:bagID="b"/>
+
+ <rdf:Description about="http://example.org/resource/"/>
+ <rdf:Description aboutEach="a"/>
+ <rdf:Description about="http://example.org/resource/" bagID="b"/>
+ <rdf:Description aboutEach="a" bagID="b"/>
+ <rdf:Description aboutEachPrefix="a"/>
+ <rdf:Description aboutEachPrefix="a" bagID="b"/>
+</rdf:RDF>
diff --git a/tests/ex-04.rdf b/tests/ex-04.rdf
new file mode 100644
index 00000000..a91a3e98
--- /dev/null
+++ b/tests/ex-04.rdf
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- Test rdf:Seq with rdf:_ ordinal properties -->
+ <rdf:Seq rdf:_1="a" rdf:_2="b"/>
+</rdf:RDF>
diff --git a/tests/ex-05.rdf b/tests/ex-05.rdf
new file mode 100644
index 00000000..541546aa
--- /dev/null
+++ b/tests/ex-05.rdf
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:a="http://example.com/properties/" >
+ <!-- Test rdf:Seq with rdf:_ ordinal properties and extra stuff -->
+ <rdf:Seq rdf:_1="a" rdf:_2="b" a:something="foo"/>
+</rdf:RDF>
diff --git a/tests/ex-06.rdf b/tests/ex-06.rdf
new file mode 100644
index 00000000..65d449bd
--- /dev/null
+++ b/tests/ex-06.rdf
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- Test rdf:Seq with rdf:li to a resource -->
+ <rdf:Description rdf:about="http://example.com/somewhere/">
+ <a:foo xmlns:a="http://example.com/properties/">
+ <rdf:Seq>
+ <rdf:li rdf:resource="http://example.com/resource/a"/>
+ <rdf:li rdf:resource="http://example.com/resource/b"/>
+ <rdf:li rdf:resource="http://example.com/resource/c"/>
+ </rdf:Seq>
+ </a:foo>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/tests/ex-07.rdf b/tests/ex-07.rdf
new file mode 100644
index 00000000..cc2ee446
--- /dev/null
+++ b/tests/ex-07.rdf
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- Test rdf:Seq with rdf:li and literal XML content -->
+ <rdf:Description rdf:about="http://example.com/somewhere/">
+ <a:foo xmlns:a="http://example.com/properties/">
+ <rdf:Seq>
+ <rdf:li rdf:parseType="literal">some literal text</rdf:li>
+ </rdf:Seq>
+ </a:foo>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/tests/ex-08.rdf b/tests/ex-08.rdf
new file mode 100644
index 00000000..8e348730
--- /dev/null
+++ b/tests/ex-08.rdf
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:a="http://example.com/properties/">
+ <!-- Test rdf:Description with properties -->
+ <rdf:Description rdf:about="http://example.com/resource1/" a:foo="err" a:bar="hmm" a:baz="umm" />
+ <rdf:Description rdf:about="http://example.com/resource2/" xmlns:c="http://example.com/somewhere/" c:foo="apple" c:bar="banana" c:baz="pear" />
+</rdf:RDF>
diff --git a/tests/ex-09.rdf b/tests/ex-09.rdf
new file mode 100644
index 00000000..5761f5c1
--- /dev/null
+++ b/tests/ex-09.rdf
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <!-- Test typedNode with rdf:about -->
+ <foo xmlns="http://example.com/properties/" rdf:about="http://example.com/somewhere/">
+ <bar>content</bar>
+ <baz>blah</baz>
+ </foo>
+</rdf:RDF>
diff --git a/tests/ex-10.rdf b/tests/ex-10.rdf
new file mode 100644
index 00000000..2eca6a29
--- /dev/null
+++ b/tests/ex-10.rdf
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns="http://purl.org/rss/1.0/">
+ <!-- Check about rdf:li and rdf:resource -->
+ <channel rdf:about="http://example.org/channel/">
+ <items>
+ <rdf:Seq>
+ <rdf:li rdf:resource="http://example.org/01"/>
+ <rdf:li rdf:resource="http://example.org/02"/>
+ <rdf:li rdf:resource="http://example.org/03"/>
+ </rdf:Seq>
+ </items>
+ </channel>
+</rdf:RDF>