From: Heikki Levanto Date: Thu, 23 Apr 2015 09:45:33 +0000 (+0200) Subject: LOC-5. Put back the DISTINCT in the queries X-Git-Tag: v0.5~11 X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=commitdiff_plain;h=573ce694a839c28b84b61b2234119b59c18e67d4 LOC-5. Put back the DISTINCT in the queries Will not harm the trivial ones, and will help with the titles, removing duplicates when both title and subtitle match. --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 13eee02..fd2a751 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -1,5 +1,6 @@ + @@ -70,7 +71,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
?place a bf:Place ?place bf:label ?label OPTIONAL { ?place bf:identifier ?id} @@ -82,7 +83,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?person ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?person ?relatedTo ?authorizedAccessPoint
?person a bf:Person ?person bf:label ?label OPTIONAL { ?person bf:identifier ?id} @@ -94,7 +95,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?meeting ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?meeting ?relatedTo ?authorizedAccessPoint
?meeting a bf:Meeting ?meeting bf:label ?label OPTIONAL { ?meeting bf:identifier ?id} @@ -106,7 +107,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?agent ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?agent ?relatedTo ?authorizedAccessPoint
?agent a bf:Agent ?agent bf:label ?label OPTIONAL { ?agent bf:identifier ?id} @@ -118,7 +119,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?event ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?event ?relatedTo ?authorizedAccessPoint
?event a bf:Event ?event bf:label ?label OPTIONAL { ?event bf:identifier ?id} @@ -130,7 +131,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?organization ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?organization ?relatedTo ?authorizedAccessPoint
?organization a bf:Organization ?organization bf:label ?label OPTIONAL { ?organization bf:identifier ?id} @@ -142,7 +143,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?label ?id ?topic ?relatedTo ?authorizedAccessPoint
+
SELECT DISTINCT ?label ?id ?topic ?relatedTo ?authorizedAccessPoint
?topic a bf:Topic ?topic bf:label ?label OPTIONAL { ?topic bf:identifier ?id} @@ -154,7 +155,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT ?title ?titleValue + SELECT DISTINCT ?title ?titleValue ?formDesignation ?partNumber ?partTitle ?subtitle ?titleAttribute ?titleQualifier ?titleSource ?titleType ?titleVariationDate