@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_01521#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_01521#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-44>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-23>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-60>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-61>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-63>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-64>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-65>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-66>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-17>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-56>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-59>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-53>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01521#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01521#construct-template-39>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01521#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01521#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:550683 up:source unirule:MF_01521 .
  _:550684 up:source unirule:MF_01521 .
  _:550685 up:source unirule:MF_01521 .
  _:550686 up:source unirule:MF_01521 .
  _:550687 up:source unirule:MF_01521 .
  _:550688 up:source unirule:MF_01521 .
  _:550689 up:source unirule:MF_01521 .
  _:550690 up:source unirule:MF_01521 .
  _:550691 up:source unirule:MF_01521 .
  _:550692 up:source unirule:MF_01521 .
  _:550693 up:source unirule:MF_01521 .
  _:550694 up:source unirule:MF_01521 .
  _:550695 up:source unirule:MF_01521 .
  _:550696 up:source unirule:MF_01521 .
  _:550697 up:source unirule:MF_01521 .
  _:550698 up:source unirule:MF_01521 .
  _:550699 up:source unirule:MF_01521 .
  _:550700 up:source unirule:MF_01521 .
  ?this up:annotation ?annotation2 ,
      ?annotation4 ;
    up:classifiedWith GO:0005384 ,
      GO:0005886 ,
      GO:0071421 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:406 ,
      keyword:464 ,
      keyword:472 ,
      keyword:812 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Manganese exporter MntP' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'mntP' .
  ?annotation2 up:activity ?activity3 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity3 up:catalyticActivity <http://rdf.rhea-db.org/28699>.
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the MntP (TC 9.B.29) family.' .
  ?case5 up:classifiedWith keyword:997 .
  ?sam9 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane10 faldo:begin ?transmembraneb11 ;
    faldo:end ?transmembranee12 .
  ?transmembraneb11 faldo:position ?transmembranebp13 .
  ?transmembranee12 faldo:position ?transmembraneep14 .
  ?keyword15 up:range ?transmembrane10 .
  ?keyword16 up:range ?transmembrane10 .
  ?keyword17 up:range ?transmembrane10 .
  _:550701 a rdf:Statement ;
    up:attribution _:550683 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:550702 a rdf:Statement ;
    up:attribution _:550684 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:550703 a rdf:Statement ;
    up:attribution _:550685 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:550704 a rdf:Statement ;
    up:attribution _:550686 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:550705 a rdf:Statement ;
    up:attribution _:550687 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:550706 a rdf:Statement ;
    up:attribution _:550688 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:406 .
  _:550707 a rdf:Statement ;
    up:attribution _:550689 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:464 .
  _:550708 a rdf:Statement ;
    up:attribution _:550690 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:550709 a rdf:Statement ;
    up:attribution _:550691 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:550710 a rdf:Statement ;
    up:attribution _:550692 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:550711 a rdf:Statement ;
    up:attribution _:550693 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:550712 a rdf:Statement ;
    up:attribution _:550694 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0071421 .
  _:550713 a rdf:Statement ;
    up:attribution _:550695 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005384 .
  _:550714 a rdf:Statement ;
    up:attribution _:550696 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:550715 a rdf:Statement ;
    up:attribution _:550697 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:550716 a rdf:Statement ;
    up:attribution _:550698 ;
    rdf:subject ?sam9 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:550717 a rdf:Statement ;
    up:attribution _:550699 ;
    rdf:subject ?sam9 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:550718 a rdf:Statement ;
    up:attribution _:550700 ;
    rdf:subject ?sam9 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01521
  #Rule MF_01521 Created by:? on:2005-02-28 Modified by:Catherine Rivoire on:2025-06-24
  VALUES ?supertaxon18 {taxon:2 taxon:2157}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01521 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon18 .
  BIND(URI(CONCAT(STR(?this), '#MF_01521a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01521a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01521a4')) AS ?annotation4) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p19 .
      ?p19 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 ?p20 .
          ?p20 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p21 .
        ?p21 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case6) .
  }
  OPTIONAL {
    ?this a up:Protein .
    VALUES ?supertaxon22 {taxon:561 taxon:620 taxon:590}
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ ?supertaxon22 .
    BIND(?this AS ?case7) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon23 {taxon:561 taxon:620 taxon:590}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon23 .
    })) .
    BIND(?this AS ?case8) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane24 ;
      up:sequence ?thisSequence .
    ?samtransmembrane24 up:range ?samtransmembraner25 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner25 faldo:begin ?samtransmembraneb26 ;
      faldo:end ?samtransmembranee27 .
    ?samtransmembraneb26 faldo:position ?samtransmembranebp28 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee27 faldo:position ?samtransmembraneep29 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam9) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01521a15')) AS ?keyword15) .
  BIND(URI(CONCAT(STR(?this), '#MF_01521a16')) AS ?keyword16) .
  BIND(URI(CONCAT(STR(?this), '#MF_01521a17')) AS ?keyword17) .
}
""" .

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