Hello together,
I'm using Jena to process SPARQL queries and have a weird problem
regarding blank nodes in the result of a Select query. My RDF graph
contains blank nodes written like this:
_:A10b7f677X3aX134a46e2d15X3aXX2dX7f6b
And I want to retrieve this in the same way as a result of my Select
query. Unfortunately I'm getting something different like:
10b7f677:134a46e2d15:-7f5b
I retrieve an RDFNode from the QuerySolution and make sure that in case
of a blank node (by calling RDFNode.isAnon()) it is converted to a
Resource. Now I can access the AnonId by calling Resource.getId(), which
offers to ways to return a String representation of it:
AnonId.toString() and AnondId.getLabelString().
Both methods return 10b7f677:134a46e2d15:-7f5b in my case. Shouldn't one
of them return the other representation
_:A10b7f677X3aX134a46e2d15X3aXX2dX7f6b instead or did I get something
wrong? Or is there another way to access this String representation of
my blank nodes?
Best regards,
Florian Beuter