Mercurial > hg > audiodb
annotate sparql/examples/retrieve_top_5.rq @ 647:7e7ba87b5466
Fix stack-zeroing bug in sb-alien query bindings
When doing a key query, we have to be absolutely sure that the datum.data
slot is NULL, otherwise Bad Things will happen.
Fixes audioDB Trac ticket #35
author | mas01cr |
---|---|
date | Tue, 13 Oct 2009 14:26:30 +0000 |
parents | 190c6a9e85a5 |
children |
rev | line source |
---|---|
mas01mj@607 | 1 PREFIX mo: <http://purl.org/ontology/mo/> |
mas01mj@607 | 2 PREFIX af: <http://purl.org/ontology/af/> |
mas01mj@607 | 3 PREFIX musim: <http://purl.org/ontology/musim#> |
mas01mj@607 | 4 |
mas01mj@607 | 5 SELECT ?signal ?distance |
mas01mj@607 | 6 WHERE |
mas01mj@607 | 7 { |
mas01mj@607 | 8 ?signal a mo:Signal. |
mas01mj@607 | 9 |
mas01mj@607 | 10 _:s a musim:Similarity; |
mas01mj@607 | 11 musim:element <http://KSA_CHARM_306>; |
mas01mj@607 | 12 musim:element ?signal; |
mas01mj@607 | 13 musim:distance ?distance. |
mas01mj@607 | 14 } ORDER BY (?distance) LIMIT 5 |
mas01mj@607 | 15 |