SPARQL examples: Difference between revisions

From Dariah-Lab
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<!--T:4-->
<!--T:4-->
This page is parsed by the web interface of the query service to fill the query example dialog.  
This page is parsed by the web interface of the query service to fill the query example dialog.  
=== <!--T:541--> Institutions sparql ===
{{SPARQL|query=SELECT ?institution ?institutionLabel
WHERE
{
  ?institution wdt:P47 wd:Q467. #Must be instance of an institution
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". # Helps get the label in your language, if not, then en language
}
}}





Revision as of 13:16, 11 May 2022

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


Institutions

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