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

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

Comments

Projects
None yet
2 participants
@dtm
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

This comment has been minimized.

Show comment
Hide comment
@lucmoreau

lucmoreau Jul 10, 2015

Owner

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

Owner

lucmoreau commented Jul 10, 2015

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

@dtm

This comment has been minimized.

Show comment
Hide comment
@dtm

dtm Jul 10, 2015

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@lucmoreau

lucmoreau Jul 23, 2015

Owner

Issue now addressed in development branch.

Owner

lucmoreau commented Jul 23, 2015

Issue now addressed in development branch.

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