Repository navigation
feat(search): resource path queries over any number of hops - #220
Merged
Merged
Conversation
The path DSL of ikuzo/rdf/index ([class]predicate->…) now also queries the v2 index. fragments.ParseResourcePath reads a path into a ResourcePath, and ValueQuery/ResourceQuery/EntryQuery turn it into one nested query on resources: a context condition per hop (Level, SearchLabel, SubjectClass), the class of the resource at the end, and its literal or URI. Conditions in one ResourceQuery hold for the same linked resource. This generalises QueryFilter's single Level2 hop, whose Level1 was never queried. The DSL gets alternatives in a class, [schema:Person|schema:Organization], in parsing, namespace expansion and graph traversal. On the NDE index (HHM): Sphinx as name of the person behind a Role is 4 records, as organisation 1, with Person|Organization 5, the same as a hand-written query; "same Role as fabrikanten" 4, "as fotografen" 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #220 +/- ##
==========================================
+ Coverage 36.41% 36.50% +0.09%
==========================================
Files 412 413 +1
Lines 38176 38230 +54
==========================================
+ Hits 13901 13957 +56
+ Misses 24273 24271 -2
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The path DSL of
ikuzo/rdf/index([class]predicate->…) now also queries the v2 index, over any number of hops, with several conditions on the same linked resource.fragments.ParseResourcePath+ResourcePath.ValueQuery/ResourceQuery+EntryQuery: one nested query onresources, acontextcondition per hop (Level,SearchLabel,SubjectClass), the class of the resource at the end, and its literal or URI. GeneralisesQueryFilter's singleLevel2hop (itsLevel1was never queried).[schema:Person|schema:Organization], in parsing, namespace expansion and graph traversal; documented inpath_query_syntax.md.Checked on the NDE index (Haags Historisch Museum, work → Role → Person):
[]schema:creator->[schema:Role]schema:creator->[schema:Person]schema:name= Sphinx[schema:Organization][schema:Person|schema:Organization]Full test suite green locally (61 packages). Used by nde-integration-layer for CQL2 path properties.
🤖 Generated with Claude Code