Re: Re 2: RDF Interfaces - new draft

On May 2, 2011, at 16:04 , Nathan wrote:

> Ivan Herman wrote:
>> I have one more comment/question.
>> In the RDFNode interface there is a separate toSring() and toNT() method. Is it really necessary to have these separately? In the case of the Triple interface toString() is defined as giving the NT representation of a triple, wouldn't it be more logical to say exactly the same for the individual Nodes, and drop the separate toNT() method?
> 
> We need to have a stringifier on there, we can either decorate the value with 'stringifier' (which entails implementations adding a toString method) or have a separate toString method (as we do now), either way the result of calling toString is quite different than calling toNT, and both are needed, /especially/ for named nodes and literals. I find I use both methods all the time (toNT a bit less), and toString is really indispensable.

Please explain... when and why do you use one and the other?

I.

> 
> Best,
> 
> Nathan
> 
>> On May 2, 2011, at 01:21 , Nathan wrote:
>>> Hi all,
>>> 
>>> Just a quick note to say that I think I'm done with the RDF Interfaces specification for now, and it's ready for a sanity check before preparing for FPWD.
>>> 
>>> http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/
>>> 
>>> Since the last version there are a number of changes, I've fully rewritten the definition of Literal to reflect current conversations, GraphLiteral/TripleSet is gone, a couple of changes to the Graph interface ('the' is gone, 'match' is added, 'removeMatches' is added), RDFNode equality is redefined and clarified, a 'toValue' method is added to RDFNode (particularly for working with Literals), lot's of clarifications and cleanups to the text, issues and notes added etc.
>>> 
>>> Please do have a read and let me know.
>>> 
>>> 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
> 


----
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 Monday, 2 May 2011 14:13:15 UTC