| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Add a class diagram for terms.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The diagram is based on the diagram created by
Graham Higgins (@gjhiggins) in https://github.com/RDFLib/rdflib/issues/1526
This shows the class heirarchy of various terms such as Identifier,
IdentifiedNode, URIRef, Literal, etc.
The diagram is in [plantuml](https://plantuml.com/class-diagram) and
compiled to svg by the
[kroki extension for sphinx](https://github.com/sphinx-contrib/kroki).
Diagrams can be rendered from the plantuml at https://kroki.io/.
Other changes:
- Some updates to the "Writing RDFLib Documentation" page.
|
|\
| |
| | |
Add typing to rdflib.namespace
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Everything is as typed as it can be in here, there is maybe some
improvement that can be made to `__new__` in some places but I think
there may be some runtime changes needed there so I don't want to change
that now, the inferred return types are close enough.
Some of the type hints are based on pytest-monkeytype output which was
slightly tuned for simplicity and with some additional typing for methods
that are not being tested.
This changeset contains type changes only and does not change runtime
behaviour.
|
|\ \
| |/
|/| |
Add IdentifiedNode abstract intermediary class
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds and exposes an intermediary class `IdentifiedNode` as a
superclass of `URIRef` and `BNode`. From review of the subclass methods
for identical implementations, two appeared to be able to move into this
superclass.
Thanks to Nicholas Car for finding this pragmatic name.
This patch addresses at least some of Issue 1526.
References:
* https://github.com/RDFLib/rdflib/issues/1526
Cc: Nicholas Car <nicholas.car@surroundaustralia.com>
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
|
|\
| |
| | |
Bump sphinx from 4.3.2 to 4.4.0
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.2 to 4.4.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.3.2...v4.4.0)
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|\ \
| | |
| | | |
Add a test case for a prefix followed by dot in Turtle format
|
|/ / |
|
|\ \
| |/
|/| |
Merging without second review as this is extensively tested against crafted expectations and the turtle parser which uses different code for unquoting.
|
| |
| |
| |
| |
| |
| | |
`str.translate` is not faster than dict lookup for this case, which is a
one char lookup. For more info see
https://github.com/RDFLib/rdflib/pull/1663#issuecomment-1013923380
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These parsers will now correctly handle strings like `"\\r"`.
The time it takes for these parsers to parse strings with escape
sequences will be increased, and the increase will be correlated with
the amount of escape sequences that occur in a string.
For strings with many escape sequences the parsing speed seems to be
almost 4 times slower.
Also:
- Add graph variant test scaffolding. Multiple files representing the
same graph can now easily be tested to be isomorphic by just adding
them in `test/variants`.
- Add more things to `testutils.GraphHelper`, including some methods that does
asserts with better messages. Also include some tests for GraphHelper.
- Add some extra files to test_roundtrip, set the default identifier
when parsing, and change verbose flag to rather be based on debug
logging.
- move one test from `test/test_issue247.py` to variants.
- Fix problems with `.editorconfig` which prevents it from working
properly.
- Add xfail tests for a couple of issues
This includes xfails for the following issues:
- https://github.com/RDFLib/rdflib/issues/1216
- https://github.com/RDFLib/rdflib/issues/1649
|
|\
| |
| | |
Add Contributor Covenant Code of Conduct
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is prompted by @westurner's comments on [rdflib-dev](https://groups.google.com/g/rdflib-dev/c/mdd7rxL9_8I).
The code of conduct is added as markdown so that GitHub recognizes it
(see https://github.com/github/feedback/discussions/9442).
Also:
- Add myst-parser in docs extras so that we can compile the code of
conduct into docs.
|
|\ \
| | |
| | | |
Make unregister_custom_function idempotent
|
| | | |
|
| | |
| | |
| | |
| | | |
descriptive
|
| | | |
|
|\ \ \
| | | |
| | | | |
Eliminate star import
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This breaks pycln which I'm trying to integrate with pre-commit
in a separate branch.
|
|\ \ \ \
| |/ / /
|/| | | |
Allow hext to participate in RDF format roundtripping
|
| | | |
| | | |
| | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| |\ \ \
| | | | |
| | | | | |
One typing fix and removal of redundant casts
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | | | |
| | | | |
| | | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| |/ / /
| | | |
| | | | |
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | | |
Remove narrow build detection
|
| | | |
| | | |
| | | | |
Deleting this test to complete removal of narrow/wide distinction
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Before Python 3.3 and [PEP 393](https://www.python.org/dev/peps/pep-0393/)
(which came in with Python 3.3) there was a distinction between narrow
and wide python builds.
However this is no longer the situation, and `chr(0x10FFFF)` should not
raise `ValueError` on any python build.
From [PEP 393](https://www.python.org/dev/peps/pep-0393/):
> The Unicode string type is changed to support multiple internal
> representations, depending on the character with the largest Unicode
> ordinal (1, 2, or 4 bytes). This will allow a space-efficient
> representation in common cases, but give access to full UCS-4 on all
> systems. For compatibility with existing APIs, several representations
> may exist in parallel; over time, this compatibility should be phased
> out. The distinction between narrow and wide Unicode builds is dropped.
From [Python 3.7 docs for Unicode Objects and Codecs](https://docs.python.org/3.7/c-api/unicode.html)
docs regarding `Py_UNICODE`:
> Changed in version 3.3: In previous versions, this was a 16-bit type
> or a 32-bit type depending on whether you selected a “narrow” or “wide”
> Unicode version of Python at build time.
|
|\ \ \
| | | |
| | | | |
add test of ConjunctiveGraph operators
|
| | | |
| | | |
| | | |
| | | |
| | | | |
thanks!
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
add nquads to recognised file extensions
|
| | | | |
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
aucampia/iwana-20220108T1634-dont_change_suffix_map
Don't update `SUFFIX_FORMAT_MAP` in `plugins/parsers/jsonld.py`
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`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
|
|\ \ \
| |/ /
|/| | |
change tests to use urn:example
|
|/ / |
|
|/ |
|
|\
| |
| | |
added three tests to cover changes made by the pull request #1361
|
| |
| |
| |
| |
| | |
removing logging
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|