@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_01598#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_01598#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-48>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-50>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-22>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-64>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-62>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-53>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-65>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01598#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_01598#construct-template-59>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01598#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01598#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:577780 up:source unirule:MF_01598 .
  _:577781 up:source unirule:MF_01598 .
  _:577782 up:source unirule:MF_01598 .
  _:577783 up:source unirule:MF_01598 .
  _:577784 up:source unirule:MF_01598 .
  _:577785 up:source unirule:MF_01598 .
  _:577786 up:source unirule:MF_01598 .
  _:577787 up:source unirule:MF_01598 .
  _:577788 up:source unirule:MF_01598 .
  _:577789 up:source unirule:MF_01598 .
  _:577790 up:source unirule:MF_01598 .
  _:577791 up:source unirule:MF_01598 .
  _:577792 up:source unirule:MF_01598 .
  _:577793 up:source unirule:MF_01598 .
  _:577794 up:source unirule:MF_01598 .
  _:577795 up:source unirule:MF_01598 .
  _:577796 up:source unirule:MF_01598 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation4 ;
    up:classifiedWith GO:0005886 ,
      GO:0015606 ,
      GO:0015848 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Spermidine export protein MdtJ' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'mdtJ' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Catalyzes the excretion of spermidine.' .
  ?annotation3 a up:Subunit_Annotation ;
    rdfs:comment 'Forms a complex with MdtI.' .
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the drug/metabolite transporter (DMT) superfamily. Small multidrug resistance (SMR) (TC 2.A.7.1) family. MdtJ subfamily.' .
  ?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 .
  _:577797 a rdf:Statement ;
    up:attribution _:577780 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:577798 a rdf:Statement ;
    up:attribution _:577781 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:577799 a rdf:Statement ;
    up:attribution _:577782 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:577800 a rdf:Statement ;
    up:attribution _:577783 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:577801 a rdf:Statement ;
    up:attribution _:577784 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:577802 a rdf:Statement ;
    up:attribution _:577785 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:577803 a rdf:Statement ;
    up:attribution _:577786 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:577804 a rdf:Statement ;
    up:attribution _:577787 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:577805 a rdf:Statement ;
    up:attribution _:577788 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:577806 a rdf:Statement ;
    up:attribution _:577789 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:577807 a rdf:Statement ;
    up:attribution _:577790 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015606 .
  _:577808 a rdf:Statement ;
    up:attribution _:577791 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015848 .
  _:577809 a rdf:Statement ;
    up:attribution _:577792 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:577810 a rdf:Statement ;
    up:attribution _:577793 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:577811 a rdf:Statement ;
    up:attribution _:577794 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:577812 a rdf:Statement ;
    up:attribution _:577795 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:577813 a rdf:Statement ;
    up:attribution _:577796 ;
    rdf:subject ?sam7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01598
  #Rule MF_01598 Created by:? on:2008-03-28 Modified by:Edouard de Castro on:2019-11-19
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01598 .
  ?thisOrganism rdfs:subClassOf+ taxon:91347 .
  BIND(URI(CONCAT(STR(?this), '#MF_01598a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01598a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01598a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01598a4')) AS ?annotation4) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p16 .
      ?p16 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 ?p17 .
          ?p17 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p18 .
        ?p18 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case6) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane19 ;
      up:sequence ?thisSequence .
    ?samtransmembrane19 up:range ?samtransmembraner20 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner20 faldo:begin ?samtransmembraneb21 ;
      faldo:end ?samtransmembranee22 .
    ?samtransmembraneb21 faldo:position ?samtransmembranebp23 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee22 faldo:position ?samtransmembraneep24 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam7) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01598a13')) AS ?keyword13) .
  BIND(URI(CONCAT(STR(?this), '#MF_01598a14')) AS ?keyword14) .
  BIND(URI(CONCAT(STR(?this), '#MF_01598a15')) AS ?keyword15) .
}
""" .

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