query-c75d8eb3f0ebb8ef451121cc02a5d00b

rq turtle/ttl

Narrative location around the center of France

Use at

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX hint: <http://www.bigdata.com/queryHints#>

SELECT ?place ?placeLabel 
       ?workLabel ?geo 
WHERE {
  hint:Query hint:optimizer "Runtime" .

  wd:Q670930 wdt:P625 ?qgeo . 
  SERVICE wikibase:around { 
    ?place wdt:P625 ?geo . 
    bd:serviceParam
      wikibase:center ?qgeo ; 
      wikibase:radius "500" . 
  } 
  ?work wdt:P840 ?place .
  { ?work wdt:P31/wdt:P279* wd:Q7725634 . } union { ?work wdt:P31 wd:Q571 . }
  SERVICE wikibase:label {
    bd:serviceParam 
      wikibase:language "en,fr" . } }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?geo"):::projected v2("?place"):::projected v1("?qgeo") v4("?work") a1((" ")) c4(["wd:Q670930"]):::iri c14(["wd:Q7725634"]):::iri c18(["en,fr"]):::literal c3(["Runtime"]):::literal c7(["bd:serviceParam"]):::iri c10(["500"]):::literal c1([http://www.bigdata.com/queryHints#Query]):::iri c15(["wd:Q571"]):::iri c1 --http://www.bigdata.com/queryHints#optimizer--> c3 c4 --"p:direct/P625"--> v1 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v2 --"p:direct/P625"--> v3 c7 --"wikibase:center"--> v1 c7 --"wikibase:radius"--> c10 end v4 --"p:direct/P840"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v4 --"p:direct/P31"--> c15 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c14 end union0r <== or ==> union0l end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c7 --"wikibase:language"--> c18 end