We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@type
1 parent 1545b54 commit c9e8837Copy full SHA for c9e8837
lib/context.js
@@ -484,6 +484,7 @@ api.createTermDefinition = (
484
if(value['@protected'] === true ||
485
(defined.get('@protected') === true && value['@protected'] !== false)) {
486
activeCtx.protected[term] = true;
487
+ mapping.protected = true;
488
}
489
490
// IRI mapping now defined
@@ -982,8 +983,16 @@ api.getInitialContext = options => {
982
983
if(mapping.isTypeScopedTerm) {
984
if(mapping.previousMapping) {
985
child.mappings.set(term, mapping.previousMapping);
986
+ if(mapping.previousMapping.protected) {
987
+ child.protected[term] = true;
988
+ } else {
989
+ delete child.protected[term];
990
+ }
991
} else {
992
child.mappings.delete(term);
993
+ if(child.protected[term]) {
994
995
996
997
998
0 commit comments