Release#4
Merged
Merged
Conversation
Refactor cleanup See merge request kit/ifl/opensource/circular_factory/inf/semantic_middleware_dev/graph_db_interface!18
- `triple_add`, `triple_delete`, `triple_update` now take triple as tuple instead of individual items
- Making use of to `Triple` class, more consistent with multi-triple methods
- Prefix management is moved from GraphDB to IRI class
- `import_statements`, `clear_graph` now return success bool
- preparation for generalization to non-web based triple stores
- `fetch_statements` now returns Optional[Graph], None if failed
- Drop support of prefixing for non-full hosts (e.g. `onto`: `http://www.ontotext.com/`), is To Be Added if required in the future
- Drop support of substring searches
- IRIs are treated as atomic, and verified at generation time
- Major cleanup of utils, as many methods are made redundant
- `encapsulate_named_graph` now takes IRI, no additional type checking as is only used internally
- Switch pytest fixture to `Tests` repository as overriding variable
- Clear used graphs at the start of every run
- `triple_exists`, `any_triple_exists`, `all_triple_exists`, `sanitize_triple` - `IRI` Class generation, hashing, equality, prefixes, shortening
- Add named_graph argument to all triple interacting methods - Add support for str and IRI named class arguments - Add test fixtures to both test local and global named graph assignments - Fix named_graph argument propagation
- Allows to directly pass SPARQLQuery instances to query method instead of internal resolution
- Custom dict overwriting cast methods from XSD to python methods - Dict mapping XSD to python types
- Rename `convert_query_result_to_python_type` to `convert_binding_to_python_type` - Add `convert_bindings` flag to query - Add `convert_multi_bindings_to_python_type` and `shorten_block` methods - Add rdflib.BNode support to `convert_binding_to_python_type` - Fix `Typemap` and `process_bindings_select`
- For select, ask, insert_data, insert_exists, delete_data, delete_insert_data queries - Streamlines use of these by reducing required calls - Update internal calls to these methods
- `GraphDB.new_iri` generates a new random IRI, ensuring it does not exist in the database - `GraphDB.new_blank_id` generates new a random genid str, ensuring that it does not exist in the context of the GraphDB instance
- TODO needs more testing to catch this bug
… from_lined method for decoding
Switch interface from string to custom IRI class See merge request kit/ifl/opensource/circular_factory/inf/semantic_middleware_dev/graph_db_interface!19
…ved pattern handling and blank node management
- Partially reverting 'WIP: Fix any_triple_exists' (853feff) - fixing tests for owl_get_classes_of_indiviidual
Owner
|
Had to change some issues in the test pipeline, but now everything feels good. Will merge into main and then create a release 2.0.0 for this. The GraphDB repository being used for the tests should now be set using a GRAPHDB_TEST_REPOSITORY variable. Therefor we do not interfer with the GRAPHDB_REPOSITORY which might be used for actual productive interactions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.