SPARQL examples: Difference between revisions

From Dariah-Lab
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


=== <!--T:541--> Institutions ===
=== <!--T:541--> Institutions ===
{{SPARQL|query=SELECT SELECT ?institution ?institutionLabel  
 
WHERE  
 
{
  SELECT ?institution ?institutionLabel WHERE {
  ?institution wdt:P47 wd:Q467. # <translate><!--T:680--> Must be of a cat</translate>
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # <translate><!--T:681--> Helps get the label in your language, if not, then en language</translate>
      ?institution wdt:P47 wd:Q467.
}
  }
}}

Revision as of 15:16, 10 May 2022

This page is parsed by the web interface of the query service to fill the query example dialog.

Simple queries

Institutions

 SELECT ?institution ?institutionLabel WHERE {
     SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
     ?institution wdt:P47 wd:Q467.
 }