@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_01566#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_01566#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-33>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-22>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-34>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-36>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01566#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01566#construct-template-40>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01566#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01566#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:566397 up:source unirule:MF_01566 .
  _:566398 up:source unirule:MF_01566 .
  _:566399 up:source unirule:MF_01566 .
  _:566400 up:source unirule:MF_01566 .
  _:566401 up:source unirule:MF_01566 .
  _:566402 up:source unirule:MF_01566 .
  _:566403 up:source unirule:MF_01566 .
  _:566404 up:source unirule:MF_01566 .
  _:566405 up:source unirule:MF_01566 .
  _:566406 up:source unirule:MF_01566 .
  ?this up:annotation ?annotation0 ,
      ?annotation2 ;
    up:classifiedWith GO:0005886 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?annotation0 a up:Subcellular_Location_Annotation .
  ?annotation0li1 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the UPF0370 family.' .
  ?sam5 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane6 faldo:begin ?transmembraneb7 ;
    faldo:end ?transmembranee8 .
  ?transmembraneb7 faldo:position ?transmembranebp9 .
  ?transmembranee8 faldo:position ?transmembraneep10 .
  ?keyword11 up:range ?transmembrane6 .
  ?keyword12 up:range ?transmembrane6 .
  ?keyword13 up:range ?transmembrane6 .
  _:566407 a rdf:Statement ;
    up:attribution _:566397 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation0 .
  _:566408 a rdf:Statement ;
    up:attribution _:566398 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:566409 a rdf:Statement ;
    up:attribution _:566399 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:566410 a rdf:Statement ;
    up:attribution _:566400 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:566411 a rdf:Statement ;
    up:attribution _:566401 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:566412 a rdf:Statement ;
    up:attribution _:566402 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:566413 a rdf:Statement ;
    up:attribution _:566403 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:566414 a rdf:Statement ;
    up:attribution _:566404 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:566415 a rdf:Statement ;
    up:attribution _:566405 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:566416 a rdf:Statement ;
    up:attribution _:566406 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01566
  #Rule MF_01566 Created by:? on:2006-06-12 Modified by:Catherine Rivoire on:2016-10-19
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01566 .
  ?thisOrganism rdfs:subClassOf+ taxon:91347 .
  BIND(URI(CONCAT(STR(?this), '#MF_01566a0')) AS ?annotation0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01566a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    VALUES ?supertaxon14 {taxon:561 taxon:620 taxon:590}
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ ?supertaxon14 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      VALUES ?supertaxon15 {taxon:561 taxon:620 taxon:590}
      ?thisOrganism rdfs:subClassOf+ ?supertaxon15 .
    })) .
    BIND(?this AS ?case4) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane16 ;
      up:sequence ?thisSequence .
    ?samtransmembrane16 up:range ?samtransmembraner17 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner17 faldo:begin ?samtransmembraneb18 ;
      faldo:end ?samtransmembranee19 .
    ?samtransmembraneb18 faldo:position ?samtransmembranebp20 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee19 faldo:position ?samtransmembraneep21 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam5) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01566a11')) AS ?keyword11) .
  BIND(URI(CONCAT(STR(?this), '#MF_01566a12')) AS ?keyword12) .
  BIND(URI(CONCAT(STR(?this), '#MF_01566a13')) AS ?keyword13) .
}
""" .

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