summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add script to generated DefinedNamespaces, with testssdo-httpsnicholascar2021-12-015-0/+42243
|
* Update SDO DefinedNamespace to HTTPS and latests schema.orgnicholascar2021-12-011-890/+1965
|
* Merge pull request #1456 from newinnovations/masterNicholas Car2021-11-212-0/+91
|\ | | | | Fix JSON-LD data import adds trailing slashes to IRIs (#1443)
| * Merge pull request #2 from iafork/iwana-20211028T1938-jsonld_normurlMartin van der Werff2021-11-071-0/+10
| |\ | | | | | | Add two additional tests for `norm_url`
| | * Add two additional tests for `norm_url`Iwan Aucamp2021-11-061-0/+10
| |/ | | | | | | Tests suggested by @newinnovations.
| * Merge pull request #1 from iafork/iwana-20211028T1938-jsonld_normurlMartin van der Werff2021-11-051-0/+79
| |\ | | | | | | Add some tests for norm_url
| | * Add tests for norm_url.Iwan Aucamp2021-10-291-0/+79
| |/
| * Fix JSON-LD data import adds trailing slashes to IRIs (#1443)Martin van der Werff2021-10-281-0/+2
| | | | | | | | In norm_url leave url alone if it already contains a scheme/protocol.
* | Merge pull request #1462 from RDFLib/dependabot/pip/sphinx-4.3.0Nicholas Car2021-11-191-1/+1
|\ \ | | | | | | Bump sphinx from 4.2.0 to 4.3.0
| * | Bump sphinx from 4.2.0 to 4.3.0dependabot/pip/sphinx-4.3.0dependabot[bot]2021-11-151-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.2.0 to 4.3.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.2.0...v4.3.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #1452 from iafork/iwana-20211018T2122-pytestNicholas Car2021-11-1964-844/+991
|\ \ | | | | | | Migrate from nosetest to pytest
| * | Fix how black errors are ingored in .drone.yamlIwan Aucamp2021-11-141-2/+2
| | | | | | | | | | | | | | | | | | Errors were being piped to true, but that will fail if it runs with pipefail. The better option is to do `black ... || true` which will work for ignoring errors even with pipefail.
| * | Change mock HTTP server to listen on 127.0.0.1 by defaultIwan Aucamp2021-11-141-4/+4
| | | | | | | | | | | | | | | This is so that it works properly on MacOS which does not permit listening on random loopback addresses for user processes.
| * | Skip berkeleydb tests if there is no berkeleydbIwan Aucamp2021-11-131-7/+10
| | |
| * | Fix skipping in test/test_issue200.pyIwan Aucamp2021-11-131-2/+4
| | | | | | | | | | | | Skipping was done incorrectly and failed on Windows.
| * | Ignore some spurious warnings caused by pytestIwan Aucamp2021-11-131-0/+5
| | | | | | | | | | | | | | | pytest's behaviour causes some spurious warnings during test, this commit configures pytest to ignore them.
| * | Remove .travis.yml as travis is no longer in use.Iwan Aucamp2021-11-091-46/+0
| | |
| * | Fix pytest warning when EARL reporting plugin in loadedIwan Aucamp2021-10-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Some other minor improvementsIwan Aucamp2021-10-253-4/+5
| | | | | | | | | | | | | | | - Removed unused ignores. - Use official description text of RDFLib in DOAP used in EARL report.
| * | Migrate from nosetest to pytestIwan Aucamp2021-10-2463-799/+979
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Fix generation of w3c testsNatanael Arndt2021-10-184-8/+12
| | |
| * | Make some yield tests normal testsNatanael Arndt2021-10-1810-27/+22
| | |
| * | Use pytest instead of noseNatanael Arndt2021-10-184-8/+8
| |/
* | Merge pull request #1464 from gjhiggins/masterGraham Higgins2021-11-182-3/+4
|\ \ | |/ |/| Add import of os
| * Stringify OWL Namespace object where a string is required.Graham Higgins2021-11-151-3/+3
| |
| * Add import of osGraham Higgins2021-11-151-0/+1
|/ | | | | | | | File "../test_magic_set.py", line 64, in test_AdornLiteral res = translateAlgebra(translateQuery(parsed_query)) File ".../rdflib/plugins/sparql/algebra.py", line 1427, in translateAlgebra os.remove("query.txt") name 'os' is not defined
* Merge pull request #1445 from Panaetius/masterNicholas Car2021-10-183-14/+28
|\ | | | | replace pkg_resources with importlib.metadata
| * Merge pull request #1 from iafork/iwana-20211017T1227-fix_typingRalf Grubenmann2021-10-182-7/+9
| |\ | | | | | | Use version conditional imports to accomodate mypy
| | * Use version conditional imports to accomodate mypyIwan Aucamp2021-10-172-7/+9
| |/ | | | | | | | | | | | | | | | | | | | | This will eliminate these errors: ``` + mypy --show-error-context --show-error-codes rdflib rdflib/plugin.py:114: error: Module "importlib.metadata" has no attribute "entry_points" [attr-defined] rdflib/plugins/sparql/__init__.py:44: error: Module "importlib.metadata" has no attribute "entry_points" [attr-defined] Found 2 errors in 2 files (checked 110 source files) ```
| * replace pkg_resources with importlib.metadataRalf Grubenmann2021-10-143-10/+22
| |
* | Merge pull request #1425 from RDFLib/ttl2Nicholas Car2021-10-174-2/+530
|\ \ | | | | | | A new Turtle serializer
| * \ Merge branch 'master' into ttl2ttl2Nicholas Car2021-10-1740-106/+231
| |\ \ | |/ / |/| |
* | | Merge pull request #1446 from cclauss/codespellNicholas Car2021-10-1724-81/+81
|\ \ \ | | | | | | | | Fix typos discovered by codespell
| * | | Fix typos discovered by codespellChristian Clauss2021-10-1424-81/+81
| | |/ | |/|
* | | Merge pull request #1448 from tirkarthi/fix-assertNicholas Car2021-10-171-1/+1
|\ \ \ | |/ / |/| | Use assertTrue instead of assert_ for python 3.11 compatibility.
| * | Use assertTrue instead of assert_ for python 3.11 compatibility.Karthikeyan Singaravelan2021-10-161-1/+1
| | |
* | | Merge pull request #1438 from cclauss/fix-undefined-namesNicholas Car2021-10-141-1/+1
|\ \ \ | | | | | | | | Undefined name: tmppath --> self.tmppath
| * | | Undefined name: tmppath --> self.tmppathChristian Clauss2021-10-121-1/+1
| |/ /
* | | Merge pull request #1441 from iafork/iwana-20211012T1639-graph_parse_urlNicholas Car2021-10-133-5/+50
|\ \ \ | |/ / |/| | Fix Graph.parse URL handling on windows
| * | Fix Graph.parse URL handling on windowsIwan Aucamp2021-10-123-5/+50
|/ / | | | | | | | | | | | | | | | | | | 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.
* | Make Store.namespaces an empty generator (#1432)Iwan Aucamp2021-10-112-0/+30
| | | | | | Fixes #1431
* | Update black to latest version, to avoid a bug that was in 21.6b0 and 21.7b0 ↵Ashley Sommer2021-10-114-4/+4
| | | | | | | | releases. (#1434)
* | Merge pull request #1433 from iafork/iwana-20211010T2307-fix_dcmitypeNicholas Car2021-10-112-0/+2
|\ \ | | | | | | Export DCMITYPE
| * | Export DCMITYPEIwan Aucamp2021-10-102-0/+2
|/ / | | | | | | | | Not sure what went wrong here but for some reason master branch tries to export DCMITYPE without also importing it.
* | 6.0.3aNicholas Car2021-10-103-7/+15
| |
* | 6.0.2 release docco #26.0.2Nicholas Car2021-10-101-6/+7
| |
* | 6.0.2 release doccoNicholas Car2021-10-105-2/+28
| |
* | Merge pull request #1426 from jimman2003/fix_love_argNicholas Car2021-10-101-2/+2
|\ \ | | | | | | rename arg LOVE to ns in rdfpipe
| * | rename arg LOVE to nsjimman20032021-10-061-2/+2
| | |
* | | Merge pull request #1428 from sa-bpelakh/restore-owl-rationalNicholas Car2021-10-102-0/+13
|\ \ \ | |/ / |/| | Add owl:rational and owl:real to match standard.