summaryrefslogtreecommitdiff
path: root/rdflib/plugins/parsers/rdfxml.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: eliminate inheritance from object (#2339)Iwan Aucamp2023-04-101-1/+1
| | | | | This change removes the redundant inheritance from `object` (i.e. `class Foo(object): pass`) that is no longer needed in Python 3 and is a relic from Python 2.
* build(deps-dev): bump black from 22.12.0 to 23.1.0 (#2248)dependabot[bot]2023-03-111-3/+2
|
* feat: add parser type hints (#2232)Iwan Aucamp2023-03-051-59/+103
| | | | | | | | | | | | | Add type hints to: - `rdflib/parser.py` - `rdflib/plugins/parser/*.py` - some JSON-LD utils - `rdflib/exceptions.py`. This is mainly because the work I'm doing to fix <https://github.com/RDFLib/rdflib/issues/1844> is touching some of this parser stuff and the type hints are useful to avoid mistakes. No runtime changes are included in this PR.
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-04-151-11/+7
| | | | for more information, see https://pre-commit.ci
* Add typing to rdflib.termIwan Aucamp2022-01-221-1/+1
| | | | | | | | | | | | | | | This adds as much typing as possible to `rdflib.term`. Other changes: - Added back `warn_unused_ignores`. I actually thought this was enabled but I forgot I disabled it because of some issue on python 3.10. - Disabled `warn_unused_ignores` only for `rdflib.plugin`. There is an ignore in this module which is not needed on python 3.10, this is the most targetted way to avoid having that fail the type checking that I can think of for now. - Removed unused type ignores. This changeset includes no runtime changes.
* Fix mypy type errors and add mypy to .drone.ymlIwan Aucamp2021-09-101-5/+5
| | | | | | | | | | | | | | | | | | | | | Fixes #1311 Add `mypy` to .drone.yml and fix type errors that come up. Not type checking examples or tests. Other changes: - fix return value for `Graph.serialize` (refs #1394) - remove default value for `rdflib.plugins.sparql.algebra.translateAlgebra` (refs #1322) - add .dockerignore to reduce context size and make docker quicker to run. - add .flake8 config to ignore line length as black is managing formatting. - add mypy to docker-compose, makefile and tox.ini - fix the way csv2rdf is invoked to ensure that the right code gets executed.
* blacked everything6.0.0Nicholas Car2021-07-201-2/+14
|
* Fix testsEdmond Chuc2021-07-151-1/+1
|
* Merge branch 'master' into hsolbrig/masterEdmond Chuc2021-07-081-3/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # rdflib/__init__.py # rdflib/compat.py # rdflib/namespace/__init__.py # rdflib/plugins/parsers/rdfxml.py # rdflib/plugins/serializers/rdfxml.py # rdflib/tools/csv2rdf.py # test/test_dawg.py # test/test_namespace.py # test/test_nt_misc.py # test/test_rdfxml.py # test/test_seq.py # test/test_trig.py # test/testutils.py
| * re-run blackAshley Sommer2020-08-271-2/+2
| |
| * 2to3 whole sourcebaset0b32020-06-221-3/+3
| | | | | | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* | Refactor - module names don't match class nameshsolbrig2020-05-261-1/+2
| | | | | | | | | | For some reason the sequence of processing is different in Travis than in PyCharm. Changing the module names eliminates any possibility of confusion. Also fixed a number of warnings, whines and general unhappiness in the build process.
* | Migration from ClosedNamespace to DeclaredNamespacehsolbrig2020-05-261-43/+41
|/ | | | Passes all unit tests, but did have to remove '.' from manifest and earl imports. May have to restore...
* changes for flake8Nicholas Car2020-05-171-2/+2
|
* blacked all python filesNicholas Car2020-05-161-68/+83
|
* removal of all uses of package sixNicholas Car2020-05-161-1/+1
|
* Fix next_li() to use RDF._{li} instead of RDF.{li}.Linus Lewandowski2020-01-081-2/+2
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-2/+2
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* removed most of the six import from py3compatGunnar Aastrand Grimnes2017-01-301-1/+1
| | | | now six is used throughout.
* converted all base serialisers and parsersGunnar Aastrand Grimnes2017-01-301-5/+7
|
* minor: docstring typoJoern Hees2015-03-061-1/+1
|
* lookup for unqualified namespace 'about' fixed. fixes #468Kris Maglione2015-03-061-2/+2
|
* replace example file in basic example. Fixes #363Gunnar Aastrand Grimnes2014-03-031-2/+6
|
* Raise exception for repeat node-object in rdf/xml parser. Test + fixes #363Gunnar Aastrand Grimnes2014-03-021-0/+3
|
* make rdfxml parser not call URIRef(None), fixes #288Gunnar Aastrand Grimnes2013-05-211-1/+1
|
* cleanup - one license is enoughGunnar Aastrand Grimnes2013-05-081-31/+2
|
* autopep8Gunnar Aastrand Grimnes2013-04-301-6/+6
|
* Add test and fix for issue #247Graham Higgins2013-01-101-1/+1
|
* Whitespace & PEP8 gardening.Graham Higgins2013-01-101-57/+77
|
* Uncomment __all__, tests do all passGraham Higgins2012-01-161-1/+1
|
* __all__ together nowGraham Higgins2012-01-141-0/+1
|
* More fixes for Python 3 compatibility.Thomas Kluyver2011-11-121-3/+8
|
* Update issue 120eikeon2010-02-131-0/+573
Moving parsers and serializer implementations into rdflib.plugins package