Re: [RDF Interfaces] names for things

On May 3, 2011, at 20:26 , Nathan wrote:

> Ivan Herman wrote:
>> On May 3, 2011, at 18:30 , Nathan wrote:
>>> A couple of issues to touch on:
> 
> Next up.. having some collisions on reserved words in languages:
> 
> - import, have talked it through with a few people and currently thinking addAll is about the best alternative (overloaded on graph to accept a sequence/array of triples too, which is nice), another alternative 'extend' : +/-?

Extend has some specific meaning in javascript, right? So let us not create confusion. I am not sure what the problem is with import (it works for me), but addAll (or addFrom?) works, too.


> 
> - property, Triple.property, turns out it's heavily used in some languages too, Ivan you'll recognize from python (?) proposal is either 'predicate' -or- i quite like the idea of having Triple.s,p,o instead, do we need to be verbose?
> 

Predicate. s,p,o is really really for RDF geeks. B.t.w., RDFLib uses the term predicate, probably due to the same name collision danger.


> - RDFNode.value - still unsure..
> 

:-)

> 
> and a different issue:
> 
> can graph.match return a sequence of triples rather than a Graph? basically so it's lighter, especially w/ indexed graph implementations. My personal gut instinct is to keep the return type of Graph to prevent unexpected functionality, and since pretty much half the time you want a quick sequence to output or suchlike, and the other half of the time you want a Graph to keep on using for some purpose.

What 'unexpected functionality' are you referring to?

What I cannot judge but you, as an implementer, may be able to, is how 'heavy' a Graph is. Ie, what is the price if we return a Graph instead of a sequence.

Personally, returning a sequence seems to be more natural to me. Maybe, to ease the applications task, we could have a constructor for a Graph that takes a sequence of triples, so one can create a Graph on the fly if necessary!

I.


> 
> trying to nail as many as these minors before FPWD as possible!
> 
> Best,
> 
> Nathan


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Wednesday, 4 May 2011 10:53:39 UTC