scikit-hep / pyhf

pure-Python HistFactory implementation with tensors and autodiff
https://pyhf.readthedocs.io/
Apache License 2.0
283 stars 83 forks source link

make pyhf JSON JSON-LD #1092

Open lukasheinrich opened 4 years ago

lukasheinrich commented 4 years ago

Description

JSON-LD is a generic data graph representation and used in the semantic web community. There are two concepts:

  1. a RDF graph that holds the basic information
  2. a context that defines entities such as channels, parameters, etc..
  3. a JSON-LD "frame" shaping the graph into a tree-like structure that is JSON

once we use a 'frame' to shape a generic data graph into a JSON-LD object we can validate that wiith standard JSON-schema (some prior art here: https://github.com/mulesoft-labs/json-ld-schema)

in a future world where likelihoods are semantic-web objects this might help with combinations, NP harmonization etc

lukasheinrich commented 4 years ago

I mentioned this briefly here: https://github.com/scikit-hep/pyhf/issues/740

some prior art here: https://geojson.org/geojson-ld/#:~:text=GeoJSON%2DLD%201.0%20defines%20a,use%20the%20context%20defined%20here.

matthewfeickert commented 4 years ago

There's some additional links to info on JSON-LD on Issue #891.