@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_00862#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_00862#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-41>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-27>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-59>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-35>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-5>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-34>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-57>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-21>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-16>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-43>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-55>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-14>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-44>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-9>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-13>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-7>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-52>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-51>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-49>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-24>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-53>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-42>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-6>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-18>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-40>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-46>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-47>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00862#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_00862#construct-template-25>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00862#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00862#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:307700 up:source unirule:MF_00862 .
  _:307701 up:source unirule:MF_00862 .
  _:307702 up:source unirule:MF_00862 .
  _:307703 up:source unirule:MF_00862 .
  _:307704 up:source unirule:MF_00862 .
  _:307705 up:source unirule:MF_00862 .
  _:307706 up:source unirule:MF_00862 .
  _:307707 up:source unirule:MF_00862 .
  _:307708 up:source unirule:MF_00862 .
  _:307709 up:source unirule:MF_00862 .
  _:307710 up:source unirule:MF_00862 .
  _:307711 up:source unirule:MF_00862 .
  _:307712 up:source unirule:MF_00862 .
  _:307713 up:source unirule:MF_00862 .
  _:307714 up:source unirule:MF_00862 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation4 ;
    up:classifiedWith GO:0005886 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Probable inorganic carbon transporter subunit DabB' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'dabB' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Part of an energy-coupled inorganic carbon pump.' .
  ?annotation3 a up:Subunit_Annotation ;
    rdfs:comment 'Forms a complex with DabA.' .
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the inorganic carbon transporter (TC 9.A.2) DabB 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 .
  _:307715 a rdf:Statement ;
    up:attribution _:307700 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:307716 a rdf:Statement ;
    up:attribution _:307701 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:307717 a rdf:Statement ;
    up:attribution _:307702 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:307718 a rdf:Statement ;
    up:attribution _:307703 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:307719 a rdf:Statement ;
    up:attribution _:307704 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:307720 a rdf:Statement ;
    up:attribution _:307705 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:307721 a rdf:Statement ;
    up:attribution _:307706 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:307722 a rdf:Statement ;
    up:attribution _:307707 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:307723 a rdf:Statement ;
    up:attribution _:307708 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:307724 a rdf:Statement ;
    up:attribution _:307709 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:307725 a rdf:Statement ;
    up:attribution _:307710 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:307726 a rdf:Statement ;
    up:attribution _:307711 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:307727 a rdf:Statement ;
    up:attribution _:307712 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:307728 a rdf:Statement ;
    up:attribution _:307713 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:307729 a rdf:Statement ;
    up:attribution _:307714 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00862
  #Rule MF_00862 Created by:? on:2021-06-07 Modified by:Catherine Rivoire on:2021-06-16
  VALUES ?supertaxon16 {taxon:2 taxon:183963}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00862 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon16 .
  BIND(URI(CONCAT(STR(?this), '#MF_00862a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00862a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_00862a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_00862a4')) AS ?annotation4) .
  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_00862a13')) AS ?keyword13) .
  BIND(URI(CONCAT(STR(?this), '#MF_00862a14')) AS ?keyword14) .
  BIND(URI(CONCAT(STR(?this), '#MF_00862a15')) AS ?keyword15) .
}
""" .

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