@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_04133#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_04133#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-2>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-35>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-36>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-4>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-49>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-46>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-34>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-9>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-11>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-10>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-27>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-8>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-17>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-18>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-48>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-0>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-30>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-29>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-28>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-15>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-42>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-1>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-44>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-33>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-31>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_04133#construct-template-13>, <http://purl.uniprot.org/unirules/MF_04133#construct-template-52>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_04133#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_04133#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:966473 up:source unirule:MF_04133 .
  _:966474 up:source unirule:MF_04133 .
  _:966475 up:source unirule:MF_04133 .
  _:966476 up:source unirule:MF_04133 .
  _:966477 up:source unirule:MF_04133 .
  _:966478 up:source unirule:MF_04133 .
  _:966479 up:source unirule:MF_04133 .
  _:966480 up:source unirule:MF_04133 .
  _:966481 up:source unirule:MF_04133 .
  _:966482 up:source unirule:MF_04133 .
  _:966483 up:source unirule:MF_04133 .
  _:966484 up:source unirule:MF_04133 .
  ?this up:alternativeName ?name1 ;
    up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation6 ;
    up:classifiedWith GO:0019028 ,
      keyword:1035 ,
      keyword:167 ,
      keyword:426 ,
      keyword:946 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Major capsid protein' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'Major head protein' ;
    rdf:type up:Structured_Name .
  ?annotation2 a up:Subunit_Annotation ;
    rdfs:comment 'Homomultimer.' .
  ?annotation3 a up:Subcellular_Location_Annotation ;
    rdfs:comment 'Forms the capsid icosahedric shell' .
  ?annotation3li4 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation3li5 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation6 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the lambda phage major capsid protein family.' .
  ?case7 up:classifiedWith keyword:1145 .
  ?sam9 up:classifiedWith keyword:175 .
  ?coiledCoil10 faldo:begin ?coiledCoilb11 ;
    faldo:end ?coiledCoile12 .
  ?coiledCoilb11 faldo:position ?coiledCoilbp13 .
  ?coiledCoile12 faldo:position ?coiledCoilep14 .
  ?keyword15 up:range ?coiledCoil10 .
  _:966485 a rdf:Statement ;
    up:attribution _:966473 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:966486 a rdf:Statement ;
    up:attribution _:966474 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:966487 a rdf:Statement ;
    up:attribution _:966475 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:966488 a rdf:Statement ;
    up:attribution _:966476 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:966489 a rdf:Statement ;
    up:attribution _:966477 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:966490 a rdf:Statement ;
    up:attribution _:966478 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:167 .
  _:966491 a rdf:Statement ;
    up:attribution _:966479 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1035 .
  _:966492 a rdf:Statement ;
    up:attribution _:966480 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:426 .
  _:966493 a rdf:Statement ;
    up:attribution _:966481 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:946 .
  _:966494 a rdf:Statement ;
    up:attribution _:966482 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019028 .
  _:966495 a rdf:Statement ;
    up:attribution _:966483 ;
    rdf:subject ?case7 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1145 .
  _:966496 a rdf:Statement ;
    up:attribution _:966484 ;
    rdf:subject ?sam9 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:175 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_04133
  #Rule MF_04133 Created by:? on:2019-01-11 Modified by:Chantal Hulo on:2022-08-23
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_04133 .
  ?thisOrganism rdfs:subClassOf+ taxon:2731619 .
  BIND(URI(CONCAT(STR(?this), '#MF_04133a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_04133a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_04133a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_04133a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_04133a6')) AS ?annotation6) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:186765 .
    BIND(?this AS ?case7) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:186765 .
    })) .
    BIND(?this AS ?case8) .
  }
  OPTIONAL {
    ?this up:annotation ?samcc16 ;
      up:sequence ?thisSequence .
    ?samcc16 up:range ?samccr17 ;
      rdf:type up:Coiled_Coil_Annotation .
    ?samccr17 faldo:begin ?samccb18 ;
      faldo:end ?samcce19 .
    ?samccb18 faldo:position ?samccbp20 ;
      faldo:reference ?thisSequence .
    ?samcce19 faldo:position ?samccep21 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam9) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_04133a15')) AS ?keyword15) .
}
""" .

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