@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_01076#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_01076#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-30>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-26>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-15>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-5>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-22>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-24>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-0>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01076#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_01076#construct-template-29>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01076#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01076#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:375494 up:source unirule:MF_01076 .
  _:375495 up:source unirule:MF_01076 .
  _:375496 up:source unirule:MF_01076 .
  _:375497 up:source unirule:MF_01076 .
  _:375498 up:source unirule:MF_01076 .
  _:375499 up:source unirule:MF_01076 .
  ?this up:annotation ?annotation2 ;
    up:classifiedWith GO:0005524 ,
      keyword:547 ,
      keyword:67 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName ?nameValue1 ;
    rdf:type up:Structured_Name .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the UPF0273 family.' .
  ?pfs3 up:annotation ?annotation4 .
  ?annotation4 faldo:begin ?pfsb5 ;
    faldo:end ?pfse6 ;
    up:ligand ?ligand7 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb5 faldo:position ?thisPositionOn8 ;
    rdf:type faldo:ExactPosition .
  ?pfse6 faldo:position ?thisPositionOn9 ;
    rdf:type faldo:ExactPosition .
  ?ligand7 rdfs:subClassOf chebi:30616 .
  _:375500 a rdf:Statement ;
    up:attribution _:375494 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:375501 a rdf:Statement ;
    up:attribution _:375495 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:375502 a rdf:Statement ;
    up:attribution _:375496 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:375503 a rdf:Statement ;
    up:attribution _:375497 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:375504 a rdf:Statement ;
    up:attribution _:375498 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005524 .
  _:375505 a rdf:Statement ;
    up:source unirule:MF_01076 ;
    rdf:subject ?pfs3 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:375506 a rdf:Statement ;
    up:attribution _:375499 ;
    rdf:subject ?pfs3 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01076
  #Rule MF_01076 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2023-06-01
  VALUES ?supertaxon10 {taxon:2419 taxon:2157}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01076 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon10 .
  BIND(URI(CONCAT(STR(?this), '#MF_01076a0')) AS ?name0) .
  OPTIONAL {
    ?this up:encodedBy ?gene14 .
    ?gene14 up:locusName ?geneLocus12 .
  }
  OPTIONAL {
    ?this up:encodedBy ?gene14 .
    ?gene14 up:orfName ?geneOrf13 .
  }
  BIND(IF(BOUND(?geneLocus12), ?geneLocus12, ?geneOrf13) AS ?part11) .
  BIND(CONCAT('UPF0273 protein ', ?part11) AS ?nameValue1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01076a2')) AS ?annotation2) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch19 faldo:location ?templateMotifSequenceMatchRegionQ9WYK420 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ9WYK422 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ9WYK4MF_0107615 .
    ?templateMotifSequenceMatchRegionQ9WYK420 faldo:begin ?templateMotifSequenceMatchBeginQ9WYK421 .
    ?templateMotifSequenceMatchBeginQ9WYK421 faldo:position ?templateMotifSequenceMatchBeginPositionQ9WYK416 ;
      faldo:reference isoform:Q9WYK4-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ9WYK422 edam:has_input signature:MF_01076 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch23 faldo:location ?targetMotifMatchRegionMatch24 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0107626 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ9WYK4MF_0107617 .
    ?targetMotifMatchRegionMatch24 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0107625 .
    ?targetMotifMatchRegionMatchBeginMF_0107625 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0107618 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0107626 edam:has_input signature:MF_01076 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ9WYK4MF_0107615, 1, (STRLEN(?templateMotifCigarQ9WYK4MF_0107615) - STRLEN(REPLACE(?templateMotifCigarQ9WYK4MF_0107615, CONCAT('^(?:-*[^-]){', STR(((30 - ?templateMotifSequenceMatchBeginPositionQ9WYK416) + 1)), '}'), '')))), '[a-z]', '')) AS ?step127) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ9WYK4MF_0107617, 1, (STRLEN(?targetMotifMatchCigarQ9WYK4MF_0107617) - STRLEN(REPLACE(?targetMotifMatchCigarQ9WYK4MF_0107617, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step127), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ9WYK4MF_0107617, 1, (STRLEN(?targetMotifMatchCigarQ9WYK4MF_0107617) - STRLEN(REPLACE(?targetMotifMatchCigarQ9WYK4MF_0107617, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step127), '}'), '')))), '[^-]', ''))) AS ?step228) .
    BIND(((?step228 + ?targetMotifMatchRegionMatchBeginPositionMF_0107618) - 1) AS ?thisPositionOn8) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ9WYK4MF_0107615, 1, (STRLEN(?templateMotifCigarQ9WYK4MF_0107615) - STRLEN(REPLACE(?templateMotifCigarQ9WYK4MF_0107615, CONCAT('^(?:-*[^-]){', STR(((37 - ?templateMotifSequenceMatchBeginPositionQ9WYK416) + 1)), '}'), '')))), '[a-z]', '')) AS ?step129) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ9WYK4MF_0107617, 1, (STRLEN(?targetMotifMatchCigarQ9WYK4MF_0107617) - STRLEN(REPLACE(?targetMotifMatchCigarQ9WYK4MF_0107617, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step129), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ9WYK4MF_0107617, 1, (STRLEN(?targetMotifMatchCigarQ9WYK4MF_0107617) - STRLEN(REPLACE(?targetMotifMatchCigarQ9WYK4MF_0107617, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step129), '}'), '')))), '[^-]', ''))) AS ?step230) .
    BIND(((?step230 + ?targetMotifMatchRegionMatchBeginPositionMF_0107618) - 1) AS ?thisPositionOn9) .
    BIND(?this AS ?pfs1t31) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn8))) AS ?pfsb5) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn9))) AS ?pfse6) .
    FILTER (REGEX('GGPGTGK[ST]', SUBSTR(?thisSequenceValue, ?thisPositionOn8, (?thisPositionOn9 - ?thisPositionOn8)))) .
    BIND(URI(CONCAT(STR(?this), '#MF_01076a4')) AS ?annotation4) .
    BIND(?this AS ?pfs3) .
  }
}
""" .

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