@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_00619#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_00619#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-1>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-12>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-5>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-4>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-14>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-11>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-21>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-20>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-13>, <http://purl.uniprot.org/unirules/MF_00619#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_00619#construct-template-16>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00619#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00619#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:238707 up:source unirule:MF_00619 .
  _:238708 up:source unirule:MF_00619 .
  _:238709 up:source unirule:MF_00619 .
  _:238710 up:source unirule:MF_00619 .
  _:238711 up:source unirule:MF_00619 .
  _:238712 up:source unirule:MF_00619 .
  ?this up:annotation ?annotation0 ,
      ?annotation1 ;
    up:classifiedWith GO:0006412 ,
      keyword:687 ,
      keyword:689 .
  ?annotation0 a up:Function_Annotation ;
    rdfs:comment 'Probably a ribosomal protein or a ribosome-associated protein.' .
  ?annotation1 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the chloroplast-specific ribosomal protein cS23 family.' .
  ?case2 up:classifiedWith GO:0009507 .
  _:238713 a rdf:Statement ;
    up:attribution _:238707 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:238714 a rdf:Statement ;
    up:attribution _:238708 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:238715 a rdf:Statement ;
    up:attribution _:238709 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:687 .
  _:238716 a rdf:Statement ;
    up:attribution _:238710 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:689 .
  _:238717 a rdf:Statement ;
    up:attribution _:238711 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006412 .
  _:238718 a rdf:Statement ;
    up:attribution _:238712 ;
    rdf:subject ?case2 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0009507 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00619
  #Rule MF_00619 Created by:? on:2005-02-28 Modified by:Andrea Auchincloss on:2023-09-22
  {
    ?this up:organism ?thisOrganism ;
      rdfs:seeAlso signature:MF_00619 .
    ?thisOrganism rdfs:subClassOf+ taxon:1117 .
  } UNION {
    ?this rdfs:seeAlso signature:MF_00619 .
    {
      ?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_00619a0')) AS ?annotation0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00619a1')) AS ?annotation1) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:encodedIn up:Plastid .
    } UNION {
      ?this up:encodedIn up:Chloroplast .
    }
    BIND(?this AS ?case2) .
  }
  OPTIONAL {
    ?this a up:Protein .
    FILTER (! (EXISTS {
      {
        ?this up:encodedIn up:Plastid .
      } UNION {
        ?this up:encodedIn up:Chloroplast .
      }
    })) .
    BIND(?this AS ?case3) .
  }
}
""" .

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