Almeda:Sparql examples

From Almeda
Revision as of 09:48, 1 September 2026 by Dann.wu (talk | contribs) (add work query)

This page contains sparql examples for ALMEDA.

  1. Query the latest successful update by Updater.
PREFIX almeda: <https://wikibase.almeda.engelska.uu.se/entity/>
PREFIX almedat: <https://wikibase.almeda.engelska.uu.se/prop/direct/>
PREFIX schema: <http://schema.org/>

SELECT ?dateLast WHERE {
  <https://wikibase.almeda.engelska.uu.se> schema:dateModified ?dateLast .
}

Try it

  1. Query the subclass structure of almeda work.
prefix almedat: <https://wikibase.almeda.engelska.uu.se/prop/direct/>
prefix almeda: <https://wikibase.almeda.engelska.uu.se/entity/>

#the subclass of almeda work, 
#since * means zero or further paths, the subsubclass Label shows the same label as
#the subclass Label means the path is 0 and the subclass has no further subclasses.
select ?rootLabel ?subclass ?subclassLabel ?subsubclass ?subsubclassLabel where {
  bind (almeda:Q27709 as ?root)
  ?subclass almedat:P26 ?root.
  ?subsubclass almedat:P26* ?subclass.               
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
  }
order by ?subclassLabel ?subsubclassLabel

Try it