@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_03198#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_03198#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-20>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-63>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-31>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-99>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-100>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-85>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-70>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-103>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-65>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-76>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-96>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-8>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-88>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-30>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-50>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-87>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-55>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-114>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-26>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-90>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-15>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-81>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-58>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-29>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-86>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-6>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-73>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-74>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-84>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-41>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-9>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-51>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-94>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-37>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-83>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-33>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-18>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-95>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-19>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-105>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-92>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-79>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-42>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-93>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-32>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-4>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-16>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-34>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-89>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-91>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-66>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-36>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-72>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-78>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-39>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-109>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-67>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-43>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-45>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-107>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-108>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-40>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-80>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-28>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-82>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-110>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-64>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-106>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-101>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-102>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-98>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-49>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-112>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-5>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-104>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-12>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-97>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-77>,
    <http://purl.uniprot.org/unirules/MF_03198#construct-template-111>, <http://purl.uniprot.org/unirules/MF_03198#construct-template-113>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_03198#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_03198#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:875656 up:source unirule:MF_03198 .
  _:875657 up:source unirule:MF_03198 .
  _:875658 up:source unirule:MF_03198 .
  _:875659 up:source unirule:MF_03198 .
  _:875660 up:source unirule:MF_03198 .
  _:875661 up:source unirule:MF_03198 .
  _:875662 up:source unirule:MF_03198 .
  _:875663 up:source unirule:MF_03198 .
  _:875664 up:source unirule:MF_03198 .
  _:875665 up:source unirule:MF_03198 .
  _:875666 up:source unirule:MF_03198 .
  _:875667 up:source unirule:MF_03198 .
  _:875668 up:source unirule:MF_03198 .
  _:875669 up:source unirule:MF_03198 .
  _:875670 up:source unirule:MF_03198 .
  _:875671 up:source unirule:MF_03198 .
  _:875672 up:source unirule:MF_03198 .
  _:875673 up:source unirule:MF_03198 .
  ?this up:alternativeName ?name2 ;
    up:annotation ?annotation4 ,
      ?annotation5 ,
      ?annotation7 ;
    up:classifiedWith GO:0005737 ,
      GO:0016279 ,
      GO:0018022 ,
      keyword:489 ,
      keyword:808 ,
      keyword:949 ,
      keyword:963 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '2.1.1.-' ;
    up:fullName ?nameValue1 ;
    rdf:type up:Structured_Name .
  ?name2 up:fullName 'Elongation factor methyltransferase 6' ;
    rdf:type up:Structured_Name .
  ?gene3 skos:prefLabel 'EFM6' .
  ?annotation4 a up:Function_Annotation ;
    rdfs:comment 'S-adenosyl-L-methionine-dependent protein-lysine N-methyltransferase that methylates elongation factor 1-alpha.' .
  ?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 class I-like SAM-binding methyltransferase superfamily. METTL21 family. EFM6 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:59789 .
  ?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:59789 .
  ?pfs22 up:annotation ?annotation23 .
  ?annotation23 faldo:begin ?pfsb24 ;
    faldo:end ?pfse25 ;
    up:ligand ?ligand26 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb24 faldo:position ?thisPositionOn27 ;
    rdf:type faldo:ExactPosition .
  ?pfse25 faldo:position ?thisPositionOn28 ;
    rdf:type faldo:ExactPosition .
  ?ligand26 rdfs:subClassOf chebi:59789 .
  ?pfs29 up:annotation ?annotation30 .
  ?annotation30 faldo:begin ?pfsb31 ;
    faldo:end ?pfse32 ;
    up:ligand ?ligand33 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb31 faldo:position ?thisPositionOn34 ;
    rdf:type faldo:ExactPosition .
  ?pfse32 faldo:position ?thisPositionOn35 ;
    rdf:type faldo:ExactPosition .
  ?ligand33 rdfs:subClassOf chebi:59789 .
  ?pfs36 up:annotation ?annotation37 .
  ?annotation37 faldo:begin ?pfsb38 ;
    faldo:end ?pfse39 ;
    up:ligand ?ligand40 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb38 faldo:position ?thisPositionOn41 ;
    rdf:type faldo:ExactPosition .
  ?pfse39 faldo:position ?thisPositionOn42 ;
    rdf:type faldo:ExactPosition .
  ?ligand40 rdfs:subClassOf chebi:59789 .
  _:875674 a rdf:Statement ;
    up:attribution _:875656 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:875675 a rdf:Statement ;
    up:attribution _:875657 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name2 .
  _:875676 a rdf:Statement ;
    up:attribution _:875658 ;
    rdf:subject ?gene3 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene3 .
  _:875677 a rdf:Statement ;
    up:attribution _:875659 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:875678 a rdf:Statement ;
    up:attribution _:875660 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:875679 a rdf:Statement ;
    up:attribution _:875661 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:875680 a rdf:Statement ;
    up:attribution _:875662 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:875681 a rdf:Statement ;
    up:attribution _:875663 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:489 .
  _:875682 a rdf:Statement ;
    up:attribution _:875664 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:949 .
  _:875683 a rdf:Statement ;
    up:attribution _:875665 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:808 .
  _:875684 a rdf:Statement ;
    up:attribution _:875666 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:875685 a rdf:Statement ;
    up:attribution _:875667 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0016279 .
  _:875686 a rdf:Statement ;
    up:attribution _:875668 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0018022 .
  _:875687 a rdf:Statement ;
    up:source unirule:MF_03198 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:875688 a rdf:Statement ;
    up:attribution _:875669 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:875689 a rdf:Statement ;
    up:source unirule:MF_03198 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:875690 a rdf:Statement ;
    up:attribution _:875670 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:875691 a rdf:Statement ;
    up:source unirule:MF_03198 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:875692 a rdf:Statement ;
    up:attribution _:875671 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:875693 a rdf:Statement ;
    up:source unirule:MF_03198 ;
    rdf:subject ?pfs29 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation30 .
  _:875694 a rdf:Statement ;
    up:attribution _:875672 ;
    rdf:subject ?pfs29 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation30 .
  _:875695 a rdf:Statement ;
    up:source unirule:MF_03198 ;
    rdf:subject ?pfs36 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation37 .
  _:875696 a rdf:Statement ;
    up:attribution _:875673 ;
    rdf:subject ?pfs36 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation37 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_03198
  #Rule MF_03198 Created by:? on:2015-10-07 Modified by:Edouard de Castro on:2022-11-19
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_03198 .
  ?thisOrganism rdfs:subClassOf+ taxon:4751 .
  BIND(URI(CONCAT(STR(?this), '#MF_03198a0')) AS ?name0) .
  OPTIONAL {
    ?this up:encodedBy ?gene46 .
    ?gene46 up:locusName ?geneLocus44 .
  }
  OPTIONAL {
    ?this up:encodedBy ?gene46 .
    ?gene46 up:orfName ?geneOrf45 .
  }
  BIND(IF(BOUND(?geneLocus44), ?geneLocus44, ?geneOrf45) AS ?part43) .
  BIND(CONCAT('Protein-lysine N-methyltransferase ', ?part43) AS ?nameValue1) .
  BIND(URI(CONCAT(STR(?this), '#MF_03198a2')) AS ?name2) .
  BIND(URI(CONCAT(STR(?this), '#MF_03198a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_03198a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_03198a7')) AS ?annotation7) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch51 faldo:location ?templateMotifSequenceMatchRegionP5397052 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP5397054 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP53970MF_0319847 .
    ?templateMotifSequenceMatchRegionP5397052 faldo:begin ?templateMotifSequenceMatchBeginP5397053 .
    ?templateMotifSequenceMatchBeginP5397053 faldo:position ?templateMotifSequenceMatchBeginPositionP5397048 ;
      faldo:reference isoform:P53970-1 .
    ?templateMotifSequenceProfileAlignmentOperationP5397054 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch55 faldo:location ?targetMotifMatchRegionMatch56 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0319858 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP53970MF_0319849 .
    ?targetMotifMatchRegionMatch56 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0319857 .
    ?targetMotifMatchRegionMatchBeginMF_0319857 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0319850 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0319858 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP53970MF_0319847, 1, (STRLEN(?templateMotifCigarP53970MF_0319847) - STRLEN(REPLACE(?templateMotifCigarP53970MF_0319847, CONCAT('^(?:-*[^-]){', STR(((87 - ?templateMotifSequenceMatchBeginPositionP5397048) + 1)), '}'), '')))), '[a-z]', '')) AS ?step159) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP53970MF_0319849, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319849) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319849, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step159), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP53970MF_0319849, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319849) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319849, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step159), '}'), '')))), '[^-]', ''))) AS ?step260) .
    BIND(((?step260 + ?targetMotifMatchRegionMatchBeginPositionMF_0319850) - 1) AS ?thisPositionOn13) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP53970MF_0319847, 1, (STRLEN(?templateMotifCigarP53970MF_0319847) - STRLEN(REPLACE(?templateMotifCigarP53970MF_0319847, CONCAT('^(?:-*[^-]){', STR(((89 - ?templateMotifSequenceMatchBeginPositionP5397048) + 1)), '}'), '')))), '[a-z]', '')) AS ?step161) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP53970MF_0319849, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319849) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319849, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step161), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP53970MF_0319849, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319849) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319849, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step161), '}'), '')))), '[^-]', ''))) AS ?step262) .
    BIND(((?step262 + ?targetMotifMatchRegionMatchBeginPositionMF_0319850) - 1) AS ?thisPositionOn14) .
    BIND(?this AS ?pfs1t63) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfsb10) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn14))) AS ?pfse11) .
    FILTER (REGEX('G[SA]G', SUBSTR(?thisSequenceValue, ?thisPositionOn13, (?thisPositionOn14 - ?thisPositionOn13)))) .
    BIND(URI(CONCAT(STR(?this), '#MF_03198a9')) AS ?annotation9) .
    BIND(?this AS ?pfs8) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch68 faldo:location ?templateMotifSequenceMatchRegionP5397069 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP5397071 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP53970MF_0319864 .
    ?templateMotifSequenceMatchRegionP5397069 faldo:begin ?templateMotifSequenceMatchBeginP5397070 .
    ?templateMotifSequenceMatchBeginP5397070 faldo:position ?templateMotifSequenceMatchBeginPositionP5397065 ;
      faldo:reference isoform:P53970-1 .
    ?templateMotifSequenceProfileAlignmentOperationP5397071 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch72 faldo:location ?targetMotifMatchRegionMatch73 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0319875 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP53970MF_0319866 .
    ?targetMotifMatchRegionMatch73 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0319874 .
    ?targetMotifMatchRegionMatchBeginMF_0319874 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0319867 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0319875 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP53970MF_0319864, 1, (STRLEN(?templateMotifCigarP53970MF_0319864) - STRLEN(REPLACE(?templateMotifCigarP53970MF_0319864, CONCAT('^(?:-*[^-]){', STR(((51 - ?templateMotifSequenceMatchBeginPositionP5397065) + 1)), '}'), '')))), '[a-z]', '')) AS ?step176) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP53970MF_0319866, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319866) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319866, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step176), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP53970MF_0319866, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319866) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319866, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step176), '}'), '')))), '[^-]', ''))) AS ?step277) .
    BIND(((?step277 + ?targetMotifMatchRegionMatchBeginPositionMF_0319867) - 1) AS ?thisPositionOn20) .
    BIND(?thisPositionOn20 AS ?thisPositionOn21) .
    BIND(?this AS ?pfs1t78) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn20))) AS ?pfsb17) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn21))) AS ?pfse18) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn20, 1) = 'W')) .
    BIND(URI(CONCAT(STR(?this), '#MF_03198a16')) AS ?annotation16) .
    BIND(?this AS ?pfs15) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch83 faldo:location ?templateMotifSequenceMatchRegionP5397084 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP5397086 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP53970MF_0319879 .
    ?templateMotifSequenceMatchRegionP5397084 faldo:begin ?templateMotifSequenceMatchBeginP5397085 .
    ?templateMotifSequenceMatchBeginP5397085 faldo:position ?templateMotifSequenceMatchBeginPositionP5397080 ;
      faldo:reference isoform:P53970-1 .
    ?templateMotifSequenceProfileAlignmentOperationP5397086 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch87 faldo:location ?targetMotifMatchRegionMatch88 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0319890 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP53970MF_0319881 .
    ?targetMotifMatchRegionMatch88 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0319889 .
    ?targetMotifMatchRegionMatchBeginMF_0319889 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0319882 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0319890 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP53970MF_0319879, 1, (STRLEN(?templateMotifCigarP53970MF_0319879) - STRLEN(REPLACE(?templateMotifCigarP53970MF_0319879, CONCAT('^(?:-*[^-]){', STR(((115 - ?templateMotifSequenceMatchBeginPositionP5397080) + 1)), '}'), '')))), '[a-z]', '')) AS ?step191) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP53970MF_0319881, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319881) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319881, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step191), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP53970MF_0319881, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319881) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319881, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step191), '}'), '')))), '[^-]', ''))) AS ?step292) .
    BIND(((?step292 + ?targetMotifMatchRegionMatchBeginPositionMF_0319882) - 1) AS ?thisPositionOn27) .
    BIND(?thisPositionOn27 AS ?thisPositionOn28) .
    BIND(?this AS ?pfs1t93) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn27))) AS ?pfsb24) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn28))) AS ?pfse25) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn27, 1) = 'D')) .
    BIND(URI(CONCAT(STR(?this), '#MF_03198a23')) AS ?annotation23) .
    BIND(?this AS ?pfs22) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch98 faldo:location ?templateMotifSequenceMatchRegionP5397099 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP53970101 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP53970MF_0319894 .
    ?templateMotifSequenceMatchRegionP5397099 faldo:begin ?templateMotifSequenceMatchBeginP53970100 .
    ?templateMotifSequenceMatchBeginP53970100 faldo:position ?templateMotifSequenceMatchBeginPositionP5397095 ;
      faldo:reference isoform:P53970-1 .
    ?templateMotifSequenceProfileAlignmentOperationP53970101 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch102 faldo:location ?targetMotifMatchRegionMatch103 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_03198105 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP53970MF_0319896 .
    ?targetMotifMatchRegionMatch103 faldo:begin ?targetMotifMatchRegionMatchBeginMF_03198104 .
    ?targetMotifMatchRegionMatchBeginMF_03198104 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0319897 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_03198105 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP53970MF_0319894, 1, (STRLEN(?templateMotifCigarP53970MF_0319894) - STRLEN(REPLACE(?templateMotifCigarP53970MF_0319894, CONCAT('^(?:-*[^-]){', STR(((143 - ?templateMotifSequenceMatchBeginPositionP5397095) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1106) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP53970MF_0319896, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319896) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319896, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1106), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP53970MF_0319896, 1, (STRLEN(?targetMotifMatchCigarP53970MF_0319896) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_0319896, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1106), '}'), '')))), '[^-]', ''))) AS ?step2107) .
    BIND(((?step2107 + ?targetMotifMatchRegionMatchBeginPositionMF_0319897) - 1) AS ?thisPositionOn34) .
    BIND(?thisPositionOn34 AS ?thisPositionOn35) .
    BIND(?this AS ?pfs1t108) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn34))) AS ?pfsb31) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn35))) AS ?pfse32) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn34, 1) = 'W')) .
    BIND(URI(CONCAT(STR(?this), '#MF_03198a30')) AS ?annotation30) .
    BIND(?this AS ?pfs29) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch113 faldo:location ?templateMotifSequenceMatchRegionP53970114 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP53970116 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP53970MF_03198109 .
    ?templateMotifSequenceMatchRegionP53970114 faldo:begin ?templateMotifSequenceMatchBeginP53970115 .
    ?templateMotifSequenceMatchBeginP53970115 faldo:position ?templateMotifSequenceMatchBeginPositionP53970110 ;
      faldo:reference isoform:P53970-1 .
    ?templateMotifSequenceProfileAlignmentOperationP53970116 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch117 faldo:location ?targetMotifMatchRegionMatch118 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_03198120 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP53970MF_03198111 .
    ?targetMotifMatchRegionMatch118 faldo:begin ?targetMotifMatchRegionMatchBeginMF_03198119 .
    ?targetMotifMatchRegionMatchBeginMF_03198119 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_03198112 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_03198120 edam:has_input signature:MF_03198 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP53970MF_03198109, 1, (STRLEN(?templateMotifCigarP53970MF_03198109) - STRLEN(REPLACE(?templateMotifCigarP53970MF_03198109, CONCAT('^(?:-*[^-]){', STR(((169 - ?templateMotifSequenceMatchBeginPositionP53970110) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1121) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP53970MF_03198111, 1, (STRLEN(?targetMotifMatchCigarP53970MF_03198111) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_03198111, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1121), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP53970MF_03198111, 1, (STRLEN(?targetMotifMatchCigarP53970MF_03198111) - STRLEN(REPLACE(?targetMotifMatchCigarP53970MF_03198111, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1121), '}'), '')))), '[^-]', ''))) AS ?step2122) .
    BIND(((?step2122 + ?targetMotifMatchRegionMatchBeginPositionMF_03198112) - 1) AS ?thisPositionOn41) .
    BIND(?thisPositionOn41 AS ?thisPositionOn42) .
    BIND(?this AS ?pfs1t123) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn41))) AS ?pfsb38) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn42))) AS ?pfse39) .
    FILTER (REGEX('[AGS]', SUBSTR(?thisSequenceValue, ?thisPositionOn41, 1))) .
    BIND(URI(CONCAT(STR(?this), '#MF_03198a37')) AS ?annotation37) .
    BIND(?this AS ?pfs36) .
  }
}
""" .

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