Closed JJ-Author closed 5 years ago
Well the escape is used in the raw data as I can see it in your example. But we seem to have a problem with the translation of datatype IRIs
well maybe i need to re-specify to state it clear. insert uses no escaping for the subject IRIs (although the new file - datatypeIRI-wrapper.nt uses them, but escapes are used (no replacement of escape codes) in the datatype IRI
This is slightly related to: https://github.com/RDFLib/rdflib/issues/792 .
I think it is fine, that QuitDiff understands both escaped and not-escaped input and also identifies them as equal. It is also ok that it return the result with not-escaped liters. As we see it for the subject. Our aim is to output a canonical form (cf. https://www.w3.org/TR/n-triples/#canonical-ntriples). But it is not correct, that it doesn't handle the datatype IRI in the same way.
I've reported your issue upstream: https://github.com/RDFLib/rdflib/issues/859 and have provided a fix for it: https://github.com/RDFLib/rdflib/pull/860
Since this is merged now, we need to find out, how to specify the dependency for the current master branch of rdflib.
@JJ-Author: Are you able to find this out?
sudo pip3 install git+git://github.com/RDFLib/rdflib.git@master seems to work for the moment although it prints some warnings
sudo pip3 install git+git://github.com/RDFLib/rdflib.git@master
Downloading/unpacking git+git://github.com/RDFLib/rdflib.git@master
Cloning git://github.com/RDFLib/rdflib.git (to master) to /tmp/pip-s8mo4s0b-build
Running setup.py (path:/tmp/pip-s8mo4s0b-build/setup.py) egg_info for package from git+git://github.com/RDFLib/rdflib.git@master
/usr/lib/python3/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing '5.0.0-dev' to '5.0.0.dev0'
normalized_version,
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '$py.class' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): isodate in /usr/local/lib/python3.4/dist-packages (from rdflib==5.0.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): pyparsing in /usr/local/lib/python3.4/dist-packages (from rdflib==5.0.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python3/dist-packages (from rdflib==5.0.0.dev0)
Installing collected packages: rdflib
Found existing installation: rdflib 4.2.1
Uninstalling rdflib:
Successfully uninstalled rdflib
Running setup.py install for rdflib
/usr/lib/python3/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing '5.0.0-dev' to '5.0.0.dev0'
normalized_version,
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '$py.class' found anywhere in distribution
Installing rdfs2dot script to /usr/local/bin
Installing rdfgraphisomorphism script to /usr/local/bin
Installing rdfpipe script to /usr/local/bin
Installing csv2rdf script to /usr/local/bin
Installing rdf2dot script to /usr/local/bin
Could not find .egg-info directory in install record for rdflib==5.0.0.dev0 from git+git://github.com/RDFLib/rdflib.git@master
python3 ~/difftest/QuitDiff/bin/quit-diff --diffFormat=eccrev . datatypeIRI-escape.nt 1 2 datatypeIRI-wrapper.nt
return the following result although the graphs should be isomorphic. also note the escape which is used in the datatype IRI insert but not in the delete and is not used in the raw data.