From b6f40afe910a28fa0627cf18d37a7ed8b685f78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Mero=C3=B1o-Pe=C3=B1uela?= Date: Sat, 14 Mar 2015 20:33:29 +0100 Subject: [PATCH] Create check_non-annotated-cells_uniq_labels.rq --- check_non-annotated-cells_uniq_labels.rq | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 check_non-annotated-cells_uniq_labels.rq diff --git a/check_non-annotated-cells_uniq_labels.rq b/check_non-annotated-cells_uniq_labels.rq new file mode 100644 index 0000000..0450eff --- /dev/null +++ b/check_non-annotated-cells_uniq_labels.rq @@ -0,0 +1,24 @@ +PREFIX qb: +PREFIX cedar: +PREFIX sdmx-dimension: +PREFIX sdmx-code: +PREFIX oa: +PREFIX rdfs: +PREFIX tablink: +PREFIX dcterms: + +SELECT DISTINCT (REPLACE(?label, "Cell.*=", "", "i") AS ?label_clean) +FROM +FROM +WHERE { + ?cell a tablink:RowHeader . + ?cell rdfs:label ?label . + ?cell tablink:sheet ?sheet. + ?sheet rdfs:label ?sheet_name. + [ rdfs:label ?dataset_name] dcterms:hasPart ?sheet. + ?cell tablink:parentCell [tablink:value "gemeenten"]. + FILTER NOT EXISTS { + ?annotation a oa:Annotation. + ?annotation oa:hasTarget ?cell. + } +} ORDER BY ?label_clean