@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_01832#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_01832#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-37>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-6>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-2>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-3>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-34>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-10>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-30>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-7>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-31>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-26>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-41>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-12>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-23>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-20>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-18>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-17>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-28>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-43>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-33>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-29>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-24>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-27>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-44>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-35>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-11>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-47>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-45>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-25>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-46>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-49>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-40>,
    <http://purl.uniprot.org/unirules/MF_01832#construct-template-19>, <http://purl.uniprot.org/unirules/MF_01832#construct-template-42>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01832#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01832#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:640332 up:source unirule:MF_01832 .
  _:640333 up:source unirule:MF_01832 .
  _:640334 up:source unirule:MF_01832 .
  _:640335 up:source unirule:MF_01832 .
  _:640336 up:source unirule:MF_01832 .
  _:640337 up:source unirule:MF_01832 .
  _:640338 up:source unirule:MF_01832 .
  _:640339 up:source unirule:MF_01832 .
  _:640340 up:source unirule:MF_01832 .
  _:640341 up:source unirule:MF_01832 .
  ?this up:annotation ?annotation2 ,
      ?annotation3 ,
      ?annotation4 ,
      ?annotation5 ,
      ?annotation7 ;
    up:classifiedWith GO:0005737 ,
      keyword:963 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName 'Cysteine desulfuration protein SufE' ;
    rdf:type up:Structured_Name .
  ?gene1 skos:prefLabel 'sufE' .
  ?annotation2 a up:Function_Annotation ;
    rdfs:comment 'Participates in cysteine desulfuration mediated by SufS. Cysteine desulfuration mobilizes sulfur from L-cysteine to yield L-alanine and constitutes an essential step in sulfur metabolism for biosynthesis of a variety of sulfur-containing biomolecules. Functions as a sulfur acceptor for SufS, by mediating the direct transfer of the sulfur atom from the S-sulfanylcysteine of SufS, an intermediate product of cysteine desulfuration process.' .
  ?annotation3 a up:Pathway_Annotation ;
    rdfs:comment 'Cofactor biosynthesis; iron-sulfur cluster biosynthesis.' .
  ?annotation4 a up:Subunit_Annotation ;
    rdfs:comment 'Homodimer. Interacts with SufS.' .
  ?annotation5 a up:Subcellular_Location_Annotation .
  ?annotation5li6 up:cellularComponent <http://purl.uniprot.org/locations/null>.
  ?annotation7 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the SufE family.' .
  ?pfs8 up:annotation ?annotation9 .
  ?annotation9 faldo:begin ?pfsb10 ;
    faldo:end ?pfse11 ;
    rdf:type up:Active_Site_Annotation ;
    rdfs:comment 'Cysteine persulfide intermediate' .
  ?pfsb10 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  ?pfse11 faldo:position ?thisPositionOn13 ;
    rdf:type faldo:ExactPosition .
  _:640342 a rdf:Statement ;
    up:attribution _:640332 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:640343 a rdf:Statement ;
    up:attribution _:640333 ;
    rdf:subject ?gene1 ;
    rdf:predicate up:encodedBy ;
    rdf:object ?gene1 .
  _:640344 a rdf:Statement ;
    up:attribution _:640334 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:640345 a rdf:Statement ;
    up:attribution _:640335 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:640346 a rdf:Statement ;
    up:attribution _:640336 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:640347 a rdf:Statement ;
    up:attribution _:640337 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation5 .
  _:640348 a rdf:Statement ;
    up:attribution _:640338 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:640349 a rdf:Statement ;
    up:attribution _:640339 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:963 .
  _:640350 a rdf:Statement ;
    up:attribution _:640340 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0005737 .
  _:640351 a rdf:Statement ;
    up:source unirule:MF_01832 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
  _:640352 a rdf:Statement ;
    up:attribution _:640341 ;
    rdf:subject ?pfs8 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation9 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01832
  #Rule MF_01832 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2019-11-19
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01832 .
  ?thisOrganism rdfs:subClassOf+ taxon:91347 .
  BIND(URI(CONCAT(STR(?this), '#MF_01832a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_01832a2')) AS ?annotation2) .
  BIND(URI(CONCAT(STR(?this), '#MF_01832a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_01832a4')) AS ?annotation4) .
  BIND(URI(CONCAT(STR(?this), '#MF_01832a5')) AS ?annotation5) .
  BIND(URI(CONCAT(STR(?this), '#MF_01832a7')) AS ?annotation7) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch18 faldo:location ?templateMotifSequenceMatchRegionP7619419 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationP7619421 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarP76194MF_0183214 .
    ?templateMotifSequenceMatchRegionP7619419 faldo:begin ?templateMotifSequenceMatchBeginP7619420 .
    ?templateMotifSequenceMatchBeginP7619420 faldo:position ?templateMotifSequenceMatchBeginPositionP7619415 ;
      faldo:reference isoform:P76194-1 .
    ?templateMotifSequenceProfileAlignmentOperationP7619421 edam:has_input signature:MF_01832 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch22 faldo:location ?targetMotifMatchRegionMatch23 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0183225 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarP76194MF_0183216 .
    ?targetMotifMatchRegionMatch23 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0183224 .
    ?targetMotifMatchRegionMatchBeginMF_0183224 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0183217 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0183225 edam:has_input signature:MF_01832 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarP76194MF_0183214, 1, (STRLEN(?templateMotifCigarP76194MF_0183214) - STRLEN(REPLACE(?templateMotifCigarP76194MF_0183214, CONCAT('^(?:-*[^-]){', STR(((51 - ?templateMotifSequenceMatchBeginPositionP7619415) + 1)), '}'), '')))), '[a-z]', '')) AS ?step126) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarP76194MF_0183216, 1, (STRLEN(?targetMotifMatchCigarP76194MF_0183216) - STRLEN(REPLACE(?targetMotifMatchCigarP76194MF_0183216, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step126), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarP76194MF_0183216, 1, (STRLEN(?targetMotifMatchCigarP76194MF_0183216) - STRLEN(REPLACE(?targetMotifMatchCigarP76194MF_0183216, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step126), '}'), '')))), '[^-]', ''))) AS ?step227) .
    BIND(((?step227 + ?targetMotifMatchRegionMatchBeginPositionMF_0183217) - 1) AS ?thisPositionOn12) .
    BIND(?thisPositionOn12 AS ?thisPositionOn13) .
    BIND(?this AS ?pfs1t28) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn12))) AS ?pfsb10) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn13))) AS ?pfse11) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn12, 1) = 'C')) .
    BIND(URI(CONCAT(STR(?this), '#MF_01832a9')) AS ?annotation9) .
    BIND(?this AS ?pfs8) .
  }
}
""" .

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