@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_01675#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_01675#construct-template-81>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-64>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-65>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-84>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-76>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-66>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-73>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-90>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-41>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-79>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-80>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-78>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-92>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-62>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-95>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-91>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-70>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-94>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-49>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-93>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-82>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-72>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-96>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-40>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-74>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-98>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-97>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-56>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-89>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-59>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-101>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-99>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-44>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-68>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-87>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-100>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-48>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-61>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-85>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-77>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-83>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01675#construct-template-86>,
    <http://purl.uniprot.org/unirules/MF_01675#construct-template-88>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01675#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01675#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:611416 up:source unirule:MF_01675 .
  _:611417 up:source unirule:MF_01675 .
  _:611418 up:source unirule:MF_01675 .
  _:611419 up:source unirule:MF_01675 .
  _:611420 up:source unirule:MF_01675 .
  _:611421 up:source unirule:MF_01675 .
  _:611422 up:source unirule:MF_01675 .
  _:611423 up:source unirule:MF_01675 .
  _:611424 up:source unirule:MF_01675 .
  _:611425 up:source unirule:MF_01675 .
  _:611426 up:source unirule:MF_01675 .
  _:611427 up:source unirule:MF_01675 .
  _:611428 up:source unirule:MF_01675 .
  _:611429 up:source unirule:MF_01675 .
  _:611430 up:source unirule:MF_01675 .
  ?this up:alternativeName ?name1 ;
    up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation5 ,
      ?annotation6 ,
      ?annotation7 ;
    up:classifiedWith GO:0043766 ,
      keyword:648 ,
      keyword:663 ,
      keyword:808 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '2.5.1.73' ;
    up:fullName 'O-phospho-L-seryl-tRNA:Cys-tRNA synthase' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'Sep-tRNA:Cys-tRNA synthase' ;
    up:shortName 'SepCysS' ;
    rdf:type up:Structured_Name .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Converts O-phospho-L-seryl-tRNA(Cys) (Sep-tRNA(Cys)) to L-cysteinyl-tRNA(Cys) (Cys-tRNA(Cys)).' .
  ?annotation3 up:activity ?activity4 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity4 up:catalyticActivity <http://rdf.rhea-db.org/25686>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/2.5.1.73>.
  ?annotation5 up:cofactor chebi:597326 ;
    rdf:type up:Cofactor_Annotation .
  ?annotation6 a up:Subunit_Annotation ;
    rdfs:comment 'Homodimer. Interacts with SepRS.' .
  ?annotation7 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the SepCysS family.' .
  ?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:597326 .
  ?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:597326 .
  ?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:597326 .
  ?pfs29 up:annotation ?annotation30 .
  ?annotation30 faldo:begin ?pfsb31 ;
    faldo:end ?pfse32 ;
    rdf:type up:Modified_Residue_Annotation ;
    rdfs:comment 'N6-(pyridoxal phosphate)lysine' .
  ?pfsb31 faldo:position ?thisPositionOn33 ;
    rdf:type faldo:ExactPosition .
  ?pfse32 faldo:position ?thisPositionOn34 ;
    rdf:type faldo:ExactPosition .
  _:611431 a rdf:Statement ;
    up:attribution _:611416 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:611432 a rdf:Statement ;
    up:attribution _:611417 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:611433 a rdf:Statement ;
    up:attribution _:611418 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:611434 a rdf:Statement ;
    up:attribution _:611419 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:611435 a rdf:Statement ;
    up:attribution _:611420 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:611436 a rdf:Statement ;
    up:attribution _:611421 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:611437 a rdf:Statement ;
    up:attribution _:611422 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:611438 a rdf:Statement ;
    up:attribution _:611423 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:648 .
  _:611439 a rdf:Statement ;
    up:attribution _:611424 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:663 .
  _:611440 a rdf:Statement ;
    up:attribution _:611425 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:808 .
  _:611441 a rdf:Statement ;
    up:attribution _:611426 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0043766 .
  _:611442 a rdf:Statement ;
    up:source unirule:MF_01675 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:611443 a rdf:Statement ;
    up:attribution _:611427 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:611444 a rdf:Statement ;
    up:source unirule:MF_01675 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:611445 a rdf:Statement ;
    up:attribution _:611428 ;
    rdf:subject ?pfs15 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation16 .
  _:611446 a rdf:Statement ;
    up:source unirule:MF_01675 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:611447 a rdf:Statement ;
    up:attribution _:611429 ;
    rdf:subject ?pfs22 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation23 .
  _:611448 a rdf:Statement ;
    up:source unirule:MF_01675 ;
    rdf:subject ?pfs29 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation30 .
  _:611449 a rdf:Statement ;
    up:attribution _:611430 ;
    rdf:subject ?pfs29 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation30 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01675
  #Rule MF_01675 Created by:? on:2008-10-07 Modified by:Edouard de Castro on:2024-09-03
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01675 .
  ?thisOrganism rdfs:subClassOf+ taxon:2157 .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a6')) AS ?annotation6) .
  BIND(URI(CONCAT(STR(?this), '#MF_01675a7')) AS ?annotation7) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch39 faldo:location ?templateMotifSequenceMatchRegionO3020740 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationO3020742 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarO30207MF_0167535 .
    ?templateMotifSequenceMatchRegionO3020740 faldo:begin ?templateMotifSequenceMatchBeginO3020741 .
    ?templateMotifSequenceMatchBeginO3020741 faldo:position ?templateMotifSequenceMatchBeginPositionO3020736 ;
      faldo:reference isoform:O30207-1 .
    ?templateMotifSequenceProfileAlignmentOperationO3020742 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch43 faldo:location ?targetMotifMatchRegionMatch44 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0167546 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarO30207MF_0167537 .
    ?targetMotifMatchRegionMatch44 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0167545 .
    ?targetMotifMatchRegionMatchBeginMF_0167545 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0167538 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0167546 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarO30207MF_0167535, 1, (STRLEN(?templateMotifCigarO30207MF_0167535) - STRLEN(REPLACE(?templateMotifCigarO30207MF_0167535, CONCAT('^(?:-*[^-]){', STR(((78 - ?templateMotifSequenceMatchBeginPositionO3020736) + 1)), '}'), '')))), '[a-z]', '')) AS ?step147) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarO30207MF_0167537, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167537) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167537, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step147), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarO30207MF_0167537, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167537) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167537, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step147), '}'), '')))), '[^-]', ''))) AS ?step248) .
    BIND(((?step248 + ?targetMotifMatchRegionMatchBeginPositionMF_0167538) - 1) AS ?thisPositionOn13) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarO30207MF_0167535, 1, (STRLEN(?templateMotifCigarO30207MF_0167535) - STRLEN(REPLACE(?templateMotifCigarO30207MF_0167535, CONCAT('^(?:-*[^-]){', STR(((79 - ?templateMotifSequenceMatchBeginPositionO3020736) + 1)), '}'), '')))), '[a-z]', '')) AS ?step149) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarO30207MF_0167537, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167537) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167537, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step149), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarO30207MF_0167537, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167537) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167537, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step149), '}'), '')))), '[^-]', ''))) AS ?step250) .
    BIND(((?step250 + ?targetMotifMatchRegionMatchBeginPositionMF_0167538) - 1) AS ?thisPositionOn14) .
    BIND(?this AS ?pfs1t51) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfsb10) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn14))) AS ?pfse11) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn13, (?thisPositionOn14 - ?thisPositionOn13)) = 'AR')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01675a9')) AS ?annotation9) .
    BIND(?this AS ?pfs8) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch56 faldo:location ?templateMotifSequenceMatchRegionO3020757 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationO3020759 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarO30207MF_0167552 .
    ?templateMotifSequenceMatchRegionO3020757 faldo:begin ?templateMotifSequenceMatchBeginO3020758 .
    ?templateMotifSequenceMatchBeginO3020758 faldo:position ?templateMotifSequenceMatchBeginPositionO3020753 ;
      faldo:reference isoform:O30207-1 .
    ?templateMotifSequenceProfileAlignmentOperationO3020759 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch60 faldo:location ?targetMotifMatchRegionMatch61 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0167563 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarO30207MF_0167554 .
    ?targetMotifMatchRegionMatch61 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0167562 .
    ?targetMotifMatchRegionMatchBeginMF_0167562 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0167555 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0167563 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarO30207MF_0167552, 1, (STRLEN(?templateMotifCigarO30207MF_0167552) - STRLEN(REPLACE(?templateMotifCigarO30207MF_0167552, CONCAT('^(?:-*[^-]){', STR(((206 - ?templateMotifSequenceMatchBeginPositionO3020753) + 1)), '}'), '')))), '[a-z]', '')) AS ?step164) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarO30207MF_0167554, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167554) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167554, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step164), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarO30207MF_0167554, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167554) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167554, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step164), '}'), '')))), '[^-]', ''))) AS ?step265) .
    BIND(((?step265 + ?targetMotifMatchRegionMatchBeginPositionMF_0167555) - 1) AS ?thisPositionOn20) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarO30207MF_0167552, 1, (STRLEN(?templateMotifCigarO30207MF_0167552) - STRLEN(REPLACE(?templateMotifCigarO30207MF_0167552, CONCAT('^(?:-*[^-]){', STR(((208 - ?templateMotifSequenceMatchBeginPositionO3020753) + 1)), '}'), '')))), '[a-z]', '')) AS ?step166) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarO30207MF_0167554, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167554) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167554, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step166), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarO30207MF_0167554, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167554) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167554, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step166), '}'), '')))), '[^-]', ''))) AS ?step267) .
    BIND(((?step267 + ?targetMotifMatchRegionMatchBeginPositionMF_0167555) - 1) AS ?thisPositionOn21) .
    BIND(?this AS ?pfs1t68) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn20))) AS ?pfsb17) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn21))) AS ?pfse18) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn20, (?thisPositionOn21 - ?thisPositionOn20)) = 'SGH')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01675a16')) AS ?annotation16) .
    BIND(?this AS ?pfs15) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch73 faldo:location ?templateMotifSequenceMatchRegionO3020774 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationO3020776 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarO30207MF_0167569 .
    ?templateMotifSequenceMatchRegionO3020774 faldo:begin ?templateMotifSequenceMatchBeginO3020775 .
    ?templateMotifSequenceMatchBeginO3020775 faldo:position ?templateMotifSequenceMatchBeginPositionO3020770 ;
      faldo:reference isoform:O30207-1 .
    ?templateMotifSequenceProfileAlignmentOperationO3020776 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch77 faldo:location ?targetMotifMatchRegionMatch78 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0167580 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarO30207MF_0167571 .
    ?targetMotifMatchRegionMatch78 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0167579 .
    ?targetMotifMatchRegionMatchBeginMF_0167579 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0167572 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0167580 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarO30207MF_0167569, 1, (STRLEN(?templateMotifCigarO30207MF_0167569) - STRLEN(REPLACE(?templateMotifCigarO30207MF_0167569, CONCAT('^(?:-*[^-]){', STR(((183 - ?templateMotifSequenceMatchBeginPositionO3020770) + 1)), '}'), '')))), '[a-z]', '')) AS ?step181) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarO30207MF_0167571, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167571) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167571, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step181), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarO30207MF_0167571, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167571) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167571, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step181), '}'), '')))), '[^-]', ''))) AS ?step282) .
    BIND(((?step282 + ?targetMotifMatchRegionMatchBeginPositionMF_0167572) - 1) AS ?thisPositionOn27) .
    BIND(?thisPositionOn27 AS ?thisPositionOn28) .
    BIND(?this AS ?pfs1t83) .
    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) = 'N')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01675a23')) AS ?annotation23) .
    BIND(?this AS ?pfs22) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch88 faldo:location ?templateMotifSequenceMatchRegionO3020789 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationO3020791 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarO30207MF_0167584 .
    ?templateMotifSequenceMatchRegionO3020789 faldo:begin ?templateMotifSequenceMatchBeginO3020790 .
    ?templateMotifSequenceMatchBeginO3020790 faldo:position ?templateMotifSequenceMatchBeginPositionO3020785 ;
      faldo:reference isoform:O30207-1 .
    ?templateMotifSequenceProfileAlignmentOperationO3020791 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch92 faldo:location ?targetMotifMatchRegionMatch93 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0167595 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarO30207MF_0167586 .
    ?targetMotifMatchRegionMatch93 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0167594 .
    ?targetMotifMatchRegionMatchBeginMF_0167594 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0167587 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0167595 edam:has_input signature:MF_01675 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarO30207MF_0167584, 1, (STRLEN(?templateMotifCigarO30207MF_0167584) - STRLEN(REPLACE(?templateMotifCigarO30207MF_0167584, CONCAT('^(?:-*[^-]){', STR(((209 - ?templateMotifSequenceMatchBeginPositionO3020785) + 1)), '}'), '')))), '[a-z]', '')) AS ?step196) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarO30207MF_0167586, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167586) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167586, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step196), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarO30207MF_0167586, 1, (STRLEN(?targetMotifMatchCigarO30207MF_0167586) - STRLEN(REPLACE(?targetMotifMatchCigarO30207MF_0167586, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step196), '}'), '')))), '[^-]', ''))) AS ?step297) .
    BIND(((?step297 + ?targetMotifMatchRegionMatchBeginPositionMF_0167587) - 1) AS ?thisPositionOn33) .
    BIND(?thisPositionOn33 AS ?thisPositionOn34) .
    BIND(?this AS ?pfs1t98) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn33))) AS ?pfsb31) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn34))) AS ?pfse32) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn33, 1) = 'K')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01675a30')) AS ?annotation30) .
    BIND(?this AS ?pfs29) .
  }
}
""" .

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