query-0bdfef4076e128e8ab5b50554947e59f

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?cast2 ?cast2Label ?castLabel ?place ?placeLabel ?heritLabel ?coord where
{
    { select ?castLabel 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:Iglesias de Extremadura por siglo" .
   bd:serviceParam mwapi:gcmlimit "max" .
   bd:serviceParam mwapi:gcmnamespace "14" .
   ?cast wikibase:apiOutputItem mwapi:item .
 }
   ?cast rdfs:label ?castLabel . filter(lang(?castLabel)="es")

  } }   SERVICE wikibase:mwapi
 {
   bd:serviceParam wikibase:endpoint "es.wikipedia.org" .
   bd:serviceParam wikibase:api "Generator" .
   bd:serviceParam mwapi:generator "categorymembers" .
   bd:serviceParam mwapi:gcmtitle ?castLabel .
   bd:serviceParam mwapi:gcmlimit "max" .
   bd:serviceParam mwapi:gcmnamespace "0" .
   ?cast2 wikibase:apiOutputItem mwapi:item .
 }               
 ?cast2 wdt:P625 ?coord .
 OPTIONAL { ?cast2 wdt:P131 ?place. }
 OPTIONAL { ?cast2 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; v2("?cast") v3("?cast2"):::projected v1("?castLabel"):::projected v4("?coord"):::projected v6("?herit") v5("?place"):::projected c17(["mwapi:item"]):::iri c3(["bd:serviceParam"]):::iri c11(["Categoría:Iglesias de Extremadura por siglo"]):::literal c15(["14"]):::literal c13(["max"]):::literal c5(["es.wikipedia.org"]):::literal c9(["categorymembers"]):::literal c19(["0"]):::literal c25(["#91;AUTO_LANGUAGE#93;,es"]):::literal c7(["Generator"]):::literal f0[["?castLabel = 'es'"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:endpoint"--> c5 c3 --"mwapi:api"--> c7 c3 --"mwapi:generator"--> c9 c3 --"mwapi:gcmtitle"--> c11 c3 --"mwapi:gcmlimit"--> c13 c3 --"mwapi:gcmnamespace"--> c15 v2 --"mwapi:apiOutputItem"--> c17 end v2 --"rdfs:label"--> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:endpoint"--> c5 c3 --"mwapi:api"--> c7 c3 --"mwapi:generator"--> c9 c3 --"mwapi:gcmtitle"--> v1 c3 --"mwapi:gcmlimit"--> c13 c3 --"mwapi:gcmnamespace"--> c19 v3 --"mwapi:apiOutputItem"--> c17 end v3 --"wdt:P625"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P131".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1435".-> v6 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c3 --"mwapi:language"--> c25 end