@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_01715#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_01715#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-3>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-55>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-54>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-33>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-44>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-23>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-22>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01715#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01715#construct-template-27>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01715#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01715#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:627293 up:source unirule:MF_01715 .
  _:627294 up:source unirule:MF_01715 .
  _:627295 up:source unirule:MF_01715 .
  _:627296 up:source unirule:MF_01715 .
  _:627297 up:source unirule:MF_01715 .
  _:627298 up:source unirule:MF_01715 .
  _:627299 up:source unirule:MF_01715 .
  _:627300 up:source unirule:MF_01715 .
  _:627301 up:source unirule:MF_01715 .
  _:627302 up:source unirule:MF_01715 .
  _:627303 up:source unirule:MF_01715 .
  _:627304 up:source unirule:MF_01715 .
  _:627305 up:source unirule:MF_01715 .
  _:627306 up:source unirule:MF_01715 .
  _:627307 up:source unirule:MF_01715 .
  _:627308 up:source unirule:MF_01715 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation5 ,
      ?annotation6 ;
    up:classifiedWith GO:0005886 ,
      GO:0015438 ,
      GO:0015777 ,
      keyword:1003 ,
      keyword:1278 ,
      keyword:472 ,
      keyword:547 ,
      keyword:67 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '7.5.2.4' ;
    up:fullName 'Teichoic acids export ATP-binding protein TagH' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'tagH' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Part of the ABC transporter complex TagGH involved in teichoic acids export. Responsible for energy coupling to the transport system.' .
  ?annotation3 up:activity ?activity4 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity4 up:enzymeClass <http://purl.uniprot.org/enzyme/7.5.2.4>.
  ?annotation5 a up:Subunit_Annotation ;
    rdfs:comment 'The complex is composed of two ATP-binding proteins (TagH) and two transmembrane proteins (TagG).' .
  ?annotation6 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the ABC transporter superfamily. Teichoic acids exporter (TC 3.A.1.104.1) family.' .
  ?case7 up:classifiedWith keyword:997 .
  _:627309 a rdf:Statement ;
    up:attribution _:627293 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:627310 a rdf:Statement ;
    up:attribution _:627294 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:627311 a rdf:Statement ;
    up:attribution _:627295 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:627312 a rdf:Statement ;
    up:attribution _:627296 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:627313 a rdf:Statement ;
    up:attribution _:627297 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:627314 a rdf:Statement ;
    up:attribution _:627298 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:627315 a rdf:Statement ;
    up:attribution _:627299 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:627316 a rdf:Statement ;
    up:attribution _:627300 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:627317 a rdf:Statement ;
    up:attribution _:627301 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:627318 a rdf:Statement ;
    up:attribution _:627302 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:627319 a rdf:Statement ;
    up:attribution _:627303 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:627320 a rdf:Statement ;
    up:attribution _:627304 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1278 .
  _:627321 a rdf:Statement ;
    up:attribution _:627305 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015777 .
  _:627322 a rdf:Statement ;
    up:attribution _:627306 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0015438 .
  _:627323 a rdf:Statement ;
    up:attribution _:627307 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:627324 a rdf:Statement ;
    up:attribution _:627308 ;
    rdf:subject ?case7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01715
  #Rule MF_01715 Created by:? on:2007-03-26 Modified by:Edouard de Castro on:2023-01-13
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso prosite:PS51251 .
  ?thisOrganism rdfs:subClassOf+ taxon:1239 .
  BIND(URI(CONCAT(STR(?this), '#MF_01715a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01715a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01715a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01715a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_01715a6')) AS ?annotation6) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p9 .
      ?p9 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 ?p10 .
          ?p10 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p11 .
        ?p11 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case8) .
  }
}
""" .

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