query-674746e992940943203b50cd508ee339

rq turtle/ttl

Loren helpfully explained what's going on: slash is sortof a placeholder for an item, just you can’t reference it anywhere else asterisk is there because the something might just be NYU, not a part of it part of* or in short: part of² or … part of¹ or part of⁰ or researcher has employer OR is member of OR has affiliation with something that is NYU (“part of⁰”) or is part of NYU (“part of¹”), or is part of something that’s part of (“part of²”) NYU, or …:To investigate what occupations people employed by NYU have, we wrote the following query:

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#>
SELECT DISTINCT ?occupation ?occupationLabel ?researcher ?researcherLabel WHERE {
    ?researcher ( wdt:P108| wdt:P463 | wdt:P1416 ) / wdt:P361* wd:Q49210 ;
                                                    wdt:P106 ?occupation.
  #filter to remove people with occupation university teacher
#FILTER NOT EXISTS{ ?researcher wdt:P106 wd:Q1622272}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }  
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?occupation"):::projected v1("?researcher"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c5(["wd:Q49210"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1416"--> a1 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P463"--> a1 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P108"--> a1 end union0r <== or ==> union0l end a1 --"wdt:P361"--> c5 v1 --"wdt:P106"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end