A set of SPARQL examples that are used in different TGX resources
License: https://www.gnu.org/licenses/gpl-3.0
Uses method in: https://github.com/WDscholia/scholia/tree/master/scholia/app/templates/publisher_timeline.sparql
Publisher aspect: timeline
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
#defaultView:Timeline
PREFIX target: <http://www.wikidata.org/entity/Q73820>
SELECT DISTINCT ?datetime ?venue ?venueLabel WHERE {
# Publisher
?venue wdt:P123 target: .
# Periodic literature
?venue wdt:P31 / wdt:P279* wd:Q1002697 .
# When the journal was started
?venue wdt:P571 ?datetime.
# Label the journal
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY DESC(?datetime)
LIMIT 50
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?datetime"):::projected
v2("?venue"):::projected
a1((" "))
c5([http://wikidata.org/entity/Q1002697]):::iri
c2(["wd:Q73820"]):::iri
c8([http://www.bigdata.com/rdf#serviceParam]):::iri
c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"p:direct/P123"--> c2
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c5
v2 --"p:direct/P571"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end