@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_01546#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_01546#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-33>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-21>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-28>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-10>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01546#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01546#construct-template-15>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01546#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01546#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:560503 up:source unirule:MF_01546 .
  _:560504 up:source unirule:MF_01546 .
  _:560505 up:source unirule:MF_01546 .
  _:560506 up:source unirule:MF_01546 .
  _:560507 up:source unirule:MF_01546 .
  _:560508 up:source unirule:MF_01546 .
  _:560509 up:source unirule:MF_01546 .
  _:560510 up:source unirule:MF_01546 .
  _:560511 up:source unirule:MF_01546 .
  _:560512 up:source unirule:MF_01546 .
  _:560513 up:source unirule:MF_01546 .
  _:560514 up:source unirule:MF_01546 .
  ?this up:annotation ?annotation2 ,
      ?annotation4 ;
    up:classifiedWith GO:0005886 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Protein AaeX' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'aaeX' .
  ?annotation2 a up:Subcellular_Location_Annotation .
  ?annotation2li3 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the AaeX family.' .
  ?sam6 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane7 faldo:begin ?transmembraneb8 ;
    faldo:end ?transmembranee9 .
  ?transmembraneb8 faldo:position ?transmembranebp10 .
  ?transmembranee9 faldo:position ?transmembraneep11 .
  ?keyword12 up:range ?transmembrane7 .
  ?keyword13 up:range ?transmembrane7 .
  ?keyword14 up:range ?transmembrane7 .
  _:560515 a rdf:Statement ;
    up:attribution _:560503 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:560516 a rdf:Statement ;
    up:attribution _:560504 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:560517 a rdf:Statement ;
    up:attribution _:560505 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:560518 a rdf:Statement ;
    up:attribution _:560506 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:560519 a rdf:Statement ;
    up:attribution _:560507 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:560520 a rdf:Statement ;
    up:attribution _:560508 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:560521 a rdf:Statement ;
    up:attribution _:560509 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:560522 a rdf:Statement ;
    up:attribution _:560510 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:560523 a rdf:Statement ;
    up:attribution _:560511 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:560524 a rdf:Statement ;
    up:attribution _:560512 ;
    rdf:subject ?sam6 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:560525 a rdf:Statement ;
    up:attribution _:560513 ;
    rdf:subject ?sam6 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:560526 a rdf:Statement ;
    up:attribution _:560514 ;
    rdf:subject ?sam6 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01546
  #Rule MF_01546 Created by:? on:2005-11-10 Modified by:Catherine Rivoire on:2016-10-19
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01546 .
  ?thisOrganism rdfs:subClassOf+ taxon:91347 .
  BIND(URI(CONCAT(STR(?this), '#MF_01546a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01546a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01546a4')) AS ?annotation4) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:561 .
    BIND(?this AS ?case5) .
  }
  OPTIONAL {
    ?this up:annotation ?samtransmembrane15 ;
      up:sequence ?thisSequence .
    ?samtransmembrane15 up:range ?samtransmembraner16 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner16 faldo:begin ?samtransmembraneb17 ;
      faldo:end ?samtransmembranee18 .
    ?samtransmembraneb17 faldo:position ?samtransmembranebp19 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee18 faldo:position ?samtransmembraneep20 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam6) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01546a12')) AS ?keyword12) .
  BIND(URI(CONCAT(STR(?this), '#MF_01546a13')) AS ?keyword13) .
  BIND(URI(CONCAT(STR(?this), '#MF_01546a14')) AS ?keyword14) .
}
""" .

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