Skip to content

Conversation

@lu-pl
Copy link
Owner

@lu-pl lu-pl commented Nov 15, 2025

No description provided.

@lu-pl lu-pl force-pushed the lupl/ttl-rewrite branch 2 times, most recently from 959c9db to af7bcc9 Compare November 16, 2025 13:20
The change introduces an overhaul and partial rewrite of the
lodkit.ttl constructor.

1. Discontinuation of skip functionality and graph parameter in the initializer

The skip functionality is an awkward and ineffecient feature that
isn't really needed, so it might as well be cut from the implementation.
Also, passing a graph instance to the initializer introduces state and
is not in line with the idea of the to_graph method as a mere
convenience method that accepts a graph instance anyways.

2. Making lodkit.ttl an Iterable

lodkit.ttl should be an Iterable, not an Iterator. Functionally, the
constructor could also be expressed as a generator function (see the
internal lodkit.ttl._generate_triples); using a class however allows
to match/case against the lodkit.ttl type and express a union type of
_TPredicateObjectPair *recursively*.

Closes #26.
Closes #27.
Closes #28.
@lu-pl lu-pl force-pushed the lupl/ttl-rewrite branch 5 times, most recently from cd7fa81 to a253cd9 Compare November 17, 2025 19:16
The change introduces explicitely defind lodkit.ttl tests and gets rid
of property-based test parameter constructors.
The change implements a recursive type for predicate-object pairs used
in lodkit.ttl.

Closes #31.
@lu-pl lu-pl merged commit 31d0646 into main Nov 18, 2025
1 check passed
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.

2 participants