Skip to content

Release#4

Merged
JaFeKl merged 39 commits into
JaFeKl:mainfrom
SAWeindel:release
Mar 25, 2026
Merged

Release#4
JaFeKl merged 39 commits into
JaFeKl:mainfrom
SAWeindel:release

Conversation

@SAWeindel
Copy link
Copy Markdown

No description provided.

soerenweindel and others added 30 commits November 18, 2025 16:41
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
soerenweindel and others added 9 commits January 19, 2026 19:21
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
@JaFeKl JaFeKl marked this pull request as ready for review March 25, 2026 18:19
@JaFeKl
Copy link
Copy Markdown
Owner

JaFeKl commented Mar 25, 2026

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.

@JaFeKl JaFeKl merged commit 5280bc6 into JaFeKl:main Mar 25, 2026
1 check passed
@SAWeindel SAWeindel deleted the release branch March 26, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants