query-02786c5675095e51184dcc63f0b1c411
With HistroPediaNot very interesting because it's a series of points, without time band. : http://histropedia.com/showcase/wikidata-viewer.htmlCopy-Paste this query in
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 ?typeLabel ?inception ?dissolve
WHERE {
{{?item wdt:P31 wd:Q1002697} # periodical
UNION {?item wdt:P31 wd:Q41298} # magazine
UNION {?item wdt:P31 wd:Q24634210} # podcast
UNION {?item wdt:P31 wd:Q8513} # bdd
UNION {?item wdt:P31 wd:Q181298}} # fanzine
?item wdt:P407 wd:Q150. # in French
{{?item wdt:P921 wd:Q1643932} # main subject
UNION {?item wdt:P136 wd:Q1643932}} # OR genre = ttrpg
OPTIONAL {?item wdt:P571 ?inception}
OPTIONAL {?item wdt:P576 ?dissolve}
OPTIONAL {?item wdt:P31 ?type}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dissolve"):::projected
v2("?inception"):::projected
v1("?item"):::projected
v4("?type")
c2(["wd:Q1002697"]):::iri
c10(["wd:Q1643932"]):::iri
c3(["wd:Q41298"]):::iri
c6(["wd:Q181298"]):::iri
c17(["en"]):::literal
c4(["wd:Q24634210"]):::iri
c15(["bd:serviceParam"]):::iri
c8(["wd:Q150"]):::iri
c5(["wd:Q8513"]):::iri
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;
v1 --"wdt:P31"--> c6
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c5
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c4
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P407"--> c8
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P136"--> c10
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P921"--> c10
end
union4r <== or ==> union4l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P576".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end