Project:SPARQL/examples

From Protist-Prokaryote Symbiosis Database
Revision as of 14:25, 15 March 2024 by Kbseah-wikibase (talk | contribs) (Created page with " <sparql tryit="1"> # list all taxon items PREFIX pp: <https://ppsdb.wikibase.cloud/entity/> PREFIX ppt: <https://ppsdb.wikibase.cloud/prop/direct/> SELECT DISTINCT ?item ?itemLabel WHERE { ?item ppt:P18 pp:Q2. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } </sparql>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
# list all taxon items
PREFIX pp: <https://ppsdb.wikibase.cloud/entity/>
PREFIX ppt: <https://ppsdb.wikibase.cloud/prop/direct/>

SELECT DISTINCT ?item ?itemLabel WHERE {
  ?item ppt:P18 pp:Q2.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Try it!