| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| | |
Fix JSON-LD data import adds trailing slashes to IRIs (#1443)
|
| | |
| |
| |
| | |
Tests suggested by @newinnovations.
|
| | | |
|
| | |
| |
| |
| |
| | |
This is so that it works properly on MacOS which does not permit
listening on random loopback addresses for user processes.
|
| | | |
|
| | |
| |
| |
| | |
Skipping was done incorrectly and failed on Windows.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This eliminates this warning:
```
.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676
/home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl
self.import_plugin(import_spec)
```
By adding PYTEST_DONT_REWRITE to the plugin module docstring.
|
| | |
| |
| |
| |
| | |
- Removed unused ignores.
- Use official description text of RDFLib in DOAP used in EARL report.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch replace all uses of nose with pytest. It also includes a
pytest plugin for creating EARL reports for tests with a `rdf_test_uri`
parameter.
Some caveats:
- HTML report directory is now htmlcov instead of coverage
- There is some warning related to the EARL reporting plugin which I can't quite figure out:
```
.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676
/home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl
self.import_plugin(import_spec)
```
This is not causing any problems as far as I can tell, but still annoying.
- python setup.py test won't work anymore, I can make it work but this
is not advised by pytest:
https://github.com/pytest-dev/pytest-runner/#deprecation-notice
- run_test.py is still there but it's not really referenced anymore from
anywhere and the options it accepts are completely different as it's options
were based on nose. I would say it should be removed entirely but for now
it is basically just a wrapper around pytest that basically does nothing.
- Removed references to test attributes as currently they are not being
used anywhere anyway, I guess we can add them back if there is some
use for them later.
- A lot of tests are still marked to skip when really they should be marked
with xfail. This is also affecting the RDFT test manifests and result in
reports saying tests are skipped when really we know they will fail and
they are only skipped for this reason. But there is no change here from
before, and pytest makes it easier to dynamically do expected failures.
Special thanks to Wes Turner for his advice and inputs on this process.
|
| | | |
|
| |/ |
|
| |\ |
|
| | |\
| | |
| | | |
Use assertTrue instead of assert_ for python 3.11 compatibility.
|
| | | | |
|
| | |\ \
| | | |
| | | | |
Undefined name: tmppath --> self.tmppath
|
| | | |/ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Using `pathlib.Path("http://example.com/").exists()` on windows causes an exception as a URL
is not a valid path, while `os.path.exists("http://example.com/")` just
returns false.
This patch reverts _create_input_source_from_location to using
`os.path.exists()` instead of pathlib.Path to make it possible to parse
graphs from http URLs on windows.
|
| | |
| |
| | |
Fixes #1431
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| | |
Fix mypy type errors and add mypy to .drone.yml
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
`Graph.serialize` was just logging a warning if the supplied `destination`
was not valid, but it would be better to fail if the method does not
perform the requested operation.
This change makes `Graph.serialize` throw if the supplied `destination`
can't be written to.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
This is a follow-on patch to:
e778e9413510721c2fedaae56d4ff826df265c30
Test was confirmed to pass by running this on the current `master`
branch, and confirmed to fail with e778e941 reverted.
nosetests test/test_parse_file_guess_format.py
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
|
| |\
| |
| | |
Iterate over dataset return quads
|
| | | |
|
| |/
|
|
|
| |
- Also, deleting _RDFNamespace since it is not used in rdflib since
#1074
|
| | |
|
| |\
| |
| | |
Migration from ClosedNamespace to DeclaredNamespace
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | | |
# Conflicts:
# rdflib/namespace/__init__.py
# rdflib/plugins/sparql/operators.py
# test/test_namespace.py
|
| | | |
| | |
| | |
| | | |
test as it does not exist. Instead, add in sh:Info.
|
| | |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
# 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
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Thanks @tbugs !
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Note - the doctest in `rdflib/__init__.py` fails 50% of the time because there isn't a definite order in the turtle serialization
Also, we still have a mystery issue of why `Namespace` isn't included in `from rdflib import *`
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
| | | |
| | | |
| | | | |
Fix a few odd's and ends warnings as well
|
| | | | |
| | | |
| | | |
| | | | |
Passes all unit tests, but did have to remove '.' from manifest and earl imports. May have to restore...
|
| | |_|/
|/| | |
|
| | | |
| | |
| | |
| | |
| | | |
Also add type annotations to rdflib.compare to make it easier
to understand the code.
|