query-e2a43835522b60ef01662822b646216d
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?college_IPED_ID ?college ?collegeLabel ?college_Q_code WHERE {
?college wdt:P1771 ?college_IPED_ID.
BIND(STRAFTER(STR(?college),'entity/') AS ?college_Q_code )
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?college_IPED_ID
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?college"):::projected
v1("?college_IPED_ID"):::projected
v3("?college_Q_code"):::projected
c3(["bd:serviceParam"]):::iri
c5(["en"]):::literal
v2 --"wdt:P1771"--> v1
bind0[/"substring-after(str(?college),'entity/')"/]
v2 --o bind0
bind0 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end