query-acdd8c08fa5695255e3302823514ee26

rq turtle/ttl

title: Students of a university and their IDs SELECT ?academic ?scholia ?academicLabel ?academicDescription ?academicAltLabel ?gender ?lccn ?lccnurl ?viaf ?viafurl ?orcid ?orcidurl ?gscholar ?gscholarurl WHERE { ?academic wdt:P31 wd:Q5 . # academic has a person

?academic wdt:P69 wd:Q1150437 . # educated at Victoria University of Wellington

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

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Students of a university and their IDs
SELECT ?academic ?scholia ?academicLabel ?academicDescription ?academicAltLabel  ?gender ?lccn ?lccnurl  ?viaf ?viafurl ?orcid ?orcidurl ?gscholar ?gscholarurl  WHERE {
   ?academic wdt:P31 wd:Q5 . # academic has a person

   ?academic wdt:P69 wd:Q1150437 . # educated at Victoria University of Wellington

   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

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?academic"):::projected v3("?gender"):::projected v10("?gscholar"):::projected v11("?gscholarurl"):::projected v4("?lccn"):::projected v5("?lccnurl"):::projected v8("?orcid"):::projected v9("?orcidurl"):::projected v2("?scholia"):::projected v6("?viaf"):::projected v7("?viafurl"):::projected c11(["bd:serviceParam"]):::iri c4(["wd:Q1150437"]):::iri c2(["wd:Q5"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P69"--> c4 bind0[/"concat('https://scholia.toolforge.org/author/',substring-after(str(?academic),'/entity/'))"/] v1 --o bind0 bind0 --as--o v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P244".-> v4 bind1[/"concat('https://lccn.loc.gov/',str(?lccn))"/] v4 --o bind1 bind1 --as--o v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P214".-> v6 bind2[/"concat('https://viaf.org/viaf/',str(?viaf))"/] v6 --o bind2 bind2 --as--o v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P496".-> v8 bind3[/"concat('https://orcid.org/',str(?orcid))"/] v8 --o bind3 bind3 --as--o v9 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1960".-> v10 bind4[/"concat('https://scholar.google.com/citations?user=',str(?gscholar))"/] v10 --o bind4 bind4 --as--o v11 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end