2.3.0 ( Version )
This is the first release in a new development series -- the API should be compatible with 2.2.x, but be warned that the bits may still be shifting. The 2.2.x series remains the current stable series.
Changes
- Added N3 support to Graph and Store.
- Added Sean's n3p parser, and ntriples parser.
- Sleepycat implementation has been revamped in the process of expanding it to support the new requirements n3 requirements. It also now persists a journal -- more to come.
- dowload_url added to setup.py to support ez_setup based installs.
- detabified source files.
- Literal and parsers now distinguish between datatype of None and datatype of "".
- Store-agnostic 'fallback' implementation of REGEX matching (inefficient but provides the capability to stores that don't support it natively). Implemented as a 'wrapper' around any Store which replaces REGEX terms with None (before dispatching to the store) and whittles out results that don't match the given REGEX term expression(s).
- Store-agnostic 'fallback' implementation of transactional rollbacks (also inefficient but provides the capablity to stores that don't support it natively). Implemented as a wrapper that tracks a 'thread-safe' list of reversal operations (for every add, track the remove call that reverts the store, and vice versa). Upon store.rollback(), execute the reverse operations. However, this doesn't guarantee durability, since if the system fails before the rollbacks are all executed, the store will remain in an invalid state, but it provides Atomicity in the best case scenario.
To install: download the release from rdflib-2.3.0.tar.gz or rdflib-2.3.0.zip, unpack and then run:
python setup.py install
Also browse the RDF API Documentation, take a look at example.py, and glance at the License.
Comments regarding 2.3.0
by inkel on Friday 24 March, 2006:
How about backward compatibility? I'm having this problem: Traceback (most recent call last): File "C:\Documents and Settings\Inkel\Mis documentos\www\2006\03\21\topics.py", line 17, in topics2rdf g = rdflib.Graph(backend='Memory') File "C:\Python24\lib\site-packages\rdflib\Graph.py", line 648, in __init__ super(BackwardCompatGraph, self).__init__(store=backend) File "C:\Python24\lib\site-packages\rdflib\Graph.py", line 456, in __init__ assert self.store.context_aware, "ConjunctiveGraph must be backed by a context aware store." AssertionError: ConjunctiveGraph must be backed by a context aware store. But five minutes ago I was using RDFLib 2.2.1 and it worked fine. Any clue?by David Harris on Monday 13 February, 2006:
The unit test appeared to run correctly although I did not have any of the persistance backends installed. When I ran example.py I got the following error: File "D:\bin\python\rdflib-2.3.0\example.py", line 34, in __main__ store.save("foaf.rdf", format="pretty-xml") AttributeError: 'BackwardCompatGraph' object has no attribute 'save' Is this error due to something I need to install ? I am running on Windows XP with Active State Python 2.4Login to submit a comment.