@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_01482#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_01482#construct-template-87>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-88>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-53>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-77>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-59>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-73>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-54>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-78>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-86>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-50>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-76>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-72>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-63>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-22>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-74>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-69>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-70>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-94>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-44>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-95>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-92>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-93>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-84>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-90>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-91>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-33>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-41>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-60>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-64>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-55>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-81>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-66>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-65>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-48>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-89>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-85>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-82>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-83>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-80>, <http://purl.uniprot.org/unirules/MF_01482#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01482#construct-template-79>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01482#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01482#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:536887 up:source unirule:MF_01482 .
  _:536888 up:source unirule:MF_01482 .
  _:536889 up:source unirule:MF_01482 .
  _:536890 up:source unirule:MF_01482 .
  _:536891 up:source unirule:MF_01482 .
  _:536892 up:source unirule:MF_01482 .
  _:536893 up:source unirule:MF_01482 .
  _:536894 up:source unirule:MF_01482 .
  _:536895 up:source unirule:MF_01482 .
  _:536896 up:source unirule:MF_01482 .
  _:536897 up:source unirule:MF_01482 .
  _:536898 up:source unirule:MF_01482 .
  _:536899 up:source unirule:MF_01482 .
  _:536900 up:source unirule:MF_01482 .
  _:536901 up:source unirule:MF_01482 .
  _:536902 up:source unirule:MF_01482 .
  _:536903 up:source unirule:MF_01482 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation5 ,
      ?annotation6 ,
      ?annotation7 ;
    up:classifiedWith GO:0008270 ,
      GO:0010126 ,
      GO:0010127 ,
      keyword:216 ,
      keyword:378 ,
      keyword:408 ,
      keyword:479 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '3.5.1.115' ;
    up:fullName 'Mycothiol S-conjugate amidase' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'mca' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'A mycothiol (MSH, N-acetylcysteinyl-glucosaminyl-inositol) S-conjugate amidase, it recycles conjugated MSH to the N-acetyl cysteine conjugate (AcCys S-conjugate, a mercapturic acid) and the MSH precursor. Involved in MSH-dependent detoxification of a number of alkylating agents and antibiotics.' .
  ?annotation3 up:activity ?activity4 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity4 up:catalyticActivity <http://rdf.rhea-db.org/36543>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/3.5.1.115>.
  ?annotation5 up:cofactor chebi:29033 ;
    rdf:type up:Cofactor_Annotation .
  ?annotation6 a up:Subunit_Annotation ;
    rdfs:comment 'Monomer.' .
  ?annotation7 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the MshB deacetylase family. Mca 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:29033 .
  ?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:29033 .
  ?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:29033 .
  _:536904 a rdf:Statement ;
    up:attribution _:536887 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:536905 a rdf:Statement ;
    up:attribution _:536888 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:536906 a rdf:Statement ;
    up:attribution _:536889 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:536907 a rdf:Statement ;
    up:attribution _:536890 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:536908 a rdf:Statement ;
    up:attribution _:536891 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:536909 a rdf:Statement ;
    up:attribution _:536892 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:536910 a rdf:Statement ;
    up:attribution _:536893 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:536911 a rdf:Statement ;
    up:attribution _:536894 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0008270 .
  _:536912 a rdf:Statement ;
    up:attribution _:536895 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0010126 .
  _:536913 a rdf:Statement ;
    up:attribution _:536896 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0010127 .
  _:536914 a rdf:Statement ;
    up:attribution _:536897 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:378 .
  _:536915 a rdf:Statement ;
    up:attribution _:536898 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:479 .
  _:536916 a rdf:Statement ;
    up:attribution _:536899 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:408 .
  _:536917 a rdf:Statement ;
    up:attribution _:536900 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:216 .
  _:536918 a rdf:Statement ;
    up:source unirule:MF_01482 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:536919 a rdf:Statement ;
    up:attribution _:536901 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:536920 a rdf:Statement ;
    up:source unirule:MF_01482 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:536921 a rdf:Statement ;
    up:attribution _:536902 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:536922 a rdf:Statement ;
    up:source unirule:MF_01482 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:536923 a rdf:Statement ;
    up:attribution _:536903 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01482
  #Rule MF_01482 Created by:? on:2013-06-13 Modified by:Elisabeth Coudert on:2025-06-10
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01482 .
  ?thisOrganism rdfs:subClassOf+ taxon:201174 .
  BIND(URI(CONCAT(STR(?this), '#MF_01482a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01482a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01482a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01482a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_01482a6')) AS ?annotation6) .
  BIND(URI(CONCAT(STR(?this), '#MF_01482a7')) AS ?annotation7) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch33 faldo:location ?templateMotifSequenceMatchRegionP9WJN134 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP9WJN136 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP9WJN1MF_0148229 .
    ?templateMotifSequenceMatchRegionP9WJN134 faldo:begin ?templateMotifSequenceMatchBeginP9WJN135 .
    ?templateMotifSequenceMatchBeginP9WJN135 faldo:position ?templateMotifSequenceMatchBeginPositionP9WJN130 ;
      faldo:reference isoform:P9WJN1-1 .
    ?templateMotifSequenceProfileAlignmentOperationP9WJN136 edam:has_input signature:MF_01482 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch37 faldo:location ?targetMotifMatchRegionMatch38 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0148240 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP9WJN1MF_0148231 .
    ?targetMotifMatchRegionMatch38 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0148239 .
    ?targetMotifMatchRegionMatchBeginMF_0148239 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0148232 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0148240 edam:has_input signature:MF_01482 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP9WJN1MF_0148229, 1, (STRLEN(?templateMotifCigarP9WJN1MF_0148229) - STRLEN(REPLACE(?templateMotifCigarP9WJN1MF_0148229, CONCAT('^(?:-*[^-]){', STR(((12 - ?templateMotifSequenceMatchBeginPositionP9WJN130) + 1)), '}'), '')))), '[a-z]', '')) AS ?step141) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP9WJN1MF_0148231, 1, (STRLEN(?targetMotifMatchCigarP9WJN1MF_0148231) - STRLEN(REPLACE(?targetMotifMatchCigarP9WJN1MF_0148231, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step141), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP9WJN1MF_0148231, 1, (STRLEN(?targetMotifMatchCigarP9WJN1MF_0148231) - STRLEN(REPLACE(?targetMotifMatchCigarP9WJN1MF_0148231, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step141), '}'), '')))), '[^-]', ''))) AS ?step242) .
    BIND(((?step242 + ?targetMotifMatchRegionMatchBeginPositionMF_0148232) - 1) AS ?thisPositionOn13) .
    BIND(?thisPositionOn13 AS ?thisPositionOn14) .
    BIND(?this AS ?pfs1t43) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfsb10) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn14))) AS ?pfse11) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn13, 1) = 'H')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01482a9')) AS ?annotation9) .
    BIND(?this AS ?pfs8) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch48 faldo:location ?templateMotifSequenceMatchRegionP9WJN149 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP9WJN151 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP9WJN1MF_0148244 .
    ?templateMotifSequenceMatchRegionP9WJN149 faldo:begin ?templateMotifSequenceMatchBeginP9WJN150 .
    ?templateMotifSequenceMatchBeginP9WJN150 faldo:position ?templateMotifSequenceMatchBeginPositionP9WJN145 ;
      faldo:reference isoform:P9WJN1-1 .
    ?templateMotifSequenceProfileAlignmentOperationP9WJN151 edam:has_input signature:MF_01482 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch52 faldo:location ?targetMotifMatchRegionMatch53 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0148255 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP9WJN1MF_0148246 .
    ?targetMotifMatchRegionMatch53 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0148254 .
    ?targetMotifMatchRegionMatchBeginMF_0148254 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0148247 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0148255 edam:has_input signature:MF_01482 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP9WJN1MF_0148244, 1, (STRLEN(?templateMotifCigarP9WJN1MF_0148244) - STRLEN(REPLACE(?templateMotifCigarP9WJN1MF_0148244, CONCAT('^(?:-*[^-]){', STR(((15 - ?templateMotifSequenceMatchBeginPositionP9WJN145) + 1)), '}'), '')))), '[a-z]', '')) AS ?step156) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP9WJN1MF_0148246, 1, (STRLEN(?targetMotifMatchCigarP9WJN1MF_0148246) - STRLEN(REPLACE(?targetMotifMatchCigarP9WJN1MF_0148246, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step156), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP9WJN1MF_0148246, 1, (STRLEN(?targetMotifMatchCigarP9WJN1MF_0148246) - STRLEN(REPLACE(?targetMotifMatchCigarP9WJN1MF_0148246, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step156), '}'), '')))), '[^-]', ''))) AS ?step257) .
    BIND(((?step257 + ?targetMotifMatchRegionMatchBeginPositionMF_0148247) - 1) AS ?thisPositionOn20) .
    BIND(?thisPositionOn20 AS ?thisPositionOn21) .
    BIND(?this AS ?pfs1t58) .
    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) = 'D')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01482a16')) AS ?annotation16) .
    BIND(?this AS ?pfs15) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch63 faldo:location ?templateMotifSequenceMatchRegionP9WJN164 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP9WJN166 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP9WJN1MF_0148259 .
    ?templateMotifSequenceMatchRegionP9WJN164 faldo:begin ?templateMotifSequenceMatchBeginP9WJN165 .
    ?templateMotifSequenceMatchBeginP9WJN165 faldo:position ?templateMotifSequenceMatchBeginPositionP9WJN160 ;
      faldo:reference isoform:P9WJN1-1 .
    ?templateMotifSequenceProfileAlignmentOperationP9WJN166 edam:has_input signature:MF_01482 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch67 faldo:location ?targetMotifMatchRegionMatch68 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0148270 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP9WJN1MF_0148261 .
    ?targetMotifMatchRegionMatch68 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0148269 .
    ?targetMotifMatchRegionMatchBeginMF_0148269 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0148262 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0148270 edam:has_input signature:MF_01482 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP9WJN1MF_0148259, 1, (STRLEN(?templateMotifCigarP9WJN1MF_0148259) - STRLEN(REPLACE(?templateMotifCigarP9WJN1MF_0148259, CONCAT('^(?:-*[^-]){', STR(((142 - ?templateMotifSequenceMatchBeginPositionP9WJN160) + 1)), '}'), '')))), '[a-z]', '')) AS ?step171) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP9WJN1MF_0148261, 1, (STRLEN(?targetMotifMatchCigarP9WJN1MF_0148261) - STRLEN(REPLACE(?targetMotifMatchCigarP9WJN1MF_0148261, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step171), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP9WJN1MF_0148261, 1, (STRLEN(?targetMotifMatchCigarP9WJN1MF_0148261) - STRLEN(REPLACE(?targetMotifMatchCigarP9WJN1MF_0148261, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step171), '}'), '')))), '[^-]', ''))) AS ?step272) .
    BIND(((?step272 + ?targetMotifMatchRegionMatchBeginPositionMF_0148262) - 1) AS ?thisPositionOn27) .
    BIND(?thisPositionOn27 AS ?thisPositionOn28) .
    BIND(?this AS ?pfs1t73) .
    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) = 'H')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01482a23')) AS ?annotation23) .
    BIND(?this AS ?pfs22) .
  }
}
""" .

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