@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_03232#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_03232#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-16>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-74>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-50>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-19>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-73>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-48>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-52>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-76>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-63>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-51>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-45>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-8>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-26>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-59>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-4>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-72>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-71>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-70>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-6>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-10>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-9>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-54>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-33>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-15>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-36>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-7>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-61>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-0>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-78>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-77>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-32>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-29>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-79>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-25>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-67>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-60>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-3>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-65>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-18>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-62>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-64>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-42>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-69>, <http://purl.uniprot.org/unirules/MF_03232#construct-template-66>,
    <http://purl.uniprot.org/unirules/MF_03232#construct-template-68>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_03232#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_03232#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:892311 up:source unirule:MF_03232 .
  _:892312 up:source unirule:MF_03232 .
  _:892313 up:source unirule:MF_03232 .
  _:892314 up:source unirule:MF_03232 .
  _:892315 up:source unirule:MF_03232 .
  _:892316 up:source unirule:MF_03232 .
  _:892317 up:source unirule:MF_03232 .
  _:892318 up:source unirule:MF_03232 .
  _:892319 up:source unirule:MF_03232 .
  _:892320 up:source unirule:MF_03232 .
  _:892321 up:source unirule:MF_03232 .
  _:892322 up:source unirule:MF_03232 .
  _:892323 up:source unirule:MF_03232 .
  _:892324 up:source unirule:MF_03232 .
  _:892325 up:source unirule:MF_03232 .
  _:892326 up:source unirule:MF_03232 .
  _:892327 up:source unirule:MF_03232 .
  _:892328 up:source unirule:MF_03232 .
  ?this up:annotation ?annotation1 ,
      ?annotation3 ;
    up:classifiedWith GO:0005789 ,
      GO:0140042 ,
      keyword:1133 ,
      keyword:256 ,
      keyword:472 ,
      keyword:812 .
  ?gene0 skos:altLabel 'FIT2A' ;
    skos:prefLabel 'YFT2' .
  ?annotation1 a up:Subcellular_Location_Annotation .
  ?annotation1li2 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation3 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the FIT family. Yeast FIT2A/YFT2 subfamily.' .
  ?case4 up:alternativeName ?name6 ;
    up:classifiedWith GO:0016818 ,
      keyword:1208 ,
      keyword:378 ,
      keyword:444 ,
      keyword:594 ;
    up:recommendedName ?name5 .
  ?name5 up:ecName '3.6.1.-' ;
    up:fullName 'Acyl-coenzyme A diphosphatase YFT2' ;
    rdf:type up:Structured_Name .
  ?name6 up:fullName 'FIT family protein YFT2' ;
    rdf:type up:Structured_Name .
  ?pfs8 up:annotation ?annotation9 ,
      ?annotation14 .
  ?annotation9 faldo:begin ?pfsb10 ;
    faldo:end ?pfse11 ;
    rdf:type up:Active_Site_Annotation .
  ?pfsb10 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  ?pfse11 faldo:position ?thisPositionOn13 ;
    rdf:type faldo:ExactPosition .
  ?annotation14 faldo:begin ?pfsb15 ;
    faldo:end ?pfse16 ;
    rdf:type up:Active_Site_Annotation .
  ?pfsb15 faldo:position ?thisPositionOn17 ;
    rdf:type faldo:ExactPosition .
  ?pfse16 faldo:position ?thisPositionOn18 ;
    rdf:type faldo:ExactPosition .
  _:892329 a rdf:Statement ;
    up:attribution _:892311 ;
    rdf:subject ?gene0 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene0 .
  _:892330 a rdf:Statement ;
    up:attribution _:892312 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:892331 a rdf:Statement ;
    up:attribution _:892313 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:892332 a rdf:Statement ;
    up:attribution _:892314 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:256 .
  _:892333 a rdf:Statement ;
    up:attribution _:892315 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:892334 a rdf:Statement ;
    up:attribution _:892316 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:892335 a rdf:Statement ;
    up:attribution _:892317 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:892336 a rdf:Statement ;
    up:attribution _:892318 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005789 .
  _:892337 a rdf:Statement ;
    up:attribution _:892319 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0140042 .
  _:892338 a rdf:Statement ;
    up:attribution _:892320 ;
    rdf:subject ?case4 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name5 .
  _:892339 a rdf:Statement ;
    up:attribution _:892321 ;
    rdf:subject ?case4 ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name6 .
  _:892340 a rdf:Statement ;
    up:attribution _:892322 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:378 .
  _:892341 a rdf:Statement ;
    up:attribution _:892323 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:444 .
  _:892342 a rdf:Statement ;
    up:attribution _:892324 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:594 .
  _:892343 a rdf:Statement ;
    up:attribution _:892325 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1208 .
  _:892344 a rdf:Statement ;
    up:attribution _:892326 ;
    rdf:subject ?case4 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0016818 .
  _:892345 a rdf:Statement ;
    up:source unirule:MF_03232 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:892346 a rdf:Statement ;
    up:attribution _:892327 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:892347 a rdf:Statement ;
    up:source unirule:MF_03232 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation14 .
  _:892348 a rdf:Statement ;
    up:attribution _:892328 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation14 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_03232
  #Rule MF_03232 Created by:? on:2020-11-11 Modified by:Edouard de Castro on:2024-09-03
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_03232 .
  ?thisOrganism rdfs:subClassOf+ taxon:4892 .
  BIND(URI(CONCAT(STR(?this), '#MF_03232a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_03232a3')) AS ?annotation3) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch23 faldo:location ?templateMotifSequenceMatchRegionQ0667624 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ0667626 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ06676MF_0323219 .
    ?templateMotifSequenceMatchRegionQ0667624 faldo:begin ?templateMotifSequenceMatchBeginQ0667625 .
    ?templateMotifSequenceMatchBeginQ0667625 faldo:position ?templateMotifSequenceMatchBeginPositionQ0667620 ;
      faldo:reference isoform:Q06676-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ0667626 edam:has_input signature:MF_03232 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch27 faldo:location ?targetMotifMatchRegionMatch28 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0323230 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ06676MF_0323221 .
    ?targetMotifMatchRegionMatch28 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0323229 .
    ?targetMotifMatchRegionMatchBeginMF_0323229 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0323222 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0323230 edam:has_input signature:MF_03232 ;
      rdf:type edam:operation_0300 .
    BIND(?this AS ?tagFTGRP_1) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ06676MF_0323219, 1, (STRLEN(?templateMotifCigarQ06676MF_0323219) - STRLEN(REPLACE(?templateMotifCigarQ06676MF_0323219, CONCAT('^(?:-*[^-]){', STR(((178 - ?templateMotifSequenceMatchBeginPositionQ0667620) + 1)), '}'), '')))), '[a-z]', '')) AS ?step131) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ06676MF_0323221, 1, (STRLEN(?targetMotifMatchCigarQ06676MF_0323221) - STRLEN(REPLACE(?targetMotifMatchCigarQ06676MF_0323221, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step131), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ06676MF_0323221, 1, (STRLEN(?targetMotifMatchCigarQ06676MF_0323221) - STRLEN(REPLACE(?targetMotifMatchCigarQ06676MF_0323221, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step131), '}'), '')))), '[^-]', ''))) AS ?step232) .
    BIND(((?step232 + ?targetMotifMatchRegionMatchBeginPositionMF_0323222) - 1) AS ?thisPositionOn12) .
    BIND(?thisPositionOn12 AS ?thisPositionOn13) .
    BIND(?this AS ?pfs1t33) .
    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) = 'H')) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ06676MF_0323219, 1, (STRLEN(?templateMotifCigarQ06676MF_0323219) - STRLEN(REPLACE(?templateMotifCigarQ06676MF_0323219, CONCAT('^(?:-*[^-]){', STR(((239 - ?templateMotifSequenceMatchBeginPositionQ0667620) + 1)), '}'), '')))), '[a-z]', '')) AS ?step134) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ06676MF_0323221, 1, (STRLEN(?targetMotifMatchCigarQ06676MF_0323221) - STRLEN(REPLACE(?targetMotifMatchCigarQ06676MF_0323221, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step134), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ06676MF_0323221, 1, (STRLEN(?targetMotifMatchCigarQ06676MF_0323221) - STRLEN(REPLACE(?targetMotifMatchCigarQ06676MF_0323221, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step134), '}'), '')))), '[^-]', ''))) AS ?step235) .
    BIND(((?step235 + ?targetMotifMatchRegionMatchBeginPositionMF_0323222) - 1) AS ?thisPositionOn17) .
    BIND(?thisPositionOn17 AS ?thisPositionOn18) .
    BIND(?this AS ?pfs1t36) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn17))) AS ?pfsb15) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn18))) AS ?pfse16) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn17, 1) = 'H')) .
    BIND(?this AS ?pfs8) .
  }
  OPTIONAL {
    ?this a up:Protein .
    BIND(?this AS ?caseWithTag37) .
    BIND(URI(CONCAT(STR(?this), '#MF_03232a5')) AS ?name5) .
    BIND(URI(CONCAT(STR(?this), '#MF_03232a6')) AS ?name6) .
  }
  BIND(IF(BOUND(?tagFTGRP_1), ?caseWithTag37, ?UNBOUND_VARIABLE) AS ?case4) .
  OPTIONAL {
    ?this a up:Protein .
    BIND(?this AS ?caseWithTag38) .
  }
  BIND(IF(BOUND(?tagFTGRP_1), ?caseWithTag38, ?UNBOUND_VARIABLE) AS ?case7) .
}
""" .

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