@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_00948#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_00948#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-7>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-8>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-29>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-17>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-27>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-18>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-26>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-24>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-6>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-3>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-30>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-0>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-10>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-31>, <http://purl.uniprot.org/unirules/MF_00948#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_00948#construct-template-33>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00948#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00948#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:330013 up:source unirule:MF_00948 .
  _:330014 up:source unirule:MF_00948 .
  _:330015 up:source unirule:MF_00948 .
  _:330016 up:source unirule:MF_00948 .
  _:330017 up:source unirule:MF_00948 .
  _:330018 up:source unirule:MF_00948 .
  _:330019 up:source unirule:MF_00948 .
  _:330020 up:source unirule:MF_00948 .
  _:330021 up:source unirule:MF_00948 .
  _:330022 up:source unirule:MF_00948 .
  ?this up:annotation ?annotation2 ;
    up:classifiedWith GO:0006353 ,
      GO:0006354 ,
      GO:0031564 ,
      keyword:804 ,
      keyword:805 ,
      keyword:806 ,
      keyword:889 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Transcription termination/antitermination protein NusG' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'nusG' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the NusG family.' .
  _:330023 a rdf:Statement ;
    up:attribution _:330013 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:330024 a rdf:Statement ;
    up:attribution _:330014 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:330025 a rdf:Statement ;
    up:attribution _:330015 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:330026 a rdf:Statement ;
    up:attribution _:330016 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:804 .
  _:330027 a rdf:Statement ;
    up:attribution _:330017 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:889 .
  _:330028 a rdf:Statement ;
    up:attribution _:330018 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:805 .
  _:330029 a rdf:Statement ;
    up:attribution _:330019 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:806 .
  _:330030 a rdf:Statement ;
    up:attribution _:330020 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006354 .
  _:330031 a rdf:Statement ;
    up:attribution _:330021 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006353 .
  _:330032 a rdf:Statement ;
    up:attribution _:330022 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0031564 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00948
  #Rule MF_00948 Created by:? on:2013-03-07 Modified by:Edouard de Castro on:2023-06-01
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00948 .
  ?thisOrganism rdfs:subClassOf+ taxon:2 .
  BIND(URI(CONCAT(STR(?this), '#MF_00948a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00948a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:91347 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:91347 .
    })) .
    BIND(?this AS ?case4) .
  }
}
""" .

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