Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: eliminate bare `except:` (#2350) | Iwan Aucamp | 2023-04-12 | 3 | -4/+4 |
| | | | | | | | | | | | 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 eliminating [flakeheaven](https://github.com/flakeheaven/flakeheaven), as it no longer supports the latest version of flake8 [[ref](https://github.com/flakeheaven/flakeheaven/issues/132)]. But it also is just the right thing to do as bare exceptions can cause problems. | ||||
* | refactor: eliminate inheritance from object (#2339) | Iwan Aucamp | 2023-04-10 | 1 | -2/+2 |
| | | | | | 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. | ||||
* | fix: reference to global inside `get_target_namespace_elements` (#2311) | Iwan Aucamp | 2023-03-25 | 1 | -1/+1 |
| | | | | | | | `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. - Closes <https://github.com/RDFLib/rdflib/issues/2072>. | ||||
* | fix: correctly handle resources with multiple comments in ↵ | Han Kruiger | 2023-03-14 | 1 | -1/+2 |
| | | | | | | | defined_namespace_creator (#2254) FIxed a bug in defined_namespace_creator so that when a resource in an ontology is commented on multiple times (with e.g. rdfs:comment), it creates only a single class variable in the resulting DefinedNamespace where the Python comment is the concatenation of the rdfs:comments. | ||||
* | feat: diverse type hints (#2264) | Iwan Aucamp | 2023-03-12 | 2 | -10/+27 |
| | | | | | | | Add some small diverse type hints. Type hints make RDFLib safer to use and change, as changes and usage can be validated using static analysers like mypy. This change does not have a runtime impact. | ||||
* | build(deps-dev): bump black from 22.12.0 to 23.1.0 (#2248) | dependabot[bot] | 2023-03-11 | 3 | -5/+0 |
| | |||||
* | add chunk serializer & tests (#1968) | Nicholas Car | 2022-08-12 | 1 | -0/+132 |
| | | | | | | | | | This file provides a single function `serialize_in_chunks()` which can serialize a Graph into a number of NT files with a maximum number of triples or maximum file size. There is an option to preserve any prefixes declared for the original graph in the first file, which will be a Turtle file. Co-authored-by: Iwan Aucamp <aucampia@gmail.com> | ||||
* | [pre-commit.ci] auto fixes from pre-commit.com hooks | pre-commit-ci[bot] | 2022-04-15 | 5 | -23/+18 |
| | | | | for more information, see https://pre-commit.ci | ||||
* | Add isort (#1689) | eggplants | 2022-02-21 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | * add: isort configure file * fix: isort $ isort . * add: isort to dev deps * add: isort to CI * fix: move .isort.cfg into setup.cfg * fix: re-formatted * fix: isort target path * Use pre-commit to check isort pre-commit CI can auto fix this, and this way we can idenpendently evaluate the formatting of the code from the validity of the code. Co-authored-by: Iwan Aucamp <aucampia@gmail.com> | ||||
* | Black rdflib except for rdflib/namespace/_GEO.py | Iwan Aucamp | 2022-01-02 | 1 | -5/+5 |
| | | | | | | Probably we should ingore generated namespaces in black or format them on generation, or mark them for ignoring by formatter. Will look at that later. | ||||
* | Update rdflib/tools/rdfs2dot.py | Nicholas Car | 2021-12-17 | 1 | -1/+1 |
| | | | Co-authored-by: Iwan Aucamp <aucampia@gmail.com> | ||||
* | style fixes only | nicholascar | 2021-12-16 | 2 | -27/+25 |
| | |||||
* | Merge pull request #1489 from RDFLib/hextuples | Nicholas Car | 2021-12-09 | 1 | -5/+3 |
|\ | | | | | Hextuples Serializer | ||||
| * | Flak8 improvements | nicholascar | 2021-12-07 | 1 | -5/+3 |
| | | |||||
* | | addressed @aucampia's 2 comments | nicholascar | 2021-12-07 | 1 | -47/+51 |
| | | |||||
* | | add script to generated DefinedNamespaces, with testssdo-https | nicholascar | 2021-12-01 | 1 | -0/+182 |
|/ | |||||
* | Fix typos discovered by codespell | Christian Clauss | 2021-10-14 | 1 | -1/+1 |
| | |||||
* | rename arg LOVE to ns | jimman2003 | 2021-10-06 | 1 | -2/+2 |
| | |||||
* | blacked everything6.0.0 | Nicholas Car | 2021-07-20 | 1 | -1/+4 |
| | |||||
* | Merge branch 'master' into hsolbrig/master | Edmond Chuc | 2021-07-08 | 5 | -43/+34 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 | ||||
| * | minor docco updates | Nicholas Car | 2021-06-18 | 1 | -1/+3 |
| | | |||||
| * | removed RDFa since format no longer supported | Nicholas Car | 2021-04-25 | 1 | -2/+2 |
| | | |||||
| * | fix: fixes #1208 | Blake Regalia | 2020-12-03 | 1 | -1/+1 |
| | | |||||
| * | replace cgi by html, fixes issue #1110 | angus | 2020-08-27 | 1 | -2/+2 |
| | | |||||
| * | Merge pull request #1149 from ashleysommer/t0b3_github | Nicholas Car | 2020-08-27 | 5 | -35/+25 |
| |\ | | | | | | | Remove all remnants of Python2 compatibility | ||||
| | * | re-run black | Ashley Sommer | 2020-08-27 | 1 | -1/+1 |
| | | | |||||
| | * | fix escaping (deprecated since py 3.6) | t0b3 | 2020-06-22 | 1 | -1/+1 |
| | | | | | | | | | | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com> | ||||
| | * | 2to3 whole sourcebase | t0b3 | 2020-06-22 | 5 | -35/+25 |
| | | | | | | | | | | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com> | ||||
| * | | simplify yield | Donny Winston | 2020-08-05 | 1 | -1/+1 |
| | | | |||||
| * | | make csv2rdf work in py3; add test | Donny Winston | 2020-06-12 | 1 | -4/+3 |
| |/ | |||||
* | | Change to absolute imports to attempt to fix a Travis issue | hsolbrig | 2020-05-26 | 1 | -1/+1 |
|/ | | | | Fix a few odd's and ends warnings as well | ||||
* | changes for flake8 | Nicholas Car | 2020-05-17 | 3 | -19/+18 |
| | |||||
* | blacked all python files | Nicholas Car | 2020-05-16 | 5 | -171/+307 |
| | |||||
* | removal of all uses of package six | Nicholas Car | 2020-05-16 | 2 | -10/+5 |
| | |||||
* | a slightly opinionated autopep8 run | Gunnar Aastrand Grimnes | 2018-10-30 | 5 | -7/+17 |
| | | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken | ||||
* | bool support for csv2rdf | Gunnar Aastrand Grimnes | 2017-04-11 | 1 | -1/+16 |
| | |||||
* | fixed tiny bug with literal columns in csv2rdf | Gunnar Aastrand Grimnes | 2017-04-11 | 1 | -1/+1 |
| | |||||
* | default column conversions for csv2rdf | Gunnar Aastrand Grimnes | 2017-02-02 | 1 | -5/+16 |
| | |||||
* | converted csv2rdf to six | Gunnar Aastrand Grimnes | 2017-01-30 | 1 | -1/+4 |
| | |||||
* | removed most of the six import from py3compat | Gunnar Aastrand Grimnes | 2017-01-30 | 1 | -1/+1 |
| | | | | now six is used throughout. | ||||
* | converted csv2rdf | Gunnar Aastrand Grimnes | 2017-01-30 | 1 | -12/+13 |
| | |||||
* | trivial py3 conversion of tools | Gunnar Aastrand Grimnes | 2017-01-30 | 4 | -2/+10 |
| | |||||
* | removed compat code for supporting legacy python versions | Gunnar Aastrand Grimnes | 2017-01-27 | 1 | -26/+1 |
| | |||||
* | fixed a handful of stupid bugs in the csv2rdf tool | Gunnar Aastrand Grimnes | 2015-10-27 | 1 | -6/+9 |
| | |||||
* | rdfpipe: open stdout in buffer mode in Python3 format | Dan Scott | 2014-04-02 | 1 | -0/+4 |
| | | | | | | | | Due to sys.stdout being string mode in Python 3 and all of the serializing happening in bytes mode, we need to open sys.stdout.buffer instead to avoid the exception "TypeError: must be str, not bytes". Closes #375. Signed-off-by: Dan Scott <dan@coffeecode.net> | ||||
* | Allow colon in rdfpipe format kwargs and base as kw | Niklas Lindström | 2013-10-22 | 1 | -3/+5 |
| | |||||
* | minor rdf2dot whitespace fix | Gunnar Aastrand Grimnes | 2013-07-29 | 1 | -1/+1 |
| | |||||
* | Do not add extra namespace bindings in rdfpipe (clutters output unnecessarily) | Niklas Lindström | 2013-07-19 | 1 | -12/+1 |
| | |||||
* | Use ConjunctiveGraph in rdfpipe to support parsing and serialization of datasets | Niklas Lindström | 2013-07-19 | 1 | -9/+12 |
| | |||||
* | doc updates | gromgull | 2013-05-16 | 5 | -2/+38 |
| |