Skip to content

Add context-aware string projection for metadata fields - #1

Merged
andrew merged 1 commit into
mainfrom
document-string-projection
Oct 1, 2026
Merged

andrew merged 1 commit into
mainfrom
document-string-projection

Conversation

@andrew

@andrew andrew commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Consumers that need text from CodeMeta fields currently have to handle aliases and JSON-LD containers themselves. Add Document.Strings(term) to extract strings, object identifiers, or object names in source order, with context-aware key resolution and support for lists, sets, and value objects.

For example, license: {"id":"https://spdx.org/licenses/MIT"} yields the license URL, and keywords: {"@set":["science","metadata"]} yields both keywords. The accessor preserves the original values available through Get and has regression coverage for context changes and key precedence.

@andrew
andrew force-pushed the document-string-projection branch from bb32ece to 7130f95 Compare October 1, 2026 08:13
@andrew
andrew merged commit fbe0fec into main Oct 1, 2026
6 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.

1 participant