query-98479bc6ad73b1477ebbfeb1f0d304be
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 DISTINCT ?item ?itemLabel
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch "www.gamespot.com".
?item wikibase:apiOutputItem mwapi:title .
}
filter(bound(?item))
?item wdt:P973|wdt:P953 ?url.
filter(contains(str(?url),"https://www.gamespot.com/companies"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Trade/sandbox
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2021/05
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?url")
c7(["www.wikidata.org"]):::literal
c9(["www.gamespot.com"]):::literal
c3(["bd:serviceParam"]):::iri
c5(["Search"]):::literal
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c11(["mwapi:title"]):::iri
f0[["contains(str(?url),'https://www.gamespot.com/companies')"]]
f0 --> v1
f1[["bound(?item)"]]
f1 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:api"--> c5
c3 --"mwapi:endpoint"--> c7
c3 --"mwapi:srsearch"--> c9
v2 --"mwapi:apiOutputItem"--> c11
end
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P953"--> v1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P973"--> v1
end
union0r <== or ==> union0l
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"mwapi:language"--> c16
end