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

http://example.com/?a=b ttl -> provn -> ttl roundtrip error #120

Closed
dtm opened this issue Jun 25, 2015 · 3 comments
Closed

http://example.com/?a=b ttl -> provn -> ttl roundtrip error #120

dtm opened this issue Jun 25, 2015 · 3 comments

Comments

@dtm
Copy link
Contributor

dtm commented Jun 25, 2015

~ 70% cat test.ttl
@prefix prov: <http://www.w3.org/ns/prov#> .

<http://example.com/?a=b> a prov:Entity.
~ 71% provconvert -infile test.ttl -outfile - -outformat provn
document
prefix pre_1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix bnode <http://openprovenance.org/provtoolbox/bnode/>
prefix xsd <http://www.w3.org/2001/XMLSchema>
prefix pre_0 <http://example.com/>
entity(pre_0:?a=b)
endDocument
~ 72% provconvert -infile test.ttl -outfile - -outformat provn|provconvert -infile - -informat provn -outfile - -outformat ttl
line 6:15 mismatched input '=' expecting ')'
extensibility: qnameDisabled false b
line 6:17 mismatched input ')' expecting '('
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix pre_1: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix bnode: <http://openprovenance.org/provtoolbox/bnode/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix pre_0: <http://example.com/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

~ 73%

Should it be:

entity(pre_0:?a\=b)

Which incidentally gives:

~ 74% provconvert -infile test.provn -outfile - -outformat ttl
<http://example.com/?a\\=b> a prov:Entity .
@lucmoreau
Copy link
Owner

The last two commits are now addressing this issue. Would be interesting to try round trip on a whole range of URIs ....

@dtm
Copy link
Contributor Author

dtm commented Jul 10, 2015

I've been meaning to look at Fuzzing tools. Ideally you'd want something that you can give a grammar to but I'm not sure whats out there.

@lucmoreau
Copy link
Owner

Issue now addressed in development branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants