- From: Innovimax W3C <innovimax+w3c@gmail.com>
- Date: Mon, 22 Apr 2013 14:15:15 +0200
- To: Alex Milowski <alex@milowski.com>
- Cc: XProc WG <public-xml-processing-model-wg@w3.org>
Alex, Is this a use case for NON-xml content flowing between steps ? Mohamed On Tue, Mar 5, 2013 at 7:44 PM, Alex Milowski <alex@milowski.com> wrote: > The basic use cases are: > > 1. Harvest information via RDFa from a collection of documents. > > 2. Translate between RDF and Turtle. > > 3. Query RDF/Turtle locally via SPARQL. > > 4. Access SPARQL endpoints and process the results. > > This step harvests information from a collection documents via RDFa 1.1 [1]. > The input is any kind of markup that utilizes RDFa and the output is either > RDF or Turtle [2]. > > The step's declaration: > > <p:declare-step type="p:harvest-rdfa"> > <p:input port="source" sequence="true" primary="true"/> > <p:input port="initial-context"/> > <p:output port="result" primary="true"/> > <p:option name="output-type" select="'application/rdf+xml'"/> > <p:option name="profile"/> > </p:declare-step> > > Note: I'm not overly attached to the name. > > The input is a sequence of documents from which an annotation graph is to be > harvested. The result is the union of the graphs. > > The 'output-type' controls the output vocabulary and can either be RDF > (application/rdf+xml) or Turtle (text/turtle), specified by media type. If > the output is Turtle, a c:data element will wrap the tuples in Turtle > syntax. > > The 'profile' option can either be the strings 'xml', 'xhtml', or 'html' for > the various defined RDFa profiles. Other values are implementation defined. > > > Also, we need steps that go between RDF and Turtle: > > <p:declare-step type="p:turtle2rdf"> > <p:input port="source" primary="true"/> > <p:output port="result" primary="true"/> > </p:declare-step> > > <p:declare-step type="p:rdf2turtle"> > <p:input port="source" primary="true"/> > <p:output port="result" primary="true"/> > </p:declare-step> > > I could also imagine a local SPARQL [3] query step: > > <p:declare-step type="p:sparql-query"> > <p:input port="source" sequence="true" primary="true"/> > <p:input port="query"/> > <p:output port="result" primary="true"/> > <p:option name="output-type" select="'application/rdf+xml'"/> > </p:declare-step> > > I'm not sure what other options people might want on a SPARQL query. > > SPARQL end points are often accessed over HTTP and so we already have that > covered. The results are often in Turtle, RDF, or possibly now RDFa. The > above steps should help process that information. > > [1] http://www.w3.org/TR/rdfa-core/ > [2] http://www.w3.org/TR/turtle/ > [3] http://www.w3.org/TR/rdf-sparql-query/ > > -- > --Alex Milowski > "The excellence of grammar as a guide is proportional to the paucity of the > inflexions, i.e. to the degree of analysis effected by the language > considered." > > Bertrand Russell in a footnote of Principles of Mathematics -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 9 52 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €
Received on Monday, 22 April 2013 12:15:42 UTC