@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_04039#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_04039#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-27>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-11>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-29>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-9>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-7>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-26>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-22>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-1>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-33>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-43>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-17>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-53>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-45>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-5>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-40>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-35>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-2>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-3>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-39>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-30>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-12>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-37>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-34>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-47>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-50>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-52>, <http://purl.uniprot.org/unirules/MF_04039#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_04039#construct-template-48>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_04039#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_04039#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:908207 up:source unirule:MF_04039 .
  _:908208 up:source unirule:MF_04039 .
  _:908209 up:source unirule:MF_04039 .
  _:908210 up:source unirule:MF_04039 .
  _:908211 up:source unirule:MF_04039 .
  _:908212 up:source unirule:MF_04039 .
  _:908213 up:source unirule:MF_04039 .
  _:908214 up:source unirule:MF_04039 .
  _:908215 up:source unirule:MF_04039 .
  _:908216 up:source unirule:MF_04039 .
  _:908217 up:source unirule:MF_04039 .
  _:908218 up:source unirule:MF_04039 .
  _:908219 up:source unirule:MF_04039 .
  _:908220 up:source unirule:MF_04039 .
  _:908221 up:source unirule:MF_04039 .
  _:908222 up:source unirule:MF_04039 .
  ?this up:alternativeName ?name1 ;
    up:annotation ?annotation2 ;
    up:classifiedWith GO:0019033 ,
      GO:0030430 ,
      GO:0042025 ,
      keyword:1035 ,
      keyword:1040 ,
      keyword:1048 ,
      keyword:426 ,
      keyword:920 ,
      keyword:946 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Cytoplasmic envelopment protein 2' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'Tegument protein BGLF2' ;
    rdf:type up:Structured_Name .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the herpesviridae cytoplasmic envelopment protein 2 family.' .
  ?case3 up:classifiedWith keyword:1078 ,
      keyword:1105 ,
      keyword:1106 ,
      keyword:1112 .
  _:908223 a rdf:Statement ;
    up:attribution _:908207 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:908224 a rdf:Statement ;
    up:attribution _:908208 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:908225 a rdf:Statement ;
    up:attribution _:908209 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:908226 a rdf:Statement ;
    up:attribution _:908210 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1035 .
  _:908227 a rdf:Statement ;
    up:attribution _:908211 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1040 .
  _:908228 a rdf:Statement ;
    up:attribution _:908212 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1048 .
  _:908229 a rdf:Statement ;
    up:attribution _:908213 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:426 .
  _:908230 a rdf:Statement ;
    up:attribution _:908214 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:946 .
  _:908231 a rdf:Statement ;
    up:attribution _:908215 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:920 .
  _:908232 a rdf:Statement ;
    up:attribution _:908216 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0030430 .
  _:908233 a rdf:Statement ;
    up:attribution _:908217 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0042025 .
  _:908234 a rdf:Statement ;
    up:attribution _:908218 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019033 .
  _:908235 a rdf:Statement ;
    up:attribution _:908219 ;
    rdf:subject ?case3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1078 .
  _:908236 a rdf:Statement ;
    up:attribution _:908220 ;
    rdf:subject ?case3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1105 .
  _:908237 a rdf:Statement ;
    up:attribution _:908221 ;
    rdf:subject ?case3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1112 .
  _:908238 a rdf:Statement ;
    up:attribution _:908222 ;
    rdf:subject ?case3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1106 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_04039
  #Rule MF_04039 Created by:? on:2016-09-19 Modified by:Chantal Hulo on:2022-10-12
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_04039 .
  ?thisOrganism rdfs:subClassOf+ taxon:10292 .
  BIND(URI(CONCAT(STR(?this), '#MF_04039a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_04039a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_04039a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:10375 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:10375 .
    })) .
    BIND(?this AS ?case4) .
  }
}
""" .

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