query-40a5e1a29c161a3db9dda397ea9d1e76
title: Thesis students for a university and their various IDs SELECT ?academic ?scholia ?academicLabel ?academicDescription ?academicAltLabel ?degreeLabel ?gender ?lccn ?lccnurl ?viaf ?viafurl ?orcid ?orcidurl ?gscholarurl WHERE { ?academic wdt:P31 wd:Q5 ; # instances (P31) of humans (Q5) p:P69 ?statement . # check for an "educated at" (P69) statement
?statement ps:P69 wd:Q1150437 . # educated at Victoria University of Wellington
?statement pq:P512 ?degree . # get qualifier "academic degree" (P512)
BIND( URI(CONCAT('https://scholia.toolforge.org/author/', STRAFTER(STR(?academic), "/entity/"))) AS ?scholia ) .
OPTIONAL { ?academic wdt:P21 ?gender . } .
OPTIONAL { ?academic wdt:P244 ?lccn . BIND( IRI(CONCAT('https://lccn.loc.gov/', STR(?lccn))) AS ?lccnurl ) . } .
OPTIONAL { ?academic wdt:P214 ?viaf . BIND( IRI(CONCAT('https://viaf.org/viaf/', STR(?viaf))) AS ?viafurl ) . } .
OPTIONAL { ?academic wdt:P496 ?orcid . BIND( IRI(CONCAT('https://orcid.org/', STR(?orcid))) AS ?orcidurl ) . } .
OPTIONAL { ?academic wdt:P1960 ?gscholar . BIND( IRI(CONCAT('https://scholar.google.com/citations?user=', STR(?gscholar))) AS ?gscholarurl ) . } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} LIMIT 50
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Thesis students for a university and their various IDs
SELECT ?academic ?scholia ?academicLabel ?academicDescription ?academicAltLabel ?degreeLabel ?gender ?lccn ?lccnurl ?viaf ?viafurl ?orcid ?orcidurl ?gscholarurl WHERE {
?academic wdt:P31 wd:Q5 ; # instances (P31) of humans (Q5)
p:P69 ?statement . # check for an "educated at" (P69) statement
?statement ps:P69 wd:Q1150437 . # educated at Victoria University of Wellington
?statement pq:P512 ?degree . # get qualifier "academic degree" (P512)
BIND( URI(CONCAT('https://scholia.toolforge.org/author/', STRAFTER(STR(?academic), "/entity/"))) AS ?scholia ) .
OPTIONAL { ?academic wdt:P21 ?gender . } .
OPTIONAL { ?academic wdt:P244 ?lccn . BIND( IRI(CONCAT('https://lccn.loc.gov/', STR(?lccn))) AS ?lccnurl ) . } .
OPTIONAL { ?academic wdt:P214 ?viaf . BIND( IRI(CONCAT('https://viaf.org/viaf/', STR(?viaf))) AS ?viafurl ) . } .
OPTIONAL { ?academic wdt:P496 ?orcid . BIND( IRI(CONCAT('https://orcid.org/', STR(?orcid))) AS ?orcidurl ) . } .
OPTIONAL { ?academic wdt:P1960 ?gscholar . BIND( IRI(CONCAT('https://scholar.google.com/citations?user=', STR(?gscholar))) AS ?gscholarurl ) . } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} LIMIT 50