query-f138070845922710d5a2e17cc8acd60c
Deborahjay(Q8888860)Category:Uruguayan Jews
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?lad_article ?lad_title ?found_in
WHERE
{
{
SELECT
?item
(GROUP_CONCAT(?endpoint; SEPARATOR=", ") AS ?found_in)
WHERE
{
?category schema:name "Categoría:Judíos de Uruguay"@es .
?category schema:isPartOf <https://es.wikipedia.org/> .
?category schema:about ?category_item .
?other_cat schema:about ?category_item .
?other_cat schema:isPartOf ?wikimedia_site .
?other_cat schema:name ?category_title .
BIND (STRBEFORE(STRAFTER(STR(?wikimedia_site), "https://"), "/") AS ?endpoint)
OPTIONAL
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint ?endpoint .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "categorymembers" .
bd:serviceParam mwapi:gcmtitle ?category_title .
bd:serviceParam mwapi:gcmlimit "max" .
?item wikibase:apiOutputItem mwapi:item .
}
}
FILTER BOUND (?item)
}
GROUP BY ?item
} OPTIONAL
{
?lad_article schema:about ?item .
?lad_article schema:isPartOf <https://lad.wikipedia.org/> .
?lad_article schema:name ?lad_title .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?category")
v3("?category_item")
v6("?category_title")
v7("?endpoint")
v8("?found_in"):::projected
v1("?item"):::projected
v9("?lad_article"):::projected
v10("?lad_title"):::projected
v4("?other_cat")
v5("?wikimedia_site")
c17(["mwapi:item"]):::iri
c15(["max"]):::literal
c12(["categorymembers"]):::literal
c7(["bd:serviceParam"]):::iri
c4([https://es.wikipedia.org/]):::iri
c18([https://lad.wikipedia.org/]):::iri
c21(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2([sCategoría:Judíos de Uruguay^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c10(["Generator"]):::literal
f0[["bound(?item)"]]
f0 --> v1
v2 --"schema:name"--> c2
v2 --"schema:isPartOf"--> c4
v2 --"schema:about"--> v3
v4 --"schema:about"--> v3
v4 --"schema:isPartOf"--> v5
v4 --"schema:name"--> v6
bind1[/"substring-before(substring-after(str(?wikimedia_site),'https://'),'/')"/]
v5 --o bind1
bind1 --as--o v7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c7 -."mwapi:endpoint".-> v7
c7 --"mwapi:api"--> c10
c7 --"mwapi:generator"--> c12
c7 --"mwapi:gcmtitle"--> v6
c7 --"mwapi:gcmlimit"--> c15
v1 --"mwapi:apiOutputItem"--> c17
end
end
bind3[/"?endpoint"/]
v7 --o bind3
bind3 --as--o v8
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v9 -."schema:about".-> v1
v9 --"schema:isPartOf"--> c18
v9 --"schema:name"--> v10
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c7 --"mwapi:language"--> c21
end