Dear OWLIM devs,

I have a question about this query on uniprot.org

PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  up:   <http://purl.uniprot.org/core/>

SELECT  (count(?this) AS ?countTotal)
WHERE
  { ?this rdfs:seeAlso <http://purl.uniprot.org/pfam/PF01073> .
    ?this up:organism ?taxon
      { ?taxon rdfs:subClassOf <http://purl.uniprot.org/taxonomy/2759> }
    UNION
      { ?taxon rdfs:subClassOf <http://purl.uniprot.org/taxonomy/10239> }
    ?this up:organism ?taxon .
    ?taxon up:scientificName ?name
    FILTER ( ! contains(?name, "Bacteriophage") )
  }

It takes more than 24 hours to compute.
However, if I remove the FILTER ( ! contains(?name, "Bacteriophage") ) it finishes in seconds. What is the reason that this filter operation is so slow.

Regards,
Jerven Bolleman




--
-------------------------------------------------------------------
 Jerven Bolleman                        jerven.bolle...@isb-sib.ch
 SIB Swiss Institute of Bioinformatics  Tel: +41 (0)22 379 58 85
 CMU, rue Michel Servet 1               Fax: +41 (0)22 379 58 58
 1211 Geneve 4,
 Switzerland     www.isb-sib.ch - www.uniprot.org
 Follow us at https://twitter.com/#!/uniprot
-------------------------------------------------------------------
_______________________________________________
Owlim-discussion mailing list
Owlim-discussion@ontotext.com
http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion

Reply via email to