@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_01703#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_01703#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-23>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-40>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-38>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-32>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-60>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-73>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-61>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-64>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-62>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-90>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-69>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-84>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-75>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-66>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-86>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-54>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-80>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-89>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-56>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-91>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-63>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-87>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-76>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-88>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-70>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-65>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-71>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-83>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-55>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-85>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-78>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-82>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-81>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-93>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-72>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-74>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-92>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-79>,
    <http://purl.uniprot.org/unirules/MF_01703#construct-template-77>, <http://purl.uniprot.org/unirules/MF_01703#construct-template-94>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01703#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01703#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:623363 up:source unirule:MF_01703 .
  _:623364 up:source unirule:MF_01703 .
  _:623365 up:source unirule:MF_01703 .
  _:623366 up:source unirule:MF_01703 .
  _:623367 up:source unirule:MF_01703 .
  _:623368 up:source unirule:MF_01703 .
  _:623369 up:source unirule:MF_01703 .
  _:623370 up:source unirule:MF_01703 .
  _:623371 up:source unirule:MF_01703 .
  _:623372 up:source unirule:MF_01703 .
  _:623373 up:source unirule:MF_01703 .
  _:623374 up:source unirule:MF_01703 .
  _:623375 up:source unirule:MF_01703 .
  _:623376 up:source unirule:MF_01703 .
  _:623377 up:source unirule:MF_01703 .
  _:623378 up:source unirule:MF_01703 .
  _:623379 up:source unirule:MF_01703 .
  _:623380 up:source unirule:MF_01703 .
  _:623381 up:source unirule:MF_01703 .
  _:623382 up:source unirule:MF_01703 .
  _:623383 up:source unirule:MF_01703 .
  _:623384 up:source unirule:MF_01703 .
  _:623385 up:source unirule:MF_01703 .
  _:623386 up:source unirule:MF_01703 .
  ?this up:alternativeName ?name1 ;
    up:annotation ?annotation3 ,
      ?annotation4 ,
      ?annotation6 ,
      ?annotation7 ,
      ?annotation8 ;
    up:classifiedWith GO:0006869 ,
      GO:0034040 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:1278 ,
      keyword:445 ,
      keyword:472 ,
      keyword:547 ,
      keyword:67 ,
      keyword:812 ,
      keyword:813 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '7.5.2.6' ;
    up:fullName 'ATP-dependent lipid A-core flippase' ;
    rdf:type up:Structured_Name .
  ?name1 up:fullName 'Lipid A export ATP-binding/permease protein MsbA' ;
    rdf:type up:Structured_Name .
  ?gene2 skos:prefLabel 'msbA' .
  ?annotation3 a up:Function_Annotation ;
    rdfs:comment 'Involved in lipopolysaccharide (LPS) biosynthesis. Translocates lipid A-core from the inner to the outer leaflet of the inner membrane. Transmembrane domains (TMD) form a pore in the inner membrane and the ATP-binding domain (NBD) is responsible for energy generation.' .
  ?annotation4 up:activity ?activity5 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity5 up:enzymeClass <http://purl.uniprot.org/enzyme/7.5.2.6>.
  ?annotation6 a up:Subunit_Annotation ;
    rdfs:comment 'Homodimer.' .
  ?annotation7 a up:Domain_Annotation ;
    rdfs:comment 'In MsbA the ATP-binding domain (NBD) and the transmembrane domain (TMD) are fused.' .
  ?annotation8 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the ABC transporter superfamily. Lipid exporter (TC 3.A.1.106) family.' .
  ?case9 up:classifiedWith GO:0005886 .
  ?case10 up:classifiedWith keyword:997 .
  ?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 .
  _:623387 a rdf:Statement ;
    up:attribution _:623363 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:623388 a rdf:Statement ;
    up:attribution _:623364 ;
    rdf:subject ?this ;
    rdf:predicate up:alternativeName ;
    rdf:object ?name1 .
  _:623389 a rdf:Statement ;
    up:attribution _:623365 ;
    rdf:subject ?gene2 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene2 .
  _:623390 a rdf:Statement ;
    up:attribution _:623366 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:623391 a rdf:Statement ;
    up:attribution _:623367 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:623392 a rdf:Statement ;
    up:attribution _:623368 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation6 .
  _:623393 a rdf:Statement ;
    up:attribution _:623369 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:623394 a rdf:Statement ;
    up:attribution _:623370 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation8 .
  _:623395 a rdf:Statement ;
    up:attribution _:623371 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006869 .
  _:623396 a rdf:Statement ;
    up:attribution _:623372 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0034040 .
  _:623397 a rdf:Statement ;
    up:attribution _:623373 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:623398 a rdf:Statement ;
    up:attribution _:623374 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:623399 a rdf:Statement ;
    up:attribution _:623375 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1278 .
  _:623400 a rdf:Statement ;
    up:attribution _:623376 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:445 .
  _:623401 a rdf:Statement ;
    up:attribution _:623377 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:623402 a rdf:Statement ;
    up:attribution _:623378 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:623403 a rdf:Statement ;
    up:attribution _:623379 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:623404 a rdf:Statement ;
    up:attribution _:623380 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:623405 a rdf:Statement ;
    up:attribution _:623381 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:813 .
  _:623406 a rdf:Statement ;
    up:attribution _:623382 ;
    rdf:subject ?case9 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:623407 a rdf:Statement ;
    up:attribution _:623383 ;
    rdf:subject ?case10 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:623408 a rdf:Statement ;
    up:attribution _:623384 ;
    rdf:subject ?sam12 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:623409 a rdf:Statement ;
    up:attribution _:623385 ;
    rdf:subject ?sam12 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:623410 a rdf:Statement ;
    up:attribution _:623386 ;
    rdf:subject ?sam12 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01703
  #Rule MF_01703 Created by:? on:2007-03-26 Modified by:Edouard de Castro on:2023-06-01
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso prosite:PS51239 .
  ?thisOrganism rdfs:subClassOf+ taxon:1224 .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a1')) AS ?name1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a6')) AS ?annotation6) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a7')) AS ?annotation7) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a8')) AS ?annotation8) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:2 .
    BIND(?this AS ?case9) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#2>.
    } UNION {
      ?this up:proteome ?p21 .
      ?p21 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#2>.
    }
    BIND(?this AS ?case10) .
  }
  OPTIONAL {
    ?this a up:Protein .
    {
      FILTER (! (EXISTS {
        {
          ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#any>.
        } UNION {
          ?this up:proteome ?p22 .
          ?p22 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#any>.
        }
      })) .
    } UNION {
      {
        ?this up:proteome <http://purl.uniprot.org/proteomes/Membrane#1>.
      } UNION {
        ?this up:proteome ?p23 .
        ?p23 skos:narrower <http://purl.uniprot.org/proteomes/Membrane#1>.
      }
    }
    BIND(?this AS ?case11) .
  }
  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 ?sam12) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01703a18')) AS ?keyword18) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a19')) AS ?keyword19) .
  BIND(URI(CONCAT(STR(?this), '#MF_01703a20')) AS ?keyword20) .
}
""" .

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