Hi
On 21 September 2012 11:18, zz <
ziqizha...@googlemail.com> wrote:
> Hi Szymon
>
> Thanks. That answered my question partially...
> What I meant was that given a query based on the sindice api, return a
> list of *triples* matching the query as opposed to documents. for
> example:
> * <
http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://
>
dbpedia.org/ontology/Airline>
>
> gives my a list of documents containing triples satisfying this
> pattern. I can understand from your question that I have to go through
> each returned document URI, then use the cache api to "filter" just
> the triples i wanted.
>
> I understand that this can be done directly by sparql queries, which
> will give my directly the triples i wanted. but I guess that would be
> much slower?
Yes at the moment we do not offer an API that could do this
We did a small prototype a while ago which does I think exactly what you want
It takes a sindice search query ( 3 params q,fq,nq + number of
documents like a limit ) and sparql query
It runs the sindice search, then for the results it runs sindice cache
api queries
puts triples in memory an run sparql query over them
So at t end you get only triples you wanted from matching documents
You can try it here [1] but keep in mind - this is not an official API
It is only a demo and it is not meant to be used in any production
ready application
If you need something like this and think that it could be useful for
you and others
we might think of a way to open the source code or improve it and make it
a real sindice api
[1]
http://demo.sindice.net/squarql/
Cheers
Szymon