Skip to content

Enhancement and bugfix for concept class#103

Merged
jbrown-xentity merged 4 commits intomainfrom
enhancement/concept
Apr 3, 2026
Merged

Enhancement and bugfix for concept class#103
jbrown-xentity merged 4 commits intomainfrom
enhancement/concept

Conversation

@jbrown-xentity
Copy link
Copy Markdown
Collaborator

Update concept class, provide examples, edit previous examples for current allowances.

Should resolve #91 . The main change in this are 2 fold:

  • Allowing all instances of the "Concept" class to be a simple string, without providing all the schema references that would go along with it. This still allows the usage of the class mostly unchanged, other than the below.
  • Removing the requirement of a conceptScheme reference for the concept class, in case that isn't fully defined yet.

This then provides simple and complete (every possible field filled in) examples for both the Concept class and an implementation of it with the Agent class. In order for tests to pass, I had to implement the anyOf instead of oneOf, but full implementation of that will be handled in #90 (not this pull request).

@jbrown-xentity jbrown-xentity requested a review from a team March 25, 2026 21:14
@jbrown-xentity jbrown-xentity added bug Something isn't working enhancement New feature or request ready-for-review labels Mar 25, 2026
Copy link
Copy Markdown

@zopalmer14 zopalmer14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great work with the examples. They're very thorough and I'm sure users will appreciate them. I left one tiny comment on the description for notation but it's trivial.

Comment thread jsonschema/definitions/Concept.json Outdated
Comment thread jsonschema/examples/Concept/good/complete_example.json Outdated
Comment thread jsonschema/examples/Concept/good/object_with_iri_inScheme.json Outdated
zopalmer14 added a commit that referenced this pull request Mar 31, 2026
Relevant classes: Activity, Agent, Catalog, Data Service, Dataset, Document, and Standard

Changes:
- change 'category' from a single entry to a list in all relevant classes but Dataset (it's already a list here)
- replace 'oneOf' with 'anyOf' and 'flatten' in line with PR #103
- fix property descriptions for consistency and to align with changes
@jbrown-xentity jbrown-xentity merged commit 5dad266 into main Apr 3, 2026
2 checks passed
@jbrown-xentity jbrown-xentity mentioned this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concept class (and sub-class) extremely convoluted

3 participants