Skip to content

Commit f7093ac

Browse files
committed
naming convention fix, and added com
1 parent 26b8a7f commit f7093ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dkg/utils/knowledge_collection_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def replace_blank_node(term):
162162
try:
163163
g.parse(data=all_nquads, format="nt")
164164
except RDFParserError:
165-
raise UnsupportedJSON_LD(nquads_list)
165+
raise UnsupportedJSONLD(nquads_list)
166166

167167
# Process all quads
168168
result = []
@@ -266,7 +266,8 @@ def escape_literal_dict(obj):
266266
return obj
267267

268268

269-
class UnsupportedJSON_LD(Exception):
269+
# Used when JSON-LD parsing fails due to quads being passed instead of triples
270+
class UnsupportedJSONLD(Exception):
270271
def __init__(self, nquads_list):
271272
self.nquads_list = nquads_list
272273
self.message = f"""

0 commit comments

Comments
 (0)