Small remarks on TermMap and PrefixMap in the RDF Interfaces document

Nathan, Manu

I am doing some sort of a proof-of-concept implementation of the interfaces on top of RDFLib. I do not think it will every have any production quality but it forces me to go into some details...

As such, here are some comments on the Term and Prefix maps; these are mostly missing details in the spec:

- There should be a reference to the RDFa Core's CURIE definition to define what a valid CURIE is. That also means that for a resolve operation in the PrefixMap it should be explicitly said that an invalid CURIE results in a null return value. 

Also, what happens if the curie is ":" (which should return the default URI if set, I guess). 

Another point is: are PREFIX:term and prefix:term identical (as for RDFa Core 1.1)? 

Also, a _:asfdasfd is not a valid CURIE and should be ignored. 

As I said, most of these are actually covered in the RDFa Core, and it is probably the best to refer to that for the details. But another possibility is to carry these over to this document.

Same holds for the Term mapping, eg, that the term is an ncname...

- PrefixMap addAll method: the text on override says:

"If true then conflicting prefixes will be overridden by those specified on the PrefixMap being imported, by default imported prefixes augment the existing set."

I am not sure what this means for the 'false' case. My expectation is that in the case of conflict no overriding occurs and the prefix setting in the 'other' map is ignored, but the way I can read the text is as if I would add the same prefix with another reference, ie, having the same prefix twice. That would certainly be wrong...

Also: does the override occurs for the default URI, too? I would expect yes if the local value is Null, but that is not clear...

Manu, now that we have a published document, it may be worth adding these as a separate ISSUE, not to loose it along the way...

Cheers

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 11:11:26 UTC