Skip to content

Commit

Permalink
Serialise as EMMO datasets (#796)
Browse files Browse the repository at this point in the history
This PR implements a new dlite.dataset module for serialisation of DLite datamodels and instances to an RDF representation based on EMMO following the representation shown in the figure below.

The main interface is exposed by four new functions:

add_dataset(): stores datamodel+mappings to a triplestore
add_data(): stores an instance (or datamodel) to a triplestore
get_dataset(): loads datamodel+mappings from a triplestore
get_data(): loads an instance (or datamodel) from a triplestore
  • Loading branch information
jesper-friis authored Jul 5, 2024
1 parent 018616a commit 6608be5
Show file tree
Hide file tree
Showing 15 changed files with 888 additions and 6 deletions.
1 change: 1 addition & 0 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(py_sources
mappings.py
datamodel.py
rdf.py
dataset.py
quantity.py
testutils.py
)
Expand Down
Loading

0 comments on commit 6608be5

Please sign in to comment.