@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_02057#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_02057#construct-template-77>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-46>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-43>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-31>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-66>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-0>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-42>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-78>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-67>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-59>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-11>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-36>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-99>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-41>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-75>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-29>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-64>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-50>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-76>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-52>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-33>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-57>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-25>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-10>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-58>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-55>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-79>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-56>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-16>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-93>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-70>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-94>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-91>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-22>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-92>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-72>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-73>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-97>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-98>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-74>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-95>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-60>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-111>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-96>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-110>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-100>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-35>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-1>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-101>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-17>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-4>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-102>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-12>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-103>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-104>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-6>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-105>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-90>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-106>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-65>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-107>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-108>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-109>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-47>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-14>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-89>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-87>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-88>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-45>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-81>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-82>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-80>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-85>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-86>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-83>,
    <http://purl.uniprot.org/unirules/MF_02057#construct-template-84>, <http://purl.uniprot.org/unirules/MF_02057#construct-template-112>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_02057#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_02057#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:727025 up:source unirule:MF_02057 .
  _:727026 up:source unirule:MF_02057 .
  _:727027 up:source unirule:MF_02057 .
  _:727028 up:source unirule:MF_02057 .
  _:727029 up:source unirule:MF_02057 .
  _:727030 up:source unirule:MF_02057 .
  _:727031 up:source unirule:MF_02057 .
  _:727032 up:source unirule:MF_02057 .
  _:727033 up:source unirule:MF_02057 .
  _:727034 up:source unirule:MF_02057 .
  _:727035 up:source unirule:MF_02057 .
  _:727036 up:source unirule:MF_02057 .
  _:727037 up:source unirule:MF_02057 .
  _:727038 up:source unirule:MF_02057 .
  _:727039 up:source unirule:MF_02057 .
  _:727040 up:source unirule:MF_02057 .
  _:727041 up:source unirule:MF_02057 .
  ?this up:alternativeName ?name1 ;
    up:annotation ?annotation3 ,
      ?annotation4 ,
      ?annotation6 ;
    up:classifiedWith GO:0006400 ,
      GO:0097697 ,
      keyword:489 ,
      keyword:808 ,
      keyword:819 ,
      keyword:949 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '2.1.1.-' ;
    up:fullName 'tRNA 5-carboxymethoxyuridine methyltransferase' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'cmo5U methyltransferase' ;
    rdf:type up:Structured_Name .
  ?gene2 skos:prefLabel 'cmoM' .
  ?annotation3 a up:Function_Annotation ;
    rdfs:comment 'Catalyzes the methylation of 5-carboxymethoxyuridine (cmo5U) to form 5-methoxycarbonylmethoxyuridine (mcmo5U) at position 34 in tRNAs.' .
  ?annotation4 up:activity ?activity5 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity5 up:catalyticActivity <http://rdf.rhea-db.org/54080>.
  ?annotation6 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the class I-like SAM-binding methyltransferase superfamily. CmoM family.' .
  ?pfs7 up:annotation ?annotation8 .
  ?annotation8 faldo:begin ?pfsb9 ;
    faldo:end ?pfse10 ;
    up:ligand ?ligand11 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb9 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  ?pfse10 faldo:position ?thisPositionOn13 ;
    rdf:type faldo:ExactPosition .
  ?ligand11 rdfs:subClassOf chebi:59789 .
  ?pfs14 up:annotation ?annotation15 .
  ?annotation15 faldo:begin ?pfsb16 ;
    faldo:end ?pfse17 ;
    up:ligand ?ligand18 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb16 faldo:position ?thisPositionOn19 ;
    rdf:type faldo:ExactPosition .
  ?pfse17 faldo:position ?thisPositionOn20 ;
    rdf:type faldo:ExactPosition .
  ?ligand18 rdfs:subClassOf chebi:59789 .
  ?pfs21 up:annotation ?annotation22 .
  ?annotation22 faldo:begin ?pfsb23 ;
    faldo:end ?pfse24 ;
    up:ligand ?ligand25 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb23 faldo:position ?thisPositionOn26 ;
    rdf:type faldo:ExactPosition .
  ?pfse24 faldo:position ?thisPositionOn27 ;
    rdf:type faldo:ExactPosition .
  ?ligand25 rdfs:subClassOf chebi:59789 .
  ?pfs28 up:annotation ?annotation29 .
  ?annotation29 faldo:begin ?pfsb30 ;
    faldo:end ?pfse31 ;
    up:ligand ?ligand32 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb30 faldo:position ?thisPositionOn33 ;
    rdf:type faldo:ExactPosition .
  ?pfse31 faldo:position ?thisPositionOn34 ;
    rdf:type faldo:ExactPosition .
  ?ligand32 rdfs:subClassOf chebi:59789 .
  ?pfs35 up:annotation ?annotation36 .
  ?annotation36 faldo:begin ?pfsb37 ;
    faldo:end ?pfse38 ;
    up:ligand ?ligand39 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb37 faldo:position ?thisPositionOn40 ;
    rdf:type faldo:ExactPosition .
  ?pfse38 faldo:position ?thisPositionOn41 ;
    rdf:type faldo:ExactPosition .
  ?ligand39 rdfs:subClassOf chebi:59789 .
  _:727042 a rdf:Statement ;
    up:attribution _:727025 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:727043 a rdf:Statement ;
    up:attribution _:727026 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:727044 a rdf:Statement ;
    up:attribution _:727027 ;
    rdf:subject ?gene2 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene2 .
  _:727045 a rdf:Statement ;
    up:attribution _:727028 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:727046 a rdf:Statement ;
    up:attribution _:727029 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:727047 a rdf:Statement ;
    up:attribution _:727030 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:727048 a rdf:Statement ;
    up:attribution _:727031 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:489 .
  _:727049 a rdf:Statement ;
    up:attribution _:727032 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:949 .
  _:727050 a rdf:Statement ;
    up:attribution _:727033 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:808 .
  _:727051 a rdf:Statement ;
    up:attribution _:727034 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:819 .
  _:727052 a rdf:Statement ;
    up:attribution _:727035 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0097697 .
  _:727053 a rdf:Statement ;
    up:attribution _:727036 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006400 .
  _:727054 a rdf:Statement ;
    up:source unirule:MF_02057 ;
    rdf:subject ?pfs7 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation8 .
  _:727055 a rdf:Statement ;
    up:attribution _:727037 ;
    rdf:subject ?pfs7 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation8 .
  _:727056 a rdf:Statement ;
    up:source unirule:MF_02057 ;
    rdf:subject ?pfs14 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation15 .
  _:727057 a rdf:Statement ;
    up:attribution _:727038 ;
    rdf:subject ?pfs14 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation15 .
  _:727058 a rdf:Statement ;
    up:source unirule:MF_02057 ;
    rdf:subject ?pfs21 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation22 .
  _:727059 a rdf:Statement ;
    up:attribution _:727039 ;
    rdf:subject ?pfs21 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation22 .
  _:727060 a rdf:Statement ;
    up:source unirule:MF_02057 ;
    rdf:subject ?pfs28 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation29 .
  _:727061 a rdf:Statement ;
    up:attribution _:727040 ;
    rdf:subject ?pfs28 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation29 .
  _:727062 a rdf:Statement ;
    up:source unirule:MF_02057 ;
    rdf:subject ?pfs35 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation36 .
  _:727063 a rdf:Statement ;
    up:attribution _:727041 ;
    rdf:subject ?pfs35 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation36 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_02057
  #Rule MF_02057 Created by:? on:2016-03-08 Modified by:Catherine Rivoire on:2023-10-13
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_02057 .
  ?thisOrganism rdfs:subClassOf+ taxon:1236 .
  BIND(URI(CONCAT(STR(?this), '#MF_02057a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_02057a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_02057a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_02057a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_02057a6')) AS ?annotation6) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch46 faldo:location ?templateMotifSequenceMatchRegionQ8XDG347 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8XDG349 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8XDG3MF_0205742 .
    ?templateMotifSequenceMatchRegionQ8XDG347 faldo:begin ?templateMotifSequenceMatchBeginQ8XDG348 .
    ?templateMotifSequenceMatchBeginQ8XDG348 faldo:position ?templateMotifSequenceMatchBeginPositionQ8XDG343 ;
      faldo:reference isoform:Q8XDG3-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8XDG349 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch50 faldo:location ?targetMotifMatchRegionMatch51 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0205753 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8XDG3MF_0205744 .
    ?targetMotifMatchRegionMatch51 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0205752 .
    ?targetMotifMatchRegionMatchBeginMF_0205752 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0205745 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0205753 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_0205742, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_0205742) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_0205742, CONCAT('^(?:-*[^-]){', STR(((52 - ?templateMotifSequenceMatchBeginPositionQ8XDG343) + 1)), '}'), '')))), '[a-z]', '')) AS ?step154) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205744, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205744) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205744, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step154), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205744, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205744) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205744, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step154), '}'), '')))), '[^-]', ''))) AS ?step255) .
    BIND(((?step255 + ?targetMotifMatchRegionMatchBeginPositionMF_0205745) - 1) AS ?thisPositionOn12) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_0205742, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_0205742) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_0205742, CONCAT('^(?:-*[^-]){', STR(((53 - ?templateMotifSequenceMatchBeginPositionQ8XDG343) + 1)), '}'), '')))), '[a-z]', '')) AS ?step156) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205744, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205744) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205744, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step156), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205744, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205744) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205744, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step156), '}'), '')))), '[^-]', ''))) AS ?step257) .
    BIND(((?step257 + ?targetMotifMatchRegionMatchBeginPositionMF_0205745) - 1) AS ?thisPositionOn13) .
    BIND(?this AS ?pfs1t58) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn12))) AS ?pfsb9) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfse10) .
    FILTER (REGEX('G[GA]', SUBSTR(?thisSequenceValue, ?thisPositionOn12, (?thisPositionOn13 - ?thisPositionOn12)))) .
    BIND(URI(CONCAT(STR(?this), '#MF_02057a8')) AS ?annotation8) .
    BIND(?this AS ?pfs7) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch63 faldo:location ?templateMotifSequenceMatchRegionQ8XDG364 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8XDG366 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8XDG3MF_0205759 .
    ?templateMotifSequenceMatchRegionQ8XDG364 faldo:begin ?templateMotifSequenceMatchBeginQ8XDG365 .
    ?templateMotifSequenceMatchBeginQ8XDG365 faldo:position ?templateMotifSequenceMatchBeginPositionQ8XDG360 ;
      faldo:reference isoform:Q8XDG3-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8XDG366 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch67 faldo:location ?targetMotifMatchRegionMatch68 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0205770 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8XDG3MF_0205761 .
    ?targetMotifMatchRegionMatch68 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0205769 .
    ?targetMotifMatchRegionMatchBeginMF_0205769 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0205762 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0205770 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_0205759, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_0205759) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_0205759, CONCAT('^(?:-*[^-]){', STR(((102 - ?templateMotifSequenceMatchBeginPositionQ8XDG360) + 1)), '}'), '')))), '[a-z]', '')) AS ?step171) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205761, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205761) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205761, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step171), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205761, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205761) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205761, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step171), '}'), '')))), '[^-]', ''))) AS ?step272) .
    BIND(((?step272 + ?targetMotifMatchRegionMatchBeginPositionMF_0205762) - 1) AS ?thisPositionOn19) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_0205759, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_0205759) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_0205759, CONCAT('^(?:-*[^-]){', STR(((103 - ?templateMotifSequenceMatchBeginPositionQ8XDG360) + 1)), '}'), '')))), '[a-z]', '')) AS ?step173) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205761, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205761) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205761, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step173), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205761, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205761) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205761, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step173), '}'), '')))), '[^-]', ''))) AS ?step274) .
    BIND(((?step274 + ?targetMotifMatchRegionMatchBeginPositionMF_0205762) - 1) AS ?thisPositionOn20) .
    BIND(?this AS ?pfs1t75) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn19))) AS ?pfsb16) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn20))) AS ?pfse17) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn19, (?thisPositionOn20 - ?thisPositionOn19)) = 'AQ')) .
    BIND(URI(CONCAT(STR(?this), '#MF_02057a15')) AS ?annotation15) .
    BIND(?this AS ?pfs14) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch80 faldo:location ?templateMotifSequenceMatchRegionQ8XDG381 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8XDG383 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8XDG3MF_0205776 .
    ?templateMotifSequenceMatchRegionQ8XDG381 faldo:begin ?templateMotifSequenceMatchBeginQ8XDG382 .
    ?templateMotifSequenceMatchBeginQ8XDG382 faldo:position ?templateMotifSequenceMatchBeginPositionQ8XDG377 ;
      faldo:reference isoform:Q8XDG3-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8XDG383 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch84 faldo:location ?targetMotifMatchRegionMatch85 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0205787 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8XDG3MF_0205778 .
    ?targetMotifMatchRegionMatch85 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0205786 .
    ?targetMotifMatchRegionMatchBeginMF_0205786 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0205779 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0205787 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_0205776, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_0205776) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_0205776, CONCAT('^(?:-*[^-]){', STR(((26 - ?templateMotifSequenceMatchBeginPositionQ8XDG377) + 1)), '}'), '')))), '[a-z]', '')) AS ?step188) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205778, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205778) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205778, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step188), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205778, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205778) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205778, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step188), '}'), '')))), '[^-]', ''))) AS ?step289) .
    BIND(((?step289 + ?targetMotifMatchRegionMatchBeginPositionMF_0205779) - 1) AS ?thisPositionOn26) .
    BIND(?thisPositionOn26 AS ?thisPositionOn27) .
    BIND(?this AS ?pfs1t90) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn26))) AS ?pfsb23) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn27))) AS ?pfse24) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn26, 1) = 'R')) .
    BIND(URI(CONCAT(STR(?this), '#MF_02057a22')) AS ?annotation22) .
    BIND(?this AS ?pfs21) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch95 faldo:location ?templateMotifSequenceMatchRegionQ8XDG396 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8XDG398 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8XDG3MF_0205791 .
    ?templateMotifSequenceMatchRegionQ8XDG396 faldo:begin ?templateMotifSequenceMatchBeginQ8XDG397 .
    ?templateMotifSequenceMatchBeginQ8XDG397 faldo:position ?templateMotifSequenceMatchBeginPositionQ8XDG392 ;
      faldo:reference isoform:Q8XDG3-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8XDG398 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch99 faldo:location ?targetMotifMatchRegionMatch100 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_02057102 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8XDG3MF_0205793 .
    ?targetMotifMatchRegionMatch100 faldo:begin ?targetMotifMatchRegionMatchBeginMF_02057101 .
    ?targetMotifMatchRegionMatchBeginMF_02057101 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0205794 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_02057102 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_0205791, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_0205791) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_0205791, CONCAT('^(?:-*[^-]){', STR(((73 - ?templateMotifSequenceMatchBeginPositionQ8XDG392) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1103) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205793, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205793) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205793, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1103), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_0205793, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_0205793) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_0205793, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1103), '}'), '')))), '[^-]', ''))) AS ?step2104) .
    BIND(((?step2104 + ?targetMotifMatchRegionMatchBeginPositionMF_0205794) - 1) AS ?thisPositionOn33) .
    BIND(?thisPositionOn33 AS ?thisPositionOn34) .
    BIND(?this AS ?pfs1t105) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn33))) AS ?pfsb30) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn34))) AS ?pfse31) .
    FILTER (REGEX('[DE]', SUBSTR(?thisSequenceValue, ?thisPositionOn33, 1))) .
    BIND(URI(CONCAT(STR(?this), '#MF_02057a29')) AS ?annotation29) .
    BIND(?this AS ?pfs28) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch110 faldo:location ?templateMotifSequenceMatchRegionQ8XDG3111 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8XDG3113 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8XDG3MF_02057106 .
    ?templateMotifSequenceMatchRegionQ8XDG3111 faldo:begin ?templateMotifSequenceMatchBeginQ8XDG3112 .
    ?templateMotifSequenceMatchBeginQ8XDG3112 faldo:position ?templateMotifSequenceMatchBeginPositionQ8XDG3107 ;
      faldo:reference isoform:Q8XDG3-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8XDG3113 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch114 faldo:location ?targetMotifMatchRegionMatch115 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_02057117 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8XDG3MF_02057108 .
    ?targetMotifMatchRegionMatch115 faldo:begin ?targetMotifMatchRegionMatchBeginMF_02057116 .
    ?targetMotifMatchRegionMatchBeginMF_02057116 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_02057109 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_02057117 edam:has_input signature:MF_02057 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8XDG3MF_02057106, 1, (STRLEN(?templateMotifCigarQ8XDG3MF_02057106) - STRLEN(REPLACE(?templateMotifCigarQ8XDG3MF_02057106, CONCAT('^(?:-*[^-]){', STR(((119 - ?templateMotifSequenceMatchBeginPositionQ8XDG3107) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1118) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_02057108, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_02057108) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_02057108, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1118), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8XDG3MF_02057108, 1, (STRLEN(?targetMotifMatchCigarQ8XDG3MF_02057108) - STRLEN(REPLACE(?targetMotifMatchCigarQ8XDG3MF_02057108, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1118), '}'), '')))), '[^-]', ''))) AS ?step2119) .
    BIND(((?step2119 + ?targetMotifMatchRegionMatchBeginPositionMF_02057109) - 1) AS ?thisPositionOn40) .
    BIND(?thisPositionOn40 AS ?thisPositionOn41) .
    BIND(?this AS ?pfs1t120) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn40))) AS ?pfsb37) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn41))) AS ?pfse38) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn40, 1) = 'H')) .
    BIND(URI(CONCAT(STR(?this), '#MF_02057a36')) AS ?annotation36) .
    BIND(?this AS ?pfs35) .
  }
}
""" .

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