From 77b647c105960e8e0446c6d50ad7bdd0ddf9ce74 Mon Sep 17 00:00:00 2001
From: Matthias Bodenbenner <m.bodenbenner@wzl-mq.rwth-aachen.de>
Date: Sat, 16 Mar 2024 14:40:02 +0100
Subject: [PATCH] fixed semantic name resolution of range profiles

---
 README.md          | 5 ++++-
 setup.py           | 2 +-
 src/http/server.py | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 4fd613a..d50a910 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
 [![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
-Current stable version: 9.3.3
+Current stable version: 9.3.4
 
 ## Installation
 1. Install the WZL-UDI package via pip
@@ -58,6 +58,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
 
 ## Recent changes
 
+**9.3.4** - 2024-03-16
+  - fixed semantic name resolution of range profiles
+
 **9.3.3** - 2024-03-15
   - fixed streaming functions
 
diff --git a/setup.py b/setup.py
index e85302e..ae1fef7 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='9.3.3',
+      version='9.3.4',
       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/http/server.py b/src/http/server.py
index c8a653e..1697b30 100644
--- a/src/http/server.py
+++ b/src/http/server.py
@@ -203,7 +203,7 @@ class HTTPServer(object):
 
             profilename = request.url.parts[-2] if request.url.parts[-1] == '' else request.url.parts[-1]
 
-            if len(profilename) > 12 and profilename[-12:-8] == 'Range':
+            if len(profilename) > 12 and profilename[-12:-7] == 'Range':
                 filename = profilename.replace('RangeProfile', '.shacl.ttl')
             else:
                 filename = profilename.replace('Profile', '.shacl.ttl')
-- 
GitLab