From cb128447e1c2606cf84cfef15e46b152b12acdf3 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Sun, 19 Jan 2025 20:18:28 +0400 Subject: [PATCH 1/2] Prevent `NameError` --- iolanta/facets/textual_ontology/facets.py | 4 ++-- iolanta/node_to_qname.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/iolanta/facets/textual_ontology/facets.py b/iolanta/facets/textual_ontology/facets.py index 629dc3c..231e888 100644 --- a/iolanta/facets/textual_ontology/facets.py +++ b/iolanta/facets/textual_ontology/facets.py @@ -76,7 +76,7 @@ def show(self) -> Widget: URIRef('https://iolanta.tech/visualizations/index.yaml'), as_datatype=DATATYPES.title, ) - logger.info('Index Retrieved: %s', index_title) + self.logger.info('Index Retrieved: %s', index_title) vocabs = funcy.lpluck( 'vocab', @@ -88,7 +88,7 @@ def show(self) -> Widget: vocab, as_datatype=DATATYPES.title, ) - logger.info( + self.logger.info( 'Visualization vocabulary retrieved: %s', vocab_title, ) diff --git a/iolanta/node_to_qname.py b/iolanta/node_to_qname.py index c94c133..a7210c8 100644 --- a/iolanta/node_to_qname.py +++ b/iolanta/node_to_qname.py @@ -1,9 +1,13 @@ +import logging + from classes import typeclass from rdflib import Graph, URIRef from rdflib.term import Node from iolanta.models import ComputedQName +logger = logging.getLogger(__name__) + @typeclass def node_to_qname(node: Node, graph: Graph): From 0b3311be0658445dff9684483979fb910bca7955 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Sun, 19 Jan 2025 21:35:04 +0400 Subject: [PATCH 2/2] Bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8c24721..8998e2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "iolanta" -version = "1.2.2" +version = "1.2.3" description = "Semantic Web browser" authors = ["Anatoly Scherbakov "] license = "MIT"