@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_01863#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_01863#construct-template-17>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-1>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-10>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-8>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-15>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-16>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-7>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-4>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-3>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-13>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-12>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-2>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-0>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-9>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-6>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-14>, <http://purl.uniprot.org/unirules/MF_01863#construct-template-5>,
    <http://purl.uniprot.org/unirules/MF_01863#construct-template-11>;
  <http://www.w3.org/ns/shacl#prefixes> <http://purl.uniprot.org/unirules/>;
  <http://spinrdf.org/sp#where> <http://purl.uniprot.org/unirules/MF_01863#construct-where-list-0>;
  <http://spinrdf.org/sp#templates> <http://purl.uniprot.org/unirules/MF_01863#construct-template-list-0>;
  <http://www.w3.org/ns/shacl#construct> """CONSTRUCT {
  _:651940 up:source unirule:MF_01863 .
  _:651941 up:source unirule:MF_01863 .
  _:651942 up:source unirule:MF_01863 .
  ?this up:annotation ?annotation2 ;
    up:recommendedName ?name0 .
  ?name0 up:fullName ?nameValue1 ;
    rdf:type up:Structured_Name .
  ?annotation2 a up:Similarity_Annotation ;
    rdfs:comment 'Belongs to the UPF0741 family.' .
  ?sam3 up:classifiedWith keyword:175 .
  ?coiledCoil4 faldo:begin ?coiledCoilb5 ;
    faldo:end ?coiledCoile6 .
  ?coiledCoilb5 faldo:position ?coiledCoilbp7 .
  ?coiledCoile6 faldo:position ?coiledCoilep8 .
  ?keyword9 up:range ?coiledCoil4 .
  _:651943 a rdf:Statement ;
    up:attribution _:651940 ;
    rdf:subject ?this ;
    rdf:predicate up:recommendedName ;
    rdf:object ?name0 .
  _:651944 a rdf:Statement ;
    up:attribution _:651941 ;
    rdf:subject ?this ;
    rdf:predicate up:annotation ;
    rdf:object ?annotation2 .
  _:651945 a rdf:Statement ;
    up:attribution _:651942 ;
    rdf:subject ?sam3 ;
    rdf:predicate up:classifiedWith ;
    rdf:object keyword:175 .
}
WHERE {
  #baseURI: http://purl.uniprot.org/unirule/MF_01863
  #Rule MF_01863 Created by:? on:2009-04-03 Modified by:Catherine Rivoire on:2012-01-19
  ?this up:organism ?thisOrganism ;
    rdfs:seeAlso signature:MF_01863 .
  ?thisOrganism rdfs:subClassOf+ taxon:1385 .
  BIND(URI(CONCAT(STR(?this), '#MF_01863a0')) AS ?name0) .
  OPTIONAL {
    ?this up:encodedBy ?gene13 .
    ?gene13 up:locusName ?geneLocus11 .
  }
  OPTIONAL {
    ?this up:encodedBy ?gene13 .
    ?gene13 up:orfName ?geneOrf12 .
  }
  BIND(IF(BOUND(?geneLocus11), ?geneLocus11, ?geneOrf12) AS ?part10) .
  BIND(CONCAT('UPF0741 protein ', ?part10) AS ?nameValue1) .
  BIND(URI(CONCAT(STR(?this), '#MF_01863a2')) AS ?annotation2) .
  OPTIONAL {
    ?this up:annotation ?samcc14 ;
      up:sequence ?thisSequence .
    ?samcc14 up:range ?samccr15 ;
      rdf:type up:Coiled_Coil_Annotation .
    ?samccr15 faldo:begin ?samccb16 ;
      faldo:end ?samcce17 .
    ?samccb16 faldo:position ?samccbp18 ;
      faldo:reference ?thisSequence .
    ?samcce17 faldo:position ?samccep19 ;
      faldo:reference ?thisSequence .
    BIND(?this AS ?sam3) .
  }
  BIND(URI(CONCAT(STR(?this), '#MF_01863a9')) AS ?keyword9) .
}
""" .

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