@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_00096#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_00096#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-28>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-38>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-4>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-52>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-48>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-49>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-33>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-11>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-6>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-10>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-46>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-36>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-26>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-20>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-39>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-19>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-40>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-31>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-34>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-50>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-21>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-35>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-12>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-1>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-16>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-41>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-17>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-14>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-43>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-51>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-29>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-23>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-54>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-45>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-27>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_00096#construct-template-42>, <http://purl.uniprot.org/unirules/MF_00096#construct-template-44>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00096#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00096#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:36851 up:source unirule:MF_00096 .
  _:36852 up:source unirule:MF_00096 .
  _:36853 up:source unirule:MF_00096 .
  _:36854 up:source unirule:MF_00096 .
  _:36855 up:source unirule:MF_00096 .
  _:36856 up:source unirule:MF_00096 .
  _:36857 up:source unirule:MF_00096 .
  _:36858 up:source unirule:MF_00096 .
  _:36859 up:source unirule:MF_00096 .
  _:36860 up:source unirule:MF_00096 .
  _:36861 up:source unirule:MF_00096 .
  _:36862 up:source unirule:MF_00096 .
  _:36863 up:source unirule:MF_00096 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ;
    up:classifiedWith GO:0003684 ,
      GO:0005524 ,
      GO:0006298 ,
      keyword:227 ,
      keyword:234 ,
      keyword:238 ,
      keyword:547 ,
      keyword:67 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'DNA mismatch repair protein MutS' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'mutS' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'This protein is involved in the repair of mismatches in DNA. It is possible that it carries out the mismatch recognition step. This protein has a weak ATPase activity.' .
  ?annotation3 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the DNA mismatch repair MutS family.' .
  ?pfs4 up:annotation ?annotation5 .
  ?annotation5 faldo:begin ?pfsb6 ;
    faldo:end ?pfse7 ;
    up:ligand ?ligand8 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb6 faldo:position ?thisPositionOn9 ;
    rdf:type faldo:ExactPosition .
  ?pfse7 faldo:position ?thisPositionOn10 ;
    rdf:type faldo:ExactPosition .
  ?ligand8 rdfs:subClassOf chebi:30616 .
  _:36864 a rdf:Statement ;
    up:attribution _:36851 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:36865 a rdf:Statement ;
    up:attribution _:36852 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:36866 a rdf:Statement ;
    up:attribution _:36853 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:36867 a rdf:Statement ;
    up:attribution _:36854 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:36868 a rdf:Statement ;
    up:attribution _:36855 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:227 .
  _:36869 a rdf:Statement ;
    up:attribution _:36856 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:234 .
  _:36870 a rdf:Statement ;
    up:attribution _:36857 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:67 .
  _:36871 a rdf:Statement ;
    up:attribution _:36858 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:547 .
  _:36872 a rdf:Statement ;
    up:attribution _:36859 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:238 .
  _:36873 a rdf:Statement ;
    up:attribution _:36860 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005524 .
  _:36874 a rdf:Statement ;
    up:attribution _:36861 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0003684 .
  _:36875 a rdf:Statement ;
    up:attribution _:36862 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0006298 .
  _:36876 a rdf:Statement ;
    up:source unirule:MF_00096 ;
    rdf:subject ?pfs4 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:36877 a rdf:Statement ;
    up:attribution _:36863 ;
    rdf:subject ?pfs4 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00096
  #Rule MF_00096 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2023-06-01
  VALUES ?supertaxon11 {taxon:2 taxon:2157}
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00096 .
  ?thisOrganism rdfs:subClassOf+ ?supertaxon11 .
  BIND(URI(CONCAT(STR(?this), '#MF_00096a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00096a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_00096a3')) AS ?annotation3) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch16 faldo:location ?templateMotifSequenceMatchRegionP2390917 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP2390919 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP23909MF_0009612 .
    ?templateMotifSequenceMatchRegionP2390917 faldo:begin ?templateMotifSequenceMatchBeginP2390918 .
    ?templateMotifSequenceMatchBeginP2390918 faldo:position ?templateMotifSequenceMatchBeginPositionP2390913 ;
      faldo:reference isoform:P23909-1 .
    ?templateMotifSequenceProfileAlignmentOperationP2390919 edam:has_input signature:MF_00096 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch20 faldo:location ?targetMotifMatchRegionMatch21 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0009623 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP23909MF_0009614 .
    ?targetMotifMatchRegionMatch21 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0009622 .
    ?targetMotifMatchRegionMatchBeginMF_0009622 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0009615 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0009623 edam:has_input signature:MF_00096 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP23909MF_0009612, 1, (STRLEN(?templateMotifCigarP23909MF_0009612) - STRLEN(REPLACE(?templateMotifCigarP23909MF_0009612, CONCAT('^(?:-*[^-]){', STR(((614 - ?templateMotifSequenceMatchBeginPositionP2390913) + 1)), '}'), '')))), '[a-z]', '')) AS ?step124) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP23909MF_0009614, 1, (STRLEN(?targetMotifMatchCigarP23909MF_0009614) - STRLEN(REPLACE(?targetMotifMatchCigarP23909MF_0009614, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step124), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP23909MF_0009614, 1, (STRLEN(?targetMotifMatchCigarP23909MF_0009614) - STRLEN(REPLACE(?targetMotifMatchCigarP23909MF_0009614, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step124), '}'), '')))), '[^-]', ''))) AS ?step225) .
    BIND(((?step225 + ?targetMotifMatchRegionMatchBeginPositionMF_0009615) - 1) AS ?thisPositionOn9) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP23909MF_0009612, 1, (STRLEN(?templateMotifCigarP23909MF_0009612) - STRLEN(REPLACE(?templateMotifCigarP23909MF_0009612, CONCAT('^(?:-*[^-]){', STR(((621 - ?templateMotifSequenceMatchBeginPositionP2390913) + 1)), '}'), '')))), '[a-z]', '')) AS ?step126) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP23909MF_0009614, 1, (STRLEN(?targetMotifMatchCigarP23909MF_0009614) - STRLEN(REPLACE(?targetMotifMatchCigarP23909MF_0009614, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step126), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP23909MF_0009614, 1, (STRLEN(?targetMotifMatchCigarP23909MF_0009614) - STRLEN(REPLACE(?targetMotifMatchCigarP23909MF_0009614, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step126), '}'), '')))), '[^-]', ''))) AS ?step227) .
    BIND(((?step227 + ?targetMotifMatchRegionMatchBeginPositionMF_0009615) - 1) AS ?thisPositionOn10) .
    BIND(?this AS ?pfs1t28) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn9))) AS ?pfsb6) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn10))) AS ?pfse7) .
    FILTER (REGEX('GPN[ARNDCQEGHILKMFPSTWYVBZJUOX][ARNDCQEGHILKMFPSTWYVBZJUOX]GKS', SUBSTR(?thisSequenceValue, ?thisPositionOn9, (?thisPositionOn10 - ?thisPositionOn9)))) .
    BIND(URI(CONCAT(STR(?this), '#MF_00096a5')) AS ?annotation5) .
    BIND(?this AS ?pfs4) .
  }
}
""" .

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