<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ben,<div><br></div><div>You can use the Virtuoso trace_on() function to enable queries etc being passed to Virtuoso to be logged in the "virtuoso.log" for review, as detailed at:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://docs.openlinksw.com/virtuoso/fn_trace_on.html">http://docs.openlinksw.com/virtuoso/fn_trace_on.html</a></div><div><br></div><div>This should help you see what is being passed by the Redland layer and any errors etc that might be occurring.</div><div><br></div><div>We haven't done any testing with the Redland Python bindings to my knowledge, but we do have a "C" test program in the Virtuoso open source tree that was used for testing our Redland Storage provider as detailed at:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFDriverRedland">http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFDriverRedland</a></div><div><br></div><div>I hope this helps ...</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Best Regards</div><div>Hugh Williams</div><div>Professional Services</div><div><div>OpenLink Software, Inc. // <a href="http://www.openlinksw.com/">http://www.openlinksw.com/</a></div><div>Weblog -- <a href="http://www.openlinksw.com/blogs/">http://www.openlinksw.com/blogs/</a></div><div>LinkedIn -- <a href="http://www.linkedin.com/company/openlink-software/">http://www.linkedin.com/company/openlink-software/</a></div><div>Twitter -- <a href="http://twitter.com/OpenLink">http://twitter.com/OpenLink</a></div><div>Google+ -- <a href="http://plus.google.com/100570109519069333827/">http://plus.google.com/100570109519069333827/</a></div><div>Facebook -- <a href="http://www.facebook.com/OpenLinkSoftware">http://www.facebook.com/OpenLinkSoftware</a></div><div>Universal Data Access, Integration, and Management Technology Providers</div></div></div></span></div></span></div></span></span>
</div>
<br><div><div>On 29 Jan 2013, at 22:05, Ben Morris <<a href="mailto:ben@bendmorris.com">ben@bendmorris.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I'm using the Redland Python bindings to add triples to Virtuoso<br>RDF.Storage(storage_name='virtuoso') and am trying to understand how<br>context is implemented. I am getting some surprising results.<br><br>If I add triples with:<br><br> model.add_statements(context=something)<br><br>I can get them all back with:<br><br> model.as_stream(context=something)<br><br>as expected. However, if I create a new model with the same storage<br>and try this:<br><br> for stmt in model:<br> print stmt<br><br>I get no result, as if the model is empty. Also, when I try the following:<br><br> model.remove_statements_with_context(context=something)<br> for stmt in model.as_stream(context=something):<br> print stmt<br><br>I still get back all of the triples; they weren't removed as I<br>expected them to be.<br><br>Finally, when I try simple SPARQL queries that should match some of<br>the triples stored with context, I get no result.<br><br>Can anyone help me understand what's going on behind the scenes with<br>Redland contexts and Virtuoso?<br><br><br>-- <br>Ben Morris<br>PhD student, Ecology/Evolutionary Biology<br>UNC Chapel Hill | National Evolutionary Synthesis Center<br><a href="mailto:ben@bendmorris.com">ben@bendmorris.com</a><br>www.bendmorris.com<br>_______________________________________________<br>redland-dev mailing list<br>redland-dev@lists.librdf.org<br>http://lists.librdf.org/mailman/listinfo/redland-dev<br></blockquote></div><br></div></body></html>