On 02/08/14 09:17, Jean-Marc Vanel wrote:
From a TDB blank node ID such that : -6cc921b0:1479307d042:-7fff how it is
possible to retrieve the Node object ?
My use case:
In a web application backed by TDB, showing triples about an URI, with the
blank nodes unexpanded, like this:
(
http://htmlpreview.github.io/?https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/example.form.foaf.html
I want the server to expand the blank nodes when user clicks on them.
Jena supports "concrete bnodes" in SPARQL syntax as pseudo URIs in the
"_" URI scheme (it's an illegal name for a URI scheme)
<_:-6cc921b0:1479307d042:-7fff>
this is done by the parser
Or where you are working in code
model.createResource(new AnonId("-6cc921b0:1479307d042:-7fff")) ;
NodeFactory.createAnon(new AnonId("-6cc921b0:1479307d042:-7fff")) ;
Andy