@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_02088#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_02088#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-20>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-6>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-2>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-34>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-27>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-35>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-11>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-42>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-9>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-37>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-15>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-7>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-57>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-14>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-36>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-0>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-58>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-1>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-29>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-23>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-43>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-40>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-51>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-47>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-50>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-56>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-54>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-21>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-3>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-60>, <http://purl.uniprot.org/unirules/MF_02088#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_02088#construct-template-61>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_02088#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_02088#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:740777 up:source unirule:MF_02088 .
  _:740778 up:source unirule:MF_02088 .
  _:740779 up:source unirule:MF_02088 .
  _:740780 up:source unirule:MF_02088 .
  _:740781 up:source unirule:MF_02088 .
  _:740782 up:source unirule:MF_02088 .
  _:740783 up:source unirule:MF_02088 .
  _:740784 up:source unirule:MF_02088 .
  _:740785 up:source unirule:MF_02088 .
  _:740786 up:source unirule:MF_02088 .
  _:740787 up:source unirule:MF_02088 .
  _:740788 up:source unirule:MF_02088 .
  _:740789 up:source unirule:MF_02088 .
  _:740790 up:source unirule:MF_02088 .
  _:740791 up:source unirule:MF_02088 .
  _:740792 up:source unirule:MF_02088 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ;
    up:classifiedWith GO:0005886 ,
      GO:0022857 ,
      GO:0043174 ,
      GO:0072531 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Probable queuosine precursor transporter' ;
    up:shortName 'Q precursor transporter' ;
    rdf:type up:Structured_Name .
  ?annotation1 a up:Function_Annotation ;
    rdfs:comment 'Involved in the import of queuosine (Q) precursors, required for Q precursor salvage.' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the vitamin uptake transporter (VUT/ECF) (TC 2.A.88) family. Q precursor transporter subfamily.' .
  ?case3 up:classifiedWith keyword:997 .
  ?sam5 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane6 faldo:begin ?transmembraneb7 ;
    faldo:end ?transmembranee8 .
  ?transmembraneb7 faldo:position ?transmembranebp9 .
  ?transmembranee8 faldo:position ?transmembraneep10 .
  ?keyword11 up:range ?transmembrane6 .
  ?keyword12 up:range ?transmembrane6 .
  ?keyword13 up:range ?transmembrane6 .
  _:740793 a rdf:Statement ;
    up:attribution _:740777 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:740794 a rdf:Statement ;
    up:attribution _:740778 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:740795 a rdf:Statement ;
    up:attribution _:740779 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:740796 a rdf:Statement ;
    up:attribution _:740780 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:740797 a rdf:Statement ;
    up:attribution _:740781 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:740798 a rdf:Statement ;
    up:attribution _:740782 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:740799 a rdf:Statement ;
    up:attribution _:740783 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:740800 a rdf:Statement ;
    up:attribution _:740784 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:740801 a rdf:Statement ;
    up:attribution _:740785 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0022857 .
  _:740802 a rdf:Statement ;
    up:attribution _:740786 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0043174 .
  _:740803 a rdf:Statement ;
    up:attribution _:740787 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0072531 .
  _:740804 a rdf:Statement ;
    up:attribution _:740788 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:740805 a rdf:Statement ;
    up:attribution _:740789 ;
    rdf:subject ?case3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:740806 a rdf:Statement ;
    up:attribution _:740790 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:740807 a rdf:Statement ;
    up:attribution _:740791 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:740808 a rdf:Statement ;
    up:attribution _:740792 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_02088
  #Rule MF_02088 Created by:? on:2017-03-23 Modified by:Catherine Rivoire on:2025-06-13
  VALUES ?supertaxon14 {taxon:2157 taxon:2}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_02088 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon14 .
  BIND(URI(CONCAT(STR(?this), '#MF_02088a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_02088a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_02088a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
      } UNION {
        ?this up:proteome ?p15 .
        ?p15 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#2>.
      }
    } UNION {
      ?this up:organism ?thisOrganism .
      ?thisOrganism rdfs:subClassOf+ taxon:1224 .
    }
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:organism ?thisOrganism .
      FILTER (! (EXISTS {
        {
          ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#any>.
        } UNION {
          ?this up:proteome ?p16 .
          ?p16 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
      FILTER (! (EXISTS {
        ?thisOrganism rdfs:subClassOf+ taxon:1224 .
      })) .
    } UNION {
      ?this up:organism ?thisOrganism .
      FILTER (! (EXISTS {
        {
          ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
        } UNION {
          ?this up:proteome ?p17 .
          ?p17 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#2>.
        }
      })) .
      FILTER (! (EXISTS {
        ?thisOrganism rdfs:subClassOf+ taxon:1224 .
      })) .
    }
    BIND(?this AS ?case4) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane18 ;
      up:sequence ?thisSequence .
    ?samtransmembrane18 up:range ?samtransmembraner19 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner19 faldo:begin ?samtransmembraneb20 ;
      faldo:end ?samtransmembranee21 .
    ?samtransmembraneb20 faldo:position ?samtransmembranebp22 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee21 faldo:position ?samtransmembraneep23 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam5) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_02088a11')) AS ?keyword11) .
  BIND(URI(CONCAT(STR(?this), '#MF_02088a12')) AS ?keyword12) .
  BIND(URI(CONCAT(STR(?this), '#MF_02088a13')) AS ?keyword13) .
}
""" .

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