From c3c959227ff66894aa7a5246fbc5b69f2d0f5e77 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Wed, 19 Jun 2019 11:43:39 -0700 Subject: [PATCH 1/2] Describe that type-scoped contexts are only in affect on the node objects in which they're used. Add changes for type-scoped contexts. Fixes #174. --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index aca1794b..6ec8ebf2 100644 --- a/index.html +++ b/index.html @@ -3405,7 +3405,10 @@

Using the Document Base for the Default Vocabulary

relate things of different types, where the vocabularies in use within different entities calls for different context scoping. For example, hasPart/partOf may be common terms used in a document, but mean - different things depending on the context.

+ different things depending on the context. + A context scoped on @type is only in effect for the node object on which + the type is used; the previous in-scope contexts are placed back into + effect when traversing into another node object.

When expanding, each value of @type is considered (ordering them lexicographically) where that value is also a term in @@ -12835,6 +12838,8 @@

Changes since JSON-LD Community Group Final Report

using type application/ld+json;profile=http://www.w3.org/ns/json-ld#frame.
  • Term definitions can now be protected, to limit the ability of other contexts to override them.
  • +
  • A context defined in an expanded term definition may also be used for values + of @type, which defines a context to use for node objects including the associated type.
  • From 08b3a1c7a211f9c123b30f44b13dcfb795c79791 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Wed, 19 Jun 2019 16:13:58 -0700 Subject: [PATCH 2/2] Applied @dlongley's suggestion on noting that local contexts introduced when a type-scoped context is in effect remain in effect in descendant node objects. --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 6ec8ebf2..6e92b2cc 100644 --- a/index.html +++ b/index.html @@ -3410,6 +3410,9 @@

    Using the Document Base for the Default Vocabulary

    the type is used; the previous in-scope contexts are placed back into effect when traversing into another node object.

    +

    Any property-scoped or local contexts that were introduced in the node object + would still be in effect when traversing into another node object.

    +

    When expanding, each value of @type is considered (ordering them lexicographically) where that value is also a term in the active context having its own scoped context. If so, that