query-b3b580853d7ac5a0d0a15ee476648f93

rq turtle/ttl

} Consulta SPARQL per detectar pĂ gines en ceb i en sv:

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 ?item ?itemLabel ?article ?page_titleCEB ?page_titleSV
WHERE {
  ?item wdt:P31 wd:Q15303838 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ca,es" . } .
  OPTIONAL {?article schema:about ?item ; schema:isPartOf <https://es.wikipedia.org/> .}
  OPTIONAL {?article1 schema:about ?item ; schema:isPartOf <https://ceb.wikipedia.org/> ; schema:name ?page_titleCEB ; 
            FILTER(contains(?page_titleCEB, "kapital")) .}
 OPTIONAL { ?article2 schema:about ?item ; schema:isPartOf <https://sv.wikipedia.org/> ; schema:name ?page_titleSV ; 
            FILTER(contains(?page_titleSV, "huvudort")) .}
}
GROUP BY ?item ?itemLabel ?article ?page_titleCEB ?page_titleSV

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article"):::projected v5("?article1") v6("?article2") v3("?item"):::projected v2("?page_titleCEB"):::projected v1("?page_titleSV"):::projected c8(["ca,es"]):::literal c4(["wd:Q15303838"]):::iri c6(["bd:serviceParam"]):::iri c12([https://ceb.wikipedia.org/]):::iri c11([https://es.wikipedia.org/]):::iri c14([https://sv.wikipedia.org/]):::iri v3 --"wdt:P31"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v3 v4 --"schema:isPartOf"--> c11 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:about".-> v3 v5 --"schema:isPartOf"--> c12 v5 --"schema:name"--> v2 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v3 v6 --"schema:isPartOf"--> c14 v6 --"schema:name"--> v1 end