From: Heikki Levanto Date: Wed, 22 Apr 2015 13:43:00 +0000 (+0200) Subject: LOC-5: Search for titles X-Git-Tag: v0.5~12 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=cca60a38323ce892b615d6643a45fc5f688e506c;p=mp-sparql-moved-to-github.git LOC-5: Search for titles --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 7277edb..13eee02 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -70,7 +70,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
?place a bf:Place ?place bf:label ?label OPTIONAL { ?place bf:identifier ?id} @@ -82,7 +82,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?person ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?person ?relatedTo ?authorizedAccessPoint
?person a bf:Person ?person bf:label ?label OPTIONAL { ?person bf:identifier ?id} @@ -94,7 +94,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?meeting ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?meeting ?relatedTo ?authorizedAccessPoint
?meeting a bf:Meeting ?meeting bf:label ?label OPTIONAL { ?meeting bf:identifier ?id} @@ -106,7 +106,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?agent ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?agent ?relatedTo ?authorizedAccessPoint
?agent a bf:Agent ?agent bf:label ?label OPTIONAL { ?agent bf:identifier ?id} @@ -118,7 +118,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?event ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?event ?relatedTo ?authorizedAccessPoint
?event a bf:Event ?event bf:label ?label OPTIONAL { ?event bf:identifier ?id} @@ -130,7 +130,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?organization ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?organization ?relatedTo ?authorizedAccessPoint
?organization a bf:Organization ?organization bf:label ?label OPTIONAL { ?organization bf:identifier ?id} @@ -142,7 +142,7 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
SELECT DISTINCT ?label ?id ?topic ?relatedTo ?authorizedAccessPoint
+
SELECT ?label ?id ?topic ?relatedTo ?authorizedAccessPoint
?topic a bf:Topic ?topic bf:label ?label OPTIONAL { ?topic bf:identifier ?id} @@ -151,6 +151,29 @@ ?topic bf:label %v FILTER(contains(%v, %s)) ?topic bf:label %v FILTER(contains(%v, %s))
+ + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
SELECT ?title ?titleValue + ?formDesignation ?partNumber ?partTitle ?subtitle + ?titleAttribute ?titleQualifier ?titleSource + ?titleType ?titleVariationDate
+ ?title a bf:Title + OPTIONAL { ?title bf:titleValue ?titleValue} + OPTIONAL { ?title bf:formDesignation ?formDesignation} + OPTIONAL { ?title bf:partNumber ?partNumber} + OPTIONAL { ?title bf:partTitle ?partTitle} + OPTIONAL { ?title bf:subtitle ?subtitle} + OPTIONAL { ?title bf:titleAttribute ?titleAttribute} + OPTIONAL { ?title bf:titleQualifier ?titleQualifier} + OPTIONAL { ?title bf:titleSource ?titleSource} + OPTIONAL { ?title bf:titleType ?titleType} + OPTIONAL { ?title bf:titleVariationDate ?titleVariationDate} + ?title bf:titleValue %v FILTER(contains(%v, %s)) + ?title bf:subtitle %v FILTER(contains(%v, %s)) + ?title bf:partTitle %v FILTER(contains(%v, %s)) + ?title ?rel %v FILTER(contains(str(%v), %s)) +
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/