Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoted Literal Datatype is not Unquoted in NTriples parser #859

Closed
white-gecko opened this issue Oct 27, 2018 · 0 comments
Closed

Quoted Literal Datatype is not Unquoted in NTriples parser #859

white-gecko opened this issue Oct 27, 2018 · 0 comments

Comments

@white-gecko
Copy link
Member

With test/nt/quote-01.nt:

<http://ar.dbpedia.org/resource/\u0625\u0643\u0634\u0627\u0641_\u0645\u062B\u0627\u0646\u064A> <http://ar.dbpedia.org/property/meshnumber> "12.74"^^<http://dbpedia.org/datatype/nicaraguanC\u00F3rdoba> .

and text/nt/quote-02.nt:

<http://ar.dbpedia.org/resource/إكشاف_مثاني> <http://ar.dbpedia.org/property/meshnumber> "12.74"^^<http://dbpedia.org/datatype/nicaraguanCórdoba> .

this will fail:

graphA = Graph()
        graphB = Graph()
        graphA.parse("test/nt/quote-01.nt", format="ntriples")
        graphB.parse("test/nt/quote-02.nt", format="ntriples")
        for subjectA,predicateA,objA in graphA:
            for subjectB,predicateB,objB in graphB:
                self.assertEqual(subjectA, subjectB)
                self.assertEqual(predicateA, predicateB)
                self.assertEqual(objA, objB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant