summaryrefslogtreecommitdiff
path: root/rdflib/plugins/parsers/jsonld.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-1/+0
|
* feat: add parser type hints (#2232)Iwan Aucamp2023-03-051-40/+97
| | | | | | | | | | | | | 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-12/+12
| | | | for more information, see https://pre-commit.ci
* Merge branch 'master' into jsonld_connegNatanael Arndt2022-03-161-11/+0
|\
| * Don't update `SUFFIX_FORMAT_MAP` in `plugins/parsers/jsonld.py`Iwan Aucamp2022-01-081-11/+0
| | | | | | | | | | | | | | | | | | | | `jsonld` will already be in `SUFFIX_FORMAT_MAP`, so the code being removed here should have no effect. There are already tests for this and the tests would fail of the removed code did anything, see: https://github.com/RDFLib/rdflib/blob/b2fdaf5a1f45c09694dbd8925ab6b6dee84436b4/test/test_parse_file_guess_format.py#L23-L34
* | Merge branch 'master' into jsonld_connegNicholas Car2022-01-031-1/+2
|\ \ | |/
| * Add some type annotations to the JSON-LD codeIwan Aucamp2021-12-291-1/+2
| | | | | | | | This patch contains no runtime changes.
* | Merge remote-tracking branch 'origin/master' into jsonld_connegIwan Aucamp2021-12-281-1/+1
|\ \ | |/
| * Flak8 improvementsnicholascar2021-12-071-1/+1
| |
* | Allow URLInputSource to get content-negotiation links from the Link headers ↵Ashley Sommer2021-10-121-2/+4
|/ | | | | | of HTTP responses. Use Links to resolve schema.org-style json-ld conneg redirections. Fix the ability to run the `remote-url` arm of the JSON-LD test suite (got most of them working!)
* Fix mypy type errors and add mypy to .drone.ymlIwan Aucamp2021-09-101-3/+4
| | | | | | | | | | | | | | | | | | | | | 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.
* remove bad doctest declarations that are no longer required, were causing ↵Ashley Sommer2021-07-091-3/+0
| | | | subsequent tests to fail
* re-blacked JSON-LD codeAshley Sommer2021-07-081-1/+6
|
* integrate jsonld code into rdflib coreAshley Sommer2021-07-071-0/+544