@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_02210#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_02210#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-66>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-89>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-41>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-65>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-64>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-88>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-40>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-87>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-86>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-85>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-60>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-84>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-83>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-49>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-24>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-23>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-46>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-45>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-21>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-20>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-67>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-3>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-28>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-70>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-94>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-2>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-93>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-91>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-92>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-90>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-78>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-54>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-53>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-77>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-6>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-76>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-4>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-99>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-106>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-74>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-98>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-105>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-97>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-73>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-96>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-108>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-72>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-107>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-95>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-14>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-37>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-36>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-59>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-34>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-10>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-33>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-56>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-79>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-55>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-19>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-17>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-39>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-102>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-82>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-80>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-101>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-81>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-104>,
    <http://purl.uniprot.org/unirules/MF_02210#construct-template-103>, <http://purl.uniprot.org/unirules/MF_02210#construct-template-100>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_02210#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_02210#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:762382 up:source unirule:MF_02210 .
  _:762383 up:source unirule:MF_02210 .
  _:762384 up:source unirule:MF_02210 .
  _:762385 up:source unirule:MF_02210 .
  _:762386 up:source unirule:MF_02210 .
  _:762387 up:source unirule:MF_02210 .
  _:762388 up:source unirule:MF_02210 .
  _:762389 up:source unirule:MF_02210 .
  _:762390 up:source unirule:MF_02210 .
  _:762391 up:source unirule:MF_02210 .
  _:762392 up:source unirule:MF_02210 .
  _:762393 up:source unirule:MF_02210 .
  _:762394 up:source unirule:MF_02210 .
  _:762395 up:source unirule:MF_02210 .
  _:762396 up:source unirule:MF_02210 .
  _:762397 up:source unirule:MF_02210 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation5 ,
      ?annotation7 ;
    up:classifiedWith GO:0005737 ,
      GO:0008999 ,
      keyword:12 ,
      keyword:808 ,
      keyword:963 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '2.3.1.266' ;
    up:fullName '[Ribosomal protein bS18]-alanine N-acetyltransferase' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'rimI' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Acetylates the N-terminal alanine of ribosomal protein bS18.' .
  ?annotation3 up:activity ?activity4 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity4 up:catalyticActivity <http://rdf.rhea-db.org/43756>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/2.3.1.266>.
  ?annotation5 a up:Subcellular_Location_Annotation .
  ?annotation5li6 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation7 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the acetyltransferase family. RimI subfamily.' .
  ?pfs8 up:annotation ?annotation9 .
  ?annotation9 faldo:begin ?pfsb10 ;
    faldo:end ?pfse11 ;
    up:ligand ?ligand12 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb10 faldo:position ?thisPositionOn13 ;
    rdf:type faldo:ExactPosition .
  ?pfse11 faldo:position ?thisPositionOn14 ;
    rdf:type faldo:ExactPosition .
  ?ligand12 rdfs:subClassOf chebi:57288 .
  ?pfs15 up:annotation ?annotation16 .
  ?annotation16 faldo:begin ?pfsb17 ;
    faldo:end ?pfse18 ;
    up:ligand ?ligand19 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb17 faldo:position ?thisPositionOn20 ;
    rdf:type faldo:ExactPosition .
  ?pfse18 faldo:position ?thisPositionOn21 ;
    rdf:type faldo:ExactPosition .
  ?ligand19 rdfs:subClassOf chebi:57288 .
  ?pfs22 up:annotation ?annotation23 .
  ?annotation23 faldo:begin ?pfsb24 ;
    faldo:end ?pfse25 ;
    rdf:type up:Active_Site_Annotation ;
    rdfs:comment 'Proton acceptor' .
  ?pfsb24 faldo:position ?thisPositionOn26 ;
    rdf:type faldo:ExactPosition .
  ?pfse25 faldo:position ?thisPositionOn27 ;
    rdf:type faldo:ExactPosition .
  ?pfs28 up:annotation ?annotation29 .
  ?annotation29 faldo:begin ?pfsb30 ;
    faldo:end ?pfse31 ;
    rdf:type up:Active_Site_Annotation ;
    rdfs:comment 'Proton donor' .
  ?pfsb30 faldo:position ?thisPositionOn32 ;
    rdf:type faldo:ExactPosition .
  ?pfse31 faldo:position ?thisPositionOn33 ;
    rdf:type faldo:ExactPosition .
  ?pfs34 up:annotation ?annotation35 .
  ?annotation35 faldo:begin ?pfsb36 ;
    faldo:end ?pfse37 ;
    up:ligand ?ligand38 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb36 faldo:position ?thisPositionOn39 ;
    rdf:type faldo:ExactPosition .
  ?pfse37 faldo:position ?thisPositionOn40 ;
    rdf:type faldo:ExactPosition .
  ?ligand38 rdfs:subClassOf chebi:57288 .
  _:762398 a rdf:Statement ;
    up:attribution _:762382 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:762399 a rdf:Statement ;
    up:attribution _:762383 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:762400 a rdf:Statement ;
    up:attribution _:762384 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:762401 a rdf:Statement ;
    up:attribution _:762385 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:762402 a rdf:Statement ;
    up:attribution _:762386 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:762403 a rdf:Statement ;
    up:attribution _:762387 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:762404 a rdf:Statement ;
    up:attribution _:762388 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:12 .
  _:762405 a rdf:Statement ;
    up:attribution _:762389 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:762406 a rdf:Statement ;
    up:attribution _:762390 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:808 .
  _:762407 a rdf:Statement ;
    up:attribution _:762391 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0008999 .
  _:762408 a rdf:Statement ;
    up:attribution _:762392 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:762409 a rdf:Statement ;
    up:source unirule:MF_02210 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:762410 a rdf:Statement ;
    up:attribution _:762393 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:762411 a rdf:Statement ;
    up:source unirule:MF_02210 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:762412 a rdf:Statement ;
    up:attribution _:762394 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:762413 a rdf:Statement ;
    up:source unirule:MF_02210 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:762414 a rdf:Statement ;
    up:attribution _:762395 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:762415 a rdf:Statement ;
    up:source unirule:MF_02210 ;
    rdf:subject ?pfs28 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation29 .
  _:762416 a rdf:Statement ;
    up:attribution _:762396 ;
    rdf:subject ?pfs28 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation29 .
  _:762417 a rdf:Statement ;
    up:source unirule:MF_02210 ;
    rdf:subject ?pfs34 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation35 .
  _:762418 a rdf:Statement ;
    up:attribution _:762397 ;
    rdf:subject ?pfs34 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation35 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_02210
  #Rule MF_02210 Created by:? on:2019-02-08 Modified by:Catherine Rivoire on:2025-03-21
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_02210 .
  ?thisOrganism rdfs:subClassOf+ taxon:1224 .
  BIND(URI(CONCAT(STR(?this), '#MF_02210a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_02210a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_02210a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_02210a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_02210a7')) AS ?annotation7) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch45 faldo:location ?templateMotifSequenceMatchRegionQ8ZJW446 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8ZJW448 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8ZJW4MF_0221041 .
    ?templateMotifSequenceMatchRegionQ8ZJW446 faldo:begin ?templateMotifSequenceMatchBeginQ8ZJW447 .
    ?templateMotifSequenceMatchBeginQ8ZJW447 faldo:position ?templateMotifSequenceMatchBeginPositionQ8ZJW442 ;
      faldo:reference isoform:Q8ZJW4-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8ZJW448 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch49 faldo:location ?targetMotifMatchRegionMatch50 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0221052 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8ZJW4MF_0221043 .
    ?targetMotifMatchRegionMatch50 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0221051 .
    ?targetMotifMatchRegionMatchBeginMF_0221051 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0221044 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0221052 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_0221041, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_0221041) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_0221041, CONCAT('^(?:-*[^-]){', STR(((69 - ?templateMotifSequenceMatchBeginPositionQ8ZJW442) + 1)), '}'), '')))), '[a-z]', '')) AS ?step153) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221043, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221043) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221043, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step153), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221043, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221043) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221043, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step153), '}'), '')))), '[^-]', ''))) AS ?step254) .
    BIND(((?step254 + ?targetMotifMatchRegionMatchBeginPositionMF_0221044) - 1) AS ?thisPositionOn13) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_0221041, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_0221041) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_0221041, CONCAT('^(?:-*[^-]){', STR(((71 - ?templateMotifSequenceMatchBeginPositionQ8ZJW442) + 1)), '}'), '')))), '[a-z]', '')) AS ?step155) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221043, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221043) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221043, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step155), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221043, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221043) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221043, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step155), '}'), '')))), '[^-]', ''))) AS ?step256) .
    BIND(((?step256 + ?targetMotifMatchRegionMatchBeginPositionMF_0221044) - 1) AS ?thisPositionOn14) .
    BIND(?this AS ?pfs1t57) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfsb10) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn14))) AS ?pfse11) .
    FILTER (REGEX('[ILVM][AG][VI]', SUBSTR(?thisSequenceValue, ?thisPositionOn13, (?thisPositionOn14 - ?thisPositionOn13)))) .
    BIND(URI(CONCAT(STR(?this), '#MF_02210a9')) AS ?annotation9) .
    BIND(?this AS ?pfs8) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch62 faldo:location ?templateMotifSequenceMatchRegionQ8ZJW463 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8ZJW465 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8ZJW4MF_0221058 .
    ?templateMotifSequenceMatchRegionQ8ZJW463 faldo:begin ?templateMotifSequenceMatchBeginQ8ZJW464 .
    ?templateMotifSequenceMatchBeginQ8ZJW464 faldo:position ?templateMotifSequenceMatchBeginPositionQ8ZJW459 ;
      faldo:reference isoform:Q8ZJW4-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8ZJW465 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch66 faldo:location ?targetMotifMatchRegionMatch67 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0221069 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8ZJW4MF_0221060 .
    ?targetMotifMatchRegionMatch67 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0221068 .
    ?targetMotifMatchRegionMatchBeginMF_0221068 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0221061 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0221069 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_0221058, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_0221058) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_0221058, CONCAT('^(?:-*[^-]){', STR(((77 - ?templateMotifSequenceMatchBeginPositionQ8ZJW459) + 1)), '}'), '')))), '[a-z]', '')) AS ?step170) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221060, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221060) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221060, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step170), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221060, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221060) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221060, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step170), '}'), '')))), '[^-]', ''))) AS ?step271) .
    BIND(((?step271 + ?targetMotifMatchRegionMatchBeginPositionMF_0221061) - 1) AS ?thisPositionOn20) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_0221058, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_0221058) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_0221058, CONCAT('^(?:-*[^-]){', STR(((82 - ?templateMotifSequenceMatchBeginPositionQ8ZJW459) + 1)), '}'), '')))), '[a-z]', '')) AS ?step172) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221060, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221060) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221060, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step172), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221060, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221060) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221060, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step172), '}'), '')))), '[^-]', ''))) AS ?step273) .
    BIND(((?step273 + ?targetMotifMatchRegionMatchBeginPositionMF_0221061) - 1) AS ?thisPositionOn21) .
    BIND(?this AS ?pfs1t74) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn20))) AS ?pfsb17) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn21))) AS ?pfse18) .
    FILTER (REGEX('[RK][RK]G[ARNDCQEGHILKMFPSTWYVBZJUOX]G[ARNDCQEGHILKMFPSTWYVBZJUOX]', SUBSTR(?thisSequenceValue, ?thisPositionOn20, (?thisPositionOn21 - ?thisPositionOn20)))) .
    BIND(URI(CONCAT(STR(?this), '#MF_02210a16')) AS ?annotation16) .
    BIND(?this AS ?pfs15) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch79 faldo:location ?templateMotifSequenceMatchRegionQ8ZJW480 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8ZJW482 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8ZJW4MF_0221075 .
    ?templateMotifSequenceMatchRegionQ8ZJW480 faldo:begin ?templateMotifSequenceMatchBeginQ8ZJW481 .
    ?templateMotifSequenceMatchBeginQ8ZJW481 faldo:position ?templateMotifSequenceMatchBeginPositionQ8ZJW476 ;
      faldo:reference isoform:Q8ZJW4-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8ZJW482 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch83 faldo:location ?targetMotifMatchRegionMatch84 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0221086 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8ZJW4MF_0221077 .
    ?targetMotifMatchRegionMatch84 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0221085 .
    ?targetMotifMatchRegionMatchBeginMF_0221085 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0221078 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0221086 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_0221075, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_0221075) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_0221075, CONCAT('^(?:-*[^-]){', STR(((103 - ?templateMotifSequenceMatchBeginPositionQ8ZJW476) + 1)), '}'), '')))), '[a-z]', '')) AS ?step187) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221077, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221077) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221077, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step187), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221077, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221077) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221077, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step187), '}'), '')))), '[^-]', ''))) AS ?step288) .
    BIND(((?step288 + ?targetMotifMatchRegionMatchBeginPositionMF_0221078) - 1) AS ?thisPositionOn26) .
    BIND(?thisPositionOn26 AS ?thisPositionOn27) .
    BIND(?this AS ?pfs1t89) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn26))) AS ?pfsb24) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn27))) AS ?pfse25) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn26, 1) = 'E')) .
    BIND(URI(CONCAT(STR(?this), '#MF_02210a23')) AS ?annotation23) .
    BIND(?this AS ?pfs22) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch94 faldo:location ?templateMotifSequenceMatchRegionQ8ZJW495 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8ZJW497 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8ZJW4MF_0221090 .
    ?templateMotifSequenceMatchRegionQ8ZJW495 faldo:begin ?templateMotifSequenceMatchBeginQ8ZJW496 .
    ?templateMotifSequenceMatchBeginQ8ZJW496 faldo:position ?templateMotifSequenceMatchBeginPositionQ8ZJW491 ;
      faldo:reference isoform:Q8ZJW4-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8ZJW497 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch98 faldo:location ?targetMotifMatchRegionMatch99 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_02210101 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8ZJW4MF_0221092 .
    ?targetMotifMatchRegionMatch99 faldo:begin ?targetMotifMatchRegionMatchBeginMF_02210100 .
    ?targetMotifMatchRegionMatchBeginMF_02210100 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0221093 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_02210101 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_0221090, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_0221090) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_0221090, CONCAT('^(?:-*[^-]){', STR(((115 - ?templateMotifSequenceMatchBeginPositionQ8ZJW491) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1102) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221092, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221092) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221092, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1102), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_0221092, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_0221092) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_0221092, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1102), '}'), '')))), '[^-]', ''))) AS ?step2103) .
    BIND(((?step2103 + ?targetMotifMatchRegionMatchBeginPositionMF_0221093) - 1) AS ?thisPositionOn32) .
    BIND(?thisPositionOn32 AS ?thisPositionOn33) .
    BIND(?this AS ?pfs1t104) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn32))) AS ?pfsb30) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn33))) AS ?pfse31) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn32, 1) = 'Y')) .
    BIND(URI(CONCAT(STR(?this), '#MF_02210a29')) AS ?annotation29) .
    BIND(?this AS ?pfs28) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch109 faldo:location ?templateMotifSequenceMatchRegionQ8ZJW4110 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8ZJW4112 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8ZJW4MF_02210105 .
    ?templateMotifSequenceMatchRegionQ8ZJW4110 faldo:begin ?templateMotifSequenceMatchBeginQ8ZJW4111 .
    ?templateMotifSequenceMatchBeginQ8ZJW4111 faldo:position ?templateMotifSequenceMatchBeginPositionQ8ZJW4106 ;
      faldo:reference isoform:Q8ZJW4-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8ZJW4112 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch113 faldo:location ?targetMotifMatchRegionMatch114 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_02210116 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8ZJW4MF_02210107 .
    ?targetMotifMatchRegionMatch114 faldo:begin ?targetMotifMatchRegionMatchBeginMF_02210115 .
    ?targetMotifMatchRegionMatchBeginMF_02210115 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_02210108 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_02210116 edam:has_input signature:MF_02210 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8ZJW4MF_02210105, 1, (STRLEN(?templateMotifCigarQ8ZJW4MF_02210105) - STRLEN(REPLACE(?templateMotifCigarQ8ZJW4MF_02210105, CONCAT('^(?:-*[^-]){', STR(((108 - ?templateMotifSequenceMatchBeginPositionQ8ZJW4106) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1117) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_02210107, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_02210107) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_02210107, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1117), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8ZJW4MF_02210107, 1, (STRLEN(?targetMotifMatchCigarQ8ZJW4MF_02210107) - STRLEN(REPLACE(?targetMotifMatchCigarQ8ZJW4MF_02210107, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1117), '}'), '')))), '[^-]', ''))) AS ?step2118) .
    BIND(((?step2118 + ?targetMotifMatchRegionMatchBeginPositionMF_02210108) - 1) AS ?thisPositionOn39) .
    BIND(?thisPositionOn39 AS ?thisPositionOn40) .
    BIND(?this AS ?pfs1t119) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn39))) AS ?pfsb36) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn40))) AS ?pfse37) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn39, 1) = 'N')) .
    BIND(URI(CONCAT(STR(?this), '#MF_02210a35')) AS ?annotation35) .
    BIND(?this AS ?pfs34) .
  }
}
""" .

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