Almeda:Sparql examples: Difference between revisions

From Almeda
small change in the comments
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
Line 15: Line 15:
[https://wdqs-frontend.almeda.engelska.uu.se/#prefix%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0A%0ASELECT%20%3FdateModified%20WHERE%20%7B%0A%20%20%3Chttps%3A%2F%2Fwikibase.almeda.engelska.uu.se%3E%20schema%3AdateModified%20%3FdateModified%20.%0A%7D Try it]
[https://wdqs-frontend.almeda.engelska.uu.se/#prefix%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0A%0ASELECT%20%3FdateModified%20WHERE%20%7B%0A%20%20%3Chttps%3A%2F%2Fwikibase.almeda.engelska.uu.se%3E%20schema%3AdateModified%20%3FdateModified%20.%0A%7D Try it]


# Query the subclass structure of almeda work or form of creative work (Q17719).
# Query the subclass structure of almeda work or form of creative work (Q17719), or the class hierarchy (Q27753).


<syntaxhighlight lang="sparql">
<syntaxhighlight lang="sparql">

Latest revision as of 12:03, 1 September 2026

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