@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_03054#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_03054#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-0>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-3>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-18>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-19>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-13>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-15>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-12>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-9>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-6>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-8>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-28>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-26>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-21>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-34>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-38>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-40>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-36>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-25>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-31>, <http://purl.uniprot.org/unirules/MF_03054#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_03054#construct-template-27>, <http://purl.uniprot.org/unirules/MF_03054#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_03054#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_03054#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:804994 up:source unirule:MF_03054 .
  _:804995 up:source unirule:MF_03054 .
  _:804996 up:source unirule:MF_03054 .
  _:804997 up:source unirule:MF_03054 .
  _:804998 up:source unirule:MF_03054 .
  _:804999 up:source unirule:MF_03054 .
  _:805000 up:source unirule:MF_03054 .
  _:805001 up:source unirule:MF_03054 .
  _:805002 up:source unirule:MF_03054 .
  _:805003 up:source unirule:MF_03054 .
  _:805004 up:source unirule:MF_03054 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ,
      ?annotation4 ;
    up:classifiedWith GO:0002098 ,
      GO:0005737 ,
      GO:0016779 ,
      GO:0032447 ,
      GO:0034227 ,
      keyword:819 ,
      keyword:963 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Cytoplasmic tRNA 2-thiolation protein 2' ;
    rdf:type up:Structured_Name .
  ?annotation1 a up:Pathway_Annotation ;
    rdfs:comment 'tRNA modification; 5-methoxycarbonylmethyl-2-thiouridine-tRNA biosynthesis.' .
  ?annotation2 a up:Subcellular_Location_Annotation .
  ?annotation2li3 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the CTU2/NCS2 family.' .
  _:805005 a rdf:Statement ;
    up:attribution _:804994 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:805006 a rdf:Statement ;
    up:attribution _:804995 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:805007 a rdf:Statement ;
    up:attribution _:804996 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:805008 a rdf:Statement ;
    up:attribution _:804997 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:805009 a rdf:Statement ;
    up:attribution _:804998 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:805010 a rdf:Statement ;
    up:attribution _:804999 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:819 .
  _:805011 a rdf:Statement ;
    up:attribution _:805000 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0016779 .
  _:805012 a rdf:Statement ;
    up:attribution _:805001 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0002098 .
  _:805013 a rdf:Statement ;
    up:attribution _:805002 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0032447 .
  _:805014 a rdf:Statement ;
    up:attribution _:805003 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0034227 .
  _:805015 a rdf:Statement ;
    up:attribution _:805004 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_03054
  #Rule MF_03054 Created by:? on:2013-08-21 Modified by:Edouard de Castro on:2019-11-20
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_03054 .
  ?thisOrganism rdfs:subClassOf+ taxon:2759 .
  BIND(URI(CONCAT(STR(?this), '#MF_03054a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_03054a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_03054a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_03054a4')) AS ?annotation4) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:4751 .
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:40674 .
    BIND(?this AS ?case6) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:7742 .
    BIND(?this AS ?case7) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:4930 .
    BIND(?this AS ?case8) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:6237 .
    BIND(?this AS ?case9) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:4751 .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:4930 .
    })) .
    BIND(?this AS ?case10) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon12 {taxon:4751 taxon:6237 taxon:7742}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon12 .
    })) .
    BIND(?this AS ?case11) .
  }
}
""" .

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