rdflib/CHANGELOG.md at main · RDFLib/rdflib (original) (raw)

2025-01-10 RELEASE 7.1.2

A minor release that bumped up a few dev dependencies and achieved a few small but notable improvements, particularly with longturtle sorting:

Feature PRs:

Dependency bumps:

2024-10-17 RELEASE 7.1.1

This minor release removes the dependency on some only Python packages, in particularsix which is a problem for some Linux distributions that ship RDFLib.

Other than that, there are a few minor PRs that improve testing and to do with making releases - no new RDFLib core work.

Merged PRs:

2024-10-17 RELEASE 7.1.0

This minor release incorporates just over 100 substantive PRs - interesting things submitted by people - and around 140 auto-generated update PRs from dependabot and similar.

There are no major changes in this release over 7.0.0 and this release can be used in place of 7.0.0 without much worry about altered behaviour.

Since the previous release, we have updated the way auto-generated PRs are handled to ease the job of maintainers.

Due to the large numbers of PRs contained in this release, an abbreviated listing of them only is provided here:

Merged human-made PRs:

Auto-generated PRs:

2023-08-02 RELEASE 7.0.0

This is a major release with relatively slight breaking changes, new features and bug fixes.

The most notable breaking change relates to how RDFLib handles thepublicID parameter of the Graph.parse and Dataset.parse methods. Most users should not be affected by this change.

Instructions on adapting existing code to the breaking changes can be found in the upgrade guide from Version 6 to Version 7 which should be available here.

It is likely that the next couple of RDFLib releases will all be major versions, mostly because there are some more shortcomings of RDFLib's public interface that should be addressed.

If you use RDFLib, please consider keeping an eye ondiscussions, issues and pull-requests labelled with "feedback wanted".

A big thanks to everyone who contributed to this release.

BREAKING CHANGE: don't use publicID as the name for the default graph. (#2406)

Commit 4b96e9d, closes #2406.

When parsing data into a ConjunctiveGraph or Dataset, the triples in the default graphs in the sources were loaded into a graph named publicID.

This behaviour has been changed, and now the triples from the default graph in source RDF documents will be loaded into ConjunctiveGraph.default_context orDataset.default_context.

The publicID parameter to ConjunctiveGraph.parse and Dataset.parseconstructors will now only be used as the base URI for relative URI resolution.

BREAKING CHANGE: drop support for python 3.7 (#2436)

Commit 1e5f56b, closes #2436.

Python 3.7 will be end-of-life on the 27th of June 2023 and the next release of RDFLib will be a new major version.

This changes the minimum supported version of Python to 3.8.1 as some of the dependencies we use are not too fond of python 3.8.0. This change also removes all accommodations for older python versions.

feat: add curie method to NamespaceManager (#2365)

Commit f200722, closes #2365.

Added a curie method to NamespaceManager, which can be used to generate a CURIE from a URI.

Other changes:

Fixes #2348.

feat: add optional target_graph argument to Graph.cbd and use it for DESCRIBE queries (#2322)

Commit 81d13d4, closes #2322.

Add optional keyword only target_graph argument to rdflib.graph.Graph.cbd and use this new argument in evalDescribeQuery.

This makes it possible to compute a concise bounded description without creating a new graph to hold the result, and also without potentially having to copy it to another final graph.

feat: Don't generate prefixes for unknown URIs (#2467)

Commit bd797ac.

When serializing RDF graphs, URIs with unknown prefixes were assigned a namespace like ns1:. While the result would be smaller files, it does result in output that is not as readable.

This change removes this automatic assignment of namespace prefixes.

This is somewhat of an aesthetic choice, eventually we should have more flexibility in this regard so that users can exercise more control over how URIs in unknown namespaces are handled.

With this change, users can still manually create namespace prefixes for URIs in unknown namespaces, but before it there was no way to avoid the undesired behaviour, so this seems like the better default.

feat: Longturtle improvements (#2500)

Commit 5ee8bd7, closes #2500.

Improved the output of the longturtle serializer.

fix: SPARQL count with optionals (#2448)

Commit 46ff6cf, closes #2448.

Change SPARQL count aggregate to ignore optional that are unbound instead of raising an exception when they are encountered.

fix: GROUP_CONCAT handling of empty separator (issue) (#2474)

Commit e94c252, closes #2474.

GROUP_CONCAT was handling an empty separator (i.e. "") incorrectly, it would handle it as if the separator were not set, so essentially it was treated as a single space (i.e. " ").

This change fixes it so that an empty separator with GROUP_CONCATresults in a value with nothing between concatenated values.

Fixes #2473

fix: add NORMALIZE_LITERALS to rdflib.__all__ (#2489)

Commit 6981c28, closes #2489.

This gets Sphinx to generate documentation for it, and also clearly indicates that it can be used from outside the module.

fix: bugs with rdflib.extras.infixowl (#2390)

Commit cd0b442, closes #2390.

Fix the following issues in rdflib.extras.infixowl:

Other changes:

This code is based on code from:

fix: correct imports and __all__ (#2340)

Commit 7df77cd, closes #2340.

Disableimplicit_reexportand eliminate all errors reported by mypy after this.

This helps ensure that import statements import from the right module and that the __all__ variable is correct.

fix: dbpedia URL to use https instead of http (#2444)

Commit ef25896, closes #2444.

The URL for the service keyword had the http address for the dbpedia endpoint, which no longer works. Changing it to https as that works.

fix: eliminate bare except: (#2350)

Commit 4ea1436, closes #2350.

Replace bare except: with except Exception, there are some cases where it can be narrowed further, but this is already an improvement over the current situation.

This is somewhat pursuant to eliminatingflakeheaven, as it no longer supports the latest version of flake8 [ref]. But it also is just the right thing to do as bare exceptions can cause problems.

fix: eliminate file intermediary in translate algebra (#2267)

Commit ae6b859, closes #2267.

Previously, rdflib.plugins.sparql.algebra.translateAlgebra() maintained state via a file, with a fixed filename query.txt. With this change, use of that file is eliminated; state is now maintained in memory so that multiple concurrent translateAlgebra() calls, for example, should no longer interfere with each other.

The change is accomplished with no change to the client interface. Basically, the actual functionality has been moved into a class, which is instantiated and used as needed (once per call to algrebra.translateAlgebra()).

fix: eliminate some mutable default arguments in SPARQL code (#2301)

Commit 89982f8, closes #2301.

This change eliminates some situations where a mutable object (i.e., a dictionary) was used as the default value for functions in the rdflib.plugins.sparql.processor module and related code. It replaces these situations with typing.Optinal that defaults to None, and is then handled within the function. Luckily, some of the code that the SPARQL Processor relied on already had this style, meaning not a lot of changes had to be made.

This change also makes a small update to the logic in the SPARQL Processor's query function to simplify the if/else statement. This better mirrors the implementation in the UpdateProcessor.

fix: formatting of SequencePath and AlternativePath (#2504)

Commit 9c73581, closes #2504.

These path types were formatted without parentheses even if they contained multiple elements, resulting in string representations that did not accurately represent the path.

This change fixes the formatting so that the string representations are enclosed in parentheses when necessary.

fix: handling of rdf:HTML literals (#2490)

Commit 588286b, closes #2490.

Previously, without html5lib installed, literals withrdf:HTMLdatatypes were treated asill-typed, even if they were not ill-typed.

With this change, if html5lib is not installed, literals with therdf:HTML datatype will not be treated as ill-typed, and will haveNull as their ill_typed attribute value, which means that it is unknown whether they are ill-typed or not.

This change also fixes the mapping from rdf:HTML literal values to lexical forms.

Other changes:

Related issues:

fix: HTTP 308 Permanent Redirect status code handling (#2389)

Commit e0b3152, closes #2389 /docs.python.org/3.11/whatsnew/changelog.html#id128.

Change the handling of HTTP status code 308 to behave more likeurllib.request.HTTPRedirectHandler, most critically, the new 308 handling will create a new urllib.request.Request object with the new URL, which will prevent state from being carried over from the original request.

One case where this is important is when the domain name changes, for example, when the original URL is http://www.w3.org/ns/adms.ttl and the redirect URL ishttps://uri.semic.eu/w3c/ns/adms.ttl. With the previous behaviour, the redirect would contain a Host header with the value www.w3.org instead ofuri.semic.eu because the Host header is placed inRequest.unredirected_hdrs and takes precedence over the Host header inRequest.headers.

Other changes:

Fixes:

fix: lexical-to-value mapping of rdf:HTML literals (#2483)

Commit 53aaf02, closes #2483.

Use strict mode when parsing rdf:HTML literals. This ensures that whenlexical-to-value mapping(i.e. parsing) of a literal with rdf:HTML data type occurs, a value will only be assigned if the lexical form is a valid HTML5 fragment. Otherwise, i.e. for invalid fragments, no value will be associated with the literal [ref] and the literal will be ill-typed.

fix: TriG handling of GRAPH keyword without a graph ID (#2469)

Commit 8c9608b, closes #2469 /www.w3.org/2013/TriGTests/#trig-graph-bad-01.

The RDF 1.1 TriG grammar only allows the GRAPH keyword if it is followed by a graph identifier [ref].

This change enforces this rule so that the

http://www.w3.org/2013/TriGTests/#trig-graph-bad-01 test passes.

fix: TriG parser error handling for nested graphs (#2468)

Commit afea615, closes #2468 /www.w3.org/2013/TriGTests/#trig-graph-bad-07.

Raise an error when nested graphs occur in TriG.

With this change, the http://www.w3.org/2013/TriGTests/#trig-graph-bad-07 test passes.

fix: typing errors from dmypy (#2451)

Commit 10f9ebe, closes #2451.

Fix various typing errors that are reported when running with dmypy, the mypy daemon.

Also add a task for running dmypy to the Taskfile that can be selected as the default mypy variant by setting the MYPY_VARIANT environment variable to dmypy.

fix: widen Graph.__contains__ type-hints to accept Path values (#2323)

Commit 1c45ec4, closes #2323.

Change the type-hints for Graph.__contains__ to also accept Pathvalues as the parameter is passed to the Graph.triples function, which accepts Path values.

docs: Add CITATION.cff file (#2502)

Commit ad5c0e1, closes #2502.

The CITATION.cff file provides release metadata which is used by Zenodo and other software and systems.

This file's content is best-effort, and pull requests with improvements are welcome and will affect future releases.

docs: add guidelines for breaking changes (#2402)

Commit cad367e, closes #2402.

Add guidelines on how breaking changes should be approached.

The guidelines take a very pragmatic approach with known downsides, but this seems like the best compromise given the current situation.

For prior discussion on this point see:

docs: fix comment that doesn't describe behavior (#2443)

Commit 4e42d10, closes #2443.

Comment refers to a person that knows bob and the code would return a name, but this would only work if the triple person foaf:name bob . is part of the dataset

As this is a very uncommon way to model a foaf:knows the code was adjusted to match the description.

docs: recommend making an issue before making an enhancement (#2391)

Commit 63b082c, closes #2391.

Suggest that contributors first make an issue to get in principle agreement for pull requests before making the pull request.

Enhancements can be controversial, and we may reject the enhancement sometimes, even if the code is good, as it may just not be deemed important enough to increase the maintenance burden of RDFLib.

Other changes:

docs: remove unicode string form in rdflib/term.py (#2384)

Commit ddcc4eb, closes #2384.

The use of Unicode literals is an artefact of Python 2 and is incorrect in Python 3.

Doctests for docstrings using Unicode literals only pass because ALLOW_UNICODEis set, but this option should be disabled as RDFLib does not support Python 2 any more.

This partially resolves #2378.

2023-03-26 RELEASE 6.3.2

fix: ROUND, ENCODE_FOR_URI and SECONDS SPARQL functions (#2314)

Commit af17916, closes #2314.

ROUND was not correctly rounding negative numbers towards positive infinity,ENCODE_FOR_URI incorrectly treated / as safe, and SECONDS did not include fractional seconds.

This change corrects these issues.

fix: add __hash__ and __eq__ back to rdflib.paths.Path (#2292)

Commit fe1a8f8, closes #2292.

These methods were removed when @total_ordering was added, but@total_ordering does not add them, so removing them essentially removes functionality.

This change adds the methods back and adds tests to ensure they work correctly.

All path related tests are also moved into one file.

fix: Add to_dict method to the JSON-LD Context class. (#2310)

Commit d7883eb, closes #2310.

Context.to_dict is used in JSON-LD serialization, but it was not implemented. This change adds the method.

fix: add the wgs namespace binding back (#2294)

Commit adf8eb2, closes #2294.

#1686 inadvertently removed the wgs prefix. This change adds it back.

fix: change the prefix for https://schema.org/ back to schema (#2312)

Commit 3faa01b, closes #2312.

The default prefix for https://schema.org/ registered withrdflib.namespace.NamespaceManager was inadvertently changed to sdo in 6.2.0, this however constitutes a breaking change, as code that was using the schemaprefix would no longer have the same behaviour. This change changes the prefix back to schema.

fix: include docs and examples in the sdist tarball (#2289)

Commit 394fb50, closes #2289.

The sdists generated by setuptools included the docs and examplesdirectories, and they are needed for building docs and running tests using the sdist.

This change includes these directories in the sdist tarball.

A test:sdist task is also added to Taskfile.yml which uses the sdists to run pytest and build docs.

fix: IRI to URI conversion (#2304)

Commit dfa4054, closes #2304.

The URI to IRI conversion was percentage-quoting characters that should not have been quoted, like equals in the query string. It was also not quoting things that should have been quoted, like the username and password components of a URI.

This change improves the conversion by only quoting characters that are not allowed in specific parts of the URI and quoting previously unquoted components. The safe characters for each segment are taken fromRFC3986.

The new behavior is heavily inspired by

werkzeug.urls.iri_to_urithough there are some differences.

fix: JSON-LD context construction from a dict (#2306)

Commit 832e693, closes #2306.

A variable was only being initialized for string-valued inputs, but if a dictinput was passed the variable would still be accessed, resulting in aUnboundLocalError.

This change initializes the variable always, instead of only when string-valued input is used to construct a JSON-LD context.

fix: reference to global inside get_target_namespace_elements (#2311)

Commit 4da67f9, closes #2311.

get_target_namespace_elements references the args global, which is not defined if the function is called from outside the module. This commit fixes that instead referencing the argument passed to the function.

fix: restore the 6.1.1 default bound namespaces (#2313)

Commit 57bb428, closes #2313.

The namespaces bound by default by rdflib.graph.Graph andrdflib.namespace.NamespaceManager was reduced in version 6.2.0 of RDFLib, however, this also would cause code that worked with 6.1.1 to break, so this constituted a breaking change. This change restores the previous behaviour, binding the same namespaces as was bound in 6.1.1.

To bind a reduced set of namespaces, the bind_namespaces parameter ofrdflib.graph.Graph or rdflib.namespace.NamespaceManager can be used.

test: add webtest marker to tests that use the internet (#2295)

Commit cfe6e37, closes #2295.

This is being done so that it is easier for downstream packagers to run the test suite without requiring internet access.

To run only tests that does not use the internet, run pytest -m "not webtest".

The validation workflow validates that test run without internet access by running the tests inside firejail --net=none.

chore: Update CONTRIBUTORS from commit history (#2305)

Commit 1ab4fc0, closes #2305.

This ensures contributors are credited. Also added .mailmap to fix early misattributed contributions.

docs: fix typo in NamespaceManager documentation (#2291)

Commit 7a05c15, closes #2291.

Changed cdterms to dcterms, see #2196 for more info.

2023-03-18 RELEASE 6.3.1

This is a patch release that includes a singular user facing fix, which is the inclusion of the test directory in the sdist release artifact.

The following sections describe the changes included in this version.

build: explicitly specify packages in pyproject.toml (#2280)

Commit 334787b, closes #2280.

The default behaviour makes it more of a hassle to republish RDFLib to a separate package, something which I plan to do for testing purposes and possibly other reasons.

More changes may follow in a similar vein.

build: include test in sdist (#2282)

Commit e3884b7, closes #2282.

A perhaps minor regression from earlier versions is that the sdist does not include the test folder, which makes it harder for downstreams to use a single source of truth to build and test a reliable package. This restores the test folder for sdists.

docs: don't use kroki (#2284)

Commit bea782f, closes #2284.

The Kroki server is currently experiencing some issues which breaks our build, this change eliminates the use of Kroki in favour of directly using the generated SVG images which is checked into git alongside the PlantUML sources.

I also added a task to the Taskfile to re-generate the SVG images from the PlantUML sources by calling docker.

2023-03-16 RELEASE 6.3.0

This is a minor release that includes bug fixes and features.

Important Information

User facing changes

This section lists changes that have a potential impact on users of RDFLib, changes with no user impact are not included in this section.

PRs merged since last release

2022-07-16 RELEASE 6.2.0

This is a minor release that includes bug fixes and features.

User facing changes

This section lists changes that have a potential impact on users of RDFLib, changes with no user impact are not included in this section.

PRs merged since last release

2021-12-20 RELEASE 6.1.1

Better testing and tidier code.

This is a semi-major release that:

This release contains many, many hours of updates from Iwan Aucamp, so thank you Iwan!

PRs merged since last release:

2021-12-20 RELEASE 6.1.0

A slightly messed-up release of what is now 6.1.1. Do not use!

2021-10-10 RELEASE 6.0.2

Minor release to add OWL.rational & OWL.real which are needed to allow the OWL-RL package to use only rdflib namespaces, not it's own versions.

A few other small things have been added, see the following merged PRs list:

2021-09-17 RELEASE 6.0.1

Minor release to fix a few small errors, in particular with JSON-LD parsing & serializing integration from rdflib-jsonld. Also, a few other niceties, such as allowing graph add(), remove() etc. to be chainable.

2021-07-20 RELEASE 6.0.0

6.0.0 is a major stable release that drops support for Python 2 and Python 3 < 3.7. Type hinting is now present in much of the toolkit as a result.

It includes the formerly independent JSON-LD parser/serializer, improvements to Namespaces that allow for IDE namespace prompting, simplified use of g.serialize() (turtle default, no need to decode()) and many other updates to documentation, store backends and so on.

Performance of the in-memory store has also improved since Python 3.6 dictionary improvements.

There are numerous supplementary improvements to the toolkit too, such as:

All PRs merged since 5.0.0:

2020-04-18 RELEASE 5.0.0

5.0.0 is a major stable release and is the last release to support Python 2 & 3.4. 5.0.0 is mostly backwards- compatible with 4.2.2 and is intended for long-term, bug fix only support.

5.0.0 comes two weeks after the 5.0.0RC1 and includes a small number of additional bug fixes. Note that rdflib-jsonld has released a version 0.5.0 to be compatible with rdflib 5.0.0.

All PRs merged since 5.0.0RC1:

General Bugs Fixed:

Enhanced Features:

SPARQL Fixes:

Documentation Fixes:

2020-04-04 RELEASE 5.0.0RC1

After more than three years, RDFLib 5.0.0rc1 is finally released.

This is a rollup of all of the bugfixes merged, and features introduced to RDFLib since RDFLib 4.2.2 was released in Jan 2017.

While all effort was taken to minimize breaking changes in this release, there are some.

Please see the upgrade4to5 document in the docs directory for more information on some specific differences from 4.2.2 to 5.0.0.

All issues closed and PRs merged since 4.2.2:

General Bugs Fixed:

Enhanced Features:

SPARQL Fixes:

Code Quality and Cleanups:

Testing:

Documentation Fixes:

2017-01-29 RELEASE 4.2.2

This is a bug-fix release, and the last release in the 4.X.X series.

Bug fixes:

Enhancements:

Cleanups:

Testing improvements:

Doc improvements:

2015-08-12 RELEASE 4.2.1

This is a bug-fix release.

Minor enhancements:

Bug fixes:

Testing improvements:

2015-02-19 RELEASE 4.2.0

This is a new minor version of RDFLib including a handful of new features:

Minor enhancements & bugs fixed:

2014-04-15 RELEASE 4.1.2

This is a bug-fix release.

2014-03-03 RELEASE 4.1.1

This is a bug-fix release.

This will be the last RDFLib release to support python 2.5.

2013-12-31 RELEASE 4.1

This is a new minor version RDFLib, which includes a handful of new features:

Minor enhancements/bugs fixed:

2013-05-22 RELEASE 4.0.1

Following RDFLib tradition, some bugs snuck into the 4.0 release. This is a bug-fixing release:

2013-05-16 RELEASE 4.0

This release includes several major changes:

Minor Changes:

2013-03-01 RELEASE 3.4

This release introduced new parsers for structured data in HTML. In particular formats: hturtle, rdfa, mdata and an auto-detecting html format were added. Thanks to Ivan Herman for this!

This release includes a lot of admin maintentance - correct dependencies for different python versions, etc. Several py3 bugs were also fixed.

This release drops python 2.4 compatibility - it was just getting too expensive for us to maintain. It should however be compatible with any cpython from 2.5 through 3.3.

2012-10-10 RELEASE 3.2.3

Almost identical to 3.2.2 A stupid bug snuck into 3.2.2, and querying graphs were broken.

2012-09-25 RELEASE 3.2.2

This is mainly a maintenance release.

This release should be compatible with python 2.4 through to 3.

Changes:

2012-04-24 RELEASE 3.2.1

This is mainly a maintenance release.

Changes:

2012-01-19 RELEASE 3.2.0

Major changes:

2011-03-17 RELEASE 3.1.0

Fixed a range of minor issues:

  problem with unicode literals in rdflib.compare.graph_diff  

2010-05-13 RELEASE 3.0.0

Working test suite with all tests passing.

Removed dependency on setuptools.

(Issue #43) Updated Package and Module Names to follow conventions outlined inhttp://www.python.org/dev/peps/pep-0008/

Removed SPARQL bits and non core plugins. They are mostly moving to http://code.google.com/p/rdfextras/ at least until they are stable.

Fixed datatype for Literal(True).

Fixed Literal to enforce constraint of having either a language or datatype but not both.

Fixed Literal's repr.

Fixed to Graph Add/Sub/Mul opterators.

Upgraded RDFa parser to pyRdfa.

Upgraded N3 parser to the one from CWM.

Fixed unicode encoding issue involving N3Parser.

N3 serializer improvements.

Fixed HTTP content-negotiation

Fixed Store.namespaces method (which caused a few issues depending on Store implementation being used.)

Fixed interoperability issue with plugin module.

Fixed use of Deprecated functionality.

2009-03-30 RELEASE 2.4.1

Fixed Literal comparison case involving Literal's with datatypes of XSD.base64Binary.

Fixed case where XSD.date was matching before XSD.dateTime for datetime instances.

Fixed jython interoperability issue (issue #53).

Fixed Literal repr to handle apostrophes correctly (issue #28).

Fixed Literal's repr to be consistent with its __init__ (issue #33).

2007-04-04 RELEASE 2.4.0

Improved Literal comparison / equality

Sparql cleanup.

getLiteralValue now returns the Literal object instead of the result of toPython(). Now that Literals override a good coverage of comparison operators, they should be passed around as first class objects in the SPARQL evaluation engine.

Added support for session bnodes re: sparql

Fixed prolog reduce/reduce conflict. Added Py_None IncRefs where they were being passed into Python method invocations (per drewp's patch)

Fixed sparql queries involving empty namespace prefix.

Fixed the selected variables sparql issue

Fixed support in SPARQL queries.

Fixed involving multiple unions and queries are nested more than one level (bug in _getAllVariables causing failure when parent.top is None)

Fixed test_sparql_equals.py.

Fixed sparql json result comma errors issue.

Fixed test_sparql_json_results.py (SELECT * variables out of order)

Added a 4Suite-based SPARQL XML Writer implementation. If 4Suite is not installed, the fallback python saxutils is used instead

applied patch fromhttp://rdflib.net/issues/2007/02/23/bugs_in_rdflib.sparql.queryresult/issue

The restriction on GRAPH patterns with variables has been relieved a bit to allow such usage when the variable is provided as an initial binding

Fix for OPTIONAL patterns. P1 OPT P2, where P1 and P2 shared variables which were bound to BNodes were not unifying on these BNode variable efficiently / correctly. The fix was to add bindings for 'stored' BNodes so they aren't confused for wildcards

Added support to n3 parser for retaining namespace bindings.

Fixed several RDFaParser bugs.

Added serializer specific argument support.

Fixed a few PrettyXMLSerializer issues and added a max_depth option.

Fixed some TurtleSerializer issues.

Fixed some N3Serializer issues.

Added support easy_install

added link to long_descriptin for easy_install -U rdflib==dev to work; added download_url back

added continuous-releases-using-subversion bit

Added rdflib_tools package Added rdfpipe Added initial EARLPluging

Improved test running... using nose... added tests

Exposed generated test cases for nose to find. added bit to configure 'setup.py nosetests' to run doc tests

added nose test bits

Added md5_term_hash method to terms.

Added commit_pending_transaction argument to Graph's close method.

Added DeprecationWarning to rdflib.constants

Added a NamespaceDict class for those who want to avoid the Namespace as subclass of URIRef issues

Added bind function

Fixed type of Namespace re: URIRef vs. unicode

Improved ValueError message

Changed value method's any argument to default to True

Changed __repr__ to always reflect that it's an rdf.Literal -- as this is the case even though we now have it acting like the corresponding type in some casses

A DISTINCT was added to the SELECT clause to ensure duplicate triples are not returned (an RDF graph is a set of triples) - which can happen for certain join expressions.

Support for ConditionalAndExpressionList and RelationalExpressionList (|| and && operators in FILTER)

Fixed context column comparison. The hash integer was being compared with 'F' causing a warning:Warning: Truncated incorrect DOUBLE value: 'F'

applied patch inhttp://rdflib.net/issues/2006/12/13/typos_in_abstractsqlstore.py/issue

fix forhttp://rdflib.net/issues/2006/12/07/problems_with_graph.seq()_when_sequences_contain_more_than_9_items./issue

General code cleanup (removing redundant imports, changing relative imports to absolute imports etc)

Removed usage of deprecated bits.

Added a number of test cases.

Added DeprecationWarning for save method

refactoring of GraphPattern

ReadOnlyGraphAggregate uses Graph constructor properly to setup (optionally) a common store

Fixed bug with . (fullstop) in localname parts.

Changed Graph's value method to return None instead of raising an AssertionError.

Fixed conversion of (exiplicit) MySQL ports to integers.

Fixed MySQL store so it properly calculates __len__ of individual Graphs

Aligned with how BerkeleyDB is generating events (remove events are expressed in terms of interned strings)

Added code to catch unpickling related exceptions

Added BerkeleyDB store implementation.

Merged TextIndex from michel-events branch.

2006-10-15 RELEASE 2.3.3

Added TriXParser, N3Serializer and TurtleSerializer.

Added events to store interface: StoreCreated, TripleAdded and TripleRemoved.

Added Journal Reader and Writer.

Removed BerkeleyDB level journaling.

Added support for triple quoted Literal's.

Fixed some corner cases with Literal comparison.

Fixed PatternResolution for patterns that return contexts only.

Fixed NodePickler not to choke on unhashable objects.

Fixed Namespace's __getattr__ hack to ignore names starting with __

Added SPARQL != operator.

Fixed query result __len__ (more efficient).

Fixed and improved RDFa parser.

redland patches fromhttp://rdflib.net/pipermail/dev/2006-September/000069.html

various patches for the testsuite -http://rdflib.net/pipermail/dev/2006-September/000069.html

2006-08-01 RELEASE 2.3.2

Added SPARQL query support.

Added XSD to/from Python datatype support to Literals.

Fixed ConjunctiveGraph so that it is a proper subclass of Graph.

Added Deprecation Warning when BackwardCompatGraph gets used.

Added RDFa parser.

Added Collection Class for working with RDF Collections.

Added method to Graph for testing connectedness

Fixed bug in N3 parser where identical BNodes were not being combined.

Fixed literal quoting in N3 serializer.

Fixed RDF/XML serializer to skip over N3 bits.

Changed Literal and URIRef instantiation to catch UnicodeDecodeErrors - which were being thrown when the default decoding method (ascii) was hitting certain characters.

Changed Graph's bind method to also override the binding in the case of an existing generated bindings.

Added FOPLRelationalModel - a set of utility classes that implement a minimal Relational Model of FOPL implemented as a SQL database (uses identifier/value interning and integer half-md5-hashes for space and index efficiency).

Changed MySQL store to use FOPLRelationalModel plus fixes and improvements.

Added more test cases.

Cleaned up source code to follow pep8 / pep257.

2006-02-27 RELEASE 2.3.1

Added save method to BackwardCompatibleGraph so that example.py etc work again.

Applied patch from Drew Perttula to add local_time_zone argument to util's date_time method.

Fixed a relativize bug in the rdf/xml serializer.

Fixed NameError: global name 'URIRef' is not defined error in BerkeleyDB.py by adding missing import.

Applied patch for Seq to sort list by integer, added by Drew Hess.

Added a preserve_bnode_ids option to rdf/xml parser.

Applied assorted patches for tests (seehttp://tracker.asemantics.com/rdflib/ticket/8 )

Applied redland.diff (seehttp://tracker.asemantics.com/rdflib/ticket/9 )

Applied changes specifiedhttp://tracker.asemantics.com/rdflib/ticket/7

Added a set method to Graph.

Fixed RDF/XML serializer so that it does not choke on n3 bits (rather it'll just ignore them)

2005-12-23 RELEASE 2.3.0

See http://rdflib.net/2.3.0/ for most up-to-date release notes

Added N3 support to Graph and Store.

Added Sean's n3p parser, and ntriples parser.

BerkeleyDB 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.

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 capability 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.

2005-10-10 RELEASE 2.2.3

Fixed BerkeleyDB backend to commit after an add and remove. This should help just a bit with those unclean shutdowns ;)

Fixed use of logging so that it does not mess with the root logger. Thank you, Arve, for pointing this one out.

Fixed Graph's value method to have default for subject in addition to predicate and object.

Fixed Fourthought backend to be consistent with interface. It now supports an empty constructor and an open method that takes a configuration string.

2005-09-10 RELEASE 2.2.2

Applied patch from inkel to add encoding argument to all serialization related methods.

Fixed XMLSerializer bug regarding default namespace bindings.

Fixed namespace binding bug involving binding a second default namespace.

Applied patch from Gunnar AAstrand Grimnes to add context support to __iadd__ on Graph. (Am considering the lack of context support a bug. Any users currently using __iadd__, let me know if this breaks any of your code.)

Added Fourthought backend contributed by Chimezie Ogbuji.

Fixed a RDF/XML parser bug relating to XMLLiteral and escaping.

Fixed setup.py so that install does not try to uninstall (rename_old) before installing; there's now an uninstall command if one needs to uninstall.

2005-08-25 RELEASE 2.2.1

Fixed issue regarding Python2.3 compatibility.

Fixed minor issue with URIRef's absolute method.

2005-08-12 RELEASE 2.1.4

Added optional base argument to URIRef.

Fixed bug where load and parse had inconsistent behavior.

Added a FileInputSource.

Added skeleton sparql parser and test framework.

Included pyparsing (pyparsing.sourceforge.net) for sparql parsing.

Added attribute support to namespaces.

2005-06-28 RELEASE 2.1.3

Added Ivan's sparql-p implementation.

Literal is now picklable.

Added optional base argument to serialize methods about which to relativize.

Applied patch to remove some dependencies on Python 2.4 features.

Fixed BNode's n3 serialization bug (recently introduced).

Fixed a collections related bug.

2005-05-13 RELEASE 2.1.2

Added patch from Sidnei da Silva that adds a sqlobject based backend.

Fixed bug in PrettyXMLSerializer (rdf prefix decl was missing sometimes)

Fixed bug in RDF/XML parser where empty collections where causing exceptions.

2005-05-01 RELEASE 2.1.1

Fixed a number of bugs relating to 2.0 backward compatibility.

Fixed split_uri to handle URIs with _ in them properly.

Fixed bug in RDF/XML handler's absolutize that would cause some URIRefs to end in ##

Added check_context to Graph.

Added patch the improves IOMemory implementation.

2005-04-12 RELEASE 2.1.0

Merged TripleStore and InformationStore into Graph.

Added plugin support (or at least cleaned up, made consistent the plugin support that existed).

Added value and seq methods to Graph.

Renamed prefix_mapping to bind.

Added namespaces method that is a generator over all prefix, namespace bindings.

Added notion of NamespaceManager.

Added couple new backends, IOMemory and ZODB.

2005-03-19 RELEASE 2.0.6

Added pretty-xml serializer (inlines BNodes where possible, typed nodes, Collections).

Fixed bug in NTParser and n3 methods where not all characters where being escaped.

Changed label and comment methods to return default passed in when there is no label or comment. Moved methods to Store Class. Store no longer inherits from Schema.

Fixed bug involving a case with rdf:about='#'

Changed InMemoryBackend to update third index in the same style it does the first two.

2005-01-08 RELEASE 2.0.5

Added publicID argument to Store's load method.

Added RDF and RDFS to top level rdflib package.

2004-10-14 RELEASE 2.0.4

Removed unfinished functionality.

Fixed bug where another prefix other than rdf was getting defined for the rdf namespace (causing an assertion to fail).

Fixed bug in serializer where nodeIDs were not valid NCNames.

2004-04-21 RELEASE 2.0.3

Added missing "from future import generators" statement to InformationStore.

Simplified RDF/XML serializer fixing a few bugs involving BNodes.

Added a reset method to RDF/XML parser.

Changed 'if foo' to "if foo is not None" in a few places in the RDF/XML parser.

Fully qualified imports in rdflib.syntax {parser, serializer}.

Context now goes through InformationStore (was bypassing it going directly to backend).

2004-03-22 RELEASE 2.0.2

Improved performance of Identifier equality tests.

Added missing "from future import generators" statements needed to run on Python2.2.

Added alternative to shlib.move() if it isn't present.

Fixed bug that occurred when specifying a backend to InformationStore's constructor.

Fixed bug recently introduced into InformationStore's remove method.

2004-03-15 RELEASE 2.0.1

Fixed a bug in the SleepyCatBackend multi threaded concurrency support. (Tested fairly extensively under the following conditions: multi threaded, multi process, and both).

NOTE: fix involved change to database format -- so 2.0.1 will not be able to open databases created with 2.0.0

Removed the use of the Concurrent wrapper around InMemoryBackend and modified InMemoryBackend to handle concurrent requests. (Motivated by Concurrent's poor performance on bigger TripleStores.)

Improved the speed of len(store) by making backends responsible for implementing __len__.

Context objects now have a identifier property.

2004-03-10 RELEASE 2.0.0

Fixed a few bugs in the SleepyCatBackend multi process concurrency support.

Removed rdflib.Resource

Changed remove to now take a triple pattern and removed remove_triples method.

Added __iadd__ method to Store in support of store += another_store.

2004-01-04 RELEASE 1.3.2

Added a serialization dispatcher.

Added format arg to save method.

Store now remembers prefix/namespace bindings.

Backends are now more pluggable

...

2003-10-14 RELEASE 1.3.1

Fixed bug in serializer where triples where only getting serialized the first time.

Added type checking for contexts.

Fixed bug that caused comparisons with a Literal to fail when the right hand side was not a string.

Added DB_INIT_CDB flag to SCBacked for supporting multiple reader/single writer access

Changed rdf:RDF to be optional to conform with latest spec.

Fixed handling of XMLLiterals

2003-04-40 RELEASE 1.3.0

Removed bag_id support and added it to OLD_TERMS.

Added a double hash for keys in SCBacked.

Fixed _HTTPClient so that it no longer removes metadata about a context right after it adds it.

Added a KDTreeStore and RedlandStore backends.

Added a StoreTester.

2003-02-28 RELEASE 1.2.4

Fixed bug in SCBackend where language and datatype information where being ignored.

Fixed bug in transitive_subjects.

Updated some of the test cases that where not up to date.

async_load now adds more http header and error information to the InformationStore.

2003-02-11 RELEASE 1.2.3

Fixed bug in load methods where relative URLs where not being absolutized correctly on Windows.

Fixed serializer so that it throws an exception when trying to serialize a graph with a predicate that can not be split.

2003-02-07 RELEASE 1.2.2

Added an exists method to the BackwardCompatibility mixin.

Added versions of remove, remove_triples and triples methods to the BackwardCompatility mixin for TripleStores that take an s, p, o as opposed to an (s, p, o).

2003-02-03 RELEASE 1.2.1

Added support for parsing XMLLiterals.

Added support for proper charmod checking (only works in Python2.3).

Fixed remaining rdfcore test cases that where not passing.

Fixed windows bug in AbstractInformationStore's run method.

2003-01-02 RELEASE 1.2.0

Added systemID, line #, and column # to error messages.

BNode prefix is now composed of ascii_letters instead of letters.

Added a bsddb backed InformationStore.

Added an asynchronous load method, methods for scheduling context updates, and a run method.

2002-12-16 RELEASE 1.1.5

Introduction of InformationStore, a TripleStore with the addition of context support.

Resource __getitem__ now returns object (no longer returns a Resource for the object).

Fixed bug in parser that was introduced in last release regaurding unqualified names.

2002-12-10 RELEASE 1.1.4

Interface realigned with last stable release.

Serializer now uses more of the abbreviated forms where possible.

Parser optimized and cleaned up.

Added third index to InMemoryStore.

The load and parse methods now take a single argument.

Added a StringInputSource for to support parsing from strings.

Renamed rdflib.BTreeTripleStore.TripleStore to rdflib.BTreeTripleStore.BTreeTripleStore.

Minor reorganization of mix-in classes.

2002-12-03 RELEASE 1.1.3

BNodes now created with a more unique identifier so BNodes from different sessions do not collide.

Added initial support for XML Literals (for now they are parsed into Literals).

Resource is no longer a special kind of URIRef.

Resource no longer looks at range to determine default return type for __getitem__. Instead there is now a get(predicate, default) method.

2002-11-21 RELEASE 1.1.2

Fixed Literal's __eq__ method so that Literal('foo')=='foo' etc.

Fixed Resource's __setitem__ method so that it does not raise a dictionary changed size while iterating exception.

2002-11-09 RELEASE 1.1.1

Resource is now a special kind of URIRef

Resource's __getitem__ now looks at rdfs:range to determine return type in default case.

2002-11-05 RELEASE 1.1.0

A new development branch

Cleaned up interface and promoted it to SIR: Simple Interface for RDF.

Updated parser to use SAX2 interfaces instead of using expat directly.

Added BTreeTripleStore, a ZODB BTree TripleStore backend. And a default pre-mixed TripleStore that uses it.

Synced with latest (Editor's draft) RDF/XML spec.

Added datatype support.

Cleaned up interfaces for load/parse: removed generate_path from loadsave and renamed parse_URI to parse.

2002-10-08 RELEASE 0.9.6

The end of a development branch

BNode can now be created with specified value.

Literal now has a language attribute.

Parser now creates Literals with language attribute set appropriately as determined by xml:lang attributes.

TODO: Serializer-Literals-language attribute

TODO: Change __eq__ so that Literal("foo")=="foo" etc

TripleStores now support "in" operator. For example: if (s, p, o) in store: print "Found ", s, p, o

Added APIs/object for working at level of a Resource. NOTE: This functionality is still experimental

Consecutive Collections now parse correctly.

2002-08-06 RELEASE 0.9.5

Added support for rdf:parseType="Collection"

Added items generator for getting items in a Collection

Renamed rdflib.triple_store to rdflib.TripleStore to better follow python style conventions.

Added an Identifier Class

Moved each node into its own Python module.

Added rdflib.util with a first and uniq function.

Added a little more to example.py

Removed generate_uri since we have BNodes now.

2002-07-29 RELEASE 0.9.4

Added support for proposed rdf:nodeID to both the parser and serializer.

Reimplemented serializer which now nests things where possible.

Added partial support for XML Literal parseTypes.

2002-07-16 RELEASE 0.9.3

Fixed bug where bNodes where being created for nested property elements when they where not supposed to be.

Added lax mode that will convert rdf/xml files that contain bare IDs etc. Also, lax mode will only report parse errors instead of raising exceptions.

Added missing check for valid attribute names in the case of production 5.18 of latest WD spec.

2002-07-05 RELEASE 0.9.2

Added missing constants for SUBPROPERTYOF, ISDEFINEDBY.

Added test case for running all of the rdf/xml test cases.

Reimplemented rdf/xml parser to conform to latest WD.

2002-06-10 RELEASE 0.9.1

There is now a remove and a remove_triples (no more overloaded remove).

Layer 2 has been merged with layer 1 since there is no longer a need for them to be separate layers.

The generate_uri method has moved to LoadSave since triple stores do not have a notion of a uri. [Also, with proper bNode support on its way the need for a generate_uri might not be as high.]

Fixed bug in node's n3 function: URI -> URIRef.

Replaced string based exceptions with class based exceptions.

Added PyUnit TestCase for parser.py

Added N-Triples parser.

Added __len__ and __eq__ methods to store interface.

2002-06-04 RELEASE 0.9.0

Initial release after being split from redfootlib.