@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_00982#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_00982#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-12>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-14>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-0>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-10>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-8>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-27>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-7>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-5>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-25>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-20>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-3>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-29>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-24>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_00982#construct-template-26>, <http://purl.uniprot.org/unirules/MF_00982#construct-template-28>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00982#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00982#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:342376 up:source unirule:MF_00982 .
  _:342377 up:source unirule:MF_00982 .
  _:342378 up:source unirule:MF_00982 .
  _:342379 up:source unirule:MF_00982 .
  _:342380 up:source unirule:MF_00982 .
  _:342381 up:source unirule:MF_00982 .
  _:342382 up:source unirule:MF_00982 .
  _:342383 up:source unirule:MF_00982 .
  _:342384 up:source unirule:MF_00982 .
  ?this up:annotation ?annotation2 ;
    up:classifiedWith GO:0003677 ,
      GO:0006355 ,
      keyword:238 ,
      keyword:716 ,
      keyword:804 ,
      keyword:805 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Transcriptional regulatory protein RcsA' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'rcsA' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the RcsA family.' .
  _:342385 a rdf:Statement ;
    up:attribution _:342376 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:342386 a rdf:Statement ;
    up:attribution _:342377 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:342387 a rdf:Statement ;
    up:attribution _:342378 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:342388 a rdf:Statement ;
    up:attribution _:342379 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:238 .
  _:342389 a rdf:Statement ;
    up:attribution _:342380 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:716 .
  _:342390 a rdf:Statement ;
    up:attribution _:342381 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:804 .
  _:342391 a rdf:Statement ;
    up:attribution _:342382 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:805 .
  _:342392 a rdf:Statement ;
    up:attribution _:342383 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0003677 .
  _:342393 a rdf:Statement ;
    up:attribution _:342384 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006355 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00982
  #Rule MF_00982 Created by:? on:2013-12-18 Modified by:Catherine Rivoire on:2022-06-28
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00982 .
  ?thisOrganism rdfs:subClassOf+ taxon:91347 .
  BIND(URI(CONCAT(STR(?this), '#MF_00982a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00982a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    VALUES ?supertaxon5 {taxon:561 taxon:620 taxon:590}
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ ?supertaxon5 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon6 {taxon:561 taxon:620 taxon:590}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon6 .
    })) .
    BIND(?this AS ?case4) .
  }
}
""" .

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