W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > August 2010

Re: ISSUE-44: Add a mechanism to the RDFa API to parse remote documents and place them into a DataStore.

From: Nathan <nathan@webr3.org>
Date: Thu, 12 Aug 2010 16:23:44 +0100
Message-ID: <4C641200.5020504@webr3.org>
To: RDFa Working Group WG <public-rdfa-wg@w3.org>
RDFa Working Group Issue Tracker wrote:
> ISSUE-44: Add a mechanism to the RDFa API to parse remote documents and place them into a DataStore.
> 
> http://www.w3.org/2010/02/rdfa/track/issues/44
> 
> Raised by: 
> On product: 

FWIW, this may be a non-issue, as DataParser already supports the 
.parse(document) method.

The DOM API already provides all the methods needed to create and work 
with multiple documents:
  document.implementation.createDocument
  document.implementation.createHTMLDocument

Further XMLHttpRequest already returns a 'document' for XML based remote 
documents (.responseXML), and for non XML based documents such as HTML 
you can simply load the XMLHttpRequest's .responseText in to 
createHTMLDocument.

Thus the RDFa API already parses documents (location is orthogonal) and 
the various common APIs of the web provided everything needed to 
implement this functionality in circa 10 lines of userland code.

The only related issue to this is cross origin issues, but I believe 
these are both orthogonal to the working groups remit and a solution 
exists to address this (CORS or Proxy).

Best,

Nathan
Received on Thursday, 12 August 2010 15:24:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:07 GMT