File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments