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

9.1.1 - bug fix of subjects of license paths in semantic data packages

parent d7b0555b
No related branches found
No related tags found
No related merge requests found
Pipeline #348510 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: 9.1.0 Current stable version: 9.1.1
## Installation ## Installation
1. Install the WZL-UDI package via pip 1. Install the WZL-UDI package via pip
...@@ -58,6 +58,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) ...@@ -58,6 +58,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
## Recent changes ## Recent changes
**9.1.1** - 2024-01-18
- bug fix of subjects of license paths in semantic data packages
**9.1.0** - 2024-01-17 **9.1.0** - 2024-01-17
- the license for profiles, metadata and data is now provided anc can be specified in the config file - the license for profiles, metadata and data is now provided anc can be specified in the config file
......
...@@ -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='9.1.0', version='9.1.1',
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",
......
...@@ -102,7 +102,7 @@ class Element(ABC): ...@@ -102,7 +102,7 @@ class Element(ABC):
shape_filename = os.path.join(profiles_path, f"{self._profilename}.shacl.ttl") shape_filename = os.path.join(profiles_path, f"{self._profilename}.shacl.ttl")
self._metadata_profile = rdflib.Graph() self._metadata_profile = rdflib.Graph()
self._metadata_profile.parse(shape_filename) self._metadata_profile.parse(shape_filename)
self._metadata_profile.add((rdflib.URIRef(Semantics.namespace[self._profilename]), Namespaces.dcterms.license, self._metadata_profile.add((rdflib.URIRef(Semantics.namespace[f'{self._profilename}Shape']), Namespaces.dcterms.license,
Semantics.profile_license)) Semantics.profile_license))
# load metadata # load metadata
...@@ -110,7 +110,7 @@ class Element(ABC): ...@@ -110,7 +110,7 @@ class Element(ABC):
metadata_filename = os.path.join(metadata_path, f"{self._semantic_name}.ttl") metadata_filename = os.path.join(metadata_path, f"{self._semantic_name}.ttl")
self._metadata = rdflib.Graph() self._metadata = rdflib.Graph()
self._metadata.parse(metadata_filename) self._metadata.parse(metadata_filename)
self._metadata.add((rdflib.URIRef(self._semantic_name), Namespaces.schema.license, Semantics.metadata_license)) self._metadata.add((rdflib.URIRef(self.semantic_name), Namespaces.schema.license, Semantics.metadata_license))
@abstractmethod @abstractmethod
def serialize_semantics(self, kind: str) -> rdflib.Graph: def serialize_semantics(self, kind: str) -> rdflib.Graph:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment