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
turtle parsing of input stream + relative uris #122
Comments
As a side point pre_88 in the output is:
I think the file uri should be |
This is a perfectly valid rdf file, but does it allow for prov inter-operability? The other prov representations don't have this notion of uri relative to a base uri. So, how do we handle this? Should we have a base uri parameter for provconvert? |
I have implemented a fix, setting a base uri to file://stdin/. The example now parses in this specific case. However, as said above, we have not solved the interoperability issue here. Should we explicitly disallow relative uris? As far as the file uri is concerned, it's generated by java.io library. There is very little I can do here. |
I added a example file in prov-rdf/src/test/resources/examples/relative-uri.ttl. If we read the file with
Then, we get a
If we read the file with
then, we get a base uri
|
But this works fine:
Line 44:
I would guess its because we dont have a default base uri defined when we're parsing from a stream as the file based conversion output has pre_88:starting-points.png where pre_88 starts with file:.
The text was updated successfully, but these errors were encountered: