Updated support for quads in RDF::Trine

Gregory Williams greg at evilfunhouse.com
Tue Jan 26 16:48:16 CET 2010


On Jan 26, 2010, at 4:32 AM, Toby Inkster wrote:

> On Sun, 2010-01-17 at 18:20 -0500, Gregory Williams wrote:
>> I've recently been working on bringing some sanity to supporting quads
>> in RDF::Trine. I'm not sure how much anyone is using quads in the
>> current RDF::Trine, but it's done pretty half-heartedly and I've tried
>> to make changes to make the support more consistent and predictable.
> 
> I'd like to see parsers and serialisers for some quad-based
> serialisations. N-Quads seems the best place to start, as it's a fairly
> trivial extension to N-Triples:
> 
> http://sw.deri.org/2008/07/n-quads/

This should be very easy with the new changes in place. N-Quads and TriG/TriX are on the TODO list.

> Will Trine have support for literals in the context position? I believe
> the 0.1xx implementation of contexts does allow this. N-Quads allows any
> of URI/bnode/literal as a context.

I believe the code allows any node type in the context position, but wouldn't want to swear to that. If there aren't already tests for that, and we want to make it formal, I'll add some tests to the test suite and make sure all of the stores currently support it.

.greg



More information about the Dev mailing list