@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_04119#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_04119#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-6>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-4>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-9>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-13>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-11>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-8>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-14>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-3>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-1>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-2>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-16>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_04119#construct-template-0>, <http://purl.uniprot.org/unirules/MF_04119#construct-template-7>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_04119#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_04119#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:958671 up:source unirule:MF_04119 .
  _:958672 up:source unirule:MF_04119 .
  _:958673 up:source unirule:MF_04119 .
  _:958674 up:source unirule:MF_04119 .
  ?this up:classifiedWith GO:0019028 ,
      keyword:167 ,
      keyword:946 .
  ?sam2 up:classifiedWith keyword:175 .
  ?coiledCoil3 faldo:begin ?coiledCoilb4 ;
    faldo:end ?coiledCoile5 .
  ?coiledCoilb4 faldo:position ?coiledCoilbp6 .
  ?coiledCoile5 faldo:position ?coiledCoilep7 .
  ?keyword8 up:range ?coiledCoil3 .
  _:958675 a rdf:Statement ;
    up:attribution _:958671 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:167 .
  _:958676 a rdf:Statement ;
    up:attribution _:958672 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:946 .
  _:958677 a rdf:Statement ;
    up:attribution _:958673 ;
    rdf:subject ?this ;
    rdf:predicate up:classifiedWith ;
    rdf:object GO:0019028 .
  _:958678 a rdf:Statement ;
    up:attribution _:958674 ;
    rdf:subject ?sam2 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:175 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_04119
  #Rule MF_04119 Created by:? on:2018-01-18 Modified by:Chantal Hulo on:2022-08-23
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_04119 .
  ?thisOrganism rdfs:subClassOf+ taxon:2731619 .
  OPTIONAL {
    ?this a up:Protein .
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    BIND(STRLEN(?thisSequenceValue) AS ?l371_21474836479) .
    FILTER (((?l371_21474836479 >= 371) && (?l371_21474836479 <= 2147483647))) .
    BIND(?this AS ?case0) .
  }
  OPTIONAL {
    ?this a up:Protein .
    ?this up:sequence ?thisSequence .
    ?thisSequence rdf:value ?thisSequenceValue .
    BIND(STRLEN(?thisSequenceValue) AS ?l371_214748364710) .
    FILTER (! (((?l371_214748364710 >= 371) && (?l371_214748364710 <= 2147483647)))) .
    BIND(?this AS ?case1) .
  }
  OPTIONAL {
    ?this up:annotation ?samcc11 ;
      up:sequence ?thisSequence .
    ?samcc11 up:range ?samccr12 ;
      rdf:type up:Coiled_Coil_Annotation .
    ?samccr12 faldo:begin ?samccb13 ;
      faldo:end ?samcce14 .
    ?samccb13 faldo:position ?samccbp15 ;
      faldo:reference ?thisSequence .
    ?samcce14 faldo:position ?samccep16 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam2) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_04119a8')) AS ?keyword8) .
}
""" .

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