Skip to content

Conversation

@andrewelamb
Copy link
Contributor

@andrewelamb andrewelamb commented Nov 5, 2025

Problem:

Schematic code was extracted to the Curator extension(minus the cli commands). There is no instructiosn for how to crate a JSON Schema using curator extention as a python library.

Solution:

Add a short tutorial for how to create json shemas. This could be replaced or added onto a tutorial for creating json schema via CLI in the future.

@andrewelamb andrewelamb requested a review from a team as a code owner November 5, 2025 21:42
@andrewelamb andrewelamb marked this pull request as draft November 5, 2025 21:42
@andrewelamb andrewelamb marked this pull request as ready for review November 5, 2025 21:58
@andrewelamb andrewelamb requested a review from a team November 5, 2025 22:09
@thomasyu888 thomasyu888 changed the title Add Create JSON Schema tutotial Add Create JSON Schema tutorial Nov 5, 2025
@thomasyu888 thomasyu888 changed the title Add Create JSON Schema tutorial [SYNPY-1697] Add Create JSON Schema tutorial Nov 5, 2025
Copy link
Member

@BryanFauble BryanFauble left a comment

Choose a reason for hiding this comment

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

There is a bit of work left on these. Thank you for the initial stab at this!

Co-authored-by: BryanFauble <17128019+BryanFauble@users.noreply.github.com>
```

To create a JSON Schema you need a data-model, and the data-types you want to create.
The data-model must be in either CSV or JSON-LD form. The data model maybe a local path or a URL.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The data-model must be in either CSV or JSON-LD form. The data model maybe a local path or a URL.
The data-model must be in either CSV or JSON-LD form. The data model may be a local path or a URL.

Copy link
Member

Choose a reason for hiding this comment

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

It would be great to also include an example of what the URL looks like by using one of the published data models that we have available to us.

Copy link
Member

Choose a reason for hiding this comment

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

See my last comment @andrewelamb ^

Co-authored-by: BryanFauble <17128019+BryanFauble@users.noreply.github.com>
```python
{!docs/tutorials/python/tutorial_scripts/schema_operations.py!lines=15-23}
```
You should see the first JSON Schema for the datatype(s) you selected printed.
Copy link
Member

Choose a reason for hiding this comment

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

Could you include the example output of what would be printed here given the example URL data model that we will use? That way folks have a bit of context of what to expect.

Copy link
Member

@BryanFauble BryanFauble left a comment

Choose a reason for hiding this comment

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

Looking better! Thanks for the changes.

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.

4 participants