query-5620266bc77945d8d3f9ebde68e0a116
Tool : List of misc. properties from a set of Wikidata items
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?instanceof ?partof ?subclassof ?date ?publisher ?gamemechanics ?RPGGeek_ID WHERE {
VALUES ?item {
wd:Q1000492
wd:Q100873858
}. # paste up to 1400 items here
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
OPTIONAL { ?item wdt:P31 ?instanceof. }
OPTIONAL { ?item wdt:P361 ?partof. }
OPTIONAL { ?item wdt:P279 ?subclassof. }
OPTIONAL { ?item wdt:P577 ?date.}
OPTIONAL { ?item wdt:P123 ?publisher.}
OPTIONAL { ?item wdt:P4151 ?gamemechanics.}
OPTIONAL { ?item wdt:P7226 ?RPGGeek_ID. }
}
ORDER BY (?instanceof)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?RPGGeek_ID"):::projected
v5("?date"):::projected
v7("?gamemechanics"):::projected
v1("?instanceof"):::projected
v2("?item"):::projected
v3("?partof"):::projected
v6("?publisher"):::projected
v4("?subclassof"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v2
bind00(["wd:Q1000492"])
bind00 --> bind0
bind01(["wd:Q100873858"])
bind01 --> bind0
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P361".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P279".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P577".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P123".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P4151".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P7226".-> v8
end