atomicdata-dev / atomic-data-docs

Atomic Data is a specification to make it easier to exchange data.
https://docs.atomicdata.dev
MIT License
17 stars 7 forks source link

Managing Atomic Data on Git #97

Open joepio opened 2 years ago

joepio commented 2 years ago

@hoijui described a workflow that he'd like to have, where he can modify some Atomic Data (in this case an ontology of Properties and Classes), and have it hosted somewhere + updated when he commits. Seems achievable, but how?

Have a script that posts commits to an atomic server, run as CI step

How do we deal with identifiers here? We could require that all @ids used in the .jsonad are resolvable, but this might ask a lot from the one uploading the file or from the tool / script.

We've also been working on a simpler way to publish atomic data #93. In short, only use local identifiers, and have a clever way of turning these into bigger ones.

Host static JSON-AD files

Basically:

This can be done, for example, with Github pages, or by pointing to the raw files.

See the docs and the #93 issue for more info

However, the resulting @id will point to the server that imported the resource, as only that server is capable of properly hosting the data (i.e. deal with HTTP content negotiation, authorization and more)

jonassmedegaard commented 2 years ago

My approach for this would be to decouple git from Github(/Gitlab/whatever):

  1. teach Atomizer to parse a git repo
  2. run Atomizer as a git hook
  3. if it really need to be Github-specific then have a CI job or some other service hook run Atomizer server-side at each commit
joepio commented 2 years ago

@jonassmedegaard Agreed, that's a more sensible approach. I've updated the issue.