@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_00078#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_00078#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-45>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-5>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-46>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-58>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-34>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-44>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-25>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-26>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-4>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-48>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-16>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-18>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-56>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-32>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-33>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-40>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-36>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-7>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-53>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-9>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-39>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-8>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-51>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-37>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-13>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-55>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-50>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00078#construct-template-54>, <http://purl.uniprot.org/unirules/MF_00078#construct-template-52>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00078#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00078#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:30363 up:source unirule:MF_00078 .
  _:30364 up:source unirule:MF_00078 .
  _:30365 up:source unirule:MF_00078 .
  _:30366 up:source unirule:MF_00078 .
  _:30367 up:source unirule:MF_00078 .
  _:30368 up:source unirule:MF_00078 .
  _:30369 up:source unirule:MF_00078 .
  _:30370 up:source unirule:MF_00078 .
  _:30371 up:source unirule:MF_00078 .
  _:30372 up:source unirule:MF_00078 .
  _:30373 up:source unirule:MF_00078 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ,
      ?annotation4 ,
      ?annotation5 ,
      ?annotation6 ;
    up:classifiedWith GO:0016836 ,
      GO:0019287 ,
      keyword:414 ,
      keyword:456 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '4.2.1.182' ;
    up:fullName 'Phosphomevalonate dehydratase small subunit' ;
    up:shortName 'PMDh small subunit' ,
      'PMDh-S' ;
    rdf:type up:Structured_Name .
  ?annotation1 a up:Function_Annotation ;
    rdfs:comment 'Component of a hydro-lyase that catalyzes the dehydration of mevalonate 5-phosphate (MVA5P) to form trans-anhydromevalonate 5-phosphate (tAHMP). Involved in the archaeal mevalonate (MVA) pathway, which provides fundamental precursors for isoprenoid biosynthesis, such as isopentenyl diphosphate (IPP) and dimethylallyl diphosphate (DMAPP).' .
  ?annotation2 up:activity ?activity3 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity3 up:catalyticActivity <http://rdf.rhea-db.org/78975>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/4.2.1.182>.
  ?annotation4 a up:Pathway_Annotation ;
    rdfs:comment 'Isoprenoid biosynthesis; isopentenyl diphosphate biosynthesis via mevalonate pathway.' .
  ?annotation5 a up:Subunit_Annotation ;
    rdfs:comment 'Heterodimer composed of a large subunit (PMDh-L) and a small subunit (PMDh-S).' .
  ?annotation6 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the AcnX type II small subunit family.' .
  ?pfs7 up:annotation ?annotation8 .
  ?annotation8 faldo:begin ?pfsb9 ;
    faldo:end ?pfse10 ;
    rdf:type up:Active_Site_Annotation ;
    rdfs:comment 'Proton acceptor' .
  ?pfsb9 faldo:position ?thisPositionOn11 ;
    rdf:type faldo:ExactPosition .
  ?pfse10 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  _:30374 a rdf:Statement ;
    up:attribution _:30363 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:30375 a rdf:Statement ;
    up:attribution _:30364 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:30376 a rdf:Statement ;
    up:attribution _:30365 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:30377 a rdf:Statement ;
    up:attribution _:30366 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:30378 a rdf:Statement ;
    up:attribution _:30367 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:30379 a rdf:Statement ;
    up:attribution _:30368 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:30380 a rdf:Statement ;
    up:attribution _:30369 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:414 .
  _:30381 a rdf:Statement ;
    up:attribution _:30370 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:456 .
  _:30382 a rdf:Statement ;
    up:attribution _:30371 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0016836 .
  _:30383 a rdf:Statement ;
    up:attribution _:30372 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019287 .
  _:30384 a rdf:Statement ;
    up:source unirule:MF_00078 ;
    rdf:subject ?pfs7 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation8 .
  _:30385 a rdf:Statement ;
    up:attribution _:30373 ;
    rdf:subject ?pfs7 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation8 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00078
  #Rule MF_00078 Created by:? on:2005-02-28 Modified by:Catherine Rivoire on:2024-05-22
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00078 .
  ?thisOrganism rdfs:subClassOf+ taxon:2157 .
  BIND(URI(CONCAT(STR(?this), '#MF_00078a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00078a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_00078a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_00078a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_00078a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_00078a6')) AS ?annotation6) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch17 faldo:location ?templateMotifSequenceMatchRegionQ9YA4918 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ9YA4920 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ9YA49MF_0007813 .
    ?templateMotifSequenceMatchRegionQ9YA4918 faldo:begin ?templateMotifSequenceMatchBeginQ9YA4919 .
    ?templateMotifSequenceMatchBeginQ9YA4919 faldo:position ?templateMotifSequenceMatchBeginPositionQ9YA4914 ;
      faldo:reference isoform:Q9YA49-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ9YA4920 edam:has_input signature:MF_00078 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch21 faldo:location ?targetMotifMatchRegionMatch22 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0007824 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ9YA49MF_0007815 .
    ?targetMotifMatchRegionMatch22 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0007823 .
    ?targetMotifMatchRegionMatchBeginMF_0007823 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0007816 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0007824 edam:has_input signature:MF_00078 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ9YA49MF_0007813, 1, (STRLEN(?templateMotifCigarQ9YA49MF_0007813) - STRLEN(REPLACE(?templateMotifCigarQ9YA49MF_0007813, CONCAT('^(?:-*[^-]){', STR(((58 - ?templateMotifSequenceMatchBeginPositionQ9YA4914) + 1)), '}'), '')))), '[a-z]', '')) AS ?step125) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ9YA49MF_0007815, 1, (STRLEN(?targetMotifMatchCigarQ9YA49MF_0007815) - STRLEN(REPLACE(?targetMotifMatchCigarQ9YA49MF_0007815, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step125), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ9YA49MF_0007815, 1, (STRLEN(?targetMotifMatchCigarQ9YA49MF_0007815) - STRLEN(REPLACE(?targetMotifMatchCigarQ9YA49MF_0007815, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step125), '}'), '')))), '[^-]', ''))) AS ?step226) .
    BIND(((?step226 + ?targetMotifMatchRegionMatchBeginPositionMF_0007816) - 1) AS ?thisPositionOn11) .
    BIND(?thisPositionOn11 AS ?thisPositionOn12) .
    BIND(?this AS ?pfs1t27) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn11))) AS ?pfsb9) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn12))) AS ?pfse10) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn11, 1) = 'S')) .
    BIND(URI(CONCAT(STR(?this), '#MF_00078a8')) AS ?annotation8) .
    BIND(?this AS ?pfs7) .
  }
}
""" .

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