@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_00708#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_00708#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-38>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-16>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-1>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-45>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-5>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-28>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-27>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-30>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-34>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-13>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-21>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-18>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-32>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-31>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-51>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-22>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-23>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-25>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-41>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-8>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-48>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-42>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-43>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-39>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_00708#construct-template-50>, <http://purl.uniprot.org/unirules/MF_00708#construct-template-52>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00708#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00708#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:262157 up:source unirule:MF_00708 .
  _:262158 up:source unirule:MF_00708 .
  _:262159 up:source unirule:MF_00708 .
  _:262160 up:source unirule:MF_00708 .
  _:262161 up:source unirule:MF_00708 .
  _:262162 up:source unirule:MF_00708 .
  _:262163 up:source unirule:MF_00708 .
  _:262164 up:source unirule:MF_00708 .
  _:262165 up:source unirule:MF_00708 .
  _:262166 up:source unirule:MF_00708 .
  _:262167 up:source unirule:MF_00708 .
  _:262168 up:source unirule:MF_00708 .
  _:262169 up:source unirule:MF_00708 .
  _:262170 up:source unirule:MF_00708 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ;
    up:classifiedWith GO:0000104 ,
      GO:0005886 ,
      GO:0045283 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?gene0 skos:prefLabel 'frdC' .
  ?annotation1 a up:Subunit_Annotation ;
    rdfs:comment 'Part of an enzyme complex containing four subunits: a flavoprotein (FrdA), an iron-sulfur protein (FrdB), and two hydrophobic anchor proteins (FrdC and FrdD).' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the FrdC family.' .
  ?case5 up:classifiedWith keyword:997 .
  ?sam7 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane8 faldo:begin ?transmembraneb9 ;
    faldo:end ?transmembranee10 .
  ?transmembraneb9 faldo:position ?transmembranebp11 .
  ?transmembranee10 faldo:position ?transmembraneep12 .
  ?keyword13 up:range ?transmembrane8 .
  ?keyword14 up:range ?transmembrane8 .
  ?keyword15 up:range ?transmembrane8 .
  _:262171 a rdf:Statement ;
    up:attribution _:262157 ;
    rdf:subject ?gene0 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene0 .
  _:262172 a rdf:Statement ;
    up:attribution _:262158 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:262173 a rdf:Statement ;
    up:attribution _:262159 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:262174 a rdf:Statement ;
    up:attribution _:262160 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:262175 a rdf:Statement ;
    up:attribution _:262161 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:262176 a rdf:Statement ;
    up:attribution _:262162 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:262177 a rdf:Statement ;
    up:attribution _:262163 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:262178 a rdf:Statement ;
    up:attribution _:262164 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:262179 a rdf:Statement ;
    up:attribution _:262165 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0045283 .
  _:262180 a rdf:Statement ;
    up:attribution _:262166 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0000104 .
  _:262181 a rdf:Statement ;
    up:attribution _:262167 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:262182 a rdf:Statement ;
    up:attribution _:262168 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:262183 a rdf:Statement ;
    up:attribution _:262169 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:262184 a rdf:Statement ;
    up:attribution _:262170 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00708
  #Rule MF_00708 Created by:? on:2005-02-28 Modified by:ipedruzz on:2024-08-20
  VALUES ?supertaxon16 {taxon:1236 taxon:1763}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00708 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon16 .
  BIND(URI(CONCAT(STR(?this), '#MF_00708a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_00708a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:91347 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:91347 .
    })) .
    BIND(?this AS ?case4) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p17 .
      ?p17 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#2>.
    }
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      FILTER (! (EXISTS {
        {
          ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#any>.
        } UNION {
          ?this up:proteome ?p18 .
          ?p18 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p19 .
        ?p19 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case6) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane20 ;
      up:sequence ?thisSequence .
    ?samtransmembrane20 up:range ?samtransmembraner21 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner21 faldo:begin ?samtransmembraneb22 ;
      faldo:end ?samtransmembranee23 .
    ?samtransmembraneb22 faldo:position ?samtransmembranebp24 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee23 faldo:position ?samtransmembraneep25 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam7) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_00708a13')) AS ?keyword13) .
  BIND(URI(CONCAT(STR(?this), '#MF_00708a14')) AS ?keyword14) .
  BIND(URI(CONCAT(STR(?this), '#MF_00708a15')) AS ?keyword15) .
}
""" .

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