timrdf / csv2rdf4lod-automation

Shell script automation to support csv2rdf4lod converter
https://github.com/timrdf/csv2rdf4lod-automation/wiki
Apache License 2.0
109 stars 36 forks source link

param flag to dump all links_via models into output #274

Open timrdf opened 12 years ago

timrdf commented 12 years ago

use case: research center skos:prefLabel from instance hub.

really on Tim's plate, but assigning John so he knows where it is and can bug tim.

olyerickson commented 12 years ago

Thanks...

On Tue, Apr 10, 2012 at 11:18 AM, Tim L reply@reply.github.com wrote:

use case: research center skos:prefLabel from instance hub.

really on Tim's plate, but assigning John so he knows where it is and can bug tim.


Reply to this email directly or view it on GitHub: https://github.com/timrdf/csv2rdf4lod-automation/issues/274

John S. Erickson, Ph.D. Director, Web Science Operations Tetherless World Constellation (RPI) http://tw.rpi.edu olyerickson@gmail.com Twitter & Skype: olyerickson

timrdf commented 12 years ago

Try https://github.com/timrdf/csv2rdf4lod-automation/commit/9c90d5d05000c7aacbd8eb678643e03794df5d95

timrdf commented 12 years ago

add ' a conversion:IncludesLODLinks;' to any enhancement with a links_via to get all graphs to pass through.

e.g.

      conversion:enhance [
         ov:csvCol          5;
         ov:csvHeader       "Core Facilities";
         conversion:label   "Core Facilities";
         conversion:comment "";
         conversion:delimits_object ",\\s*";
         conversion:range   rdfs:Resource;
         conversion:range_name "Facility";
         rdfs:comment "lod-links from named graph <http://logd.tw.rpi.edu/source/twc-rpi-edu/dataset/instance-hub-organizations>; pulls dcterms:identifier and dcterms:title.";
         a conversion:CaseInsensitiveLODLink;
         a conversion:IncludesLODLinks;
         conversion:links_via # Sesame doesn't like redirects?: <http://purl.org/twc/query/instance-hub/intranet/organizations>;
<http://logd.tw.rpi.edu:8890/sparql?default-graph-uri=&query=PREFIX+foaf%3A++++%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0APREFIX+dcterms%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0APREFIX+owl
%3A+++++%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0D%0ACONSTRUCT+{+%3Forg+dcterms%3Aidentifier+%3Fid+}%0D%0AWHERE+{%0D%0A++{GRAPH+%3Chttp%3A%2F%2Flogd.tw.rpi.edu%2Fsource%2Ftwc-rpi-edu%2Fdataset%2F
instance-hub-organizations%3E++{%0D%0A++++%3Forg+a+foaf%3AOrganization%3B+dcterms%3Aidentifier+%3Fid%0D%0A++}}union{%0D%0A+++GRAPH+%3Chttp%3A%2F%2Flogd.tw.rpi.edu%2Fsource%2Ftwc-rpi-edu%2Fdataset%2Finstance
-hub-organizations%3E++{%0D%0A++++%3Forg+a+foaf%3AOrganization%3B+dcterms%3Atitle+%3Fid%0D%0A++}%0D%0A++}%0D%0A}&format=application%2Frdf%2Bxml>;
      ];

at https://scm.escience.rpi.edu/svn/public/logd-csv2rdf4lod/data/source/data-rpi-edu/research-centers/version/e1.params.ttl

grep "Pawel Keblinski" automatic/* should bring something up.

timrdf commented 12 years ago

https://github.com/timrdf/csv2rdf4lod-automation/wiki/conversion:IncludesLODLinks