From 3139d0acb748e7af388bedaf76a5172da4c7f4c6 Mon Sep 17 00:00:00 2001 From: Treesa Joseph <66374813+Treesarj@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:05:39 +0200 Subject: [PATCH] fix pylint --- oteapi_dlite/strategies/mapping.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/oteapi_dlite/strategies/mapping.py b/oteapi_dlite/strategies/mapping.py index e0350b7d..e50a0935 100644 --- a/oteapi_dlite/strategies/mapping.py +++ b/oteapi_dlite/strategies/mapping.py @@ -242,22 +242,17 @@ class URIs within a specified RDF graph. {% macro sparql_query(class_names, graph_uri) %} PREFIX rdf: PREFIX rdfs: - PREFIX owl: - SELECT ?parentClass WHERE { GRAPH <{{ graph_uri }}> { - # Subclass traversal to find parent classes ?class rdfs:subClassOf* ?parentClass . FILTER( {% for class_name in class_names -%} ?class = <{{ class_name }}>{{ " ||" if not loop.last }} - {% endfor %} - ) + {% endfor %}) } } {% endmacro %} - """ template = Template(template_str)