iodepo / odis-arch

Development of the Ocean Data and Information System (ODIS) architecture
https://book.odis.org/
27 stars 16 forks source link

Using JSON Schema generated from our examples to build JSON-LD documents #175

Open fils opened 1 year ago

fils commented 1 year ago

I've brought this up a couple times before but I think I have done a poor job presenting it. Shockingly this is from almost 5 years ago Old P418 docs, but it still seems to work.

If you take a sample JSON document like softwareApplication.json you can actually load this into the JSON Schema Tool and build a decent schema automatically. Then one can easily drop that into JSON-Editor (see also JSON-Editor GitHub ).

That will make a form interface for the schema that you can fill out and it will generate a populated JSON-LD record for you then.

I wanted to bring this up again, in a better form hopefully, and see if this could be of value for the training coming up and also perhaps for some of the partners.

The following is a screencast showing the approach:

https://youtu.be/kGvlQCvtbx8

jmckenna commented 1 year ago

Thanks @fils very useful! I really like the idea of this for on-boarding partners (maybe we could host an instance of that JSON-Editor with schemas from our pattern templates, on the IODE infrastructure).

fils commented 1 year ago

At this time I am not a big advocate for running more services, would rather see a self hosted approach, perhaps in the archetype repo.

Should be easy to work up a Docker build file to pull and fire up the tool in a container.