@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_01713#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_01713#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-23>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-10>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-56>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-41>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-44>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-61>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-40>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-53>, <http://purl.uniprot.org/unirules/MF_01713#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01713#construct-template-51>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01713#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01713#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:626690 up:source unirule:MF_01713 .
  _:626691 up:source unirule:MF_01713 .
  _:626692 up:source unirule:MF_01713 .
  _:626693 up:source unirule:MF_01713 .
  _:626694 up:source unirule:MF_01713 .
  _:626695 up:source unirule:MF_01713 .
  _:626696 up:source unirule:MF_01713 .
  _:626697 up:source unirule:MF_01713 .
  _:626698 up:source unirule:MF_01713 .
  _:626699 up:source unirule:MF_01713 .
  _:626700 up:source unirule:MF_01713 .
  _:626701 up:source unirule:MF_01713 .
  _:626702 up:source unirule:MF_01713 .
  _:626703 up:source unirule:MF_01713 .
  _:626704 up:source unirule:MF_01713 .
  _:626705 up:source unirule:MF_01713 .
  _:626706 up:source unirule:MF_01713 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation5 ,
      ?annotation6 ;
    up:classifiedWith GO:0005886 ,
      GO:0015416 ,
      GO:0015716 ,
      keyword:1003 ,
      keyword:1278 ,
      keyword:472 ,
      keyword:547 ,
      keyword:67 ,
      keyword:813 ,
      keyword:918 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '7.3.2.2' ;
    up:fullName 'Phosphonates import ATP-binding protein PhnC' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'phnC' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Part of the ABC transporter complex PhnCDE involved in phosphonates import. Responsible for energy coupling to the transport system.' .
  ?annotation3 up:activity ?activity4 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity4 up:catalyticActivity <http://rdf.rhea-db.org/18065>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/7.3.2.2>.
  ?annotation5 a up:Subunit_Annotation ;
    rdfs:comment 'The complex is composed of two ATP-binding proteins (PhnC), two transmembrane proteins (PhnE) and a solute-binding protein (PhnD).' .
  ?annotation6 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the ABC transporter superfamily. Phosphonates importer (TC 3.A.1.9.1) family.' .
  ?case7 up:classifiedWith keyword:997 .
  _:626707 a rdf:Statement ;
    up:attribution _:626690 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:626708 a rdf:Statement ;
    up:attribution _:626691 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:626709 a rdf:Statement ;
    up:attribution _:626692 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:626710 a rdf:Statement ;
    up:attribution _:626693 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:626711 a rdf:Statement ;
    up:attribution _:626694 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:626712 a rdf:Statement ;
    up:attribution _:626695 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:626713 a rdf:Statement ;
    up:attribution _:626696 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015716 .
  _:626714 a rdf:Statement ;
    up:attribution _:626697 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015416 .
  _:626715 a rdf:Statement ;
    up:attribution _:626698 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:626716 a rdf:Statement ;
    up:attribution _:626699 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:626717 a rdf:Statement ;
    up:attribution _:626700 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:626718 a rdf:Statement ;
    up:attribution _:626701 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:626719 a rdf:Statement ;
    up:attribution _:626702 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:626720 a rdf:Statement ;
    up:attribution _:626703 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:626721 a rdf:Statement ;
    up:attribution _:626704 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1278 .
  _:626722 a rdf:Statement ;
    up:attribution _:626705 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:918 .
  _:626723 a rdf:Statement ;
    up:attribution _:626706 ;
    rdf:subject ?case7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01713
  #Rule MF_01713 Created by:? on:2007-03-26 Modified by:Edouard de Castro on:2024-09-02
  VALUES ?supertaxon9 {taxon:2 taxon:2157}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso prosite:PS51249 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon9 .
  BIND(URI(CONCAT(STR(?this), '#MF_01713a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01713a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01713a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01713a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_01713a6')) AS ?annotation6) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p10 .
      ?p10 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#2>.
    }
    BIND(?this AS ?case7) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      FILTER (! (EXISTS {
        {
          ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#any>.
        } UNION {
          ?this up:proteome ?p11 .
          ?p11 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p12 .
        ?p12 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case8) .
  }
}
""" .

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