Skip to content

Commit

Permalink
Fix test redis (#877)
Browse files Browse the repository at this point in the history
* Fixed issues

* Working on dataset representation...

* Update figure

* Avoid failing unnessesary

* Minor fixes:
- Changed some blank nodes to classes and named literals.
- Updated dataset figure.

* Updated dataset serialisation

* Updating dataset

* Handled units.

* Updates

* Added new figure: dataset-v2.svg

* Updated dataset-v2.svg

* Updated figure

* Updated dataset figure with input from Emanuele

* Updated figure

* Improving dataset

* Updated dataset serialisation

* metadata_to_rdf() now works

* Implemented loading datamodels from EMMO representation.

* Cleanup

* Skip testing dataset if Tripper is not installed.

* Updated representation of array types in the dlite.dataset module.

* Added support for instances

* Updated requirements on tripper to current master

* Update what tests to run

* Added missing test

* Removed Al datasets as suggested by Francesca

* Started to add a dataset example

* Updated readme for dataset example

* Updated requirements

* Also updated local requirements for TEM_data example

* Fixed EMMO dataset representation

* Fix the redis test
  • Loading branch information
jesper-friis authored Jul 5, 2024
1 parent 6608be5 commit 6dde122
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion bindings/python/tests/test_dataset1_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#assert get_unit_iri("mm") == "https://w3id.org/emmo#MilliMetre"



# Test serialising Metadata as an EMMO dataset
# ============================================
Fluid = dlite.get_instance("http://onto-ns.org/meta/dlite/0.1/FluidData")
Expand Down
4 changes: 3 additions & 1 deletion examples/dataset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ properties:
description: Array of measured temperatures.
```
A DLite datamodel is represented with an emmo:DataSet, and its properties are represented with emmo:Datum as illustrated in the figure above.
It shows how a simple [`FluidData`] datamodel is represented.

The datamodel is semantically enhanced using the following mappings
```python
mappings = [
Expand All @@ -45,5 +48,4 @@ Some comments:
- The `map:mapsTo` are translated to `rdfs:subClassOf` when serialised to the triplestore.



[`FluidData`]: https://github.com/SINTEF/dlite/blob/652-serialise-data-models-to-tbox/examples/dataset/datamodels/FluidData.json
4 changes: 2 additions & 2 deletions storages/python/tests-python/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
meta = inst1.meta

save0 = meta.asdict()
save1 = inst1.asdict()
save2 = inst2.asdict()
save1 = inst1.asdict(single=True, uuid=True)
save2 = inst2.asdict(single=True, uuid=True)


# Test storing to Redis
Expand Down

0 comments on commit 6dde122

Please sign in to comment.