We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b8a7f commit f7093acCopy full SHA for f7093ac
dkg/utils/knowledge_collection_tools.py
@@ -162,7 +162,7 @@ def replace_blank_node(term):
162
try:
163
g.parse(data=all_nquads, format="nt")
164
except RDFParserError:
165
- raise UnsupportedJSON_LD(nquads_list)
+ raise UnsupportedJSONLD(nquads_list)
166
167
# Process all quads
168
result = []
@@ -266,7 +266,8 @@ def escape_literal_dict(obj):
266
return obj
267
268
269
-class UnsupportedJSON_LD(Exception):
+# Used when JSON-LD parsing fails due to quads being passed instead of triples
270
+class UnsupportedJSONLD(Exception):
271
def __init__(self, nquads_list):
272
self.nquads_list = nquads_list
273
self.message = f"""
0 commit comments