@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_01361#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_01361#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-51>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-42>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-40>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-49>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-17>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-50>, <http://purl.uniprot.org/unirules/MF_01361#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01361#construct-template-43>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01361#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01361#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:491493 up:source unirule:MF_01361 .
  _:491494 up:source unirule:MF_01361 .
  _:491495 up:source unirule:MF_01361 .
  _:491496 up:source unirule:MF_01361 .
  _:491497 up:source unirule:MF_01361 .
  _:491498 up:source unirule:MF_01361 .
  _:491499 up:source unirule:MF_01361 .
  _:491500 up:source unirule:MF_01361 .
  _:491501 up:source unirule:MF_01361 .
  _:491502 up:source unirule:MF_01361 .
  _:491503 up:source unirule:MF_01361 .
  _:491504 up:source unirule:MF_01361 .
  ?this up:annotation ?annotation0 ;
    up:classifiedWith GO:0005886 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?annotation0 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the UPF0391 family.' .
  ?sam3 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane4 faldo:begin ?transmembraneb5 ;
    faldo:end ?transmembranee6 .
  ?transmembraneb5 faldo:position ?transmembranebp7 .
  ?transmembranee6 faldo:position ?transmembraneep8 .
  ?keyword9 up:range ?transmembrane4 .
  ?keyword10 up:range ?transmembrane4 .
  ?keyword11 up:range ?transmembrane4 .
  ?sam12 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane13 faldo:begin ?transmembraneb14 ;
    faldo:end ?transmembranee15 .
  ?transmembraneb14 faldo:position ?transmembranebp16 .
  ?transmembranee15 faldo:position ?transmembraneep17 .
  ?keyword18 up:range ?transmembrane13 .
  ?keyword19 up:range ?transmembrane13 .
  ?keyword20 up:range ?transmembrane13 .
  _:491505 a rdf:Statement ;
    up:attribution _:491493 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:491506 a rdf:Statement ;
    up:attribution _:491494 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:491507 a rdf:Statement ;
    up:attribution _:491495 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:491508 a rdf:Statement ;
    up:attribution _:491496 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:491509 a rdf:Statement ;
    up:attribution _:491497 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:491510 a rdf:Statement ;
    up:attribution _:491498 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:491511 a rdf:Statement ;
    up:attribution _:491499 ;
    rdf:subject ?sam3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:491512 a rdf:Statement ;
    up:attribution _:491500 ;
    rdf:subject ?sam3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:491513 a rdf:Statement ;
    up:attribution _:491501 ;
    rdf:subject ?sam3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:491514 a rdf:Statement ;
    up:attribution _:491502 ;
    rdf:subject ?sam12 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:491515 a rdf:Statement ;
    up:attribution _:491503 ;
    rdf:subject ?sam12 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:491516 a rdf:Statement ;
    up:attribution _:491504 ;
    rdf:subject ?sam12 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01361
  #Rule MF_01361 Created by:? on:2006-10-12 Modified by:Edouard de Castro on:2023-11-29
  VALUES ?supertaxon21 {taxon:1117 taxon:28211 taxon:28216 taxon:28221 taxon:1236 taxon:183963 taxon:224756}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01361 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon21 .
  BIND(URI(CONCAT(STR(?this), '#MF_01361a0')) AS ?annotation0) .
  OPTIONAL {
    ?this a up:Protein .
    VALUES ?supertaxon22 {taxon:561 taxon:620 taxon:590}
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ ?supertaxon22 .
    BIND(?this AS ?case1) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon23 {taxon:561 taxon:620 taxon:590}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon23 .
    })) .
    BIND(?this AS ?case2) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane24 ;
      up:sequence ?thisSequence .
    ?samtransmembrane24 up:range ?samtransmembraner25 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner25 faldo:begin ?samtransmembraneb26 ;
      faldo:end ?samtransmembranee27 .
    ?samtransmembraneb26 faldo:position ?samtransmembranebp28 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee27 faldo:position ?samtransmembraneep29 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam3) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01361a9')) AS ?keyword9) .
  BIND(URI(CONCAT(STR(?this), '#MF_01361a10')) AS ?keyword10) .
  BIND(URI(CONCAT(STR(?this), '#MF_01361a11')) AS ?keyword11) .
  OPTIONAL {
    ?this up:annotation ?samtransmembrane30 ;
      up:sequence ?thisSequence .
    ?samtransmembrane30 up:range ?samtransmembraner31 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner31 faldo:begin ?samtransmembraneb32 ;
      faldo:end ?samtransmembranee33 .
    ?samtransmembraneb32 faldo:position ?samtransmembranebp34 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee33 faldo:position ?samtransmembraneep35 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam12) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01361a18')) AS ?keyword18) .
  BIND(URI(CONCAT(STR(?this), '#MF_01361a19')) AS ?keyword19) .
  BIND(URI(CONCAT(STR(?this), '#MF_01361a20')) AS ?keyword20) .
}
""" .

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