Skip to content

Add ChoiceBySchemeDocumentLoader for scheme-based document loading - #302

Merged
anatoly-scherbakov merged 11 commits into
masterfrom
choice-by-scheme-document-loader
Aug 19, 2026
Merged

Add ChoiceBySchemeDocumentLoader for scheme-based document loading#302
anatoly-scherbakov merged 11 commits into
masterfrom
choice-by-scheme-document-loader

Conversation

@anatoly-scherbakov

Copy link
Copy Markdown
Collaborator

Summary

  • Add ChoiceBySchemeDocumentLoader, which dispatches to per-scheme loaders so a local file: document can resolve a remote https: @context
  • Export the loader, cover dispatch/fallback/errors with tests, and document it with an offline composed-loader example
  • Add an example_data macro and tabbed sourced JSON-LD on the ChoiceByScheme and File loader pages

Stacked on #301 (file-document-loader). Closes #300.

Test plan

  • pytest tests/test_choice_by_scheme_document_loader.py
  • make test
  • make lint
  • make docs-build
  • Confirm docs page tabs show Example + sourced JSON-LD for ChoiceByScheme and File loaders

@github-actions

github-actions Bot commented Jul 26, 2026

Copy link
Copy Markdown

Comment thread lib/pyld/documentloader/choice_by_scheme.py Outdated
Base automatically changed from file-document-loader to master August 19, 2026 18:56
anatoly-scherbakov and others added 11 commits August 20, 2026 00:02
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…der` instances

Co-authored-by: Cursor <cursoragent@cursor.com>
@anatoly-scherbakov
anatoly-scherbakov force-pushed the choice-by-scheme-document-loader branch from 59fa58c to ea83877 Compare August 19, 2026 20:02
@anatoly-scherbakov
anatoly-scherbakov merged commit d2cd732 into master Aug 19, 2026
12 of 20 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.

Add ChoiceBySchemeDocumentLoader for scheme-based document loading

2 participants