Question: retrieving transmembrane annotations from uniprot SPARQL
gravatar for Andrew Su
3.0 years ago by
Andrew Su4.9k
San Diego, CA
Andrew Su4.9k wrote:

From the UniProt page for Traf3ip3, I can see that this protein is single-pass type IV membrane protein with a note that this annotation was "manual assertion inferred by curator". (The API actually also reports the specific evidence code ECO:0000305.) Can I get this information from the UniProt SPARQL endpoint? I don't see it in the UniProt RDF diagram, but I hear that this information is available.

sparql uniprot • 924 views
ADD COMMENTlink modified 3.0 years ago • written 3.0 years ago by Andrew Su4.9k
gravatar for me
3.0 years ago by
me720 wrote:

First find out the IRI for "single-pass type IV membrane protein" in the subcellular location vocabulary used in uniprot. In this case "".

As it subcellular location annotations are structured we need to find the exact placing in the topology.

?subcellularLocationAnnotation up:locatedIn  ?locatedIn .
?locatedIn                     up:topology   location:9908 .

Then you need to find the evidence for it. In UniProt RDF we have decided to add evidences using rdf reification and attributions.

[]            rdf:subject     ?locatedIn ;
              rdf:predicate   up:topology ;   
              rdf:object      location:9908 ;
              up:attribution  ?attribution .
?attribution  up:evidence     <>

Taking this together we end up with the full query

PREFIX up:<> 
PREFIX rdf:<> 
PREFIX location:<>
    ?entry     up:annotation/up:locatedIn  ?locatedIn .
    ?locatedIn up:topology    location:9908 .
    []         rdf:subject    ?locatedIn ;
               rdf:predicate  up:topology ;   
               rdf:object     location:9908 ;
               up:attribution/up:evidence  <>.

While in this case location:9908 does not have more specific child terms it is useful to expand the query for those cases. e.g. if you where looking for "Single-pass membrane protein"

  BIND(location:9904 as ?location)
 } UNION {
  ?location rdfs:subClassOf location:9904 .
?locatedIn up:topology ?location.
ADD COMMENTlink modified 22 months ago by Andrew Su4.9k • written 3.0 years ago by me720
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2231 users visited in the last hour