From 61655cca35dff4a854b7e61d08908c595616efa1 Mon Sep 17 00:00:00 2001 From: Matthias Bodenbenner <m.bodenbenner@wzl-mq.rwth-aachen.de> Date: Thu, 21 Mar 2024 09:42:19 +0100 Subject: [PATCH] added license field to semantic provision of measurement range --- README.md | 4 +++- setup.py | 2 +- src/soil/measurement.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 884d486..980c67b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master) # Python Unified Device Interface -Current stable version: 10.0.2 +Current stable version: 10.0.3 ## Installation 1. Install the WZL-UDI package via pip @@ -69,6 +69,8 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) ## Recent changes +**10.0.3** - 2024-03-21 + - added license field to semantic provision of measurement range **10.0.2** - 2024-03-21 - bug fix diff --git a/setup.py b/setup.py index 2c755c3..759acd4 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup(name='wzl-udi', - version='10.0.2', + version='10.0.3', url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python', project_urls={ "Bug Tracker": "https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues", diff --git a/src/soil/measurement.py b/src/soil/measurement.py index f62a96c..134369a 100644 --- a/src/soil/measurement.py +++ b/src/soil/measurement.py @@ -221,6 +221,8 @@ class Measurement(Variable): for subject in subjects: if subject != Semantics.namespace[f'{self._semantic_name}Range']: result.remove((subject, None, None)) + result.add((Semantics.namespace[f'{self._semantic_name}Range'], Namespaces.schema.license, + Semantics.metadata_license)) elif resource_type == ResourceType.data: data_graph = rdflib.Graph() -- GitLab