@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> .
@prefix sesame: <http://www.openrdf.org/schema/sesame#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .

<http://purl.uniprot.org/unirules/MF_03069#construct> a <http://www.w3.org/ns/shacl#SPARQLRule>,
    <http://spinrdf.org/sp#Construct>;
  <https://hamap.expasy.org/rdf/vocab#addsTriple> <http://purl.uniprot.org/unirules/MF_03069#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-10>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-13>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-9>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-14>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-2>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-5>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-6>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-0>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-4>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-19>, <http://purl.uniprot.org/unirules/MF_03069#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_03069#construct-template-16>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_03069#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_03069#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:812293 up:source unirule:MF_03069 .
  _:812294 up:source unirule:MF_03069 .
  _:812295 up:source unirule:MF_03069 .
  _:812296 up:source unirule:MF_03069 .
  _:812297 up:source unirule:MF_03069 .
  _:812298 up:source unirule:MF_03069 .
  ?this up:annotation ?annotation0 ,
      ?annotation1 ;
    up:classifiedWith GO:0005737 ,
      GO:0060285 ,
      GO:0070286 ,
      keyword:963 .
  ?annotation0 a up:Function_Annotation ;
    rdfs:comment 'Required for cytoplasmic pre-assembly of axonemal dyneins, thereby playing a central role in motility in cilia and flagella. Involved in pre-assembly of dynein arm complexes in the cytoplasm before intraflagellar transport loads them for the ciliary compartment.' .
  ?annotation1 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the PIH1 family. Kintoun subfamily.' .
  _:812299 a rdf:Statement ;
    up:attribution _:812293 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:812300 a rdf:Statement ;
    up:attribution _:812294 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:812301 a rdf:Statement ;
    up:attribution _:812295 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:812302 a rdf:Statement ;
    up:attribution _:812296 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:812303 a rdf:Statement ;
    up:attribution _:812297 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0060285 .
  _:812304 a rdf:Statement ;
    up:attribution _:812298 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0070286 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_03069
  #Rule MF_03069 Created by:? on:2016-07-29 Modified by:Edouard de Castro on:2019-11-20
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_03069 .
  ?thisOrganism rdfs:subClassOf+ taxon:2759 .
  BIND(URI(CONCAT(STR(?this), '#MF_03069a0')) AS ?annotation0) .
  BIND(URI(CONCAT(STR(?this), '#MF_03069a1')) AS ?annotation1) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:40674 .
    BIND(?this AS ?case2) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:7742 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:7214 .
    BIND(?this AS ?case4) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:7742 .
    })) .
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon7 {taxon:7214 taxon:7742}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon7 .
    })) .
    BIND(?this AS ?case6) .
  }
}
""" .

<http://purl.uniprot.org/unirules/MF_03069> <http://www.w3.org/ns/shacl#rule> <http://purl.uniprot.org/unirules/MF_03069#construct> .
