Skip to content

TiNG Triples in Named Graph

timrdf edited this page Apr 2, 2013 · 35 revisions

What is first

What we will cover

  • RiNG, TiNG, SiNG, PiNG, CiNG
  • Making it a versioned dataset JLEE

Let's get to it

Need to compare seven named graphs that drive http://ieeevis.tw.rpi.edu/search-graphics/v1/tree:

First, how to get the data without cheating?

Have a mirror-endpoint that benefits from pvload, but that's useless since we hacked the graph loads.

(magic gets me the files)

file system:

ScenarioPaperopencodingcleancopy.txt.xml.ttl.v6.graffle.ttl
ScenarioPaperopencodingcleancopy.txt.xml.ttl.v6.graffle.ttl.sd_name
ScenarioPaperopencodingcleancopy.txt.xml.ttl.graphml.ttl
ScenarioPaperopencodingcleancopy.txt.xml.ttl.graphml.ttl.sd_name
c36b17db5117176b70a67fef5410f70d.graphic.ttl
c36b17db5117176b70a67fef5410f70d.graphic.ttl.sd_name

new-script.sh *.ttl (or, find *.ttl | xargs new-script.sh > ../ting.ttl) :

bash-3.2$ ting.sh c36b17db5117176b70a67fef5410f70d.graphic.ttl
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix sd:      <http://www.w3.org/ns/sparql-service-description#> .
@prefix void:    <http://rdfs.org/ns/void#> .

<http://ieeevis.tw.rpi.edu/id/triple/99f6fb6ba82a159ec66b671aa114d2a6>
   a rdf:Statement;
   dcterms:isPartOf <http://ieeevis.tw.rpi.edu/id/named-graph/80f1c94b2396f699244bc09ca627e0bd>;
   # omitting SPO b/c we don't care (yet)
.

<http://ieeevis.tw.rpi.edu/id/named-graph/80f1c94b2396f699244bc09ca627e0bd>
   a sd:NamedGraph;
   sd:name <http://ieeevis.tw.rpi.edu/lam-2012-evaluations-7-scenarios>;
   # sd:graph ...;
   prov:hadLocation <http://ieeevis.tw.rpi.edu/sparql>;
   owl:sameAs <http://ieeevis.tw.rpi.edu/sparql?query=PREFIX+sd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fsparql-service-description%23%3E+CONSTRUCT+%7B+%3Fendpoints_named_graph+%3Fp+%3Fo+%7D+WHERE+%7B+GRAPH+%3Chttp%3A%2F%2Fieeevis.tw.rpi.edu%2Flam-2012-evaluations-7-scenarios%3E+%7B+%5B%5D+sd%3Aurl+%3Chttp%3A%2F%2Fieeevis.tw.rpi.edu%2Fsparql%3E%3B+sd%3AdefaultDatasetDescription+%5B+sd%3AnamedGraph+%3Fendpoints_named_graph+%5D+.+%3Fendpoints_named_graph+sd%3Aname+%3Chttp%3A%2F%2Fieeevis.tw.rpi.edu%2Flam-2012-evaluations-7-scenarios%3E%3B+%3Fp+%3Fo+.+%7D+%7D>;
.

What is next