query-c09060fe0584fcb322e55ae88224ca64

rq turtle/ttl

Thank you, In practice I seem to be struggling with the UNION command - I've tried it in multiple queries and always get an error message, whatever combination of curly brackets I try!https://w.wiki/B7Fj which gives me a list of LSE’s doctoral theses with author links to Wikipedia pages where available, and try to re-write it for the new main graph... I edit it to include the hint optimizer, the SERVICE scholarly graph and BIND – the query runs, but gives me no results https://w.wiki/5aHLIf I take this query from my thesis project So I try to add in the UNION command, but whatever I do with curly bracket combinations I get an error message so can’t run the query

Use at

PREFIX wdsubgraph: <https://query.wikidata.org/subgraph/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?thesis ?thesisDescription ?thesisLabel ?author ?authorLabel ?authorwp ?lse_url WHERE {
&nbsp; hint:Query hint:optimizer "None" .
&nbsp; SERVICE wdsubgraph:scholarly_articles {
&nbsp; 
&nbsp; ?thesis wdt:P31/wdt:P279* wd:Q1266946 ;
&nbsp;&nbsp; wdt:P953 ?lse_url.
&nbsp; 
&nbsp; &nbsp; BIND(?thesisLabel AS ?thesisLabel)
&nbsp; &nbsp;&nbsp; SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
&nbsp; }
&nbsp; } UNION {
&nbsp;&nbsp; # Union them with the publications in the main graph (blogs, articles...)
&nbsp; &nbsp; ?thesis wdt:P31/wdt:P279* wd:Q1266946 ;
&nbsp;&nbsp; wdt:P953 ?lse_url.
&nbsp; } 
&nbsp; OPTIONAL {
&nbsp;&nbsp; ?thesis wdt:P50 ?author.
&nbsp;&nbsp; OPTIONAL {
&nbsp; &nbsp;&nbsp; ?authorwp schema:about ?author;
&nbsp; &nbsp; &nbsp; schema:isPartOf https://en.wikipedia.org/.
&nbsp;&nbsp; }
&nbsp; }
FILTER(STRSTARTS(STR(?lse_url), http://etheses.lse.ac.uk))
&nbsp; SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY (?thesisDescription)

Query found at