Phase 2: add minimal query builder and first select-query test in linked-js #11
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.
Motivation
rebrand/linked-jspackage that does not depend on RDF model classes or React while preserving the ability to build the plain JS query objects.Shape.select(...)calls translate into the same select-path JS object format used by the larger project.Description
rebrand/linked-jsincluding TypeScript configs, dual-output helper (scripts/dual-package.js), and Jest config for tests.Shape,ShapeDefinition,PropertyShape, andlinkedShape/literalProperty/objectPropertyinsrc/shapes/*to register property shapes without RDF model types.QueryBuilderObject,QueryShape,QueryValue,SelectQueryFactory) that proxifies a dummy shape instance to trace property accesses and produce a serializableSelectQueryobject insrc/queries/SelectQuery.ts.src/tests/query-basic.test.tswhich installs a dummyQueryCaptureStoreas the shapequeryParser, runsPerson.select(p => p.name), captures the produced query object, and asserts on its structure and property-shape metadata.Testing
cd rebrand/linked-js && node ../../node_modules/.bin/rimraf ./lib && node ../../node_modules/.bin/tsc -p tsconfig-cjs.json && node ../../node_modules/.bin/tsc -p tsconfig-esm.json && node ./scripts/dual-package.js && node ../../node_modules/.bin/jest --config jest.config.cjs.1 passed, 1 total.Codex Task