Skip to content

Commit ce84ddf

Browse files
committed
reverted change to modify_jsonldcontext. iri and xref should not be set to @type.
1 parent 750395f commit ce84ddf

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

utils/modify_jsonldcontext.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ def modify_jsonld_context_fields(input_file: str):
55
"""
66
Modify the JSON-LD context to update:
77
- 'category' to '@type'
8-
- 'iri' to '@type'
9-
- 'xref' to '@type'
108
and save in-place.
119
"""
1210
try:
@@ -21,14 +19,6 @@ def modify_jsonld_context_fields(input_file: str):
2119
context["category"] = "@type"
2220
else:
2321
print("Warning: 'category' field not found in JSON-LD context.")
24-
if "iri" in context:
25-
context["iri"] = "@type"
26-
else:
27-
print("Warning: 'iri' field not found in JSON-LD context.")
28-
if "xref" in context:
29-
context["xref"] = "@type"
30-
else:
31-
print("Warning: 'xref' field not found in JSON-LD context.")
3222
else:
3323
print("Error: '@context' not found in JSON-LD file.")
3424

0 commit comments

Comments
 (0)