Almeda:Sparql examples

From Almeda
Revision as of 12:03, 1 September 2026 by Dann.wu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 or form of creative work (Q17719), or the class hierarchy (Q27753).
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