On 27/03/12 22:59, Martynas Jusevicius wrote:
Andy, would you agree though that such feature (correspondence between
blank nodes and HTML anchors) would make sense?
>
However it seems pretty much impossible as you describe it, since I'm
using RDF/XML as a gateway for all RDF serializations in the wild,
which then gets transformed with XSLT.

I was thinking maybe I could somehow generate the fragment IDs
opaquely, without loading the RDF document. XSLT has a generate-id()
function, but it wouldn't really help here as it works on document
nodes.
Maybe I could hash the whole URI and use that as the fragment ID
(would probably look quite ugly). Hash the hash URI, so to speak?

Martynas
graphity.org


Blank nodes seem to me to be the wrong weapon of choice. If you want a permanent identifier, then a URI is better. Even if you can force it through Jena, then it will be unstable in any other toolkit.

UUIDs are cheap.  That's effectively your hash.

If you want recoverability then encode in some way or <http://host/path/doc#anchor> ?

        Andy

Reply via email to