@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_01948#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_01948#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-41>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-58>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-39>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-28>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-62>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-19>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-42>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-25>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-52>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-57>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-49>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-64>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-47>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-70>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-66>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-68>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-18>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-61>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-22>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-69>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-63>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_01948#construct-template-65>, <http://purl.uniprot.org/unirules/MF_01948#construct-template-60>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01948#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01948#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:681955 up:source unirule:MF_01948 .
  _:681956 up:source unirule:MF_01948 .
  _:681957 up:source unirule:MF_01948 .
  _:681958 up:source unirule:MF_01948 .
  _:681959 up:source unirule:MF_01948 .
  _:681960 up:source unirule:MF_01948 .
  _:681961 up:source unirule:MF_01948 .
  _:681962 up:source unirule:MF_01948 .
  _:681963 up:source unirule:MF_01948 .
  _:681964 up:source unirule:MF_01948 .
  _:681965 up:source unirule:MF_01948 .
  _:681966 up:source unirule:MF_01948 .
  _:681967 up:source unirule:MF_01948 .
  _:681968 up:source unirule:MF_01948 .
  _:681969 up:source unirule:MF_01948 .
  _:681970 up:source unirule:MF_01948 .
  ?this up:annotation ?annotation1 ,
      ?annotation2 ;
    up:classifiedWith GO:0005886 ,
      keyword:1003 ,
      keyword:1133 ,
      keyword:472 ,
      keyword:812 ,
      keyword:997 .
  ?gene0 skos:prefLabel 'lapA' .
  ?annotation1 a up:Function_Annotation ;
    rdfs:comment 'Involved in the assembly of lipopolysaccharide (LPS).' .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the LapA 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 .
  ?sam14 up:classifiedWith keyword:175 .
  ?coiledCoil15 faldo:begin ?coiledCoilb16 ;
    faldo:end ?coiledCoile17 .
  ?coiledCoilb16 faldo:position ?coiledCoilbp18 .
  ?coiledCoile17 faldo:position ?coiledCoilep19 .
  ?keyword20 up:range ?coiledCoil15 .
  ?sam21 up:classifiedWith keyword:1133 ,
      keyword:472 ,
      keyword:812 .
  ?transmembrane22 faldo:begin ?transmembraneb23 ;
    faldo:end ?transmembranee24 .
  ?transmembraneb23 faldo:position ?transmembranebp25 .
  ?transmembranee24 faldo:position ?transmembraneep26 .
  ?keyword27 up:range ?transmembrane22 .
  ?keyword28 up:range ?transmembrane22 .
  ?keyword29 up:range ?transmembrane22 .
  _:681971 a rdf:Statement ;
    up:attribution _:681955 ;
    rdf:subject ?gene0 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene0 .
  _:681972 a rdf:Statement ;
    up:attribution _:681956 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:681973 a rdf:Statement ;
    up:attribution _:681957 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:681974 a rdf:Statement ;
    up:attribution _:681958 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:997 .
  _:681975 a rdf:Statement ;
    up:attribution _:681959 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1003 .
  _:681976 a rdf:Statement ;
    up:attribution _:681960 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:681977 a rdf:Statement ;
    up:attribution _:681961 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:681978 a rdf:Statement ;
    up:attribution _:681962 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:681979 a rdf:Statement ;
    up:attribution _:681963 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005886 .
  _:681980 a rdf:Statement ;
    up:attribution _:681964 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:681981 a rdf:Statement ;
    up:attribution _:681965 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:681982 a rdf:Statement ;
    up:attribution _:681966 ;
    rdf:subject ?sam5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
  _:681983 a rdf:Statement ;
    up:attribution _:681967 ;
    rdf:subject ?sam14 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:175 .
  _:681984 a rdf:Statement ;
    up:attribution _:681968 ;
    rdf:subject ?sam21 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:472 .
  _:681985 a rdf:Statement ;
    up:attribution _:681969 ;
    rdf:subject ?sam21 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:812 .
  _:681986 a rdf:Statement ;
    up:attribution _:681970 ;
    rdf:subject ?sam21 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:1133 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01948
  #Rule MF_01948 Created by:? on:2015-01-21 Modified by:Edouard de Castro on:2022-09-29
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01948 .
  ?thisOrganism rdfs:subClassOf+ taxon:1236 .
  BIND(URI(CONCAT(STR(?this), '#MF_01948a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01948a2')) AS ?annotation2) .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    ?thisOrganism rdfs:subClassOf+ taxon:91347 .
    BIND(?this AS ?case3) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:organism ?thisOrganism .
    FILTER (! (EXISTS {
      ?thisOrganism rdfs:subClassOf+ taxon:91347 .
    })) .
    BIND(?this AS ?case4) .
  }
  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 ?sam5) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01948a11')) AS ?keyword11) .
  BIND(URI(CONCAT(STR(?this), '#MF_01948a12')) AS ?keyword12) .
  BIND(URI(CONCAT(STR(?this), '#MF_01948a13')) AS ?keyword13) .
  OPTIONAL {
    ?this up:annotation ?samcc36 ;
      up:sequence ?thisSequence .
    ?samcc36 up:range ?samccr37 ;
      rdf:type up:Coiled_Coil_Annotation .
    ?samccr37 faldo:begin ?samccb38 ;
      faldo:end ?samcce39 .
    ?samccb38 faldo:position ?samccbp40 ;
      faldo:reference ?thisSequence .
    ?samcce39 faldo:position ?samccep41 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam14) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01948a20')) AS ?keyword20) .
  OPTIONAL {
    ?this up:annotation ?samtransmembrane42 ;
      up:sequence ?thisSequence .
    ?samtransmembrane42 up:range ?samtransmembraner43 ;
      rdf:type up:Transmembrane_Annotation .
    ?samtransmembraner43 faldo:begin ?samtransmembraneb44 ;
      faldo:end ?samtransmembranee45 .
    ?samtransmembraneb44 faldo:position ?samtransmembranebp46 ;
      faldo:reference ?thisSequence .
    ?samtransmembranee45 faldo:position ?samtransmembraneep47 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam21) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01948a27')) AS ?keyword27) .
  BIND(URI(CONCAT(STR(?this), '#MF_01948a28')) AS ?keyword28) .
  BIND(URI(CONCAT(STR(?this), '#MF_01948a29')) AS ?keyword29) .
}
""" .

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