query-3254887f3c2b713644f4697dabba06d1
Recent publications from experimental scholarly endpoint
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
PREFIX target: <http://www.wikidata.org/entity/Q37860261>
SELECT
(MIN(?dates) AS ?date)
?work ?workLabel (CONCAT("#work/", SUBSTR(STR(?work), 32)) AS ?workUrl)
(GROUP_CONCAT(DISTINCT ?type_label; separator=", ") AS ?type)
(SAMPLE(?pages_) AS ?pages)
?venue ?venueLabel
(CONCAT("#venue/", SUBSTR(STR(?venue), 32)) AS ?venueUrl)
(GROUP_CONCAT(DISTINCT ?author_label; separator=", ") AS ?authors)
# (CONCAT("#authors/", GROUP_CONCAT(DISTINCT SUBSTR(STR(?author), 32); separator=",")) AS ?authorsUrl)
WHERE {
{
?work (wdt:P50|wdt:P98) target: ,
?author ;
wdt:P577 ?datetimes .
OPTIONAL { ?work wdt:P1433 ?venue }
OPTIONAL { ?work wdt:P1104 ?pages_ }
OPTIONAL { ?work wdt:P31 ?type_ }
} UNION {
SERVICE <https://query-scholarly-experimental.wikidata.org/sparql> {
?work (wdt:P50|wdt:P98) target: ,
?author ;
wdt:P577 ?datetimes .
OPTIONAL { ?work wdt:P1104 ?pages_ }
OPTIONAL { ?work wdt:P1433 ?venue }
OPTIONAL { ?work wdt:P31 ?type_ }
BIND(?workLabel AS ?workLabel)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
}
OPTIONAL { ?author rdfs:label ?author_label_ . FILTER (LANG(?author_label_) = 'en') }
OPTIONAL { ?type_ rdfs:label ?type_label . FILTER (LANG(?type_label) = 'en') }
BIND(COALESCE(?author_label_, SUBSTR(STR(?author), 32)) AS ?author_label)
BIND(xsd:date(?datetimes) AS ?dates)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC(?date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?author")
v11("?author_label"):::projected
v3("?author_label_")
v17("?authors")
v13("?date")
v12("?dates"):::projected
v6("?datetimes")
v15("?pages")
v8("?pages_"):::projected
v14("?type")
v9("?type_")
v2("?type_label"):::projected
v7("?venue"):::projected
v16("?venueUrl")
v4("?work"):::projected
v10("?workLabel"):::projected
v13("?workUrl")
c3([http://www.wikidata.org/entity/Q37860261]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph s1["https://query-scholarly-experimental.wikidata.org/sparql"]
style s1 stroke-width:4px;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P98"--> c3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P50"--> c3
end
union1r <== or ==> union1l
end
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P98"--> v5
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P50"--> v5
end
union2r <== or ==> union2l
end
v4 --"wdt:P577"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1104".-> v8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1433".-> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P31".-> v9
end
bind0[/"?workLabel"/]
v10 --o bind0
bind0 --as--o v10
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c11 --"wikibase:language"--> c13
end
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P98"--> c3
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P50"--> c3
end
union3r <== or ==> union3l
end
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P98"--> v5
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P50"--> v5
end
union4r <== or ==> union4l
end
v4 --"wdt:P577"--> v6
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1433".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1104".-> v8
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P31".-> v9
end
end
union0r <== or ==> union0l
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v3
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v9 -."rdfs:label".-> v2
end
bind1[/"?author_label_substring(str(?author),'32^^xsd:integer')"/]
v3 --o bind1
v5 --o bind1
bind1 --as--o v11
bind2[/"http://www.w3.org/2001/XMLSchema#date(?datetimes)"/]
v6 --o bind2
bind2 --as--o v12
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c11 --"wikibase:language"--> c13
end
bind7[/"min(?dates)"/]
v12 --o bind7
bind7 --as--o v13
bind8[/"concat('#work/',substring(str(?work),'32^^xsd:integer'))"/]
v4 --o bind8
bind8 --as--o v13
bind9[/"?type_label"/]
v2 --o bind9
bind9 --as--o v14
bind10[/"sample(?pages_)"/]
v8 --o bind10
bind10 --as--o v15
bind11[/"concat('#venue/',substring(str(?venue),'32^^xsd:integer'))"/]
v7 --o bind11
bind11 --as--o v16
bind12[/"?author_label"/]
v11 --o bind12
bind12 --as--o v17