W3C home > Mailing lists > Public > public-publ-wg@w3.org > June 2018

Re: Minimal WPUB for a scholarly paper (of sort)

From: Benjamin Young <byoung@bigbluehat.com>
Date: Mon, 4 Jun 2018 15:13:42 +0000
To: Ivan Herman <ivan@w3.org>, Laurent Le Meur <laurent.lemeur@edrlab.org>
CC: Hadrien Gardeur <hadrien.gardeur@feedbooks.com>, "W3C Publishing Working Group" <public-publ-wg@w3.org>
Message-ID: <BY2PR06MB22457A1C79423C187A378DA0B2670@BY2PR06MB2245.namprd06.prod.outlook.com>
One word of caution about the `@context` values being mentioned.


A document that uses this context:

`{"@context": "http://example.com/"}`


is very different from one that uses this context:


`{"@context": {"@vocab": "http://example.com/"}}`


The `@vocab` merely provides a prefixing mechanism to anything not otherwise defined in the context file. Whereas the first example tells the processor that there is a context file that MUST be parsed [1].


The expectations are rather different...as is the output.


Cheers,

Benjamin



[1] ...and/or retrieved if not currently cached or otherwise "on hand" at processing time (fwiw).


--

http://bigbluehat.com/

http://linkedin.com/in/benjaminyoung

________________________________
From: Ivan Herman <ivan@w3.org>
Sent: Monday, June 4, 2018 11:06:19 AM
To: Laurent Le Meur
Cc: Hadrien Gardeur; Benjamin Young; W3C Publishing Working Group
Subject: Re: Minimal WPUB for a scholarly paper (of sort)

Heh, our mails crossed! Except that you do not have to use JSON-LD 1.1 for that,

https://www.w3.org/TR/2014/REC-json-ld-20140116/#default-vocabulary

has the same example!

Ivan

On 4 Jun 2018, at 17:02, Laurent Le Meur <laurent.lemeur@edrlab.org<mailto:laurent.lemeur@edrlab.org>> wrote:

I also found in https://json-ld.org/spec/latest/json-ld/#advanced-concepts another potential solution:


{
  "@context": {
     "@vocab": "http://schema.org/",
     "databaseId": null
  },
  "@id": "http://example.org/places#BrewEats",
  "@type": "Restaurant",
  "name": "Brew Eats",
  "databaseId": "23987520"
}

in
Cordialement,

Laurent Le Meur
EDRLab

Le 4 juin 2018 à 16:44, Laurent Le Meur <laurent.lemeur@edrlab.org<mailto:laurent.lemeur@edrlab.org>> a écrit :

Is Google so weak? Can't believe it...

L

Le 4 juin 2018 à 16:42, Hadrien Gardeur <hadrien.gardeur@feedbooks.com<mailto:hadrien.gardeur@feedbooks.com>> a écrit :

This was an option that I pointed out as well during the meeting. Given the fact that we'll need terms from bib.schema.org<http://bib.schema.org/> as well (and probably other vocabularies as well), this feels like a good approach.

The main issue with rolling our own context seems to be that Google wouldn't be able to properly parse and index these metadata.




----
Ivan Herman, W3C
Publishing@W3C Technical Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
ORCID ID: https://orcid.org/0000-0003-0782-2704
Received on Monday, 4 June 2018 15:14:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:52:27 UTC