summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraayush17002 <32807623+aayush17002@users.noreply.github.com>2020-05-10 13:46:15 +0530
committerGitHub <noreply@github.com>2020-05-10 13:46:15 +0530
commit5f8ce6bf2b92281d4436669a5d888502d1e57e40 (patch)
tree327ed10405994ac589f73d5d7a8eea7f9bf0d180
parent9b6866379aed7865dd85343a6b930b476461428c (diff)
downloadrdflib-5f8ce6bf2b92281d4436669a5d888502d1e57e40.tar.gz
Test file for testing issue #801
Test file to increase the scope of n amespaces.
-rw-r--r--test/test_issue80123
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_issue801 b/test/test_issue801
new file mode 100644
index 00000000..b71a55da
--- /dev/null
+++ b/test/test_issue801
@@ -0,0 +1,23 @@
+ """
+Issue 715 - path query chaining issue
+Some incorrect matches were found when using oneOrMore ('+') and
+zeroOrMore ('*') property paths and specifying neither the
+subject or the object.
+"""
+
+from rdflib import Namespace, Graph, BNode, Literal
+import unittest
+
+class TestIssue801(unittest.TestCase):
+
+ def test_issue_801(self):
+ g = Graph()
+ example = Namespace('http://example.org/')
+ g.bind('', example)
+ node = BNode()
+ g.add((node, example['first%20name'], Literal('John')))
+ print(g.serialize(format="turtle").decode())
+
+
+if __name__ == "__main__":
+ unittest.main()