Hey Sebastian<br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 5:34 PM, Sebastian Trüg <span dir="ltr"><<a href="mailto:trueg@kde.org" target="_blank">trueg@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This is totally normal since we have no proper inference support yet. So<br>
please please just do as I say and use the query api. ;)<br>
<br></blockquote><div><br>You have finally given me a reason to use the query API. :) Isn't inference something the backend should provide?<br><br>- Vishesh Handa <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This is what you do:<br>
<br>
Query::Query query(<br>
Query::ResourceTypeTerm( Vocabulary::NFO::Image() ) );<br>
<br>
and then query.toSparqlString()<br>
<br>
or simply use the QueryServiceClient. Or even simpler in case you are<br>
using KIO: query.toQueryUrl() and list that via KDirModel or a KDirLister.<br>
<br>
Cheers,<br>
Sebastian<br>
<div><div></div><div><br>
On 06/07/2010 12:40 PM, Alessandro Diaferia wrote:<br>
> Hello list,<br>
> as already discussed with Vishesh some minutes ago there seems to be a<br>
> problem with the following SPARQL query:<br>
><br>
> "select ?url where { ?resource nie:url ?url . ?resource a nfo:Image . }"<br>
><br>
> This query returns less results than it should, skipping for example png<br>
> files.<br>
> In particular, as noticed by Vishesh, replacing nfo:Image with<br>
> nfo:RasterImage or nexif:Photo works fine.<br>
> Shouldn't nfo:Image cover all types of pictures?<br>
><br>
> My particular code is here: <a href="http://pastebin.com/TVj6HJGx" target="_blank">http://pastebin.com/TVj6HJGx</a><br>
><br>
> Also, is there a way to perform the same query using the API rather than<br>
> plain SPARQL?<br>
><br>
> Regards<br>
><br>
> --<br>
> Alessandro Diaferia<br>
> KDE Developer<br>
> KDE e.V. member<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Nepomuk mailing list<br>
> <a href="mailto:Nepomuk@kde.org" target="_blank">Nepomuk@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org" target="_blank">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
</blockquote></div><br>