Commit 3f46e0be authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

services: fix sparql query (variable ?label bound to both mediatype and format)

parent 0d13985b
...@@ -76,10 +76,8 @@ public final class SPARQLQueryBuilder { ...@@ -76,10 +76,8 @@ public final class SPARQLQueryBuilder {
+ " }\n" + " }\n"
+ " UNION { ?publication deichman:publicationOf <__WORKURI__> ; \n" + " UNION { ?publication deichman:publicationOf <__WORKURI__> ; \n"
+ " a deichman:Publication . \n" + " a deichman:Publication . \n"
+ " OPTIONAL { ?publication deichman:format ?format .\n" + " OPTIONAL { ?publication deichman:format ?format }\n"
+ " ?format rdfs:label ?label . }\n" + " OPTIONAL { ?publication deichman:hasMediaType ?mediaType }\n"
+ " OPTIONAL { ?publication deichman:hasMediaType ?mediaType .\n"
+ " ?mediaType rdfs:label ?label . }\n"
+ " OPTIONAL { ?publication deichman:contributor ?pubContrib. \n" + " OPTIONAL { ?publication deichman:contributor ?pubContrib. \n"
+ " ?pubContrib a deichman:Contribution ;\n" + " ?pubContrib a deichman:Contribution ;\n"
+ " deichman:agent ?publicationContributor . }\n" + " deichman:agent ?publicationContributor . }\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment