query-63caa5573b19916abad2f06de14d2e57
Comment(P973)described at URL
Use at
- https://query.wikidata.org/sparql
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 ?item ?itemLabel (SAMPLE(?typeLabel) as ?nature) ?url
WHERE {
{
SELECT ?item ?url ?property WHERE {
?item wdt:P973 ?url.
FILTER regex (STR(?url), "mobygames.com/browse/games/").
}
}
?item wdt:P31 ?type.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?type rdfs:label ?typeLabel.
?item rdfs:label ?itemLabel.
?property rdfs:label ?propertyLabel.
}
} GROUP BY ?item ?itemLabel ?propertyLabel ?url
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v5("?itemLabel"):::projected
v8("?nature")
v6("?property")
v7("?propertyLabel")
v3("?type")
v4("?typeLabel"):::projected
v1("?url"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["regex(str(?url),'mobygames.com/browse/games/')"]]
f0 --> v1
v2 --"wdt:P973"--> v1
v2 --"wdt:P31"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v3 --"rdfs:label"--> v4
v2 --"rdfs:label"--> v5
v6 --"rdfs:label"--> v7
end
bind2[/"sample(?typeLabel)"/]
v4 --o bind2
bind2 --as--o v8