rdf_compatible method for RDF::Trine::Statement

Gregory Williams greg at evilfunhouse.com
Fri Jul 2 02:22:38 CEST 2010


On Jul 1, 2010, at 6:27 PM, Toby Inkster wrote:

> I've noted before that RDF::Trine::Model, RDF::Trine::Statement, etc
> allow statements to exist which are not compatible with the RDF data
> model - e.g. literal subjects. I consider this a good thing, and plan
> on starting to build support for N3's data model into RDF::Trine.
> 
> But in many cases people will want to work strictly within the RDF
> model, so here's an extra method for RDF::Trine::Statement that makes
> that a little easier.

Toby,

Interesting. Is there a reason to prefer returning $self/undef in the method instead of, for example, 1/0? I'll see about applying this patch soon.

thanks,
.greg



More information about the Dev mailing list