@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_01459#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_01459#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-10>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-3>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01459#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01459#construct-template-22>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01459#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01459#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:529173 up:source unirule:MF_01459 .
  _:529174 up:source unirule:MF_01459 .
  _:529175 up:source unirule:MF_01459 .
  _:529176 up:source unirule:MF_01459 .
  _:529177 up:source unirule:MF_01459 .
  _:529178 up:source unirule:MF_01459 .
  ?this up:annotation ?annotation0 ;
    up:classifiedWith GO:0017006 ,
      keyword:456 .
  ?annotation0 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the CpcS/CpeS biliprotein lyase family.' .
  ?case1 up:classifiedWith GO:0009507 ;
    up:recommendedName ?name2 .
  ?name2 up:ecName '4.-.-.-' ;
    up:fullName 'Chromophore lyase CpcS/CpeS homolog' ;
    rdf:type up:Structured_Name .
  ?case3 up:recommendedName ?name4 .
  ?name4 up:ecName '4.-.-.-' ;
    up:fullName 'Chromophore lyase CpcS/CpeS' ;
    rdf:type up:Structured_Name .
  _:529179 a rdf:Statement ;
    up:attribution _:529173 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:529180 a rdf:Statement ;
    up:attribution _:529174 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:456 .
  _:529181 a rdf:Statement ;
    up:attribution _:529175 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0017006 .
  _:529182 a rdf:Statement ;
    up:attribution _:529176 ;
    rdf:subject ?case1 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name2 .
  _:529183 a rdf:Statement ;
    up:attribution _:529177 ;
    rdf:subject ?case1 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0009507 .
  _:529184 a rdf:Statement ;
    up:attribution _:529178 ;
    rdf:subject ?case3 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name4 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01459
  #Rule MF_01459 Created by:? on:2010-11-01 Modified by:Edouard de Castro on:2023-12-07
  {
    ?this up:organism ?thisOrganism ;
      rdfs:seeAlso signature:MF_01459 .
    ?thisOrganism rdfs:subClassOf+ taxon:1117 .
  } UNION {
    ?this rdfs:seeAlso signature:MF_01459 .
    {
      ?this up:encodedIn up:Plastid .
    } UNION {
      ?this up:encodedIn up:Chloroplast .
    } UNION {
      ?this up:encodedIn up:Cyanelle .
    } UNION {
      ?this up:encodedIn up:Apicoplast .
    } UNION {
      ?this up:encodedIn up:Organellar_chromatophore .
    } UNION {
      ?this up:encodedIn up:Non-photosynthetic_plastid .
    }
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01459a0')) AS ?annotation0) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:encodedIn up:Plastid .
    } UNION {
      ?this up:encodedIn up:Chloroplast .
    }
    BIND(?this AS ?case1) .
    BIND(URI(CONCAT(STR(?this), '#MF_01459a2')) AS ?name2) .
  }
  OPTIONAL {
    ?this a up:Protein .
    FILTER (! (EXISTS {
      {
        ?this up:encodedIn up:Plastid .
      } UNION {
        ?this up:encodedIn up:Chloroplast .
      }
    })) .
    BIND(?this AS ?case3) .
    BIND(URI(CONCAT(STR(?this), '#MF_01459a4')) AS ?name4) .
  }
}
""" .

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