===============
New query methods
-----------------
Four new methods have been added to the RepositoryConnection class:
- executeTupleQuery()
- executeGraphQuery()
- executeBooleanQuery()
- executeUpdate()
These can be used to prepare and evaluate a SPARQL query in a single
call.
New tutorial
------------
The tutorial has been updated and restyled using Sphinx.
Finalizers for query results
----------------------------
All result objects are now closed automatically when garbage collected.
This makes it possible to write simple loops like the one below::
for stmt in conn.executeTupleQuery('...'):
...
without having to use the ``with`` statement, since reference counting
will ensure that the query result is closed at the right time. Note that
this should not be relied upon in more complex scenarios, where circular
references might occur and prevent the result object from being closed.
Connection parameters can now be passed in environment variables
-----------------------------------------------------------------
The following environment variables are now used when connecting
to the server:
- ``AGRAPH_HOST`` - server address, the default is '127.0.0.1'
- ``AGRAPH_PORT`` - port number (default: 10035 for HTTP connections,
10036 for HTTPS).
- ``AGRAPH_USER`` - Username, no default.
- ``AGRAPH_PASSWORD`` - Password, no default.
Note that parameters passed to ``ag_connect()`` or ``AllegroGraphServer()``
will override these variables.
Various fixes related to data export
------------------------------------
Specifically the following adjustments have been done:
- Changed the default RDF export format to N-Quads.
- Fixed a bug where errors returned during export
caused an encoding error.
- Provided a default format (CSV) for tuple queries.
- Value of the output parameter can now be True (stdout)
or a file descriptor.