RDF API updates

Hi All,

I've done just uploaded a new draft of the RDF API, however haven't 
quite finished reviewing yet and may have a few more minor changes to 
the IDL and changes to the prose.

link:
   http://www.w3.org/2010/02/rdfa/sources/rdf-api/Overview-src.html

Changes so far are:

changed RDF Concept Interfaces introduction.

changed Aliases back to Terms.

changed GraphLiteral to TripleSet and added an instability notice.

removed Graph.the

clarified the difference between Graph.merge and Graph.import

added a Graph match(in RDFNode subject?, in RDFNode property?, in 
RDFNode object?, in optional unsigned long limit) method, which is 
pretty self explanatory, pass in an optional subject, property, object, 
and get back a new graph containing all triples which match the given 
arguments. And it's got a limit feature.
note: There were so many different ways in which this could be defined, 
the other main alternative I considered was the method accepting a 
single MatchTriple or array or MatchTriples where a MatchTriple was a 
Triple where each of subject, property, object was optional - however I 
thought that was getting too close to query functionality, would require 
other methods to create matchtriples, and raised lots of questions about 
AND/OR functionality and the like. Open to discussion feedback of course.

clarified the description of Graph.apply

changed PrefixMap.resolve return null if prefix not set

removed import*FromGraph methods from TermMap, PrefixMap and Profile

removed Profile.base

removed Parser.profile

changed the try method on TripleAction to 'run'

got rid of the NCName restrictions. defined prefix/term as string w/ no 
colon or whitespace

Best,

Nathan

Received on Friday, 22 April 2011 17:21:12 UTC