@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_01440#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_01440#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-3>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-28>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01440#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01440#construct-template-24>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01440#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01440#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:521159 up:source unirule:MF_01440 .
  _:521160 up:source unirule:MF_01440 .
  _:521161 up:source unirule:MF_01440 .
  _:521162 up:source unirule:MF_01440 .
  _:521163 up:source unirule:MF_01440 .
  _:521164 up:source unirule:MF_01440 .
  _:521165 up:source unirule:MF_01440 .
  _:521166 up:source unirule:MF_01440 .
  ?this up:annotation ?annotation1 ;
    up:classifiedWith GO:0006935 ,
      GO:0050568 ,
      keyword:145 ,
      keyword:378 .
  ?gene0 skos:prefLabel 'cheD' .
  ?annotation1 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the CheD family.' .
  ?case2 up:recommendedName ?name3 .
  ?name3 up:ecName '3.5.1.44' ;
    up:fullName 'Chemoreceptor glutamine deamidase CheD' ;
    rdf:type up:Structured_Name .
  ?case4 up:recommendedName ?name5 .
  ?name5 up:ecName '3.5.1.44' ;
    up:fullName 'Probable chemoreceptor glutamine deamidase CheD' ;
    rdf:type up:Structured_Name .
  _:521167 a rdf:Statement ;
    up:attribution _:521159 ;
    rdf:subject ?gene0 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene0 .
  _:521168 a rdf:Statement ;
    up:attribution _:521160 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:521169 a rdf:Statement ;
    up:attribution _:521161 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:145 .
  _:521170 a rdf:Statement ;
    up:attribution _:521162 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:378 .
  _:521171 a rdf:Statement ;
    up:attribution _:521163 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0050568 .
  _:521172 a rdf:Statement ;
    up:attribution _:521164 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006935 .
  _:521173 a rdf:Statement ;
    up:attribution _:521165 ;
    rdf:subject ?case2 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name3 .
  _:521174 a rdf:Statement ;
    up:attribution _:521166 ;
    rdf:subject ?case4 ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name5 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01440
  #Rule MF_01440 Created by:? on:2006-09-06 Modified by:Edouard de Castro on:2024-09-02
  VALUES ?supertaxon6 {taxon:2 taxon:2157}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01440 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon6 .
  BIND(URI(CONCAT(STR(?this), '#MF_01440a1')) AS ?annotation1) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:1386 .
    BIND(?this AS ?case2) .
    BIND(URI(CONCAT(STR(?this), '#MF_01440a3')) AS ?name3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:1386 .
    })) .
    BIND(?this AS ?case4) .
    BIND(URI(CONCAT(STR(?this), '#MF_01440a5')) AS ?name5) .
  }
}
""" .

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