query-467b87c9e0c5b99022aad6d76d8142e9

rq turtle/ttl

‎Viratus

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?cast ?castLabel ?place ?placeLabel ?herit ?heritLabel ?coord
WHERE
{
  SERVICE wikibase:mwapi
  {
    bd:serviceParam wikibase:endpoint "es.wikipedia.org" .
    bd:serviceParam wikibase:api "Generator" .
    bd:serviceParam mwapi:generator "categorymembers" .
    bd:serviceParam mwapi:gcmtitle "Categoría:Fortificaciones de al-Ándalus" .
    bd:serviceParam mwapi:gcmlimit "max" .
    bd:serviceParam mwapi:gcmnamespace "0" .
    ?cast wikibase:apiOutputItem mwapi:item .
  }
  SERVICE wikibase:box
  {
    ?cast wdt:P625 ?coord .
    bd:serviceParam wikibase:cornerWest "Point(-7.75 37.9)"^^geo:wktLiteral .
    bd:serviceParam wikibase:cornerEast "Point(-4.5 40.75)"^^geo:wktLiteral .
  }
  OPTIONAL { ?cast wdt:P131 ?place. }
  OPTIONAL { ?cast wdt:P1435 ?herit. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es" . } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?cast"):::projected v2("?coord"):::projected v4("?herit"):::projected v3("?place"):::projected c16(["mwapi:item"]):::iri c2(["bd:serviceParam"]):::iri c22([sPoint(-4.5 40.75)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c12(["max"]):::literal c4(["es.wikipedia.org"]):::literal c8(["categorymembers"]):::literal c14(["0"]):::literal c20([sPoint(-7.75 37.9)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c27(["#91;AUTO_LANGUAGE#93;,es"]):::literal c10(["Categoría:Fortificaciones de al-Ándalus"]):::literal c6(["Generator"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gcmtitle"--> c10 c2 --"mwapi:gcmlimit"--> c12 c2 --"mwapi:gcmnamespace"--> c14 v1 --"mwapi:apiOutputItem"--> c16 end subgraph s2["http://wikiba.se/ontology#box"] style s2 stroke-width:4px; v1 --"wdt:P625"--> v2 c2 --"mwapi:cornerWest"--> c20 c2 --"mwapi:cornerEast"--> c22 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P131".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1435".-> v4 end subgraph s3["http://wikiba.se/ontology#label"] style s3 stroke-width:4px; c2 --"mwapi:language"--> c27 end