fix(deps): update dependency rdflib to v6.3.2 #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.0.0
->6.3.2
Release Notes
RDFLib/rdflib (rdflib)
v6.3.2
Compare Source
fix:
ROUND
,ENCODE_FOR_URI
andSECONDS
SPARQL functions (#2314)Commit af17916, closes #2314.
ROUND
was not correctly rounding negative numbers towards positive infinity,ENCODE_FOR_URI
incorrectly treated/
as safe, andSECONDS
did not includefractional seconds.
This change corrects these issues.
fix: add
__hash__
and__eq__
back tordflib.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 essentiallyremoves 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-LDContext
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 toschema
(#2312)Commit 3faa01b, closes #2312.
The default prefix for
https://schema.org/
registered withrdflib.namespace.NamespaceManager
was inadvertently changed tosdo
in 6.2.0,this however constitutes a breaking change, as code that was using the
schema
prefix 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
andexamples
directories, 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 toTaskfile.yml
which uses the sdists to runpytest 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 from
RFC3986.
The new behavior is heavily inspired by
werkzeug.urls.iri_to_uri
though 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
dict
input was passed the variable would still be accessed, resulting in a
UnboundLocalError
.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 theargs
global, which is notdefined 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
orrdflib.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
todcterms
, see #2196 for more info.v6.3.1
Compare Source
This is a patch release that includes a singular user facing fix, which is the
inclusion of the
test
directory in thesdist
release artifact.The following sections describe the changes included in this version.
build: explicitly specify
packages
inpyproject.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.
v6.3.0
Compare Source
This is a minor release that includes bug fixes and features.
Important Information
this will not be considered a breaking change, and RDFLib's major version
number will not be changed solely on the basis of Python 3.7 support being
dropped.
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.
Add chunk serializer that facilitates the encoding of a graph into multiple
N-Triples encoded chunks.
PR #1968.
Fixes passing
NamespaceManager
inConjunctiveGraph
's methodget_context()
.The
get_context()
method will now pass theNamespaceManager
ofConjunctiveGraph
to thenamespace_manager
attribute of the newly created context graph, instead of theConjunctiveGraph
object itself. This cleans up an oldFIXME
comment.PR #2073.
InfixOWL fixes and cleanup.
Closed issue #2030.
PR #2024,
and PR #2033.
rdflib.extras.infixowl.Restriction.__init__
will now raise aValueError
if there is no restriction value instead of an
AssertionError
.rdflib.extras.infixowl.Restriction.restrictionKind
which was essentiallynot working at all.
rdflib.extras.infixowl.Property.__repr__
usesrdflib.namespace.OWL
.rdflib.extras.infixowl.Infix.__ror__
andrdflib.extras.infixowl.Infix.__or__
as they were broken.rdflib.extras.infixowl.termDeletionDecorator
.rdflib.extras.infixowl.MalformedClassError
which will replacerdflib.extras.infixowl.MalformedClass
(which is an exception) in the nextmajor version.
Fixed some cross-referencing issues in RDFLib documentation.
Closed issue #1878.
PR #2036.
Fixed import of
xml.sax.handler
inrdflib.plugins.parsers.trix
so that itno longer tries to import it from
xml.sax.saxutils
.PR #2041.
Removed a pre python 3.5 regex related workaround in the REPLACE SPARQL
function.
PR #2042.
Fixed some issues with SPARQL XML result parsing that caused problems with
lxml
. Closed issue #2035,issue #1847.
PR #2044.
TextIO
streams now work correctly with
lxml
installed and with XML documents thatare not
utf-8
encoded.<results>
that are not<result>
are now ignored.<result>
that are not<binding>
are now ignored.rdflib.plugins.sparql.results.xmlresults
.Added type hints to the following modules:
rdflib.store
.PR #2057.
rdflib.graph
.PR #2080.
rdflib.plugins.sparql.*
.PR #2094,
PR #2133,
PR #2265,
PR #2097,
PR #2268.
rdflib.query
.PR #2265.
rdflib.parser
andrdflib.plugins.parsers.*
.PR #2232.
rdflib.exceptions
.PR #2232
rdflib.shared.jsonld.*
.PR #2232.
rdflib.collection
.PR #2263.
rdflib.util
.PR #2262.
rdflib.path
.PR #2261.
Removed pre python 3.7 compatibility code.
PR #2066.
shutil
module does not have themove
function.
Improve file-URI and path handling in
Graph.serialize
andResult.serialize
toaddress problems with windows path handling in
Result.serialize
and to makethe behavior between
Graph.serialize
andResult.serialie
more consistent.Closed issue #2067.
PR #2065.
destination
argument will now only be treated asfile URIs if
urllib.parse.urlparse
returns their schema asfile
.Narrow the type of context-identifiers/graph-names from
rdflib.term.Node
tordflib.term.IdentifiedNode
as no supported abstract syntax allows for othertypes of context-identifiers.
PR #2069.
Always parse HexTuple files as utf-8.
PR #2070.
Fixed handling of
Literal
datatype
to correctly differentiate betweenblank string values and undefined values, also changed the datatype of
rdflib.term.Literal.datatype
fromOptional[str]
toOptional[URIRef]
nowthat all non-
URIRef
str
values will be converted toURIRef
.PR #2076.
Fixed the generation of VALUES block for federated queries.
The values block was including non-variable values like BNodes which resulted
in invalid queries. Closed issue #2079.
PR #2084.
Only register the
rdflib.plugins.stores.berkeleydb.BerkeleyDB
as a storeplugin if the
berkeleydb
module is present.Closed issue #1816.
PR #2096.
Fixed serialization of BNodes in TriG.
The TriG serializer was only considering BNode references inside a single
graph and not counting the BNodes subjects as references when considering if a
BNode should be serialized as unlabeled blank nodes (i.e.
[ ]
), and as aresult it was serializing BNodes as unlabeled if they were in fact referencing
BNodes in other graphs.
PR #2085.
Deprecated
rdflib.path.evalPath
in favor ofrdflib.path.eval_path
which isPEP-8 compliant. PR #2046
Added
charset=UTF-8
to theContent-Type
header sent when doing an updatewith
SPARQLConnector
. Closed issue#2095. PR
#2112.
Removed the
rdflib.plugins.sparql.parserutils.plist
class as it served nodiscernible purpose. PR #2143
Changed the TriG serializer to not generate prefixes for empty graph IDs.
Closed issue #2154.
PR #2160.
Fixed handling of relative context files in the JSON-LD parser.
Closed issue #2164.
PR #2165.
Improved failure handling in when computing QName for an unbound namespace.
PR #2169.
Fixed a typo in the default bound namespace for
DCTERMS
.PR #2173.
Add support for supplying a custom namespace manager to
n3()
methods.PR #2174.
Fixed the query string parameters for
SPARQLConnector
when using POST method.PR #2180.
Fixed extra keyword argument and header handling in
SPARQLConnector
thatresulted in headers from
SPARQLConnector.update
polluting headers fromSPARQLConnector.query
vice versa.PR #2183
Added version restrictions for dependencies.
PR #2187
Switch to using
importlib
for getting the version of RDFLib instead ofhard-coding it in
__version__
.PR #2187.
Removed non-runtime extras, for building documentation, running tests and
other development operations the versions and dependencies are now
managed with Poetry.
PR #2187.
Fixed a bug that occurred when
VALUES
was used outside aGROUP BY
clause.PR #2188.
Fixed a bug that occurred when using
SELECT *
inside anotherSELECT *
.Closed issue #1722.
PR #2190.
Added SPARQL DESCRIBE query implementation.
Closes issue #479.
PR #2221.
Fixed a bug in
rdflib.tools.defined_namespace_creator
that occurred whenmultiple
rdfs:comment
were present on one resource.PR #2254.
Fixed
rdflib.util._iri2uri()
to not quote thenetloc
parameter.PR #2255.
Fixed the HexTuple parser's handling of input sources to works for more input sources.
PR #2255.
Fixed the creation of input source objects from IO stream sources.
PR #2255.
Eliminated the use of the deprecated
rdflib.path.evalPath
function.PR #2266
Added documentation for security considerations and available mitigations.
Closed issue #1844.
PR #2267.
PRs merged since last release
PR #2269
rdflib.plugins.sparql
PR #2268
rdflib.path.evalPath
PR #2266
PR #2265
PR #2264
rdflib.collection
PR #2263
rdflib.util
PR #2262
rdflib.path
PR #2261
PR #2260
PR #2259
PR #2255
PR #2254
PR #2232
PR #2231
PR #2221
PR #2209
SELECT *
insideSELECT *
bugPR #2190
PR #2188
PR #2187
PR #2186
PR #2183
PR #2180
PR #2178
PR #2174
PR #2173
PR #2169
PR #2165
PR #2163
PR #2162
PR #2161
PR #2160
PR #2143
service_query
to_buildQueryStringForServiceCall
instead of aMatch
PR #2134
PR #2133
PR #2129
PR #2127
PR #2126
PR #2119
PR #2116
PR #2112
PR #2107
main
PR #2101
PR #2100
rdflib.query
and relatedPR #2097
PR #2096
rdflib.plugins.sparql.{algebra,operators}
PR #2094
exclude_lines
for coveragePR #2093
PR #2092
PR #2091
PR #2089
PR #2087
PR #2085
PR #2084
PR #2082
PR #2080
PR #2076
unittest
based tests topytest
PR #2075
PR #2074
PR #2073
PR #2070
Node
toIdentifiedNode
PR #2069
PR #2068
PR #2066
{Graph,Result}.serialize
PR #2065
PR #2064
test/test_sparql/test_sparql_parser.py
to pytestPR #2063
test/test_sparql/test_construct_bindings.py
to pytestPR #2062
test/test_parsers/test_nquads.py
to pytestPR #2061
test/test_namespace/test_namespace.py
to pytestPR #2060
PR #2058
rdflib.store
andrdflib.plugins.stores
PR #2057
PR #2046
PR #2045
PR #2044
PR #2042
PR #2041
PR #2040
PR #2037
PR #2036
PR #2034
PR #2033
PR #2032
PR #2031
PR #2024
PR #1968
v6.2.0
Compare Source
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.
HAVING
clause with variable composition. Closedissue #936 and issue
#935, PR
#1093.
#1423, PR
#1436.
for removal in version 6.0.0:
Graph.load
,Graph.seq
,Graph.comment
,Graph.label
. PR #1527.functools.total_ordering
to implement most comparison operations forrdflib.paths.Path
. Closed issue#685, PR
#1528.
#821, PR
#1529.
#1453 and issue
#944, PR
#1530.
rdflib.graph.ReadOnlyGraphAggregate.quads
.Closed issue #430, PR
#1590
#1607.
#1371, PR
#1622.
rdflib.plugins.stores.sparqlstore.SPARQLStore.update
is called. Closedissue #1032, PR
#1623.
rdflib.plugins.sparql.processor.prepareUpdate
. Closed issue#272 and discussion
#1581, PR
#1624.
rdflib.namespace.DefinedNamespaceMeta.__dir__
. Closed issue#1593, PR
#1626.
TypeCheckError
,SubjectTypeError
,PredicateTypeError
,ObjectTypeError
andContextTypeError
as these exceptions are not raised byRDFLib and their existence will only confuse users which may expect them to be
used. Also remove corresponding
check_context
,check_subject
,check_predicate
,check_object
,check_statement
,check_pattern
that isunused. PR #1640.
Accept
HTTP header so that it is correctlypopulated for all formats. PR
#1643.
#1645.
nquads
to recognized file extensions.PR #1653.
PR #1656.
rdflib.plugins.sparql.operators.unregister_custom_function
idempotent.Closed issue #1492,
PR #1659.
These parsers will now correctly handle strings like
"\\r"
. The time ittakes for these parsers to parse strings with escape sequences will be
increased, and the increase will be correlated with the amount of escape
sequences that occur in a string. For strings with many escape sequences the
parsing speed seems to be almost 4 times slower. Closed issue
#1655, PR
#1663.
rdflib.compat.decodeStringEscape
as deprecated as thisfunction is not used anywhere in RDFLib anymore and the utility that it does
provide is not implemented correctly. It will be removed in RDFLib 7.0.0
IdentifiedNode
as a superclass ofBNode
andURIRef
. Closed issue #1526,PR #1680.
rdf:type
in subject, object. Closed issue#1649, PR
#1649.
#1661, PR
#1678.
#1679 and issue #1880, PR
#1686, PR
#1845 and PR
#2018.
ConjunctiveGraph.get_graph
.override
argument toStore.bind
which behaves similarly tothe
override
parameter forNamespaceManager.bind
.override
parameter toNamespaceManager.bind
by passing.DeprecationWarning
related to plugin loading issue#1631, PR
#1694.
rdflib.graph.ContextNode
andrdflib.graph.DatasetQuad
typealiases. These were not being widely used in RDFLib and were also not correct.
PR #1695.
DefinedNamespace.as_jsonld_context
. PR#1706.
rdflib.namespace.WGS
for WGS84. Closed issue#1709, PR
#1710.
DefinedNamespace
by caching attribute values. PR#1718.
sys.stderr
has aisatty
attribute. Closedissue #1760, PR
#1761.
rdflib.compat.etree_register_namespace
. PR#1768.
rdflib.util.from_n3
. Closed issue#1769, PR
#1771.
#1757 and issue
#848, PR
#1773 and PR
#2003.
NamespaceManager.compute_qname
by caching validity. PR#1779.
EXISTS
insideBIND
for SPARQL. This wasraising an exception during evaluation before but is now correctly handled.
Closed issue #1472, PR
#1794.
#1477, PR
#1809
rdflib.term.RDFLibGenid
as a type as this caused issueswith querying. Closed issue
#1808, PR
#1821
DefinedNamespace
control attributes so thatinspect.signature
works correctly on defined namespaces. PR#1825.
Memory
,SimpleMemory
andBerkelyDB
stores.Closed issue #1826, PR
#1843.
#1701 and issue
#1807, PR
#1858:
be a graph.
NamespaceManager.expand_curie
. Closed issue#1868, PR
#1869.
Literal.__sub__
and support for datetimes to bothLiteral.__add__
and
Literal.__sub__
. PR #1870.None
/undefined handing inGROUP_CONCAT
. Closed issue#1467, PR
#1887.
SERVICE
directive. Closed issue#1278, PR
#1894.
http://rdlib.net/
tohttps://rdflib.github.io
and also change other uses ofhttp://rdlib.net/
to
https://rdflib.github.io
. Closed issue#1824, PR
#1901.
#1429, PR
#1902.
generate
toNamespaceManager.compute_qname
fromNamespaceManager.compute_qname_strict
so it raises an error in the samecase as the "non-strict" version. PR
#1934.
PR #1944.
#1945.
PR #1951
#1957,
PR #1959.
trix
andTriX
as root element. PR#1966.
PR #1979.
URIRef.fragment
property.PR #1991.
#1998, PR
#1999.
rdflib.namespace
rdflib.term
rdflib.parser
PRs merged since last release
Store.bind
signature onTypeError
PR #2018
rdflib/parser.py
PR #2016
PR #2015
PR #2013
PR #2003
PR #2001
PR #2000
PR #1999
PR #1996
infixowl.py
, remove exclusion from pyproject.tomlPR #1994
PR #1992
PR #1991
PR #1989
PR #1988
PR #1987
PR #1986
Graph.serialize
fPR #1984
PR #1983
PR #1982
PR #1981
PR #1980
PR #1979
PR #1977
rdflib.paths
docsPR #1976
PR #1975
pytest-subtest
PR #1973
PR #1971
PR #1970
PR #1966
PR #1965
rdflib/plugins/sparql/
PR #1964
None
comparisonsPR #1963
rdflib/graph.py
PR #1962
test/jsonld/test_util.py
to pytestPR #1961
PR #1959
test_graph_http.py
to pytestPR #1956
PR #1952
PR #1951
PR #1949
PR #1948
PR #1947
GraphHelper.quad_set
handling of DatasetPR #1946
PR #1945
PR #1944
x and x or y
idiom ininfixowl.py
PR #1943
tempfile.mktemp
PR #1942
PR #1941
PR #1940
PR #1939
PR #1938
PR #1937
test/data/defined_namespaces
PR #1936
rdflib.utils.{get_tree,find_roots}
PR #1935
PR #1934
PR #1933
EARL
andRDFT
namespaces to separate filesPR #1931
test/data/suites/DAWG/data-r2
PR #1930
PR #1929
PR #1928
rdflib/plugins/sparql
PR #1926
PR #1925
test/data/suites/DAWG/rdflib
PR #1924
PR #1916
PR #1915
test/data/suites/DAWG/data-r2-1.0
PR #1908
DAWG/data-sparql11
tow3c/sparql11/data-sparql11
PR #1907
PR #1906
test_*_w3c.py
test files intotest/test_w3c_spec/
PR #1904
iri2uri
PR #1902
s,http://rdlib.net,http://rdflib.net,g
PR #1901
PR #1898
PR #1897
PR #1896
PR #1895
PR #1894
PR #1891
PR #1888
None
/undefined handing in GROUP_CONCATPR #1887
test/utils/
PR #1879
PR #1877
docs/
PR #1875
PR #1872
PR #1870
PR #1869
PR #1867
PR #1866
test/translate_algebra
intotest/data
PR #1864
test/variants
intotest/data
[PR #1862](https://redirect.github
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.