<br><br><div class="gmail_quote">2010/6/7 Sebastian Trüg <span dir="ltr"><<a href="mailto:trueg@kde.org">trueg@kde.org</a>></span><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>
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 class="h5"><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">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">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>Thank you Sebastian, it worked just fine.<br><br>Missing your live support at Nepomuk-sprint 2009 :)<br><br>Cheers<br>-- <br>Alessandro Diaferia<br>KDE Developer<br>KDE e.V. member<br><br>