[
https://issues.apache.org/jira/browse/CLEREZZA-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149317#comment-13149317
]
Reto Bachmann-Gmür commented on CLEREZZA-158:
---------------------------------------------
The example in 2.5 of http://www.w3.org/TR/turtle/ shows the use of ( ) for an
empty list (aka rdf:nil).
The following graph describing a one element rdf collection
_:a rdf:fist <http://clerezza.org/2009/07/script#ScriptGeneratedResource>.
_:a rdf:rest rdf:nil.
:subject :predicate _:a
can be written as
:subject :predicate
(<http://clerezza.org/2009/07/script#ScriptGeneratedResource>)
If the collection itself has not a bnode at its start, e.g.
:namedList rdf:fist :elem1.
:namedList rdf:rest _:b
_:b rdf:first :elem2.
_:b rdf:rest rdf:nil.
the abbreviated syntax can only be used to abbreviate the part of the list
after its start, i.e:
:namedList rdf:fist :elem1.
:namedList rdf:rest (:elem2).
For a one element rdf collection (as in your original example in rdf/xml) the
abbreviate collection syntax can only be used to replace rdf:nil with (), so
Instead of writing
<http://tpf.localhost/typePriorityList>
rdf:first <http://clerezza.org/2009/07/script#ScriptGeneratedResource> ;
rdf:rest rdf:nil.
you can write:
<http://tpf.localhost/typePriorityList>
rdf:first <http://clerezza.org/2009/07/script#ScriptGeneratedResource> ;
rdf:rest () .
which in owl is equivalent to
<http://tpf.localhost/typePriorityList> owl:sameAs
(<http://clerezza.org/2009/07/script#ScriptGeneratedResource>).
> jena based turtle serializer, serializing lists with uris
> ---------------------------------------------------------
>
> Key: CLEREZZA-158
> URL: https://issues.apache.org/jira/browse/CLEREZZA-158
> Project: Clerezza
> Issue Type: Bug
> Reporter: Reto Bachmann-Gmür
>
> Is the following list serialized correctly in turtle, can it be read back?
> <rdf:Description rdf:about="http://tpf.localhost/typePriorityList">
> <rdf:rest rdf:nodeID=""http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
> <rdf:first
> rdf:resource="http://clerezza.org/2009/07/script#ScriptGeneratedResource"/>
> </rdf:Description>
--
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