Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python Unified Device Interface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WZL-IQS-Public
Sensor Interfacing Language (SOIL)
Python Unified Device Interface
Commits
e20c105c
Commit
e20c105c
authored
1 year ago
by
Matthias Stefan Bodenbenner
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: build
Stage: push
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-1
4 additions, 1 deletion
README.md
setup.py
+1
-1
1 addition, 1 deletion
setup.py
src/soil/element.py
+2
-2
2 additions, 2 deletions
src/soil/element.py
with
7 additions
and
4 deletions
README.md
+
4
−
1
View file @
e20c105c
[

](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master)
[

](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
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
e20c105c
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
src/soil/element.py
+
2
−
2
View file @
e20c105c
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment