@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_03013#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_03013#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-15>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-7>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-16>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-4>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-0>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-18>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-14>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-2>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-22>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-24>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-12>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_03013#construct-template-3>, <http://purl.uniprot.org/unirules/MF_03013#construct-template-11>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_03013#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_03013#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:785535 up:source unirule:MF_03013 .
  _:785536 up:source unirule:MF_03013 .
  _:785537 up:source unirule:MF_03013 .
  _:785538 up:source unirule:MF_03013 .
  _:785539 up:source unirule:MF_03013 .
  _:785540 up:source unirule:MF_03013 .
  ?this up:annotation ?annotation0 ;
    up:classifiedWith GO:0005737 ,
      GO:0007005 ,
      keyword:694 ,
      keyword:963 .
  ?annotation0 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the CLU family.' .
  ?sam8 up:classifiedWith keyword:175 .
  ?coiledCoil9 faldo:begin ?coiledCoilb10 ;
    faldo:end ?coiledCoile11 .
  ?coiledCoilb10 faldo:position ?coiledCoilbp12 .
  ?coiledCoile11 faldo:position ?coiledCoilep13 .
  ?keyword14 up:range ?coiledCoil9 .
  _:785541 a rdf:Statement ;
    up:attribution _:785535 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:785542 a rdf:Statement ;
    up:attribution _:785536 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:785543 a rdf:Statement ;
    up:attribution _:785537 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:694 .
  _:785544 a rdf:Statement ;
    up:attribution _:785538 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:785545 a rdf:Statement ;
    up:attribution _:785539 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0007005 .
  _:785546 a rdf:Statement ;
    up:attribution _:785540 ;
    rdf:subject ?sam8 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:175 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_03013
  #Rule MF_03013 Created by:? on:2009-02-12 Modified by:Edouard de Castro on:2019-11-20
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_03013 .
  ?thisOrganism rdfs:subClassOf+ taxon:2759 .
  BIND(URI(CONCAT(STR(?this), '#MF_03013a0')) AS ?annotation0) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:4751 .
    BIND(?this AS ?case1) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:554915 .
    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 .
    ?thisOrganism rdfs:subClassOf+ taxon:6237 .
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:7742 .
    })) .
    BIND(?this AS ?case6) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon15 {taxon:7214 taxon:4751}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon15 .
    })) .
    BIND(?this AS ?case7) .
  }
  OPTIONAL {
    ?this up:annotation ?samcc16 ;
      up:sequence ?thisSequence .
    ?samcc16 up:range ?samccr17 ;
      rdf:type up:Coiled_Coil_Annotation .
    ?samccr17 faldo:begin ?samccb18 ;
      faldo:end ?samcce19 .
    ?samccb18 faldo:position ?samccbp20 ;
      faldo:reference ?thisSequence .
    ?samcce19 faldo:position ?samccep21 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam8) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_03013a14')) AS ?keyword14) .
}
""" .

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