Re: Document fragment vocabulary

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Damian,

On 04/08/11 15:41, Damian Steer wrote:
> 
> On 4 Aug 2011, at 14:22, Alexander Dutton wrote:
>
>> <#fragment> a fragment:Fragment ;
>>  fragment:within <http://example.org/something.xml> ;
>>  fragment:locator "/some/path[1]"^^fragment:path .
> 
> I think you're mostly describing XPointer? [1][2]

Ooh, yes — that's maybe a better fit for what I meant when I said XPath.
I think I'd like a way of encoding "use this XPointer expression to pull
something out of that document" as RDF. As far as I know that
expression-in-RDF bit is missing.

>> (For now we can ignore whether we wanted a nodeset or a single node,
>> and how to handle XML namespaces.)
> 
> XPointer certainly handles this. You might find it a little scary :-)

Pah, scariness is no bother ;-).

> By 'more generally' do you mean non-xml documents?

Yes.

>> * character offsets / ranges
> 
> [3]

I was thinking character ranges in any character stream (e.g. text
files; but this might not always make sense, such as in binary file
formats).

>> Has something already done this? Is it even (mostly?) sane?
> 
> a) Yes, b) I shall withhold comment concerning the sanity of xpointer.

The pointer to XPointer is certainly useful and has prompted more
investigation on my part. However, as I mentioned above, we're missing
the jump to RDF. (Sorry if I didn't make that overly clear the first
time around).


Yours,

Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk46s5sACgkQS0pRIabRbjBT1QCeKmuapP6ZXx2e+y3AyLQRtDdw
ElkAn1ZgfEvWRCG761M0ZTwHJmEO6VrP
=PpfR
-----END PGP SIGNATURE-----

Received on Thursday, 4 August 2011 14:59:10 UTC