Rdflib

Latest version: v7.1.1

Safety actively analyzes 688896 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 31

4.1.2

This is a bug-fix release.

* Fixed unicode/str bug in py3 for rdfpipe
[375](https://github.com/RDFLib/rdflib/issues/375)

4.1.1

This is a bug-fix release.

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

* The RDF/XML Parser was made stricter, now raises exceptions for
illegal repeated node-elements.
[363](https://github.com/RDFLib/rdflib/issues/363)

* The SPARQLUpdateStore now supports non-ascii unicode in update
statements
[356](https://github.com/RDFLib/rdflib/issues/356)

* Fixed a bug in the NTriple/NQuad parser wrt. to unicode escape sequences
[352](https://github.com/RDFLib/rdflib/issues/352)

* HTML5Lib is no longer pinned to 0.95
[355](https://github.com/RDFLib/rdflib/issues/360)

* RDF/XML Serializer now uses parseType=Literal for well-formed XML literals

* A bug in the manchester OWL syntax was fixed
[355](https://github.com/RDFLib/rdflib/issues/355)

4.1

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

* A TriG parser was added (we already had a serializer) - it is
up-to-date wrt. to the newest spec from: http://www.w3.org/TR/trig/

* The Turtle parser was made up to date wrt. to the latest Turtle spec.

* Many more tests have been added - RDFLib now has over 2000
(passing!) tests. This is mainly thanks to the NT, Turtle, TriG,
NQuads and SPARQL test-suites from W3C. This also included many
fixes to the nt and nquad parsers.

* ConjunctiveGraph and Dataset now support directly adding/removing
quads with add/addN/remove methods.

* rdfpipe command now supports datasets, and reading/writing context
sensitive formats.

* Optional graph-tracking was added to the Store interface, allowing
empty graphs to be tracked for Datasets. The DataSet class also saw
a general clean-up, see: [309](https://github.com/RDFLib/rdflib/pull/309)

* After long deprecation, BackwardCompatibleGraph was removed.

Minor enhancements/bugs fixed:

* Many code samples in the documentation were fixed thanks to PuckCh

* The new IOMemory store was optimised a bit

* SPARQL(Update)Store has been made more generic.

* MD5 sums were never reinitialized in rdflib.compare

* Correct default value for empty prefix in N3
[312](https://github.com/RDFLib/rdflib/issues/312)

* Fixed tests when running in a non UTF-8 locale
[344](https://github.com/RDFLib/rdflib/issues/344)

* Prefix in the original turtle have an impact on SPARQL query
resolution
[313](https://github.com/RDFLib/rdflib/issues/313)

* Duplicate BNode IDs from N3 Parser
[305](https://github.com/RDFLib/rdflib/issues/305)

* Use QNames for TriG graph names
[330](https://github.com/RDFLib/rdflib/issues/330)

* \uXXXX escapes in Turtle/N3 were fixed
[335](https://github.com/RDFLib/rdflib/issues/335)

* A way to limit the number of triples retrieved from the
SPARQLStore was added
[346](https://github.com/RDFLib/rdflib/pull/346)

* Dots in localnames in Turtle
[345](https://github.com/RDFLib/rdflib/issues/345)
[336](https://github.com/RDFLib/rdflib/issues/336)

* BNode as Graph's public ID
[300](https://github.com/RDFLib/rdflib/issues/300)

* Introduced ordering of QuotedGraphs
[291](https://github.com/RDFLib/rdflib/issues/291)

4.0.1

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

* the new URI validation caused lots of problems, but is
necessary to avoid ''RDF injection'' vulnerabilities. In the
spirit of ''be liberal in what you accept, but conservative in
what you produce", we moved validation to serialisation time.

* the rdflib.tools package was missing from the
setup.py script, and was therefore not included in the
PYPI tarballs.

* RDF parser choked on empty namespace URI
[288](https://github.com/RDFLib/rdflib/issues/288)

* Parsing from sys.stdin was broken
[285](https://github.com/RDFLib/rdflib/issues/285)

* The new IO store had problems with concurrent modifications if
several graphs used the same store
[286](https://github.com/RDFLib/rdflib/issues/286)

* Moved HTML5Lib dependency to the recently released 1.0b1 which
support python3

4.0

This release includes several major changes:

* The new SPARQL 1.1 engine (rdflib-sparql) has been included in
the core distribution. SPARQL 1.1 queries and updates should
work out of the box.

* SPARQL paths are exposed as operators on URIRefs, these can
then be be used with graph.triples and friends:

python
from rdflib import Graph, URIRef
from rdflib.namespace import FOAF, RDFS

g = Graph()
bob = URIRef("...")
cls = URIRef("...")

List names of friends of Bob:
g.triples((bob, FOAF.knows/FOAF.name , None))

All super-classes:
g.triples((cls, RDFS.subClassOf * '+', None))


* a new graph.update method will apply SPARQL update statements

* Several RDF 1.1 features are available:
* A new DataSet class
* XMLLiteral and HTMLLiterals
* BNode (de)skolemization is supported through BNode.skolemize,
URIRef.de_skolemize, Graph.skolemize and Graph.de_skolemize

* Handled of Literal equality was split into lexical comparison
(for normal == operator) and value space (using new Node.eq
methods). This introduces some slight backwards incompatible
changes, but was necessary, as the old version had
inconsistent hash and equality methods that could lead the
literals not working correctly in dicts/sets.
The new way is more in line with how SPARQL 1.1 works.
For the full details, see:

https://github.com/RDFLib/rdflib/wiki/Literal-reworking

* Iterating over QueryResults will generate ResultRow objects,
these allow access to variable bindings as attributes or as a
dict. I.e.

py
for row in g.query('select ... ') :
print row.age, row["name"]


* "Slicing" of Graphs and Resources as syntactic sugar:
([271](https://github.com/RDFLib/rdflib/issues/271))

py
graph[bob : FOAF.knows/FOAF.name]
-> generator over the names of Bobs friends


* The SPARQLStore and SPARQLUpdateStore are now included
in the RDFLib core

* The documentation has been given a major overhaul, and examples
for most features have been added.


Minor Changes:

* String operations on URIRefs return new URIRefs: ([258](https://github.com/RDFLib/rdflib/issues/258))
py
>>> URIRef('http://example.org/')+'test
rdflib.term.URIRef('http://example.org/test')


* Parser/Serializer plugins are also found by mime-type, not just
by plugin name: ([277](https://github.com/RDFLib/rdflib/issues/277))
* Namespace is no longer a subclass of URIRef
* URIRefs and Literal language tags are validated on construction,
avoiding some "RDF-injection" issues ([266](https://github.com/RDFLib/rdflib/issues/266))
* A new memory store needs much less memory when loading large
graphs ([268](https://github.com/RDFLib/rdflib/issues/268))
* Turtle/N3 serializer now supports the base keyword correctly ([248](https://github.com/RDFLib/rdflib/issues/248))
* py2exe support was fixed ([257](https://github.com/RDFLib/rdflib/issues/257))
* Several bugs in the TriG serializer were fixed
* Several bugs in the NQuads parser were fixed

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.

* node.md5_term is now deprecated, if you use it let us know.

* Literal.datatype/language are now read-only properties ([226](https://github.com/RDFLib/rdflib/issues/226))
* Serializing to file fails in py3 ([249](https://github.com/RDFLib/rdflib/issues/249))
* TriX serializer places two xmlns attributes on same element ([250](https://github.com/RDFLib/rdflib/issues/250))
* RDF/XML parser fails on when XML namespace is not explicitly declared ([247](https://github.com/RDFLib/rdflib/issues/247))
* Resource class should "unbox" Resource instances on add ([215](https://github.com/RDFLib/rdflib/issues/215))
* Turtle/N3 does not encode final quote of a string ([239](https://github.com/RDFLib/rdflib/issues/239))
* float Literal precision lost when serializing graph to turtle or n3 ([237](https://github.com/RDFLib/rdflib/issues/237))
* plain-literal representation of xsd:decimals fixed
* allow read-only sleepycat stores
* language tag parsing in N3/Turtle fixes to allow several subtags.

Page 5 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.