{"action":"created","issue":{"url":"https://api.github.com/repos/lucmoreau/ProvToolbox/issues/122","labels_url":"https://api.github.com/repos/lucmoreau/ProvToolbox/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/lucmoreau/ProvToolbox/issues/122/comments","events_url":"https://api.github.com/repos/lucmoreau/ProvToolbox/issues/122/events","html_url":"https://github.com/lucmoreau/ProvToolbox/issues/122","id":92141715,"number":122,"title":"turtle parsing of input stream + relative uris","user":{"login":"dtm","id":108625,"avatar_url":"https://avatars.githubusercontent.com/u/108625?v=3","gravatar_id":"","url":"https://api.github.com/users/dtm","html_url":"https://github.com/dtm","followers_url":"https://api.github.com/users/dtm/followers","following_url":"https://api.github.com/users/dtm/following{/other_user}","gists_url":"https://api.github.com/users/dtm/gists{/gist_id}","starred_url":"https://api.github.com/users/dtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtm/subscriptions","organizations_url":"https://api.github.com/users/dtm/orgs","repos_url":"https://api.github.com/users/dtm/repos","events_url":"https://api.github.com/users/dtm/events{/privacy}","received_events_url":"https://api.github.com/users/dtm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T16:48:16Z","updated_at":"2015-06-30T17:00:37Z","closed_at":null,"body":"```\r\n49% curl http://eprints.soton.ac.uk/375233/7/provenance.ttl | provconvert -infile - -informat ttl -outformat provn -outfile -\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100 48319  100 48319    0     0   691k      0 --:--:-- --:--:-- --:--:--  693k\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\nException in thread \"main\" org.openprovenance.prov.interop.InteropException: org.openrdf.rio.RDFParseException: Not a valid (absolute) URI: /starting-points.png [line 44]\r\n\tat org.openprovenance.prov.interop.InteropFramework.readDocument(InteropFramework.java:604)\r\n\tat org.openprovenance.prov.interop.InteropFramework.readDocument(InteropFramework.java:533)\r\n\tat org.openprovenance.prov.interop.InteropFramework.doReadDocument(InteropFramework.java:790)\r\n\tat org.openprovenance.prov.interop.InteropFramework.run(InteropFramework.java:841)\r\n\tat org.openprovenance.prov.interop.CommandLineArguments.main(CommandLineArguments.java:227)\r\nCaused by: org.openrdf.rio.RDFParseException: Not a valid (absolute) URI: /starting-points.png [line 44]\r\n\tat org.openrdf.rio.helpers.RDFParserBase.reportFatalError(RDFParserBase.java:622)\r\n\tat org.openrdf.rio.turtle.TurtleParser.reportFatalError(TurtleParser.java:1114)\r\n\tat org.openrdf.rio.helpers.RDFParserBase.createURI(RDFParserBase.java:340)\r\n\tat org.openrdf.rio.helpers.RDFParserBase.resolveURI(RDFParserBase.java:327)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parseURI(TurtleParser.java:855)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parseValue(TurtleParser.java:525)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parseObject(TurtleParser.java:413)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:339)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:315)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:301)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:208)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:186)\r\n\tat org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:131)\r\n\tat org.openprovenance.prov.rdf.Utility.parseRDF(Utility.java:67)\r\n\tat org.openprovenance.prov.rdf.Utility.parseRDF(Utility.java:58)\r\n\tat org.openprovenance.prov.interop.InteropFramework.readDocument(InteropFramework.java:584)\r\n\t... 4 more\r\nCaused by: java.lang.IllegalArgumentException: Not a valid (absolute) URI: /starting-points.png\r\n\tat org.openrdf.model.impl.URIImpl.setURIString(URIImpl.java:68)\r\n\tat org.openrdf.model.impl.URIImpl.<init>(URIImpl.java:57)\r\n\tat org.openrdf.model.impl.ValueFactoryImpl.createURI(ValueFactoryImpl.java:38)\r\n\tat org.openrdf.rio.helpers.RDFParserBase.createURI(RDFParserBase.java:337)\r\n\t... 17 more\r\n```\r\nBut this works fine:\r\n```\r\n50% curl http://eprints.soton.ac.uk/375233/7/provenance.ttl > provenance.ttl\r\n51% provconvert -infile provenance.ttl -informat ttl -outformat provn -outfile -\r\n```\r\n\r\nLine 44:\r\n```\r\n<http://openprovenance.org/include#20892220-a071-4ef3-a799-3056447ec8a2-1>schema:contentLocation <starting-points.png> . \r\n```\r\nI 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:."},"comment":{"url":"https://api.github.com/repos/lucmoreau/ProvToolbox/issues/comments/117256811","html_url":"https://github.com/lucmoreau/ProvToolbox/issues/122#issuecomment-117256811","issue_url":"https://api.github.com/repos/lucmoreau/ProvToolbox/issues/122","id":117256811,"user":{"login":"dtm","id":108625,"avatar_url":"https://avatars.githubusercontent.com/u/108625?v=3","gravatar_id":"","url":"https://api.github.com/users/dtm","html_url":"https://github.com/dtm","followers_url":"https://api.github.com/users/dtm/followers","following_url":"https://api.github.com/users/dtm/following{/other_user}","gists_url":"https://api.github.com/users/dtm/gists{/gist_id}","starred_url":"https://api.github.com/users/dtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtm/subscriptions","organizations_url":"https://api.github.com/users/dtm/orgs","repos_url":"https://api.github.com/users/dtm/repos","events_url":"https://api.github.com/users/dtm/events{/privacy}","received_events_url":"https://api.github.com/users/dtm/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T17:00:37Z","updated_at":"2015-06-30T17:00:37Z","body":"As a side point pre_88 in the output is:\r\n```\r\nprefix pre_88 <file:/home/...>\r\n```\r\nI think the file uri should be `file:///home/...`.\r\n"}}