177_subcellular_location_go_direct_match

rq turtle/ttl

Find UniProt's subcellular-location ontology terms (up:Cellular_Component, the http://purl.uniprot.org/locations/ terms behind section G's per-protein annotations) and the Gene Ontology cellular-component term each one exactly matches, via skos:exactMatch

Use at

PREFIX up: <http://purl.uniprot.org/core/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT
  ?location
  ?locationName
  ?go
WHERE {
  ?location a up:Cellular_Component ;
    skos:prefLabel ?locationName ;
    skos:exactMatch ?go .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?go"):::projected 
  v1("?location"):::projected 
  v2("?locationName"):::projected 
  c2(["up:Cellular_Component"]):::iri 
  v1 --"a"-->  c2
  v1 --"skos:prefLabel"-->  v2
  v1 --"skos:exactMatch"-->  v3