@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_00829#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_00829#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00829#construct-template-7>, <http://purl.uniprot.org/unirules/MF_00829#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00829#construct-template-0>, <http://purl.uniprot.org/unirules/MF_00829#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00829#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00829#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00829#construct-template-6>, <http://purl.uniprot.org/unirules/MF_00829#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00829#construct-template-8>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00829#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00829#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:294701 up:source unirule:MF_00829 .
  _:294702 up:source unirule:MF_00829 .
  ?this up:annotation ?annotation2 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName ?nameValue1 ;
    rdf:type up:Structured_Name .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the UPF0435 family.' .
  _:294703 a rdf:Statement ;
    up:attribution _:294701 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:294704 a rdf:Statement ;
    up:attribution _:294702 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00829
  #Rule MF_00829 Created by:? on:2007-05-25 Modified by:Edouard de Castro on:2010-01-14
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00829 .
  ?thisOrganism rdfs:subClassOf+ taxon:1385 .
  BIND(URI(CONCAT(STR(?this), '#MF_00829a0')) AS ?name0) .
  OPTIONAL {
    ?this up:encodedBy ?gene6 .
    ?gene6 up:locusName ?geneLocus4 .
  }
  OPTIONAL {
    ?this up:encodedBy ?gene6 .
    ?gene6 up:orfName ?geneOrf5 .
  }
  BIND(IF(BOUND(?geneLocus4), ?geneLocus4, ?geneOrf5) AS ?part3) .
  BIND(CONCAT('UPF0435 protein ', ?part3) AS ?nameValue1) .
  BIND(URI(CONCAT(STR(?this), '#MF_00829a2')) AS ?annotation2) .
}
""" .

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