lucmoreau/ProvToolbox

provn to provx (SSI interoperability harness)

lucmoreau opened this issue · 5 comments

provconvert to xml on the following provn fails

document
prefix rdf <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix ex <http://example.org/>
prefix exo <http://example.org/>
entity(ex:en_o42,[ex:tag2 = "<ap:aaa xmlns:ap=\"http://app/\"><ap:bbb><ap:ccc/></ap:bbb></ap:aaa>" %% rdf:XMLLiteral])
endDocument

See target/testcases/test-attr_entity_one_other_attr42/attr_entity_one_other_attr42.provn

provn to provn seems to be ok. provn to provx also fails on translator service.

Test case in a single line:

curl https://gist.githubusercontent.com/lucmoreau/1e0b479023f277283661/raw/edb31970448c2f8d983009d1fbe5570cc0127ecc/gistfile1.txt | provconvert -infile - -informat provn -outfile - -outformat provx

Note that:

curl https://gist.githubusercontent.com/lucmoreau/1e0b479023f277283661/raw/edb31970448c2f8d983009d1fbe5570cc0127ecc/gistfile1.txt | provconvert -infile - -informat provn -outfile - -outformat provn

is working OK.

Conversion to json

curl https://gist.githubusercontent.com/lucmoreau/1e0b479023f277283661/raw/edb31970448c2f8d983009d1fbe5570cc0127ecc/gistfile1.txt | target/appassembler/bin/provconvert -infile - -informat provn -outfile - -outformat json | target/appassembler/bin/provconvert -infile - -informat json  -outfile - -outformat provn

and to ttl

curl https://gist.githubusercontent.com/lucmoreau/1e0b479023f277283661/raw/edb31970448c2f8d983009d1fbe5570cc0127ecc/gistfile1.txt | target/appassembler/bin/provconvert -infile - -informat provn -outfile - -outformat ttl | target/appassembler/bin/provconvert -infile - -informat ttl  -outfile - -outformat provn

OK, now, roundtrip is working

curl https://gist.githubusercontent.com/lucmoreau/ab451678e1408d7a4ec6/raw/64f11112a99eb06d0d62465e4e11625435cdee20/attr_dict_insert_one_key42.provn | target/appassembler/bin/provconvert -infile - -informat provn -outfile - -outformat provx | target/appassembler/bin/provconvert -infile - -informat provx -outfile - -outformat provn

test suite now passes these examples, closing issue