@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_04038#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_04038#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-5>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-1>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-13>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-16>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-8>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-27>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-11>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-14>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-29>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-20>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-9>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-18>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-6>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-25>, <http://purl.uniprot.org/unirules/MF_04038#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_04038#construct-template-22>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_04038#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_04038#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:907901 up:source unirule:MF_04038 .
  _:907902 up:source unirule:MF_04038 .
  _:907903 up:source unirule:MF_04038 .
  _:907904 up:source unirule:MF_04038 .
  _:907905 up:source unirule:MF_04038 .
  _:907906 up:source unirule:MF_04038 .
  _:907907 up:source unirule:MF_04038 .
  _:907908 up:source unirule:MF_04038 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ;
    up:classifiedWith GO:0019033 ,
      keyword:1035 ,
      keyword:1040 ,
      keyword:920 ,
      keyword:946 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Cytoplasmic envelopment protein 1' ;
    rdf:type up:Structured_Name .
  ?annotation1 a up:Function_Annotation ;
    rdfs:comment 'Plays a critical role in cytoplasmic virus egress. Participates in the final step of tegumentation and envelope acquisition within the host cytoplasm.' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the herpesviridae cytoplasmic envelopment protein 1 family.' .
  _:907909 a rdf:Statement ;
    up:attribution _:907901 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:907910 a rdf:Statement ;
    up:attribution _:907902 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:907911 a rdf:Statement ;
    up:attribution _:907903 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:907912 a rdf:Statement ;
    up:attribution _:907904 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1035 .
  _:907913 a rdf:Statement ;
    up:attribution _:907905 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1040 .
  _:907914 a rdf:Statement ;
    up:attribution _:907906 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:946 .
  _:907915 a rdf:Statement ;
    up:attribution _:907907 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:920 .
  _:907916 a rdf:Statement ;
    up:attribution _:907908 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019033 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_04038
  #Rule MF_04038 Created by:? on:2016-09-15 Modified by:Chantal Hulo on:2022-11-01
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_04038 .
  ?thisOrganism rdfs:subClassOf+ taxon:10292 .
  BIND(URI(CONCAT(STR(?this), '#MF_04038a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_04038a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_04038a2')) 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_04038> <http://www.w3.org/ns/shacl#rule> <http://purl.uniprot.org/unirules/MF_04038#construct> .
