N3 model in Trine
Gregory Williams
greg at evilfunhouse.com
Wed Jun 9 20:37:32 CEST 2010
On Jun 9, 2010, at 6:07 AM, Toby Inkster wrote:
> RDF::Trine::Model seems to allow quads which contain literals in the
> subject position. (Presumably the RDF-oriented parsers and serialisers
> throw errors in these cases though.)
The Model class does, but not all of the stores do. Specifically, the DBI-based store doesn't (I suspect the others do, but I really have no idea).
> Given that, I wonder how much work it would be to get the full N3 data
> model working in Trine? As I see it we only need to add quantification
> ("@forSome", "@forAll") and graph literals.
I think graph literals might be hard to work in. I'm not totally up to speed on N3, but it seems like they'd overlap with graph names/quads, but have to be distinct from them to distinguish when a term is a resource and when its a graph (or maybe that's a false dichotomy?).
> Do people think this would be worth the work? Greg, do you know of any
> gotchas that someone might encounter trying to get this to fly? (I
> imagine the DBI Stores would need a bit of reworking if a new kind of
> Node was added for graph literals.
Yes, graph literals would be a pain, but there's also code in the DBI store to optimize the number of joins required and its all based on the assumption that the data model is RDF (no literals as subjects/predicates and no blanks as predicates).
.greg
More information about the Dev
mailing list