Skip to content

Recovering Data from View

timrdf edited this page Jan 30, 2013 · 17 revisions

GRDDL'ing the target graphical format file would produce some of the RDF that went into the visualization.

http://www.w3.org/TR/grddl-primer/#spreadsheets-section shows to use the following markup so that GRDDL agents can trigger and extract the RDF:

<BLAH
  xmlns:grddl="http://www.w3.org/2003/g/data-view#"
  grddl:transformation="https://raw.github.com/timrdf/vsr/master/src/xsl/grddl/graffle.xsl"

Applying grddl/graffle.xsl produces a Turtle description of the graphical elements in an OmniGraffle file. In the sample below we see that a Rectangle with the label http://danbri.org/foaf.rdf#danbri is depicting http://danbri.org/foaf.rdf#danbri (the flesh and blood walking around).

<1049>
   a <ShapedGraphic>;
   a <Rectangle>;
   rdfs:label "http://danbri.org/foaf.rdf#danbri";
   <http://open.vocab.org/terms/depicts> <http://danbri.org/foaf.rdf#danbri>;
   <http://open.vocab.org/terms/originatingVisualArtifact> <http://logd.tw.rpi.edu/source/lebot-rpi-edu/dataset/visualizations/version/2013-Jan-24_13-47_1359053256264_ms>;
   <http://open.vocab.org/terms/originatingVisualForm> <http://logd.tw.rpi.edu/source/lebot-rpi-edu/dataset/visualizations/version/2013-Jan-24_13-47_1359053256264_ms#visual_form_1048>;
   <http://open.vocab.org/terms/vid> "1048";
   <http://open.vocab.org/terms/vid_given> <http://danbri.org/foaf.rdf#danbri>;
   <http://open.vocab.org/terms/vid_local_name> "#visual_form_1048";
   <http://open.vocab.org/terms/visualContext> <http://logd.tw.rpi.edu/source/lebot-rpi-edu/dataset/visualizations/version/2013-Jan-24_13-47_1359053256264_ms>;
.