RE: WA and JSON-LD default context

Hi all,

Thanks a lot for all your help!

I guess my mistake was when reading the spec, I was assuming the RDFa behaviour and the last note regarding JSON-LD just skipped my attention... thanks Shane for pointing it out.

@Rob: in our case, we are still gathering/understanding the cases that could require an extension... we might include a context for a specific part of the annotation, or if we choose to define a "master" context for ourselves, we were thinking of replacing the context with "ours" and having it importing the WA one, just to keep it simple... would this last option be alright? I am assuming here that both JSON and RDF developers would be able to work with it, unless I am missing something...

Btw, about the WA JSON-LD context, I was wondering if it would be relevant to directly import the RDFa 1.1. default context from the WA context. I suspect this would lower the need to add an extension context for a great number of applications, at least the ones only requiring the prefix declarations...

Best regards,

From: Robert Sanderson []
Sent: 06 May 2016 20:45
Cc: Hugo Manguinhas; public-openannotation; W3C Public Annotation List
Subject: Re: WA and JSON-LD default context

In terms of extension of the context ... the latest drafts have some opinions about this:

Is that the way you were also thinking?

Thanks Hugo!


On Fri, May 6, 2016 at 11:35 AM, Shane McCarron <<>> wrote:
Just to be clear, [1] does NOT attempt to define a default context for JSON-LD.  It says:

The same list of prefixes have also been defined for JSON-LD as a JSON-LD Context<> at the URI; JSON-LD users can use the @context key with that URI as a shorthand to use the same prefixes.


On Fri, May 6, 2016 at 6:28 AM, Gregg Kellogg <<>> wrote:
On May 6, 2016, at 13:36, Ivan Herman <<>> wrote:

+Cc Gregg, who knows the answer better than I do. Note, however, that he is currently on vacations…

On 6 May 2016, at 12:12, Hugo Manguinhas <<>> wrote:

Hi all,

We have a question about JSON-LD that might be of interest to this group.

As part of our efforts to move forward towards more advanced modelling scenarios, we have been debating the need for a JSON-LD context for ourselves (extending the WA) to reduce the number of prefix declarations and eventually further simplify the labels by even removing the prefix as it is currently being done in WA spec.

While looking at the best practices we stumbled across the “RDFa Core Initial Context” [1] which also defines a default context for JSON-LD with a list of default prefixes. We were wondering if you might know how normative this specification is since it is not mentioned in the JSON-LD specification

It is not normative, afaik. (As opposed to the usage of the RDFa Initial Context.) I do not know whether tools implement it by default; I would not expect so.

There is no default initial context for JSON-LD. Best practice would be for the group to define one in their namespace (e.g., in include within it prefixes you would like to be available, along with other appropriate term definitions. The CSVW group took this approach [1].

and if there is significant adoption (I guess that this is only critical for RDF engines). My understanding is that there should be still a way to explicitly state the default context (at least for back compatibility), either at the protocol level or context level.

I am not sure I understand the remark: of course, any JSON-LD can refer to that context, that is why it was created…

JSON-LD needs to explicitly reference one or more contexts, which may also be inline.




Btw, with regards to WA specs (and also Open Annotation), and if this really happens to be normative, it might be relevant to make some note about it in both the model and protocol specs... or even explicitly import the default in the current WA context.

Looking forward to your feedback...


Best regards,
Hugo Manguinhas
Technical R&D Coordinator

T: +31 (0)70 314 0998<tel:%2B31%20%280%2970%20314%200998>
Skype: hugo.manguinhas

Be part of Europe's online cultural movement - join the Europeana Network Association:

Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. If you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.

Ivan Herman, W3C
Digital Publishing Lead
mobile: +31-641044153<tel:%2B31-641044153>

Shane McCarron
Projects Manager, Spec-Ops

Rob Sanderson
Semantic Architect
The Getty Trust
Los Angeles, CA 90049

Received on Monday, 9 May 2016 09:41:11 UTC