Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix(json-ld): Use a fully qualified url when setting skos:broader
Browse files Browse the repository at this point in the history
We won't be sure that we have a definition for oa: in this context,
so be safe and just use the full url
  • Loading branch information
alastair committed Jul 13, 2021
1 parent 5c79a52 commit c04b102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/helpers/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export function preprocessDefinedTermSet(data) {
}

if (data["broaderMotivation"]) {
data["broaderMotivation"] = "oa:" + data["broaderMotivation"];
data["broaderMotivation"] = "https://www.w3.org/ns/oa#" + data["broaderMotivation"];
}
return data
}

0 comments on commit c04b102

Please sign in to comment.