Skip to content

Use Case: Invoking a VisKo Plan

timrdf edited this page Jun 27, 2012 · 40 revisions

What is first

VisKo accepts queries, creates a visualization plan, and invokes it by composing web services.

What we will cover

I want to mock this example up in full detail so that we can trace the RDF fragments through the pipeline. From the DataFAQs perspective, http://www.adobetutorialz.com/content_images/AdobeTechnologies/PostScript/manylines.ps is a dcat:Dataset that we're trying to evaluate with services https://raw.github.com/nicholasdelrio/visko/master/rdf/pdf-to-png.owl#pdf-to-png-as-sadi and https://raw.github.com/nicholasdelrio/visko/master/rdf/ps2pdf.owl#ps2pdfService-as-sadi, but I need to add the functionality to grab the output of the former and feed into the input of the latter. Once that's done, we'll have invoked a visko query plan, captured provenance of the invocation (including the original plan), and offered up the results in VoID, SD, and PROV linked data glory.

How to use DataFAQs to implement the VisKo query submission and invocation. This will lead to some new features of DataFAQs.

Let's get to it!

Notes at http://titanpad.com/ZeiMd7cOHj

visko-planner.py is a FAqT Selector Service that accepts "VisKo queries" and returns a service composition plan to achieve the requested visualization.

TODO: We want it to return something like:

<service-invocation-2>   # Do this one second.
  a prov:Activity;
  prov:wasAttributedTo <https://raw.github.com/nicholasdelrio/visko/master/rdf/ps2pdf.owl#ps2pdfService-as-sadi>;
  prov:wasInformedBy <service-invocation-1>;
.

<service-invocation-1>   # Do this one first
   a prov:Activity;
     prov:wasAttributedTo <https://raw.github.com/nicholasdelrio/visko/master/rdf/pdf-to-png.owl#pdf-to-png-as-sadi>; 
     prov:used <http://www.adobetutorialz.com/content_images/AdobeTechnologies/PostScript/manylines.ps>;
.

<https://raw.github.com/nicholasdelrio/visko/master/rdf/pdf-to-png.owl#pdf-to-png-as-sadi>        
  a datafaqs:SADIService, OWLS:Service, prov:Agent;
  .
<https://raw.github.com/nicholasdelrio/visko/master/rdf/ps2pdf.owl#ps2pdfService-as-sadi>
  a datafaqs:SADIService, OWLS:Service, prov:Agent;
.

# TODO: plus anything that DataFAQs core needs!

What is next

Clone this wiki locally