Skip to content

Conversation

alexskr and others added 6 commits August 23, 2025 00:55
- Restrict URIs to HTTP/HTTPS
- Enforce max length to be less than 2048 chars
- Prefer `is_a?` over `kind_of?` throughout.
- Rename predicate helpers: is_a_boolean?→boolean?, is_a_uri?→uri?, is_url?→url?
- Mark helper predicates as `private`.
- Remove unnecessary `self.` receivers in internal calls.
- Flatten control flow in `enforce_type` with guard clauses.
- Use `all?` instead of select/reject+empty? (short-circuit, fewer allocs).
- Replace `a || b` with `[:uri, RDF::URI].include?(type)` to satisfy Style/MultipleComparison.
- No functional changes; tests unchanged.
Feature: `:url` data type validation for restricting URIs to http schema
Allow the `:bypass_cache` param to propagate from GOO to sparql-client
@alexskr alexskr merged commit 5cac44e into master Oct 27, 2025
8 checks 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.

3 participants