You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org> on 2011/10/09 16:23:30 UTC
[jira] [Updated] (JENA-132) N3 / TURTLE serializers ignore relative
URI
[ https://issues.apache.org/jira/browse/JENA-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-132:
-------------------------------
Priority: Minor (was: Major)
Issue Type: Wish (was: Bug)
> N3 / TURTLE serializers ignore relative URI
> -------------------------------------------
>
> Key: JENA-132
> URL: https://issues.apache.org/jira/browse/JENA-132
> Project: Jena
> Issue Type: Wish
> Components: Jena, RDF API
> Reporter: Alexandre Bertails
> Priority: Minor
>
> Unlike RDF/XML* serializers, N3 and TURTLE ignore the base URI in their output.
> val turtle =
> """
> @prefix foaf: <http://xmlns.com/foaf/0.1/> .
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> <#JL>
> a foaf:Person ;
> foaf:homepage </2007/wiki/people/JoeLambda> ;
> foaf:img <images/me.jpg> ;
> foaf:name "Joe Lambda" .
> """
> val base = "http://w3.org/People/Joe"
> val model = {
> val m = ModelFactory.createDefaultModel()
> m.getReader("TURTLE").read(m, new StringReader(turtle), base)
> m
> }
> model.getWriter("TTL").write(model, System.out, base) // doesn't work as expected
> model.getWriter("RDF/XML-ABBREV").write(model, System.out, base) // this one is ok
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira