-
Notifications
You must be signed in to change notification settings - Fork 7
Use Case: Invoking a VisKo Plan
- Service Composition with DataFAQs - the generic functionality that this use case employes.
VisKo accepts queries, creates a visualization plan, and invokes it by composing web services.
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.
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.
- Deployed at http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/core/select-faqts/visko-planner
- The input to the planner manylines.ttl, asking for a postscript file to be viewed in Firefox.
- Planner is invoked with
curl -H "Content-Type: text/turtle" -d @manylines.ttl http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/core/select-faqts/visko-planner
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!
- Service Composition with DataFAQs - the generic functionality that this use case employes.