154_zinc_finger_regions

rq turtle/ttl

Find zinc finger regions in reviewed human DNA-binding proteins, with the zinc finger type and its extent

Use at

PREFIX up: <http://purl.uniprot.org/core/>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX faldo: <http://biohackathon.org/resource/faldo#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT
  ?protein
  ?zincFingerType
  ?begin
  ?end
WHERE {
  ?protein a up:Protein ;
    up:organism taxon:9606 ;
    up:reviewed true ;
    up:annotation ?annotation .
  ?annotation a up:Zinc_Finger_Annotation ;
    up:range ?range .
  OPTIONAL { ?annotation rdfs:comment ?zincFingerType }
  ?range faldo:begin/faldo:position ?begin ;
    faldo:end/faldo:position ?end .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?annotation")
  v5("?begin"):::projected 
  v6("?end"):::projected 
  v1("?protein"):::projected 
  v3("?range")
  v4("?zincFingerType"):::projected 
  a1((" "))
  a2((" "))
  c8(["up:Zinc_Finger_Annotation"]):::iri 
  c4(["taxon:9606"]):::iri 
  c6(["true^^xsd:boolean"]):::literal 
  c2(["up:Protein"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:organism"-->  c4
  v1 --"up:reviewed"-->  c6
  v1 --"up:annotation"-->  v2
  v2 --"a"-->  c8
  v2 --"up:range"-->  v3
  subgraph optional0["(optional)"]
  style optional0 fill:#bbf,stroke-dasharray: 5 5;
    v2 -."rdfs:comment".->  v4
  end
  v3 --"faldo:begin"-->  a1
  a1 --"faldo:position"-->  v5
  v3 --"faldo:end"-->  a2
  a2 --"faldo:position"-->  v6