@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_00805#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_00805#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-20>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-11>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-22>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-8>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-31>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-16>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-44>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-51>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-29>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-18>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-53>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-39>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-6>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-40>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-27>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-19>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-0>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-35>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-23>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-48>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-9>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-25>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-46>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-45>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-43>, <http://purl.uniprot.org/unirules/MF_00805#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_00805#construct-template-47>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00805#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00805#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:287807 up:source unirule:MF_00805 .
  _:287808 up:source unirule:MF_00805 .
  _:287809 up:source unirule:MF_00805 .
  _:287810 up:source unirule:MF_00805 .
  _:287811 up:source unirule:MF_00805 .
  _:287812 up:source unirule:MF_00805 .
  _:287813 up:source unirule:MF_00805 .
  _:287814 up:source unirule:MF_00805 .
  _:287815 up:source unirule:MF_00805 .
  _:287816 up:source unirule:MF_00805 .
  _:287817 up:source unirule:MF_00805 .
  ?this up:alternativeName ?name1 ;
    up:annotation ?annotation3 ,
      ?annotation4 ,
      ?annotation5 ,
      ?annotation7 ;
    up:classifiedWith GO:0005737 ,
      keyword:597 ,
      keyword:963 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Citrate lyase acyl carrier protein' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'Citrate lyase gamma chain' ;
    rdf:type up:Structured_Name .
  ?gene2 skos:prefLabel 'citD' .
  ?annotation3 a up:Function_Annotation ;
    rdfs:comment 'Covalent carrier of the coenzyme of citrate lyase.' .
  ?annotation4 a up:Subunit_Annotation ;
    rdfs:comment 'Oligomer with a subunit composition of (alpha,beta,gamma)6.' .
  ?annotation5 a up:Subcellular_Location_Annotation .
  ?annotation5li6 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation7 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the CitD family.' .
  ?pfs8 up:annotation ?annotation9 .
  ?annotation9 faldo:begin ?pfsb10 ;
    faldo:end ?pfse11 ;
    rdf:type up:Modified_Residue_Annotation ;
    rdfs:comment 'O-(phosphoribosyl dephospho-coenzyme A)serine' .
  ?pfsb10 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  ?pfse11 faldo:position ?thisPositionOn13 ;
    rdf:type faldo:ExactPosition .
  _:287818 a rdf:Statement ;
    up:attribution _:287807 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:287819 a rdf:Statement ;
    up:attribution _:287808 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:287820 a rdf:Statement ;
    up:attribution _:287809 ;
    rdf:subject ?gene2 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene2 .
  _:287821 a rdf:Statement ;
    up:attribution _:287810 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:287822 a rdf:Statement ;
    up:attribution _:287811 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:287823 a rdf:Statement ;
    up:attribution _:287812 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:287824 a rdf:Statement ;
    up:attribution _:287813 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:287825 a rdf:Statement ;
    up:attribution _:287814 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:287826 a rdf:Statement ;
    up:attribution _:287815 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:597 .
  _:287827 a rdf:Statement ;
    up:attribution _:287816 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:287828 a rdf:Statement ;
    up:source unirule:MF_00805 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:287829 a rdf:Statement ;
    up:attribution _:287817 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00805
  #Rule MF_00805 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2023-06-01
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00805 .
  ?thisOrganism rdfs:subClassOf+ taxon:2 .
  BIND(URI(CONCAT(STR(?this), '#MF_00805a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00805a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_00805a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_00805a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_00805a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_00805a7')) AS ?annotation7) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch18 faldo:location ?templateMotifSequenceMatchRegionP6933019 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP6933021 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP69330MF_0080514 .
    ?templateMotifSequenceMatchRegionP6933019 faldo:begin ?templateMotifSequenceMatchBeginP6933020 .
    ?templateMotifSequenceMatchBeginP6933020 faldo:position ?templateMotifSequenceMatchBeginPositionP6933015 ;
      faldo:reference isoform:P69330-1 .
    ?templateMotifSequenceProfileAlignmentOperationP6933021 edam:has_input signature:MF_00805 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch22 faldo:location ?targetMotifMatchRegionMatch23 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0080525 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP69330MF_0080516 .
    ?targetMotifMatchRegionMatch23 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0080524 .
    ?targetMotifMatchRegionMatchBeginMF_0080524 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0080517 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0080525 edam:has_input signature:MF_00805 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP69330MF_0080514, 1, (STRLEN(?templateMotifCigarP69330MF_0080514) - STRLEN(REPLACE(?templateMotifCigarP69330MF_0080514, CONCAT('^(?:-*[^-]){', STR(((14 - ?templateMotifSequenceMatchBeginPositionP6933015) + 1)), '}'), '')))), '[a-z]', '')) AS ?step126) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP69330MF_0080516, 1, (STRLEN(?targetMotifMatchCigarP69330MF_0080516) - STRLEN(REPLACE(?targetMotifMatchCigarP69330MF_0080516, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step126), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP69330MF_0080516, 1, (STRLEN(?targetMotifMatchCigarP69330MF_0080516) - STRLEN(REPLACE(?targetMotifMatchCigarP69330MF_0080516, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step126), '}'), '')))), '[^-]', ''))) AS ?step227) .
    BIND(((?step227 + ?targetMotifMatchRegionMatchBeginPositionMF_0080517) - 1) AS ?thisPositionOn12) .
    BIND(?thisPositionOn12 AS ?thisPositionOn13) .
    BIND(?this AS ?pfs1t28) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn12))) AS ?pfsb10) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfse11) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn12, 1) = 'S')) .
    BIND(URI(CONCAT(STR(?this), '#MF_00805a9')) AS ?annotation9) .
    BIND(?this AS ?pfs8) .
  }
}
""" .

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