Comments on the DataParser interface in the RDF Interfaces doc

- The return type of the parse method is set to boolean with "A boolean response is given indicating if the parse was successful or not.". On the other hand, the graph parameter is optional, ie, there might be cases when the parse method has to create a new instance for a graph. How would then the method return the newly created graph?

I see two alternatives:

1. either the return value is the graph (which is empty if there are problems with parsing)
2. the incoming graph argument is not optional, ie, a graph has to be created via the rdf environment. (If we choose this, the order of parameters should be changed, to leave the optionals to the end.)

I have a slight preference for the second alternative.

- The process method has an output argument boolean; I am not sure what that means...

Ivan

----
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, 11 May 2011 13:13:41 UTC