Closed luigi-asprino closed 2 years ago
Hi,
Thank you for your report!
I am afraid this is an error in the ShExML grammar that is not allowing white spaces in JSONPath expressions. I will try to fix it in the next release.
Hello,
I have just released the ShExML v0.2.6 which solves, among other things, this specific issue.
Please find it here: https://github.com/herminiogg/ShExML/releases/tag/v0.2.6
Best regards, Herminio García
great!!! thank you!
Hello @luigi-asprino,
Yesterday, I forgot to told you about the details of the fix. Namely, it is not possible to use dot based queries for attributes with white spaces as the underlying JSONPath library does not accept it. Instead you should use the bracket notation (e.g., ['Ambito culturale']). You can see it in action in this test file: https://github.com/herminiogg/ShExML/blob/master/src/test/scala-2.12/es/weso/shexml/FilmsAlt.scala
Best regards, Herminio García
Hi,
I'm using ShExML for transforming a JSON into RDF.
An example of the input is the following:
As you can see there is the filed "Ambito culturale" which contains a white space. I'm trying to generate the RDF dataset with the following transformation
but I get this error
I suppose that the field declaration in the iterator is not correct because of the white space. Should the white spaces be escaped or replaced with a special character or percent encoding? I couldn't find an equivalent example in the documentation.