query-c0b566c1fce7d5771c13aad8d94120c9
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?website
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch "haswbstatement:P856 bbc.com" .
bd:serviceParam mwapi:gsrlimit "max" .
?item wikibase:apiOutputItem mwapi:title .
}
?item wdt:P856 ?website .
FILTER CONTAINS(LCASE(STR(?website)), 'bbc.com')
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("?item"):::projected
v1("?website"):::projected
c5(["www.wikidata.org"]):::literal
c13(["max"]):::literal
c9(["search"]):::literal
c3(["bd:serviceParam"]):::iri
c11(["haswbstatement:P856 bbc.com"]):::literal
c19(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c15(["mwapi:title"]):::iri
c7(["Generator"]):::literal
f0[["contains(lower-case(str(?website)),'bbc.com')"]]
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:gsrsearch"--> c11
c3 --"mwapi:gsrlimit"--> c13
v2 --"mwapi:apiOutputItem"--> c15
end
v2 --"wdt:P856"--> v1
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"mwapi:language"--> c19
end