query-553a658d36b891cf10a9d4d31fedc1b4
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 {
VALUES ?college_IPED_ID { '100636' }
?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
v2("?college_IPED_ID"):::projected
v3("?college_Q_code"):::projected
c3(["bd:serviceParam"]):::iri
c5(["en"]):::literal
bind0[/VALUES ?college_IPED_ID/]
bind0-->v2
bind00(["100636"])
bind00 --> bind0
v2 --"wdt:P1771"--> v2
bind1[/"substring-after(str(?college),'entity/')"/]
v2 --o bind1
bind1 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end