@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_03146#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_03146#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-17>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-11>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-29>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-79>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-38>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-51>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-7>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-1>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-15>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-94>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-16>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-83>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-64>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-49>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-70>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-52>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-55>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-26>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-65>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-25>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-59>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-41>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-31>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-4>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-9>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-27>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-46>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-77>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-66>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-81>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-56>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-92>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-43>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-74>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-20>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-28>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-88>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-85>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-61>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-86>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-34>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-71>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-84>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-60>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-87>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-72>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-54>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-82>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-50>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-80>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-45>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-73>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-89>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-58>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-78>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-93>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-90>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-76>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-91>, <http://purl.uniprot.org/unirules/MF_03146#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_03146#construct-template-95>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_03146#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_03146#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:842820 up:source unirule:MF_03146 .
  _:842821 up:source unirule:MF_03146 .
  _:842822 up:source unirule:MF_03146 .
  _:842823 up:source unirule:MF_03146 .
  _:842824 up:source unirule:MF_03146 .
  _:842825 up:source unirule:MF_03146 .
  _:842826 up:source unirule:MF_03146 .
  _:842827 up:source unirule:MF_03146 .
  _:842828 up:source unirule:MF_03146 .
  _:842829 up:source unirule:MF_03146 .
  _:842830 up:source unirule:MF_03146 .
  _:842831 up:source unirule:MF_03146 .
  _:842832 up:source unirule:MF_03146 .
  _:842833 up:source unirule:MF_03146 .
  _:842834 up:source unirule:MF_03146 .
  _:842835 up:source unirule:MF_03146 .
  _:842836 up:source unirule:MF_03146 .
  ?this up:annotation ?annotation1 ;
    up:classifiedWith GO:0000455 ,
      GO:0006364 ,
      GO:1904047 ,
      keyword:690 ,
      keyword:698 ,
      keyword:808 ,
      keyword:949 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '2.5.1.157' ;
    up:fullName '18S rRNA aminocarboxypropyltransferase' ;
    rdf:type up:Structured_Name .
  ?annotation1 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the TDD superfamily. TSR3 family.' .
  ?case2 up:classifiedWith GO:0005634 ,
      keyword:539 .
  ?case4 up:classifiedWith GO:0005737 ,
      keyword:963 .
  ?pfs6 up:annotation ?annotation7 .
  ?annotation7 faldo:begin ?pfsb8 ;
    faldo:end ?pfse9 ;
    up:ligand ?ligand10 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb8 faldo:position ?thisPositionOn11 ;
    rdf:type faldo:ExactPosition .
  ?pfse9 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  ?ligand10 rdfs:subClassOf chebi:59789 .
  ?pfs13 up:annotation ?annotation14 .
  ?annotation14 faldo:begin ?pfsb15 ;
    faldo:end ?pfse16 ;
    up:ligand ?ligand17 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb15 faldo:position ?thisPositionOn18 ;
    rdf:type faldo:ExactPosition .
  ?pfse16 faldo:position ?thisPositionOn19 ;
    rdf:type faldo:ExactPosition .
  ?ligand17 rdfs:subClassOf chebi:59789 .
  ?pfs20 up:annotation ?annotation21 .
  ?annotation21 faldo:begin ?pfsb22 ;
    faldo:end ?pfse23 ;
    up:ligand ?ligand24 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb22 faldo:position ?thisPositionOn25 ;
    rdf:type faldo:ExactPosition .
  ?pfse23 faldo:position ?thisPositionOn26 ;
    rdf:type faldo:ExactPosition .
  ?ligand24 rdfs:subClassOf chebi:59789 .
  ?pfs27 up:annotation ?annotation28 .
  ?annotation28 faldo:begin ?pfsb29 ;
    faldo:end ?pfse30 ;
    up:ligand ?ligand31 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb29 faldo:position ?thisPositionOn32 ;
    rdf:type faldo:ExactPosition .
  ?pfse30 faldo:position ?thisPositionOn33 ;
    rdf:type faldo:ExactPosition .
  ?ligand31 rdfs:subClassOf chebi:59789 .
  _:842837 a rdf:Statement ;
    up:attribution _:842820 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:842838 a rdf:Statement ;
    up:attribution _:842821 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:842839 a rdf:Statement ;
    up:attribution _:842822 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:690 .
  _:842840 a rdf:Statement ;
    up:attribution _:842823 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:949 .
  _:842841 a rdf:Statement ;
    up:attribution _:842824 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:808 .
  _:842842 a rdf:Statement ;
    up:attribution _:842825 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:698 .
  _:842843 a rdf:Statement ;
    up:attribution _:842826 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:1904047 .
  _:842844 a rdf:Statement ;
    up:attribution _:842827 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006364 .
  _:842845 a rdf:Statement ;
    up:attribution _:842828 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0000455 .
  _:842846 a rdf:Statement ;
    up:attribution _:842829 ;
    rdf:subject ?case2 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:539 .
  _:842847 a rdf:Statement ;
    up:attribution _:842830 ;
    rdf:subject ?case2 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005634 .
  _:842848 a rdf:Statement ;
    up:attribution _:842831 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:842849 a rdf:Statement ;
    up:attribution _:842832 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:842850 a rdf:Statement ;
    up:source unirule:MF_03146 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:842851 a rdf:Statement ;
    up:attribution _:842833 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:842852 a rdf:Statement ;
    up:source unirule:MF_03146 ;
    rdf:subject ?pfs13 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation14 .
  _:842853 a rdf:Statement ;
    up:attribution _:842834 ;
    rdf:subject ?pfs13 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation14 .
  _:842854 a rdf:Statement ;
    up:source unirule:MF_03146 ;
    rdf:subject ?pfs20 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation21 .
  _:842855 a rdf:Statement ;
    up:attribution _:842835 ;
    rdf:subject ?pfs20 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation21 .
  _:842856 a rdf:Statement ;
    up:source unirule:MF_03146 ;
    rdf:subject ?pfs27 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation28 .
  _:842857 a rdf:Statement ;
    up:attribution _:842836 ;
    rdf:subject ?pfs27 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation28 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_03146
  #Rule MF_03146 Created by:? on:2012-08-22 Modified by:Edouard de Castro on:2024-09-03
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01116 .
  ?thisOrganism rdfs:subClassOf+ taxon:2759 .
  BIND(URI(CONCAT(STR(?this), '#MF_03146a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_03146a1')) AS ?annotation1) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch38 faldo:location ?templateMotifSequenceMatchRegionQ1209439 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ1209441 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ12094MF_0111634 .
    ?templateMotifSequenceMatchRegionQ1209439 faldo:begin ?templateMotifSequenceMatchBeginQ1209440 .
    ?templateMotifSequenceMatchBeginQ1209440 faldo:position ?templateMotifSequenceMatchBeginPositionQ1209435 ;
      faldo:reference isoform:Q12094-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ1209441 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch42 faldo:location ?targetMotifMatchRegionMatch43 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0111645 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ12094MF_0111636 .
    ?targetMotifMatchRegionMatch43 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0111644 .
    ?targetMotifMatchRegionMatchBeginMF_0111644 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0111637 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0111645 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ12094MF_0111634, 1, (STRLEN(?templateMotifCigarQ12094MF_0111634) - STRLEN(REPLACE(?templateMotifCigarQ12094MF_0111634, CONCAT('^(?:-*[^-]){', STR(((62 - ?templateMotifSequenceMatchBeginPositionQ1209435) + 1)), '}'), '')))), '[a-z]', '')) AS ?step146) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ12094MF_0111636, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111636) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111636, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step146), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ12094MF_0111636, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111636) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111636, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step146), '}'), '')))), '[^-]', ''))) AS ?step247) .
    BIND(((?step247 + ?targetMotifMatchRegionMatchBeginPositionMF_0111637) - 1) AS ?thisPositionOn11) .
    BIND(?thisPositionOn11 AS ?thisPositionOn12) .
    BIND(?this AS ?pfs1t48) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn11))) AS ?pfsb8) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn12))) AS ?pfse9) .
    FILTER (REGEX('[ST]', SUBSTR(?thisSequenceValue, ?thisPositionOn11, 1))) .
    BIND(URI(CONCAT(STR(?this), '#MF_03146a7')) AS ?annotation7) .
    BIND(?this AS ?pfs6) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch53 faldo:location ?templateMotifSequenceMatchRegionQ1209454 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ1209456 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ12094MF_0111649 .
    ?templateMotifSequenceMatchRegionQ1209454 faldo:begin ?templateMotifSequenceMatchBeginQ1209455 .
    ?templateMotifSequenceMatchBeginQ1209455 faldo:position ?templateMotifSequenceMatchBeginPositionQ1209450 ;
      faldo:reference isoform:Q12094-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ1209456 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch57 faldo:location ?targetMotifMatchRegionMatch58 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0111660 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ12094MF_0111651 .
    ?targetMotifMatchRegionMatch58 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0111659 .
    ?targetMotifMatchRegionMatchBeginMF_0111659 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0111652 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0111660 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ12094MF_0111649, 1, (STRLEN(?templateMotifCigarQ12094MF_0111649) - STRLEN(REPLACE(?templateMotifCigarQ12094MF_0111649, CONCAT('^(?:-*[^-]){', STR(((110 - ?templateMotifSequenceMatchBeginPositionQ1209450) + 1)), '}'), '')))), '[a-z]', '')) AS ?step161) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ12094MF_0111651, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111651) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111651, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step161), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ12094MF_0111651, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111651) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111651, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step161), '}'), '')))), '[^-]', ''))) AS ?step262) .
    BIND(((?step262 + ?targetMotifMatchRegionMatchBeginPositionMF_0111652) - 1) AS ?thisPositionOn18) .
    BIND(?thisPositionOn18 AS ?thisPositionOn19) .
    BIND(?this AS ?pfs1t63) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn18))) AS ?pfsb15) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn19))) AS ?pfse16) .
    FILTER (REGEX('[VIL]', SUBSTR(?thisSequenceValue, ?thisPositionOn18, 1))) .
    BIND(URI(CONCAT(STR(?this), '#MF_03146a14')) AS ?annotation14) .
    BIND(?this AS ?pfs13) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch68 faldo:location ?templateMotifSequenceMatchRegionQ1209469 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ1209471 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ12094MF_0111664 .
    ?templateMotifSequenceMatchRegionQ1209469 faldo:begin ?templateMotifSequenceMatchBeginQ1209470 .
    ?templateMotifSequenceMatchBeginQ1209470 faldo:position ?templateMotifSequenceMatchBeginPositionQ1209465 ;
      faldo:reference isoform:Q12094-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ1209471 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch72 faldo:location ?targetMotifMatchRegionMatch73 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0111675 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ12094MF_0111666 .
    ?targetMotifMatchRegionMatch73 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0111674 .
    ?targetMotifMatchRegionMatchBeginMF_0111674 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0111667 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0111675 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ12094MF_0111664, 1, (STRLEN(?templateMotifCigarQ12094MF_0111664) - STRLEN(REPLACE(?templateMotifCigarQ12094MF_0111664, CONCAT('^(?:-*[^-]){', STR(((133 - ?templateMotifSequenceMatchBeginPositionQ1209465) + 1)), '}'), '')))), '[a-z]', '')) AS ?step176) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ12094MF_0111666, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111666) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111666, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step176), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ12094MF_0111666, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111666) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111666, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step176), '}'), '')))), '[^-]', ''))) AS ?step277) .
    BIND(((?step277 + ?targetMotifMatchRegionMatchBeginPositionMF_0111667) - 1) AS ?thisPositionOn25) .
    BIND(?thisPositionOn25 AS ?thisPositionOn26) .
    BIND(?this AS ?pfs1t78) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn25))) AS ?pfsb22) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn26))) AS ?pfse23) .
    FILTER (REGEX('[LI]', SUBSTR(?thisSequenceValue, ?thisPositionOn25, 1))) .
    BIND(URI(CONCAT(STR(?this), '#MF_03146a21')) AS ?annotation21) .
    BIND(?this AS ?pfs20) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch83 faldo:location ?templateMotifSequenceMatchRegionQ1209484 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ1209486 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ12094MF_0111679 .
    ?templateMotifSequenceMatchRegionQ1209484 faldo:begin ?templateMotifSequenceMatchBeginQ1209485 .
    ?templateMotifSequenceMatchBeginQ1209485 faldo:position ?templateMotifSequenceMatchBeginPositionQ1209480 ;
      faldo:reference isoform:Q12094-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ1209486 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch87 faldo:location ?targetMotifMatchRegionMatch88 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0111690 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ12094MF_0111681 .
    ?targetMotifMatchRegionMatch88 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0111689 .
    ?targetMotifMatchRegionMatchBeginMF_0111689 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0111682 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0111690 edam:has_input signature:MF_01116 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ12094MF_0111679, 1, (STRLEN(?templateMotifCigarQ12094MF_0111679) - STRLEN(REPLACE(?templateMotifCigarQ12094MF_0111679, CONCAT('^(?:-*[^-]){', STR(((148 - ?templateMotifSequenceMatchBeginPositionQ1209480) + 1)), '}'), '')))), '[a-z]', '')) AS ?step191) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ12094MF_0111681, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111681) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111681, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step191), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ12094MF_0111681, 1, (STRLEN(?targetMotifMatchCigarQ12094MF_0111681) - STRLEN(REPLACE(?targetMotifMatchCigarQ12094MF_0111681, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step191), '}'), '')))), '[^-]', ''))) AS ?step292) .
    BIND(((?step292 + ?targetMotifMatchRegionMatchBeginPositionMF_0111682) - 1) AS ?thisPositionOn32) .
    BIND(?thisPositionOn32 AS ?thisPositionOn33) .
    BIND(?this AS ?pfs1t93) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn32))) AS ?pfsb29) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn33))) AS ?pfse30) .
    FILTER (REGEX('[WY]', SUBSTR(?thisSequenceValue, ?thisPositionOn32, 1))) .
    BIND(URI(CONCAT(STR(?this), '#MF_03146a28')) AS ?annotation28) .
    BIND(?this AS ?pfs27) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:4751 .
    BIND(?this AS ?case2) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:7742 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    VALUES ?supertaxon94 {taxon:7742 taxon:4751}
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ ?supertaxon94 .
    BIND(?this AS ?case4) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon95 {taxon:4751 taxon:7742}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon95 .
    })) .
    BIND(?this AS ?case5) .
  }
}
""" .

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