@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_01718#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_01718#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-40>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-33>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-3>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-41>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-48>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01718#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01718#construct-template-42>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01718#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01718#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:628184 up:source unirule:MF_01718 .
  _:628185 up:source unirule:MF_01718 .
  _:628186 up:source unirule:MF_01718 .
  _:628187 up:source unirule:MF_01718 .
  _:628188 up:source unirule:MF_01718 .
  _:628189 up:source unirule:MF_01718 .
  _:628190 up:source unirule:MF_01718 .
  _:628191 up:source unirule:MF_01718 .
  _:628192 up:source unirule:MF_01718 .
  _:628193 up:source unirule:MF_01718 .
  _:628194 up:source unirule:MF_01718 .
  _:628195 up:source unirule:MF_01718 .
  _:628196 up:source unirule:MF_01718 .
  _:628197 up:source unirule:MF_01718 .
  _:628198 up:source unirule:MF_01718 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation4 ;
    up:classifiedWith GO:0005886 ,
      GO:0015439 ,
      GO:0015886 ,
      keyword:1003 ,
      keyword:1278 ,
      keyword:472 ,
      keyword:547 ,
      keyword:67 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '7.6.2.-' ;
    up:fullName 'Hemin import ATP-binding protein HmuV' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'hmuV' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Part of the ABC transporter complex HmuTUV involved in hemin import. Responsible for energy coupling to the transport system.' .
  ?annotation3 a up:Subunit_Annotation ;
    rdfs:comment 'The complex is composed of two ATP-binding proteins (HmuV), two transmembrane proteins (HmuU) and a solute-binding protein (HmuT).' .
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the ABC transporter superfamily. Heme (hemin) importer (TC 3.A.1.14.5) family.' .
  ?case5 up:classifiedWith keyword:997 .
  _:628199 a rdf:Statement ;
    up:attribution _:628184 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:628200 a rdf:Statement ;
    up:attribution _:628185 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:628201 a rdf:Statement ;
    up:attribution _:628186 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:628202 a rdf:Statement ;
    up:attribution _:628187 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:628203 a rdf:Statement ;
    up:attribution _:628188 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:628204 a rdf:Statement ;
    up:attribution _:628189 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015886 .
  _:628205 a rdf:Statement ;
    up:attribution _:628190 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015439 .
  _:628206 a rdf:Statement ;
    up:attribution _:628191 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:628207 a rdf:Statement ;
    up:attribution _:628192 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:628208 a rdf:Statement ;
    up:attribution _:628193 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:628209 a rdf:Statement ;
    up:attribution _:628194 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:628210 a rdf:Statement ;
    up:attribution _:628195 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:628211 a rdf:Statement ;
    up:attribution _:628196 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:628212 a rdf:Statement ;
    up:attribution _:628197 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1278 .
  _:628213 a rdf:Statement ;
    up:attribution _:628198 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01718
  #Rule MF_01718 Created by:? on:2007-03-26 Modified by:Catherine Rivoire on:2021-01-13
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso prosite:PS51261 .
  ?thisOrganism rdfs:subClassOf+ taxon:2 .
  BIND(URI(CONCAT(STR(?this), '#MF_01718a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01718a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01718a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01718a4')) AS ?annotation4) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p7 .
      ?p7 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 ?p8 .
          ?p8 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p9 .
        ?p9 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case6) .
  }
}
""" .

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