sid-mode with sparql update

Help
Yossi
2013-01-29
2014-02-19
  • Yossi
    Yossi
    2013-01-29

    Hi,

    I'm working in sid-mode (behind sesame/tomcat).

    I have an in-memory graph holding triples loaded from bigdata + triples asserted by the user.
    The user may also retract triples.
    When using update to commit changes, the sid-mode breaks (sid not assigned to bnodes).

    1. Is there another way to commit changes (assertions + retractions) other than using update?
    2. When should we expect sid-mode to work with update?

    Thanks,
    Yossi.

     
  • Bryan Thompson
    Bryan Thompson
    2013-01-29

    There are REST methods on the NSS API  that allow you to send a document containing the statements to be retracted.  These methods should work.

    We are going to roll "SIDs" support into the triples and quads mode shortly.   We will be making several improvements as part of this change.  The key thing that SIDs mode does is inline statement about statements into the statement indices.  It is also aware of how to decompose those statements about statements back into ground triples so it can move easily between these two levels of representation.

    We have been working on a reconciliation of this approach with RDF reification.  Olaf Hartig has done some great work demonstrating that this approach is compatible with RDF reificiation.  This means that we can interchange data using RDF reification and index data using SIDs.  Thus you will be able to have all of the performance of the SIDs mode and still use standard interchange formats.

    We will also be introducing some syntactic sugar that will make it as easy to write queries against SIDs in SPARQL using either triples or quads modes of the database.  Right now, the GRAPH ?var {} construct is used to bind the statement on a variable.  There is a new syntax that will let you achieve the same thing in triples or quads modes.  See  for more about this feature.  Probable release by summer, 2013.  Maybe earlier.

    Thanks,
    Bryan

    https://sourceforge.net/apps/mediawiki/bigdata/index.php?title=NanoSparqlServer
    https://sourceforge.net/apps/mediawiki/bigdata/index.php?title=NanoSparqlServer#DELETE_with_Body_.28using_POST.29
    https://sourceforge.net/apps/mediawiki/bigdata/index.php?title=NanoSparqlServer#UPDATE_.28POST_with_Multi-Part_Request_Body.29
    https://sourceforge.net/apps/trac/bigdata/ticket/526 (Reification done right).

     
  • Yossi
    Yossi
    2013-01-29

    Okay,
    Thanks :)