You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Szz (JIRA)" <ji...@apache.org> on 2019/05/09 09:15:00 UTC

[jira] [Updated] (JENA-1710) Wrong turtle serialization of RDFList with itself inside

     [ https://issues.apache.org/jira/browse/JENA-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Szz updated JENA-1710:
----------------------
    Priority: Minor  (was: Major)

> Wrong turtle serialization of RDFList with itself inside
> --------------------------------------------------------
>
>                 Key: JENA-1710
>                 URL: https://issues.apache.org/jira/browse/JENA-1710
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Base, Jena, RIOT
>    Affects Versions: Jena 3.9.0, Jena 3.10.0, Jena 3.11.0
>         Environment: jena-arq-3.11.0, java8
>            Reporter: Szz
>            Priority: Minor
>
> Testcase:
> {quote}Model m = ModelFactory.createDefaultModel();
> Resource b0 = m.createResource();
> Resource b1 = m.createResource();
> {color:#808080}// 4 statements:
> {color}b0.addProperty(OWL.{color:#660e7a}unionOf{color}, b1).addProperty(RDF.{color:#660e7a}type{color}, OWL.{color:#660e7a}Class{color});
> b1.addProperty(RDF.{color:#660e7a}first{color}, b0).addProperty(RDF.{color:#660e7a}rest{color}, RDF.{color:#660e7a}nil{color});
> m.write(System.{color:#660e7a}out{color}, {color:#008000}"ttl"{color});
> m.write(System.{color:#660e7a}out{color}, {color:#008000}"nt"{color});
> {quote}
> Output:
> {quote}_:b0    <http://www.w3.org/1999/02/22-rdf-syntax-ns#first>
>                 _:b1 ;
>         <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest>
>                 () .
> _:B40396d1bX2D68d6X2D40b4X2DbbcdX2Dbe185973bfc1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
> _:B40396d1bX2D68d6X2D40b4X2DbbcdX2Dbe185973bfc1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:B4da6d814X2Ddb64X2D4ff1X2Da5d4X2D4f71d5718fd9 .
> _:B4da6d814X2Ddb64X2D4ff1X2Da5d4X2D4f71d5718fd9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
> _:B4da6d814X2Ddb64X2D4ff1X2Da5d4X2D4f71d5718fd9 <http://www.w3.org/2002/07/owl#unionOf> _:B40396d1bX2D68d6X2D40b4X2DbbcdX2Dbe185973bfc1 .
> {quote}
>  
> So in turtle there are only 2 triples, while expected 4.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)