@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_00704#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_00704#construct-template-57>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-19>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-24>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-32>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-20>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-65>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-56>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-62>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-33>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-31>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-55>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-28>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-58>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-79>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-30>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-54>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-78>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-48>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-23>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-51>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-53>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-77>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-50>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-13>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-37>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-47>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-34>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-36>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-66>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-109>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-11>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-9>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-35>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-59>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-45>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-52>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-61>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-29>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-3>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-72>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-96>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-60>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-2>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-71>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-95>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-14>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-40>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-46>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-70>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-94>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-26>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-93>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-25>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-76>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-0>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-38>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-75>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-99>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-63>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-74>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-98>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-73>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-97>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-121>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-122>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-44>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-120>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-16>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-27>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-42>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-100>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-124>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-123>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-92>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-43>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-17>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-91>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-49>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-90>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-18>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-106>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-64>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-105>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-129>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-108>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-107>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-39>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-102>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-126>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-15>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-22>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-101>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-125>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-104>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-128>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-103>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-127>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-69>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-21>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-68>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-67>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-41>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-84>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-83>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-82>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-81>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-89>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-88>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-87>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-86>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-85>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-132>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-133>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-112>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-110>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-111>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-80>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-131>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-130>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-118>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-117>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-119>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-114>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-113>, <http://purl.uniprot.org/unirules/MF_00704#construct-template-116>,
    <http://purl.uniprot.org/unirules/MF_00704#construct-template-115>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_00704#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_00704#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:261258 up:source unirule:MF_00704 .
  _:261259 up:source unirule:MF_00704 .
  _:261260 up:source unirule:MF_00704 .
  _:261261 up:source unirule:MF_00704 .
  _:261262 up:source unirule:MF_00704 .
  _:261263 up:source unirule:MF_00704 .
  _:261264 up:source unirule:MF_00704 .
  _:261265 up:source unirule:MF_00704 .
  _:261266 up:source unirule:MF_00704 .
  _:261267 up:source unirule:MF_00704 .
  _:261268 up:source unirule:MF_00704 .
  _:261269 up:source unirule:MF_00704 .
  _:261270 up:source unirule:MF_00704 .
  _:261271 up:source unirule:MF_00704 .
  _:261272 up:source unirule:MF_00704 .
  _:261273 up:source unirule:MF_00704 .
  ?this up:annotation ?annotation1 ,
      ?annotation3 ,
      ?annotation4 ;
    up:classifiedWith GO:0019807 ,
      keyword:378 ;
    up:recommendedName ?name0 .
  ?name0 up:ecName '3.5.1.15' ;
    up:fullName 'Probable aspartoacylase' ;
    rdf:type up:Structured_Name .
  ?annotation1 up:activity ?activity2 ;
    rdf:type up:Catalytic_Activity_Annotation .
  ?activity2 up:catalyticActivity <http://rdf.rhea-db.org/10872>;
    up:enzymeClass <http://purl.uniprot.org/enzyme/3.5.1.15>.
  ?annotation3 up:cofactor chebi:29105 ;
    rdf:type up:Cofactor_Annotation ;
    rdfs:comment 'Binds 1 zinc ion per subunit.' .
  ?annotation4 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the AspA/AstE family. Aspartoacylase subfamily.' .
  ?case5 up:classifiedWith GO:0008270 ,
      keyword:479 ,
      keyword:862 .
  ?pfs6 up:annotation ?annotation7 ,
      ?annotation13 ,
      ?annotation19 .
  ?annotation7 faldo:begin ?pfsb8 ;
    faldo:end ?pfse9 ;
    up:ligand ?ligand10 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb8 faldo:position ?thisPositionOn11 ;
    rdf:type faldo:ExactPosition .
  ?pfse9 faldo:position ?thisPositionOn12 ;
    rdf:type faldo:ExactPosition .
  ?ligand10 rdfs:subClassOf chebi:29105 .
  ?annotation13 faldo:begin ?pfsb14 ;
    faldo:end ?pfse15 ;
    up:ligand ?ligand16 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb14 faldo:position ?thisPositionOn17 ;
    rdf:type faldo:ExactPosition .
  ?pfse15 faldo:position ?thisPositionOn18 ;
    rdf:type faldo:ExactPosition .
  ?ligand16 rdfs:subClassOf chebi:29105 .
  ?annotation19 faldo:begin ?pfsb20 ;
    faldo:end ?pfse21 ;
    up:ligand ?ligand22 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb20 faldo:position ?thisPositionOn23 ;
    rdf:type faldo:ExactPosition .
  ?pfse21 faldo:position ?thisPositionOn24 ;
    rdf:type faldo:ExactPosition .
  ?ligand22 rdfs:subClassOf chebi:29105 .
  ?pfs25 up:annotation ?annotation26 .
  ?annotation26 faldo:begin ?pfsb27 ;
    faldo:end ?pfse28 ;
    up:ligand ?ligand29 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb27 faldo:position ?thisPositionOn31 ;
    rdf:type faldo:ExactPosition .
  ?pfse28 faldo:position ?thisPositionOn32 ;
    rdf:type faldo:ExactPosition .
  ?ligand29 rdfs:subClassOf ?molecule30 .
  ?molecule30 rdfs:label 'substrate' .
  ?pfs33 up:annotation ?annotation34 .
  ?annotation34 faldo:begin ?pfsb35 ;
    faldo:end ?pfse36 ;
    up:ligand ?ligand37 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb35 faldo:position ?thisPositionOn39 ;
    rdf:type faldo:ExactPosition .
  ?pfse36 faldo:position ?thisPositionOn40 ;
    rdf:type faldo:ExactPosition .
  ?ligand37 rdfs:subClassOf ?molecule38 .
  ?molecule38 rdfs:label 'substrate' .
  ?pfs41 up:annotation ?annotation42 .
  ?annotation42 faldo:begin ?pfsb43 ;
    faldo:end ?pfse44 ;
    up:ligand ?ligand45 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb43 faldo:position ?thisPositionOn47 ;
    rdf:type faldo:ExactPosition .
  ?pfse44 faldo:position ?thisPositionOn48 ;
    rdf:type faldo:ExactPosition .
  ?ligand45 rdfs:subClassOf ?molecule46 .
  ?molecule46 rdfs:label 'substrate' .
  ?pfs49 up:annotation ?annotation50 .
  ?annotation50 faldo:begin ?pfsb51 ;
    faldo:end ?pfse52 ;
    up:ligand ?ligand53 ;
    rdf:type up:Binding_Site_Annotation .
  ?pfsb51 faldo:position ?thisPositionOn55 ;
    rdf:type faldo:ExactPosition .
  ?pfse52 faldo:position ?thisPositionOn56 ;
    rdf:type faldo:ExactPosition .
  ?ligand53 rdfs:subClassOf ?molecule54 .
  ?molecule54 rdfs:label 'substrate' .
  _:261274 a rdf:Statement ;
    up:attribution _:261258 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:261275 a rdf:Statement ;
    up:attribution _:261259 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation1 .
  _:261276 a rdf:Statement ;
    up:attribution _:261260 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation3 .
  _:261277 a rdf:Statement ;
    up:attribution _:261261 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation4 .
  _:261278 a rdf:Statement ;
    up:attribution _:261262 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:378 .
  _:261279 a rdf:Statement ;
    up:attribution _:261263 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019807 .
  _:261280 a rdf:Statement ;
    up:attribution _:261264 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:479 .
  _:261281 a rdf:Statement ;
    up:attribution _:261265 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:862 .
  _:261282 a rdf:Statement ;
    up:attribution _:261266 ;
    rdf:subject ?case5 ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0008270 .
  _:261283 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:261284 a rdf:Statement ;
    up:attribution _:261267 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation7 .
  _:261285 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation13 .
  _:261286 a rdf:Statement ;
    up:attribution _:261268 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation13 .
  _:261287 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation19 .
  _:261288 a rdf:Statement ;
    up:attribution _:261269 ;
    rdf:subject ?pfs6 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation19 .
  _:261289 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs25 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation26 .
  _:261290 a rdf:Statement ;
    up:attribution _:261270 ;
    rdf:subject ?pfs25 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation26 .
  _:261291 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs33 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation34 .
  _:261292 a rdf:Statement ;
    up:attribution _:261271 ;
    rdf:subject ?pfs33 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation34 .
  _:261293 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs41 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation42 .
  _:261294 a rdf:Statement ;
    up:attribution _:261272 ;
    rdf:subject ?pfs41 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation42 .
  _:261295 a rdf:Statement ;
    up:source unirule:MF_00704 ;
    rdf:subject ?pfs49 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation50 .
  _:261296 a rdf:Statement ;
    up:attribution _:261273 ;
    rdf:subject ?pfs49 ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation50 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_00704
  #Rule MF_00704 Created by:? on:2005-02-28 Modified by:Edouard de Castro on:2024-09-02
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_00704 .
  ?thisOrganism rdfs:subClassOf+ taxon:1117 .
  BIND(URI(CONCAT(STR(?this), '#MF_00704a0')) AS ?name0) .
  BIND(URI(CONCAT(STR(?this), '#MF_00704a1')) AS ?annotation1) .
  BIND(URI(CONCAT(STR(?this), '#MF_00704a3')) AS ?annotation3) .
  BIND(URI(CONCAT(STR(?this), '#MF_00704a4')) AS ?annotation4) .
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch61 faldo:location ?templateMotifSequenceMatchRegionQ8YQC162 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8YQC164 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8YQC1MF_0070457 .
    ?templateMotifSequenceMatchRegionQ8YQC162 faldo:begin ?templateMotifSequenceMatchBeginQ8YQC163 .
    ?templateMotifSequenceMatchBeginQ8YQC163 faldo:position ?templateMotifSequenceMatchBeginPositionQ8YQC158 ;
      faldo:reference isoform:Q8YQC1-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8YQC164 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch65 faldo:location ?targetMotifMatchRegionMatch66 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0070468 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8YQC1MF_0070459 .
    ?targetMotifMatchRegionMatch66 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0070467 .
    ?targetMotifMatchRegionMatchBeginMF_0070467 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0070460 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0070468 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    BIND(?this AS ?tagFTGRP_1) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_0070457, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_0070457) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_0070457, CONCAT('^(?:-*[^-]){', STR(((14 - ?templateMotifSequenceMatchBeginPositionQ8YQC158) + 1)), '}'), '')))), '[a-z]', '')) AS ?step169) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070459, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070459) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070459, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step169), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070459, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070459) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070459, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step169), '}'), '')))), '[^-]', ''))) AS ?step270) .
    BIND(((?step270 + ?targetMotifMatchRegionMatchBeginPositionMF_0070460) - 1) AS ?thisPositionOn11) .
    BIND(?thisPositionOn11 AS ?thisPositionOn12) .
    BIND(?this AS ?pfs1t71) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn11))) AS ?pfsb8) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn12))) AS ?pfse9) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn11, 1) = 'H')) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_0070457, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_0070457) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_0070457, CONCAT('^(?:-*[^-]){', STR(((17 - ?templateMotifSequenceMatchBeginPositionQ8YQC158) + 1)), '}'), '')))), '[a-z]', '')) AS ?step172) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070459, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070459) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070459, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step172), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070459, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070459) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070459, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step172), '}'), '')))), '[^-]', ''))) AS ?step273) .
    BIND(((?step273 + ?targetMotifMatchRegionMatchBeginPositionMF_0070460) - 1) AS ?thisPositionOn17) .
    BIND(?thisPositionOn17 AS ?thisPositionOn18) .
    BIND(?this AS ?pfs1t74) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn17))) AS ?pfsb14) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn18))) AS ?pfse15) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn17, 1) = 'E')) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_0070457, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_0070457) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_0070457, CONCAT('^(?:-*[^-]){', STR(((106 - ?templateMotifSequenceMatchBeginPositionQ8YQC158) + 1)), '}'), '')))), '[a-z]', '')) AS ?step175) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070459, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070459) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070459, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step175), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070459, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070459) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070459, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step175), '}'), '')))), '[^-]', ''))) AS ?step276) .
    BIND(((?step276 + ?targetMotifMatchRegionMatchBeginPositionMF_0070460) - 1) AS ?thisPositionOn23) .
    BIND(?thisPositionOn23 AS ?thisPositionOn24) .
    BIND(?this AS ?pfs1t77) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn23))) AS ?pfsb20) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn24))) AS ?pfse21) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn23, 1) = 'H')) .
    BIND(?this AS ?pfs6) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch82 faldo:location ?templateMotifSequenceMatchRegionQ8YQC183 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8YQC185 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8YQC1MF_0070478 .
    ?templateMotifSequenceMatchRegionQ8YQC183 faldo:begin ?templateMotifSequenceMatchBeginQ8YQC184 .
    ?templateMotifSequenceMatchBeginQ8YQC184 faldo:position ?templateMotifSequenceMatchBeginPositionQ8YQC179 ;
      faldo:reference isoform:Q8YQC1-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8YQC185 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch86 faldo:location ?targetMotifMatchRegionMatch87 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_0070489 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8YQC1MF_0070480 .
    ?targetMotifMatchRegionMatch87 faldo:begin ?targetMotifMatchRegionMatchBeginMF_0070488 .
    ?targetMotifMatchRegionMatchBeginMF_0070488 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0070481 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_0070489 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_0070478, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_0070478) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_0070478, CONCAT('^(?:-*[^-]){', STR(((63 - ?templateMotifSequenceMatchBeginPositionQ8YQC179) + 1)), '}'), '')))), '[a-z]', '')) AS ?step190) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070480, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070480) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070480, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step190), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070480, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070480) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070480, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step190), '}'), '')))), '[^-]', ''))) AS ?step291) .
    BIND(((?step291 + ?targetMotifMatchRegionMatchBeginPositionMF_0070481) - 1) AS ?thisPositionOn31) .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_0070478, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_0070478) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_0070478, CONCAT('^(?:-*[^-]){', STR(((64 - ?templateMotifSequenceMatchBeginPositionQ8YQC179) + 1)), '}'), '')))), '[a-z]', '')) AS ?step192) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070480, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070480) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070480, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step192), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070480, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070480) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070480, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step192), '}'), '')))), '[^-]', ''))) AS ?step293) .
    BIND(((?step293 + ?targetMotifMatchRegionMatchBeginPositionMF_0070481) - 1) AS ?thisPositionOn32) .
    BIND(?this AS ?pfs2t94) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn31))) AS ?pfsb27) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn32))) AS ?pfse28) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn31, (?thisPositionOn32 - ?thisPositionOn31)) = 'NR')) .
    BIND(URI(CONCAT(STR(?this), '#MF_00704a26')) AS ?annotation26) .
    BIND(?this AS ?pfs25) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch99 faldo:location ?templateMotifSequenceMatchRegionQ8YQC1100 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8YQC1102 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8YQC1MF_0070495 .
    ?templateMotifSequenceMatchRegionQ8YQC1100 faldo:begin ?templateMotifSequenceMatchBeginQ8YQC1101 .
    ?templateMotifSequenceMatchBeginQ8YQC1101 faldo:position ?templateMotifSequenceMatchBeginPositionQ8YQC196 ;
      faldo:reference isoform:Q8YQC1-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8YQC1102 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch103 faldo:location ?targetMotifMatchRegionMatch104 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_00704106 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8YQC1MF_0070497 .
    ?targetMotifMatchRegionMatch104 faldo:begin ?targetMotifMatchRegionMatchBeginMF_00704105 .
    ?targetMotifMatchRegionMatchBeginMF_00704105 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_0070498 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_00704106 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_0070495, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_0070495) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_0070495, CONCAT('^(?:-*[^-]){', STR(((56 - ?templateMotifSequenceMatchBeginPositionQ8YQC196) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1107) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070497, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070497) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070497, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1107), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_0070497, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_0070497) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_0070497, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1107), '}'), '')))), '[^-]', ''))) AS ?step2108) .
    BIND(((?step2108 + ?targetMotifMatchRegionMatchBeginPositionMF_0070498) - 1) AS ?thisPositionOn39) .
    BIND(?thisPositionOn39 AS ?thisPositionOn40) .
    BIND(?this AS ?pfs2t109) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn39))) AS ?pfsb35) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn40))) AS ?pfse36) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn39, 1) = 'R')) .
    BIND(URI(CONCAT(STR(?this), '#MF_00704a34')) AS ?annotation34) .
    BIND(?this AS ?pfs33) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch114 faldo:location ?templateMotifSequenceMatchRegionQ8YQC1115 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8YQC1117 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8YQC1MF_00704110 .
    ?templateMotifSequenceMatchRegionQ8YQC1115 faldo:begin ?templateMotifSequenceMatchBeginQ8YQC1116 .
    ?templateMotifSequenceMatchBeginQ8YQC1116 faldo:position ?templateMotifSequenceMatchBeginPositionQ8YQC1111 ;
      faldo:reference isoform:Q8YQC1-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8YQC1117 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch118 faldo:location ?targetMotifMatchRegionMatch119 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_00704121 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8YQC1MF_00704112 .
    ?targetMotifMatchRegionMatch119 faldo:begin ?targetMotifMatchRegionMatchBeginMF_00704120 .
    ?targetMotifMatchRegionMatchBeginMF_00704120 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_00704113 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_00704121 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_00704110, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_00704110) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_00704110, CONCAT('^(?:-*[^-]){', STR(((164 - ?templateMotifSequenceMatchBeginPositionQ8YQC1111) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1122) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_00704112, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_00704112) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_00704112, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1122), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_00704112, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_00704112) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_00704112, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1122), '}'), '')))), '[^-]', ''))) AS ?step2123) .
    BIND(((?step2123 + ?targetMotifMatchRegionMatchBeginPositionMF_00704113) - 1) AS ?thisPositionOn47) .
    BIND(?thisPositionOn47 AS ?thisPositionOn48) .
    BIND(?this AS ?pfs2t124) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn47))) AS ?pfsb43) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn48))) AS ?pfse44) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn47, 1) = 'E')) .
    BIND(URI(CONCAT(STR(?this), '#MF_00704a42')) AS ?annotation42) .
    BIND(?this AS ?pfs41) .
  }
  OPTIONAL {
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    ?templateMotifMatch129 faldo:location ?templateMotifSequenceMatchRegionQ8YQC1130 ;
      edam:is_output_of ?templateMotifSequenceProfileAlignmentOperationQ8YQC1132 ;
      rdf:type edam:data_0869 ;
      rdf:value ?templateMotifCigarQ8YQC1MF_00704125 .
    ?templateMotifSequenceMatchRegionQ8YQC1130 faldo:begin ?templateMotifSequenceMatchBeginQ8YQC1131 .
    ?templateMotifSequenceMatchBeginQ8YQC1131 faldo:position ?templateMotifSequenceMatchBeginPositionQ8YQC1126 ;
      faldo:reference isoform:Q8YQC1-1 .
    ?templateMotifSequenceProfileAlignmentOperationQ8YQC1132 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    ?targetMotifMatch133 faldo:location ?targetMotifMatchRegionMatch134 ;
      edam:is_output_of ?targetMotifSequenceAlignmentOperationMF_00704136 ;
      rdf:type edam:data_0869 ;
      rdf:value ?targetMotifMatchCigarQ8YQC1MF_00704127 .
    ?targetMotifMatchRegionMatch134 faldo:begin ?targetMotifMatchRegionMatchBeginMF_00704135 .
    ?targetMotifMatchRegionMatchBeginMF_00704135 faldo:position ?targetMotifMatchRegionMatchBeginPositionMF_00704128 ;
      faldo:reference ?thisSequence .
    ?targetMotifSequenceAlignmentOperationMF_00704136 edam:has_input signature:MF_00704 ;
      rdf:type edam:operation_0300 .
    BIND(STRLEN(REPLACE(SUBSTR(?templateMotifCigarQ8YQC1MF_00704125, 1, (STRLEN(?templateMotifCigarQ8YQC1MF_00704125) - STRLEN(REPLACE(?templateMotifCigarQ8YQC1MF_00704125, CONCAT('^(?:-*[^-]){', STR(((275 - ?templateMotifSequenceMatchBeginPositionQ8YQC1126) + 1)), '}'), '')))), '[a-z]', '')) AS ?step1137) .
    BIND((STRLEN(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_00704127, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_00704127) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_00704127, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1137), '}'), ''))))) - STRLEN(REPLACE(SUBSTR(?targetMotifMatchCigarQ8YQC1MF_00704127, 1, (STRLEN(?targetMotifMatchCigarQ8YQC1MF_00704127) - STRLEN(REPLACE(?targetMotifMatchCigarQ8YQC1MF_00704127, CONCAT('^(?:[a-z]*(?:[A-Z]|-)){', STR(?step1137), '}'), '')))), '[^-]', ''))) AS ?step2138) .
    BIND(((?step2138 + ?targetMotifMatchRegionMatchBeginPositionMF_00704128) - 1) AS ?thisPositionOn55) .
    BIND(?thisPositionOn55 AS ?thisPositionOn56) .
    BIND(?this AS ?pfs2t139) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn55))) AS ?pfsb51) .
    BIND(URI(CONCAT(STR(?thisSequence), '#position', STR(?thisPositionOn56))) AS ?pfse52) .
    FILTER ((SUBSTR(?thisSequenceValue, ?thisPositionOn55, 1) = 'Y')) .
    BIND(URI(CONCAT(STR(?this), '#MF_00704a50')) AS ?annotation50) .
    BIND(?this AS ?pfs49) .
  }
  OPTIONAL {
    ?this a up:Protein .
    BIND(?this AS ?caseWithTag140) .
  }
  BIND(IF(BOUND(?tagFTGRP_1), ?caseWithTag140, ?UNBOUND_VARIABLE) AS ?case5) .
}
""" .

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