@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_00791#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_00791#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00791#construct-template-1>, <http://purl.uniprot.org/unirules/MF_00791#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00791#construct-template-0>, <http://purl.uniprot.org/unirules/MF_00791#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00791#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00791#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_00791#construct-template-7>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00791#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00791#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:284795 up:source unirule:MF_00791 .
  _:284796 up:source unirule:MF_00791 .
  ?this up:recommendedName ?name0 .
  ?name0 up:fullName 'Protein ApaG' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'apaG' .
  _:284797 a rdf:Statement ;
    up:attribution _:284795 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:284798 a rdf:Statement ;
    up:attribution _:284796 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00791
  #Rule MF_00791 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2023-02-17
  VALUES ?supertaxon2 {taxon:1297 taxon:28211 taxon:28216 taxon:28221 taxon:1236}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00791 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon2 .
  BIND(URI(CONCAT(STR(?this), '#MF_00791a0')) AS ?name0) .
}
""" .

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