query-2c706cd1087dfcdb407d7f7c71f99594
Newest lexemes in lexical category
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q24905>
SELECT
(xsd:date(?earliest_publication_datetime) AS ?publication_date)
?lexeme
(?lemma AS ?lexemeLabel)
(CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
WHERE {
{
SELECT
(MIN(?publication_datetime) AS ?earliest_publication_datetime)
?lexeme
WHERE {
?lexeme dct:language [] ;
wikibase:lexicalCategory target: ;
(wdt:P5323 / wdt:P577)| (p:P5323 / pq:P577) ?publication_datetime .
}
GROUP BY ?lexeme
ORDER BY DESC(?earliest_publication_datetime)
LIMIT 100
} ?lexeme dct:language ?language ;
wikibase:lemma ?lemma .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?publication_date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?earliest_publication_datetime"):::projected
v5("?language"):::projected
v9("?languageUrl")
v6("?lemma"):::projected
v3("?lexeme"):::projected
v7("?lexemeLabel")
v8("?lexemeUrl")
v7("?publication_date")
v4("?publication_datetime")
a1((" "))
a2((" "))
a3((" "))
c10(["bd:serviceParam"]):::iri
c3([http://www.wikidata.org/entity/Q24905]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"dct:language"--> a1
v3 --"wikibase:lexicalCategory"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:P5323"--> a3
a3 --"p:qualifier/P577"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P5323"--> a2
a2 --"p:direct/P577"--> v4
end
union0r <== or ==> union0l
end
bind1[/"min(?publication_datetime)"/]
v4 --o bind1
bind1 --as--o v5
v3 --"dct:language"--> v5
v3 --"wikibase:lemma"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind2[/"http://www.w3.org/2001/XMLSchema#date(?earliest_publication_datetime)"/]
v5 --o bind2
bind2 --as--o v7
bind3[/"?lemma"/]
v6 --o bind3
bind3 --as--o v7
bind4[/"concat('#lexeme/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v3 --o bind4
bind4 --as--o v8
bind5[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v5 --o bind5
bind5 --as--o v9