Skip to content
Snippets Groups Projects
Commit 61655cca authored by Matthias Stefan Bodenbenner's avatar Matthias Stefan Bodenbenner
Browse files

added license field to semantic provision of measurement range

parent 6a8cf29d
Branches
No related tags found
No related merge requests found
Pipeline #376714 passed
[![Build](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/badges/master/pipeline.svg)](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master) [![Build](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/badges/master/pipeline.svg)](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master)
# Python Unified Device Interface # Python Unified Device Interface
Current stable version: 10.0.2 Current stable version: 10.0.3
## Installation ## Installation
1. Install the WZL-UDI package via pip 1. Install the WZL-UDI package via pip
...@@ -69,6 +69,8 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) ...@@ -69,6 +69,8 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
## Recent changes ## Recent changes
**10.0.3** - 2024-03-21
- added license field to semantic provision of measurement range
**10.0.2** - 2024-03-21 **10.0.2** - 2024-03-21
- bug fix - bug fix
......
...@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read() long_description = fh.read()
setup(name='wzl-udi', setup(name='wzl-udi',
version='10.0.2', version='10.0.3',
url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python', url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python',
project_urls={ project_urls={
"Bug Tracker": "https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues", "Bug Tracker": "https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues",
......
...@@ -221,6 +221,8 @@ class Measurement(Variable): ...@@ -221,6 +221,8 @@ class Measurement(Variable):
for subject in subjects: for subject in subjects:
if subject != Semantics.namespace[f'{self._semantic_name}Range']: if subject != Semantics.namespace[f'{self._semantic_name}Range']:
result.remove((subject, None, None)) 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: elif resource_type == ResourceType.data:
data_graph = rdflib.Graph() data_graph = rdflib.Graph()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment