Hi,<br><br>I recompiled redland once again:<br>...<br>checking for UnixODBC support... yes<br>...<br>Triple stores enabled : memory file hashes trees mysql sqlite postgresql virtuoso<br><br>Running the test confirms what I observed:<br>
<br>$ utils/redland-virtuoso-test "dsn='VOS',user='usr',password='psw'"<br> 1: Remove all triples in <<a href="http://red">http://red</a>> context<br>**PASSED**: removed context triples from the graph<br>
2: Add triples to <<a href="http://red">http://red</a>> context<br>**PASSED**: add triple to context<br> 3: Print all triples in <<a href="http://red">http://red</a>> context<br>[[<br>]]<br>**PASSED**:<br> 4: Count of triples in <<a href="http://red">http://red</a>> context<br>
**PASSED**: graph has 6 triples<br> 5: Exec: ARC aa bb <br>**FAILED**: Failed to get arc<br> 6: Exec: ARCS aa cc <br>: matching nodes: 0<br>**PASSED**:<br> 7: Exec: ARCS-IN cc <br>**PASSED**: matching arcs: 0<br>
8: Exec: ARCS-OUT aa <br>**PASSED**: matching arcs: 0<br> 9: Exec: CONTAINS aa bb1 cc <br>**PASSED**: the graph contains the triple<br> 10: Exec: FIND aa - - <br>**PASSED**: matching triples: 0<br> 11: Exec: HAS-ARC-IN cc bb <br>
**FAILED**: the graph does not contain the arc<br> 12: Exec: HAS-ARC-OUT aa bb <br>**FAILED**: the graph does not contain the arc<br> 13: Exec: SOURCE aa cc <br>**FAILED**: Failed to get source<br> 14: Exec: SOURCES bb cc <br>
: matching nodes: 0<br>**PASSED**:<br> 15: Exec: TARGET aa bb <br>**FAILED**: Failed to get target<br> 16: Exec: TARGETS aa bb <br>: matching nodes: 0<br>**PASSED**:<br> 17: Exec: REMOVE aa bb1 cc <br>**PASSED**: removed triple from the graph<br>
18: Exec: QUERY "CONSTRUCT {?s ?p ?o} FROM <<a href="http://red">http://red</a>> WHERE {?s ?p ?o}" <br>rdf_model.c:1393: (librdf_model_query_execute) assertion failed: object pointer of type librdf_query is NULL.<br>
**FAILED**: Query of model with 'CONSTRUCT {?s ?p ?o} FROM <<a href="http://red">http://red</a>> WHERE {?s ?p ?o}' failed<br>rdf_query.c:390: (librdf_free_query) assertion failed: object pointer of type librdf_query is NULL.<br>
rdf_query.c:390: (librdf_free_query) assertion failed: object pointer of type librdf_query is NULL.<br> 19: Exec1: QUERY_AS_BINDINGS "SELECT * WHERE {graph <<a href="http://red">http://red</a>> { ?s ?p ?o }}" <br>
rdf_model.c:1393: (librdf_model_query_execute) assertion failed: object pointer of type librdf_query is NULL.<br>**FAILED**: Query of model with 'SELECT * WHERE {graph <<a href="http://red">http://red</a>> { ?s ?p ?o }}' failed<br>
rdf_query.c:390: (librdf_free_query) assertion failed: object pointer of type librdf_query is NULL.<br>rdf_query.c:390: (librdf_free_query) assertion failed: object pointer of type librdf_query is NULL.<br> 20: Exec2: QUERY_AS_BINDINGS "SELECT * WHERE {graph <<a href="http://red">http://red</a>> { ?s ?p ?o }}" <br>
rdf_model.c:1393: (librdf_model_query_execute) assertion failed: object pointer of type librdf_query is NULL.<br>**FAILED**: Query of model with 'SELECT * WHERE {graph <<a href="http://red">http://red</a>> { ?s ?p ?o }}' failed<br>
rdf_query.c:390: (librdf_free_query) assertion failed: object pointer of type librdf_query is NULL.<br>rdf_query.c:390: (librdf_free_query) assertion failed: object pointer of type librdf_query is NULL.<br>=============================================<br>
PASSED: 12 FAILED: 8<br><br><br>Maybe it is somehow related with Virtuoso's version I use (6.1.1.3127)?<br><br><br><div class="gmail_quote">On Mon, May 10, 2010 at 1:24 AM, Hugh Williams <span dir="ltr"><<a href="mailto:hwilliams@openlinksw.com">hwilliams@openlinksw.com</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;">Hi Rymvydas,<br>
<br>
Have you built the Redland Storage Provider into your Redland RDF Framework library as detailed at:<br>
<br>
<a href="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFDriverRedland" target="_blank">http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFDriverRedland</a><br>
<br>
and ran the provides storage test programs to verified its operation ?<br>
<br>
Best Regards<br>
Hugh Williams<br>
Professional Services<br>
OpenLink Software<br>
Web: <a href="http://www.openlinksw.com" target="_blank">http://www.openlinksw.com</a><br>
Support: <a href="http://support.openlinksw.com" target="_blank">http://support.openlinksw.com</a><br>
Forums: <a href="http://boards.openlinksw.com/support" target="_blank">http://boards.openlinksw.com/support</a><br>
Twitter: <a href="http://twitter.com/OpenLink" target="_blank">http://twitter.com/OpenLink</a><br>
<div><div></div><div class="h5"><br>
On 9 May 2010, at 20:44, Rimvydas wrote:<br>
<br>
> I can add triples to virtuoso using rdfproc, but SPARQL queries just don't seem to work.<br>
><br>
> Triple is added successfully:<br>
> $ rdfproc -r xml -s virtuoso -t "user='usr',password='psw',dsn='VOS'" somecontext add aa bb cc<br>
> rdfproc: added triple to the graph<br>
><br>
> Triple can be found using "find" command:<br>
> $ rdfproc -r xml -s virtuoso -t "user='usr',password='psw',dsn='VOS'" somecontext find aa bb cc<br>
> Matched triple: {[aa], [bb], "cc"} with context [somecontext]<br>
> rdfproc: matching triples: 1<br>
><br>
> However, SPARQL queries return 0 results:<br>
> $ rdfproc -s virtuoso -t "user='usr',password='psw',dsn='VOS'" somecontext query sparql - "SELECT * WHERE {?s ?p ?o}"<br>
> rdfproc: Query returned bindings results:<br>
> rdfproc: Query returned 0 results<br>
><br>
> Am I missing something here?<br>
><br>
> Note: I can run a similar query successfully in ODBC's ISQL like this:<br>
> CALL DB.DBA.SPARQL_EVAL('SELECT * FROM NAMED <somecontext> {GRAPH <somecontext> {?s ?p ?o}}', NULL, 0)<br>
> ...<br>
> 1 row fetched<br>
><br>
> --<br>
> Rimvydas<br>
</div></div>> _______________________________________________<br>
> redland-dev mailing list<br>
> <a href="mailto:redland-dev@lists.librdf.org">redland-dev@lists.librdf.org</a><br>
> <a href="http://lists.librdf.org/mailman/listinfo/redland-dev" target="_blank">http://lists.librdf.org/mailman/listinfo/redland-dev</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Rimvydas Naktinis<br>