@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_01527#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_01527#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-69>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-67>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-68>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-59>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-63>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-49>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-53>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-10>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-33>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-61>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-17>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-66>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-54>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-64>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-62>, <http://purl.uniprot.org/unirules/MF_01527#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_01527#construct-template-65>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01527#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01527#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:552199 up:source unirule:MF_01527 .
  _:552200 up:source unirule:MF_01527 .
  _:552201 up:source unirule:MF_01527 .
  _:552202 up:source unirule:MF_01527 .
  _:552203 up:source unirule:MF_01527 .
  _:552204 up:source unirule:MF_01527 .
  _:552205 up:source unirule:MF_01527 .
  _:552206 up:source unirule:MF_01527 .
  _:552207 up:source unirule:MF_01527 .
  _:552208 up:source unirule:MF_01527 .
  _:552209 up:source unirule:MF_01527 .
  _:552210 up:source unirule:MF_01527 .
  _:552211 up:source unirule:MF_01527 .
  _:552212 up:source unirule:MF_01527 .
  ?this up:annotation ?annotation0 ;
    up:classifiedWith keyword:378 .
  ?annotation0 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the GTP cyclohydrolase IV family.' .
  ?case1 up:alternativeName ?name3 ;
    up:classifiedWith GO:0005506 ,
      GO:0044682 ,
      GO:2001118 ,
      keyword:408 ,
      keyword:479 ;
    up:recommendedName ?name2 .
  ?name2 up:ecName '3.5.4.39' ;
    up:fullName 'GTP cyclohydrolase MptA' ;
    rdf:type up:Structured_Name .
  ?name3 up:fullName 'GTP cyclohydrolase IV' ;
    rdf:type up:Structured_Name .
  ?case4 up:classifiedWith GO:0003934 ,
      GO:0046654 ;
    up:recommendedName ?name5 .
  ?name5 up:ecName '3.5.4.16' ;
    up:fullName 'GTP cyclohydrolase FolE2' ;
    rdf:type up:Structured_Name .
  ?pfs6 up:annotation ?annotation7 .
  ?annotation7 faldo:begin ?pfsb8 ;
    faldo:end ?pfse9 ;
    rdf:type up:Site_Annotation ;
    rdfs:comment 'May be catalytically important' .
  ?pfsb8 faldo:position ?thisPositionOn10 ;
    rdf:type faldo:ExactPosition .
  ?pfse9 faldo:position ?thisPositionOn11 ;
    rdf:type faldo:ExactPosition .
  ?pfs12 up:annotation ?annotation13 .
  ?annotation13 faldo:begin ?pfsb14 ;
    faldo:end ?pfse15 ;
    rdf:type up:Site_Annotation ;
    rdfs:comment 'May be catalytically important' .
  ?pfsb14 faldo:position ?thisPositionOn16 ;
    rdf:type faldo:ExactPosition .
  ?pfse15 faldo:position ?thisPositionOn17 ;
    rdf:type faldo:ExactPosition .
  _:552213 a rdf:Statement ;
    up:attribution _:552199 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:552214 a rdf:Statement ;
    up:attribution _:552200 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:378 .
  _:552215 a rdf:Statement ;
    up:attribution _:552201 ;
    rdf:subject ?case1 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name2 .
  _:552216 a rdf:Statement ;
    up:attribution _:552202 ;
    rdf:subject ?case1 ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name3 .
  _:552217 a rdf:Statement ;
    up:attribution _:552203 ;
    rdf:subject ?case1 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:408 .
  _:552218 a rdf:Statement ;
    up:attribution _:552204 ;
    rdf:subject ?case1 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:479 .
  _:552219 a rdf:Statement ;
    up:attribution _:552205 ;
    rdf:subject ?case1 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0044682 .
  _:552220 a rdf:Statement ;
    up:attribution _:552206 ;
    rdf:subject ?case1 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005506 .
  _:552221 a rdf:Statement ;
    up:attribution _:552207 ;
    rdf:subject ?case1 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:2001118 .
  _:552222 a rdf:Statement ;
    up:attribution _:552208 ;
    rdf:subject ?case4 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name5 .
  _:552223 a rdf:Statement ;
    up:attribution _:552209 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0003934 .
  _:552224 a rdf:Statement ;
    up:attribution _:552210 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0046654 .
  _:552225 a rdf:Statement ;
    up:source unirule:MF_01527 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:552226 a rdf:Statement ;
    up:attribution _:552211 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:552227 a rdf:Statement ;
    up:source unirule:MF_01527 ;
    rdf:subject ?pfs12 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation13 .
  _:552228 a rdf:Statement ;
    up:attribution _:552212 ;
    rdf:subject ?pfs12 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation13 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01527
  #Rule MF_01527 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2024-09-03
  {
    ?this up:organism ?thisOrganism ;
      rdfs:seeAlso signature:MF_01527_B .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
  } UNION {
    ?this up:organism ?thisOrganism ;
      rdfs:seeAlso signature:MF_01527_A .
    ?thisOrganism rdfs:subClassOf+ taxon:2157 .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01527a0')) AS ?annotation0) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch22 faldo:location ?templateMotifSequenceMatchRegionP9439823 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP9439825 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP94398MF_01527_B18 .
    ?templateMotifSequenceMatchRegionP9439823 faldo:begin ?templateMotifSequenceMatchBeginP9439824 .
    ?templateMotifSequenceMatchBeginP9439824 faldo:position ?templateMotifSequenceMatchBeginPositionP9439819 ;
      faldo:reference isoform:P94398-1 .
    ?templateMotifSequenceProfileAlignmentOperationP9439825 edam:has_input signature:MF_01527_B ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch26 faldo:location ?targetMotifMatchRegionMatch27 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_01527_B29 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP94398MF_01527_B20 .
    ?targetMotifMatchRegionMatch27 faldo:begin ?targetMotifMatchRegionMatchBeginMF_01527_B28 .
    ?targetMotifMatchRegionMatchBeginMF_01527_B28 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_01527_B21 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_01527_B29 edam:has_input signature:MF_01527_B ;
      rdf:type edam:operation_0300 .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP94398MF_01527_B18, 1, (STRLEN(?templateMotifCigarP94398MF_01527_B18) - STRLEN(REPLACE(?templateMotifCigarP94398MF_01527_B18, CONCAT('^(?:-*[^-]){', STR(((183 - ?templateMotifSequenceMatchBeginPositionP9439819) + 1)), '}'), '')))), '[a-z]', '')) AS ?step130) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP94398MF_01527_B20, 1, (STRLEN(?targetMotifMatchCigarP94398MF_01527_B20) - STRLEN(REPLACE(?targetMotifMatchCigarP94398MF_01527_B20, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step130), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP94398MF_01527_B20, 1, (STRLEN(?targetMotifMatchCigarP94398MF_01527_B20) - STRLEN(REPLACE(?targetMotifMatchCigarP94398MF_01527_B20, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step130), '}'), '')))), '[^-]', ''))) AS ?step231) .
    BIND(((?step231 + ?targetMotifMatchRegionMatchBeginPositionMF_01527_B21) - 1) AS ?thisPositionOn10) .
    BIND(?thisPositionOn10 AS ?thisPositionOn11) .
    BIND(?this AS ?pfs1t32) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn10))) AS ?pfsb8) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn11))) AS ?pfse9) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn10, 1) = 'C')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01527a7')) AS ?annotation7) .
    BIND(?this AS ?pfs6) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch37 faldo:location ?templateMotifSequenceMatchRegionQ5818538 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ5818540 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ58185MF_01527_A33 .
    ?templateMotifSequenceMatchRegionQ5818538 faldo:begin ?templateMotifSequenceMatchBeginQ5818539 .
    ?templateMotifSequenceMatchBeginQ5818539 faldo:position ?templateMotifSequenceMatchBeginPositionQ5818534 ;
      faldo:reference isoform:Q58185-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ5818540 edam:has_input signature:MF_01527_A ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch41 faldo:location ?targetMotifMatchRegionMatch42 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_01527_A44 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ58185MF_01527_A35 .
    ?targetMotifMatchRegionMatch42 faldo:begin ?targetMotifMatchRegionMatchBeginMF_01527_A43 .
    ?targetMotifMatchRegionMatchBeginMF_01527_A43 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_01527_A36 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_01527_A44 edam:has_input signature:MF_01527_A ;
      rdf:type edam:operation_0300 .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2157 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ58185MF_01527_A33, 1, (STRLEN(?templateMotifCigarQ58185MF_01527_A33) - STRLEN(REPLACE(?templateMotifCigarQ58185MF_01527_A33, CONCAT('^(?:-*[^-]){', STR(((160 - ?templateMotifSequenceMatchBeginPositionQ5818534) + 1)), '}'), '')))), '[a-z]', '')) AS ?step145) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ58185MF_01527_A35, 1, (STRLEN(?targetMotifMatchCigarQ58185MF_01527_A35) - STRLEN(REPLACE(?targetMotifMatchCigarQ58185MF_01527_A35, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step145), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ58185MF_01527_A35, 1, (STRLEN(?targetMotifMatchCigarQ58185MF_01527_A35) - STRLEN(REPLACE(?targetMotifMatchCigarQ58185MF_01527_A35, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step145), '}'), '')))), '[^-]', ''))) AS ?step246) .
    BIND(((?step246 + ?targetMotifMatchRegionMatchBeginPositionMF_01527_A36) - 1) AS ?thisPositionOn16) .
    BIND(?thisPositionOn16 AS ?thisPositionOn17) .
    BIND(?this AS ?pfs2t47) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn16))) AS ?pfsb14) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn17))) AS ?pfse15) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn16, 1) = 'C')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01527a13')) AS ?annotation13) .
    BIND(?this AS ?pfs12) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2157 .
    BIND(?this AS ?case1) .
    BIND(URI(CONCAT(STR(?this), '#MF_01527a2')) AS ?name2) .
    BIND(URI(CONCAT(STR(?this), '#MF_01527a3')) AS ?name3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
    BIND(?this AS ?case4) .
    BIND(URI(CONCAT(STR(?this), '#MF_01527a5')) AS ?name5) .
  }
}
""" .

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