Project:SPARQL query service/queries/examples: Difference between revisions

From Doelgericht Digitaal Transformeren
(Created page with "= Basic queries = SELECT DISTINCT ?item ?itemLabel ?typeLabel WHERE { ?item <http://osloddt.wiki.opencura.com/prop/direct/P1> <http://osloddt.wiki.opencura.com/entity/Q1...")
 
No edit summary
Line 1: Line 1:
= Basic queries =
== Basic queries ==


=== List all items ===
  SELECT DISTINCT ?item ?itemLabel ?typeLabel
  SELECT DISTINCT ?item ?itemLabel ?typeLabel
  WHERE {
  WHERE {

Revision as of 20:05, 31 March 2022

Basic queries

List all items

SELECT DISTINCT ?item ?itemLabel ?typeLabel
WHERE {
  ?item <http://osloddt.wiki.opencura.com/prop/direct/P1> <http://osloddt.wiki.opencura.com/entity/Q1>;
        <http://osloddt.wiki.opencura.com/prop/direct/P13> ?type.
  ?type <http://osloddt.wiki.opencura.com/prop/direct/P1> <http://osloddt.wiki.opencura.com/entity/Q15>.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,en" . }
}
ORDER BY ?typeLabel