query-410b28e51839b215e83600dadff6f41a
title:Most-recently-created items containing Parsifal cluster ID (P12458) SELECT ?item ?itemLabel { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "Generator" ; wikibase:limit "once" ; mwapi:generator "search"; mwapi:gsrsearch "haswbstatement:P12458" ; mwapi:gsrsort "create_timestamp_desc" ; mwapi:gsrlimit "100". ?item wikibase:apiOutputItem mwapi:title. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(xsd:integer(SUBSTR(STR(?item), 33)))
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Most-recently-created items containing Parsifal cluster ID (P12458)
SELECT ?item ?itemLabel {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Generator" ;
wikibase:limit "once" ;
mwapi:generator "search";
mwapi:gsrsearch "haswbstatement:P12458" ;
mwapi:gsrsort "create_timestamp_desc" ;
mwapi:gsrlimit "100".
?item wikibase:apiOutputItem mwapi:title.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(xsd:integer(SUBSTR(STR(?item), 33)))
Query found at
- https://www.wikidata.org/wiki/User:Ep%C3%ACdosis/Queries
- https://www.wikidata.org/wiki/User:Ep%C3%ACdosis/sandbox
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
c5(["www.wikidata.org"]):::literal
c17(["100"]):::literal
c11(["search"]):::literal
c3(["bd:serviceParam"]):::iri
c9(["once"]):::literal
c22(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c15(["create_timestamp_desc"]):::literal
c19(["mwapi:title"]):::iri
c7(["Generator"]):::literal
c13(["haswbstatement:P12458"]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:endpoint"--> c5
c3 --"mwapi:api"--> c7
c3 --"mwapi:limit"--> c9
c3 --"mwapi:generator"--> c11
c3 --"mwapi:gsrsearch"--> c13
c3 --"mwapi:gsrsort"--> c15
c3 --"mwapi:gsrlimit"--> c17
v1 --"mwapi:apiOutputItem"--> c19
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"mwapi:language"--> c22
end