Skip to content

Conversion vocabulary

Timothy Lebo edited this page Feb 14, 2012 · 14 revisions
csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)

See conversion:Enhancement.

namespace: http://purl.org/twc/vocab/conversion/

Queries

Debugging query: Which predicates have been used but not defined? (results):

PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
PREFIX ov: <http://open.vocab.org/terms/>

SELECT DISTINCT ?predicate
WHERE {
	GRAPH <http://purl.org/twc/vocab/conversion/ConversionProcess> {
		[] ov:csvCol [] ; ?predicate [] .
		FILTER REGEX(?predicate, "^http://purl.org/twc/vocab/conversion/")
	}
	OPTIONAL {
		GRAPH <http://purl.org/twc/vocab/conversion/> {
			?predicate ?p ?o
		}
	}
	FILTER(!BOUND(?o))
}

Debugging query: Which classes have been used but are not defined (results):

PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
PREFIX ov: <http://open.vocab.org/terms/>

SELECT DISTINCT ?class
WHERE {
	GRAPH <http://purl.org/twc/vocab/conversion/ConversionProcess> {
		[] a ?class
		FILTER REGEX(?class, "^http://purl.org/twc/vocab/conversion/")
	}
	OPTIONAL {
		GRAPH <http://purl.org/twc/vocab/conversion/> {
			?class ?p []
		}
	}
	FILTER(!BOUND(?o))
}

Terms defined in the vocabulary (results):

PREFIX rdf:        <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:       <http://www.w3.org/2000/01/rdf-schema#>
PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT distinct ?s
WHERE {
  GRAPH <http://purl.org/twc/vocab/conversion/> {
    { ?s a rdf:Property } union { ?s a rdfs:Class }
  }
}

Making sure that terms defined in the vocab are resolvable: results

Clone this wiki locally