summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2013-11-08 19:19:04 -0800
committerDave Beckett <dave@dajobe.org>2013-11-08 19:19:04 -0800
commitdb08d64a2d8cbd2095a1970836b8749f7091110c (patch)
tree4558ed12415e7cbcc210c27ff4c7e60d0a37a62f /tests
parent743e90bc93c0becdb20915231a7d7f2c490f63fb (diff)
downloadraptor-db08d64a2d8cbd2095a1970836b8749f7091110c.tar.gz
Add ex-62 for bug556
Diffstat (limited to 'tests')
-rw-r--r--tests/rdfxml/ex-62.out3
-rw-r--r--tests/rdfxml/ex-62.rdf24
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/rdfxml/ex-62.out b/tests/rdfxml/ex-62.out
new file mode 100644
index 00000000..06ed8ab4
--- /dev/null
+++ b/tests/rdfxml/ex-62.out
@@ -0,0 +1,3 @@
+<http://example.com/folder1/entity1> <http://www.w3.org/2000/01/rdf-schema#comment> "Item1" .
+<http://example.com/folder1/entity1> <http://www.w3.org/2000/01/rdf-schema#comment> "Item2" .
+<http://example.com/folder1/entity1> <http://www.w3.org/2000/01/rdf-schema#comment> "Item3" .
diff --git a/tests/rdfxml/ex-62.rdf b/tests/rdfxml/ex-62.rdf
new file mode 100644
index 00000000..f23d47f2
--- /dev/null
+++ b/tests/rdfxml/ex-62.rdf
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+
+<!DOCTYPE rdf:RDF [
+<!ENTITY corp "http://example.com/folder1/folder2/">
+]>
+
+<rdf:RDF
+xml:base="http://example.com/folder1/folder2/"
+xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+>
+ <rdf:Description rdf:about="../entity1">
+ <rdfs:comment>Item1</rdfs:comment>
+ </rdf:Description>
+
+ <rdf:Description rdf:about="../folder1/../entity1">
+ <rdfs:comment>Item2</rdfs:comment>
+ </rdf:Description>
+
+ <rdf:Description rdf:about="&corp;../folder1/../entity1">
+ <rdfs:comment>Item3</rdfs:comment>
+ </rdf:Description>
+
+</rdf:RDF>