Skip to content

Commit 8390b62

Browse files
Fix @context value #296
1 parent df16127 commit 8390b62

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

meta_creator/validate_jsonLD.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ def validate_codemeta(json):
1111
print("Not a JSON-LD file")
1212
return False
1313

14-
# if context == "https://doi.org/10.5063/schema/codemeta-2.0":
1514
if context == "https://w3id.org/codemeta/3.0":
16-
# Temp replacement for https resolution issues for schema.org
17-
# context = "https://raw.githubusercontent.com/caltechlibrary/convert_codemeta/main/codemeta.jsonld"
18-
context = "https://raw.githubusercontent.com/codemeta/codemeta/3.0/codemeta.jsonld"
1915
json["@context"] = context
20-
21-
if context == "https://w3id.org/codemeta/3.0":
2216
cp = copy.deepcopy(json)
2317
# Expand and contract to check mapping
2418
cp = jsonld.expand(cp)

0 commit comments

Comments
 (0)