@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_00611#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_00611#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-21>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-20>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-9>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-17>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-4>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-7>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-6>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-10>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-13>, <http://purl.uniprot.org/unirules/MF_00611#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00611#construct-template-18>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00611#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00611#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:236445 up:source unirule:MF_00611 .
  _:236446 up:source unirule:MF_00611 .
  _:236447 up:source unirule:MF_00611 .
  _:236448 up:source unirule:MF_00611 .
  _:236449 up:source unirule:MF_00611 .
  _:236450 up:source unirule:MF_00611 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ,
      ?annotation4 ;
    up:classifiedWith GO:0005737 ,
      keyword:963 .
  ?gene0 skos:prefLabel 'fdhE' .
  ?annotation1 a up:Function_Annotation ;
    rdfs:comment 'Necessary for formate dehydrogenase activity.' .
  ?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 FdhE family.' .
  _:236451 a rdf:Statement ;
    up:attribution _:236445 ;
    rdf:subject ?gene0 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene0 .
  _:236452 a rdf:Statement ;
    up:attribution _:236446 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:236453 a rdf:Statement ;
    up:attribution _:236447 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:236454 a rdf:Statement ;
    up:attribution _:236448 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:236455 a rdf:Statement ;
    up:attribution _:236449 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:236456 a rdf:Statement ;
    up:attribution _:236450 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00611
  #Rule MF_00611 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2023-06-01
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00611 .
  ?thisOrganism rdfs:subClassOf+ taxon:2 .
  BIND(URI(CONCAT(STR(?this), '#MF_00611a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_00611a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_00611a4')) AS ?annotation4) .
  OPTIONAL {
    ?this a up:Protein .
    VALUES ?supertaxon7 {taxon:561 taxon:620 taxon:590}
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ ?supertaxon7 .
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon8 {taxon:561 taxon:620 taxon:590}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon8 .
    })) .
    BIND(?this AS ?case6) .
  }
}
""" .

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