[redland-dev] rdql question
Dave Beckett
dave at dajobe.org
Wed Jan 24 04:13:58 UTC 2007
Jagdev Bhogal wrote:
> I am using rdfprint.c to parse an rdf file and output the set of
> resulting triples into a file (eg tripleout)
>
> I then want to use rdql to query the triples.
>
> In the synopsis given on librdf.org/rasqal/librasqal.html, query string
> has been set to “select * from http://example.org/data.rdf”
>
> How can I set up the query string so that it selects the data from my
> file of triples “tripleout”? Can I replace http… with a file name?
Yes, use a URI like file:tripleout or file://absolute/path/to/tripleout
> Also which query language is better supported is it SPARQL or RDQL?
RDQL is completely implemented. SPARQL is still a work in progress
since it's a more complex query language, but it is the future :)
Dave
More information about the redland-dev
mailing list