@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_01702#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_01702#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-17>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-54>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-48>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-3>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-56>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-65>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-41>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-72>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-63>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-73>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-49>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-66>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-68>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-64>, <http://purl.uniprot.org/unirules/MF_01702#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_01702#construct-template-70>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01702#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01702#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:622928 up:source unirule:MF_01702 .
  _:622929 up:source unirule:MF_01702 .
  _:622930 up:source unirule:MF_01702 .
  _:622931 up:source unirule:MF_01702 .
  _:622932 up:source unirule:MF_01702 .
  _:622933 up:source unirule:MF_01702 .
  _:622934 up:source unirule:MF_01702 .
  _:622935 up:source unirule:MF_01702 .
  _:622936 up:source unirule:MF_01702 .
  _:622937 up:source unirule:MF_01702 .
  _:622938 up:source unirule:MF_01702 .
  _:622939 up:source unirule:MF_01702 .
  _:622940 up:source unirule:MF_01702 .
  _:622941 up:source unirule:MF_01702 .
  _:622942 up:source unirule:MF_01702 .
  _:622943 up:source unirule:MF_01702 .
  _:622944 up:source unirule:MF_01702 .
  _:622945 up:source unirule:MF_01702 .
  _:622946 up:source unirule:MF_01702 .
  ?this up:alternativeName ?name1 ,
      ?name2 ;
    up:annotation ?annotation4 ,
      ?annotation5 ,
      ?annotation7 ,
      ?annotation8 ;
    up:classifiedWith GO:0005886 ,
      GO:0006817 ,
      GO:0015415 ,
      keyword:1003 ,
      keyword:1278 ,
      keyword:472 ,
      keyword:547 ,
      keyword:592 ,
      keyword:67 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '7.3.2.1' ;
    up:fullName 'Phosphate import ATP-binding protein PstB' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'ABC phosphate transporter' ;
    rdf:type up:Structured_Name .
  ?name2 up:fullName 'Phosphate-transporting ATPase' ;
    rdf:type up:Structured_Name .
  ?gene3 skos:prefLabel 'pstB' .
  ?annotation4 a up:Function_Annotation ;
    rdfs:comment 'Part of the ABC transporter complex PstSACB involved in phosphate import. Responsible for energy coupling to the transport system.' .
  ?annotation5 up:activity ?activity6 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity6 up:catalyticActivity <http://rdf.rhea-db.org/24440>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/7.3.2.1>.
  ?annotation7 a up:Subunit_Annotation ;
    rdfs:comment 'The complex is composed of two ATP-binding proteins (PstB), two transmembrane proteins (PstC and PstA) and a solute-binding protein (PstS).' .
  ?annotation8 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the ABC transporter superfamily. Phosphate importer (TC 3.A.1.7) family.' .
  ?case9 up:classifiedWith keyword:997 .
  _:622947 a rdf:Statement ;
    up:attribution _:622928 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:622948 a rdf:Statement ;
    up:attribution _:622929 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:622949 a rdf:Statement ;
    up:attribution _:622930 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name2 .
  _:622950 a rdf:Statement ;
    up:attribution _:622931 ;
    rdf:subject ?gene3 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene3 .
  _:622951 a rdf:Statement ;
    up:attribution _:622932 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:622952 a rdf:Statement ;
    up:attribution _:622933 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:622953 a rdf:Statement ;
    up:attribution _:622934 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:622954 a rdf:Statement ;
    up:attribution _:622935 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation8 .
  _:622955 a rdf:Statement ;
    up:attribution _:622936 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006817 .
  _:622956 a rdf:Statement ;
    up:attribution _:622937 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015415 .
  _:622957 a rdf:Statement ;
    up:attribution _:622938 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:622958 a rdf:Statement ;
    up:attribution _:622939 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:622959 a rdf:Statement ;
    up:attribution _:622940 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:622960 a rdf:Statement ;
    up:attribution _:622941 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:622961 a rdf:Statement ;
    up:attribution _:622942 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:622962 a rdf:Statement ;
    up:attribution _:622943 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:592 .
  _:622963 a rdf:Statement ;
    up:attribution _:622944 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1278 .
  _:622964 a rdf:Statement ;
    up:attribution _:622945 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:622965 a rdf:Statement ;
    up:attribution _:622946 ;
    rdf:subject ?case9 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01702
  #Rule MF_01702 Created by:? on:2007-03-26 Modified by:Edouard de Castro on:2024-09-02
  VALUES ?supertaxon11 {taxon:2 taxon:2157}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso prosite:PS51238 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon11 .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a2')) AS ?name2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a7')) AS ?annotation7) .
  BIND(URI(CONCAT(STR(?this), '#MF_01702a8')) AS ?annotation8) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p12 .
      ?p12 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#2>.
    }
    BIND(?this AS ?case9) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      FILTER (! (EXISTS {
        {
          ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#any>.
        } UNION {
          ?this up:proteome ?p13 .
          ?p13 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p14 .
        ?p14 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case10) .
  }
}
""" .

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