query-fb6aad612a55a2e555501822a405fa02

rq turtle/ttl

Mégalithes & sites mégalithiques du Morbihan

Use at

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 DISTINCT ?Site ?SiteLabel ?SiteDescription ?merimee ?lieuLabel ?coord ?articleWikipédia ?lienswikipedia WHERE {
  { ?Site (wdt:P31/(wdt:P279*)) wd:Q164240. }
  UNION
  { ?Site (wdt:P31/(wdt:P279*)) wd:Q53336805. }
  ?Site (wdt:P131/wdt:P131) wd:Q12642;
    wdt:P131 ?lieu.
  OPTIONAL { ?Site wdt:P625 ?coord. }
  OPTIONAL { ?Site wdt:P380 ?merimee. }
  OPTIONAL {
    ?articleWikipédia schema:about ?Site;
      schema:isPartOf <https://fr.wikipedia.org/>.
  }
  ?Site wikibase:sitelinks ?lienswikipedia.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". }
}
ORDER BY (?lieuLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Site"):::projected v6("?articleWikipédia"):::projected v4("?coord"):::projected v7("?lienswikipedia"):::projected v3("?lieu") v1("?lieuLabel"):::projected v5("?merimee"):::projected a1((" ")) a2((" ")) a3((" ")) c11([https://fr.wikipedia.org/]):::iri c3(["wd:Q164240"]):::iri c14(["bd:serviceParam"]):::iri c16(["#91;AUTO_LANGUAGE#93;,fr"]):::literal c4(["wd:Q53336805"]):::iri c6(["wd:Q12642"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 end union0r <== or ==> union0l end v2 --"wdt:P131"--> a3 a3 --"wdt:P131"--> c6 v2 --"wdt:P131"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P380".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v2 v6 --"schema:isPartOf"--> c11 end v2 --"wikibase:sitelinks"--> v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end