ISSUE-59: DataQuery [RDFa 1.1 API]

ISSUE-59: DataQuery [RDFa 1.1 API]

http://www.w3.org/2010/02/rdfa/track/issues/59

Raised by: Nathan Rixham
On product: RDFa 1.1 API

Currently the API documentation for DataQuery opens with the following statement:

"The DataQuery interface provides a means to query a DataStore. While this interface provides a simple mechanism for querying a DataStore for RDFa, it is expected that developers will implement other query interfaces that conform to this DataQuery interface for languages like SPARQL or other Domain Specific Language."

However the interface currently does not cater for this:

[NoInterfaceObject]
interface DataQuery {
    attribute DataStore store;
    Sequence select (in Object? query, in optional Object template);
};

Typically a DataQuery implementation for languages such as SPARQL will require the following interface:

[NoInterfaceObject]
interface DataQuery {
    Sequence select (in DOMString query, in DataStore store);
};

However this is incompatible with the existing DataQuery interface, as query is a string and template is entirely missing.

Libraries implementing the API which required addition properties could either extend DataQuery adding more properties (such as ?template) or expose methods to add these ( setTemplate(template) ) - however if this is a requirement of the RDFa API then we need to address this fully creating an interface that can be used for RDFa API requirements, and which is implementable by libraries providing functionality such as SPARQL.

Received on Thursday, 28 October 2010 01:52:47 UTC