query-c8b307bd19b6ab53a7354d49ef8347eb
The ultimate full table
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 ?instanceLabel ?publicationdate ?country ?countryLabel ?title ?genre ?genreLabel ?hasedition ?haseditionLabel ?author ?authorLabel ?authorns ?publisher ?publisherLabel ?RPGGeekID ?copyrightLabel
WHERE
{
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
{?item wdt:P31 wd:Q1643932}
UNION {?item wdt:P31 wd:Q2164067}
UNION {?item wdt:P31 wd:Q71631512}
UNION {?item wdt:P31 wd:Q4418079}
UNION {?item wdt:P31 wd:Q100271038}
UNION {?item wdt:P31 wd:Q4686479}
UNION {?item wdt:P31 wd:Q2608176}
UNION {?item wdt:P31 wd:Q57904379}
OPTIONAL {?item wdt:P31 ?instance.}
OPTIONAL {?item wdt:P577 ?_date.}
BIND(str(YEAR(?_date)) AS ?publicationdate)
OPTIONAL {?item wdt:P17 ?country. }
OPTIONAL {?item wdt:P1476 ?title. }
OPTIONAL {?item wdt:P407 ?lang. }
OPTIONAL {?item wdt:P136 ?genre. }
OPTIONAL {?item wdt:P747 ?hasedition. }
OPTIONAL {?item wdt:P50 ?author. }
OPTIONAL {?item wdt:P2093 ?authorns. }
OPTIONAL {?item wdt:P123 ?publisher. }
OPTIONAL {?item wdt:P7226 ?RPGGeekID. }
OPTIONAL {?item wdt:P6216 ?copyright. }
}
ORDER BY ?publicationdate ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v13("?RPGGeekID"):::projected
v4("?_date")
v10("?author"):::projected
v11("?authorns"):::projected
v14("?copyright")
v5("?country"):::projected
v8("?genre"):::projected
v9("?hasedition"):::projected
v3("?instance")
v2("?item"):::projected
v7("?lang")
v5("?publicationdate"):::projected
v12("?publisher"):::projected
v6("?title"):::projected
c9(["wd:Q4418079"]):::iri
c10(["wd:Q100271038"]):::iri
c11(["wd:Q4686479"]):::iri
c6(["wd:Q1643932"]):::iri
c12(["wd:Q2608176"]):::iri
c4(["en"]):::literal
c13(["wd:Q57904379"]):::iri
c7(["wd:Q2164067"]):::iri
c2(["bd:serviceParam"]):::iri
c8(["wd:Q71631512"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
subgraph union6[" Union "]
subgraph union6l[" "]
style union6l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c13
end
subgraph union6r[" "]
style union6r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c12
end
union6r <== or ==> union6l
end
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c11
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c10
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c9
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c8
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c7
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c6
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P577".-> v4
end
bind0[/"str(year-from-dateTime(?_date))"/]
v4 --o bind0
bind0 --as--o v5
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P17".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1476".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P407".-> v7
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P136".-> v8
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P747".-> v9
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P50".-> v10
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2093".-> v11
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P123".-> v12
end
subgraph optional10["(optional)"]
style optional10 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P7226".-> v13
end
subgraph optional11["(optional)"]
style optional11 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P6216".-> v14
end