@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_01331#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_01331#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-17>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-23>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-28>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01331#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_01331#construct-template-29>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01331#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01331#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:477791 up:source unirule:MF_01331 .
  _:477792 up:source unirule:MF_01331 .
  _:477793 up:source unirule:MF_01331 .
  _:477794 up:source unirule:MF_01331 .
  _:477795 up:source unirule:MF_01331 .
  _:477796 up:source unirule:MF_01331 .
  _:477797 up:source unirule:MF_01331 .
  _:477798 up:source unirule:MF_01331 .
  _:477799 up:source unirule:MF_01331 .
  _:477800 up:source unirule:MF_01331 .
  ?this up:annotation ?annotation0 ,
      ?annotation1 ,
      ?annotation2 ;
    up:classifiedWith GO:0006412 ,
      GO:0019843 ,
      keyword:687 ,
      keyword:689 ,
      keyword:694 ,
      keyword:699 .
  ?annotation0 a up:Function_Annotation ;
    rdfs:comment 'The globular domain of the protein is located near the polypeptide exit tunnel on the outside of the subunit, while an extended beta-hairpin is found that lines the wall of the exit tunnel in the center of the 70S ribosome.' .
  ?annotation1 a up:Subunit_Annotation ;
    rdfs:comment 'Part of the 50S ribosomal subunit.' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the universal ribosomal protein uL22 family.' .
  ?case3 up:classifiedWith GO:0009507 .
  _:477801 a rdf:Statement ;
    up:attribution _:477791 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:477802 a rdf:Statement ;
    up:attribution _:477792 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:477803 a rdf:Statement ;
    up:attribution _:477793 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:477804 a rdf:Statement ;
    up:attribution _:477794 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:687 .
  _:477805 a rdf:Statement ;
    up:attribution _:477795 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:689 .
  _:477806 a rdf:Statement ;
    up:attribution _:477796 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:694 .
  _:477807 a rdf:Statement ;
    up:attribution _:477797 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:699 .
  _:477808 a rdf:Statement ;
    up:attribution _:477798 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019843 .
  _:477809 a rdf:Statement ;
    up:attribution _:477799 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006412 .
  _:477810 a rdf:Statement ;
    up:attribution _:477800 ;
    rdf:subject ?case3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0009507 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01331
  #Rule MF_01331 Created by:? on:2005-02-28 Modified by:Andrea Auchincloss on:2023-09-22
  {
    ?this up:organism ?thisOrganism ;
      rdfs:seeAlso signature:MF_01331_B .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
  } UNION {
    ?this rdfs:seeAlso signature:MF_01331_B .
    {
      ?this up:encodedIn up:Plastid .
    } UNION {
      ?this up:encodedIn up:Chloroplast .
    }
  } UNION {
    ?this up:organism ?thisOrganism ;
      rdfs:seeAlso signature:MF_01331_A .
    ?thisOrganism rdfs:subClassOf+ taxon:2157 .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01331a0')) AS ?annotation0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01331a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01331a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:encodedIn up:Plastid .
    } UNION {
      ?this up:encodedIn up:Chloroplast .
    }
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2157 .
    BIND(?this AS ?case4) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:1117 .
    BIND(?this AS ?case6) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:1117 .
    })) .
    BIND(?this AS ?case7) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    {
      ?this up:encodedIn up:Plastid .
    } UNION {
      ?this up:encodedIn up:Chloroplast .
    }
    FILTER (! (EXISTS {
      VALUES ?supertaxon9 {taxon:2157 taxon:2}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon9 .
    })) .
    BIND(?this AS ?case8) .
  }
}
""" .

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