Skip to content

Analyzing the explicit connectivity of disparate datasets

timrdf edited this page Mar 20, 2011 · 7 revisions

See also Querying datasets created by csv2rdf4lod.

Finding the predicates that reference sameAs-linked resources

Predicates used in triples created from a column enhanced with a conversion:links_via refer to resources that can be owl:sameAs-linked to other resources. This query returns the predicates used and the datasets that use them to reference linked resources. It also mentions the lod-link file used to impose the owl:sameAs to begin with.

(results):

PREFIX dcterms:    <http://purl.org/dc/terms/>
PREFIX ov:         <http://open.vocab.org/terms/>
PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT distinct ?lod_link ?dataset ?property
WHERE {
  GRAPH <http://logd.tw.rpi.edu/vocab/Dataset> {
    ?dataset conversion:conversion_process [
       conversion:enhance [
          conversion:links_via ?lod_link;
          ov:csvCol            ?col;
       ];
    ] .
    ?property a rdf:Property; 
              dcterms:isReferencedBy ?dataset;
              ov:csvCol              ?col .
  }
} ORDER BY ?lod_link ?dataset ?property

DRAFT:

PREFIX dcterms:    <http://purl.org/dc/terms/>
PREFIX ov:         <http://open.vocab.org/terms/>
PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT distinct ?lod_link ?dataset ?property
WHERE {
  GRAPH <http://logd.tw.rpi.edu/vocab/Dataset> {
    ?dataset conversion:conversion_process [
       conversion:enhance [
          conversion:links_via ?lod_link;
          ov:csvCol            ?col;
       ];
    ] .
    ?property a rdf:Property; 
              dcterms:isReferencedBy ?dataset;
              ov:csvCol              ?col .
  }
  graph <http://purl.org/twc/vocab/conversion/SameAsDataset> {
    ?a ?property ?link .
  }
} ORDER BY ?lod_link ?dataset ?property

Finding enhancement parameters that conversion:includes common enhancement parameters

TODO: included parameters should preserve their local reference and resolve to the web-accessible HTTP URI.

(results):

PREFIX rdfs:       <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd:        <http://www.w3.org/2001/XMLSchema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ov:         <http://open.vocab.org/terms/>
PREFIX conversion: <http://purl.org/twc/vocab/conversion/>

SELECT distinct ?params ?layer
WHERE {
  GRAPH <http://logd.tw.rpi.edu/vocab/Dataset> {
    ?layer conversion:conversion_process [
      conversion:includes ?params
    ]
  }
}order by ?params ?layer
Clone this wiki locally