We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a03bd6 commit c571c73Copy full SHA for c571c73
1 file changed
tests/shared.py
@@ -155,7 +155,8 @@ def do_entity_test(
155
rocrate_graph.update(rocrate_entity_mod_sparql)
156
157
# save the updated RO-Crate metadata
158
- context = "https://w3id.org/ro/crate/1.1/context"
+ # preserve the original context to avoid forcing a downgrade
159
+ context = rocrate.get("@context", "https://w3id.org/ro/crate/1.2/context")
160
rocrate_graph.serialize(
161
Path(temp_rocrate_path, "ro-crate-metadata.json"),
162
format="json-ld",
0 commit comments