From 69197861d9b51a85c5c4477d6de0102ccf9f147c Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Thu, 25 Jul 2024 22:46:13 +0100 Subject: [PATCH] Another protection --- trustgraph/kg/extract_definitions/extract.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trustgraph/kg/extract_definitions/extract.py b/trustgraph/kg/extract_definitions/extract.py index 46f18b62..334fb32d 100755 --- a/trustgraph/kg/extract_definitions/extract.py +++ b/trustgraph/kg/extract_definitions/extract.py @@ -87,6 +87,9 @@ class Processor(ConsumerProducer): o = defn["definition"] + if s == "": continue + if o == "": continue + s_value = Value(value=str(s_uri), is_uri=True) o_value = Value(value=str(o), is_uri=False)