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

rewrite SPARQL query to work around virtuoso bug

parent 25c25741
......@@ -73,24 +73,21 @@ public final class SPARQLQueryBuilder {
+ " deichman:agent ?workContributor \n"
+ " OPTIONAL { ?workContributor deichman:nationality ?nation }"
+ " }\n"
+ " UNION { ?publication deichman:publicationOf <__WORKURI__> ; \n"
+ " a deichman:Publication . \n"
+ " OPTIONAL { ?publication deichman:hasFormatAdaptation ?formatAdaptation }\n"
+ " OPTIONAL { ?publication deichman:format ?format }\n"
+ " OPTIONAL { ?publication deichman:hasMediaType ?mediaType }\n"
+ " OPTIONAL { ?publication deichman:contributor ?pubContrib. \n"
+ " UNION { ?publication deichman:publicationOf <__WORKURI__> } "
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:hasFormatAdaptation ?formatAdaptation }\n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:format ?format }\n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:hasMediaType ?mediaType }\n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:contributor ?pubContrib. \n"
+ " ?pubContrib a deichman:Contribution ;\n"
+ " deichman:agent ?publicationContributor . }\n"
+ " OPTIONAL { ?publication deichman:inSerial ?serialIssue . \n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:inSerial ?serialIssue . \n"
+ " ?serialIssue deichman:serial ?serial . }\n"
+ " OPTIONAL { ?publication deichman:hasPlaceOfPublication ?place }\n"
+ " OPTIONAL { ?publication deichman:publishedBy ?publishedBy }\n"
+ " OPTIONAL { ?publication deichman:language ?pubLang }\n"
+ " OPTIONAL { ?publication deichman:hasPublicationPart ?hasPublicationPart ."
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:hasPlaceOfPublication ?place }\n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:publishedBy ?publishedBy }\n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:language ?pubLang }\n"
+ " UNION { [] deichman:publicationOf <__WORKURI__> ; deichman:hasPublicationPart ?hasPublicationPart ."
+ " ?hasPublicationPart a deichman:PublicationPart;"
+ " ?publicationPartProperties ?publicationPartValues ."
+ " }\n"
+ " }\n"
+ " ?publicationPartProperties ?publicationPartValues . }\n"
+ " UNION { <__WORKURI__> deichman:subject ?subject .\n"
+ " OPTIONAL { ?subject deichman:place ?subPlace .\n"
+ " ?subPlace a deichman:Place \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