W3C home > Mailing lists > Public > public-linked-json@w3.org > November 2014

Re: text/html data type

From: Robert Sanderson <azaroth42@gmail.com>
Date: Fri, 7 Nov 2014 09:24:03 -0800
Message-ID: <CABevsUEsT5591yu3xwUy7C8AQ8Kj4acY7mg3s0BsVh+SsNBB1Q@mail.gmail.com>
To: Tor Skjøtskift <tor.skjotskift@amedia.no>
Cc: "public-linked-json@w3.org" <public-linked-json@w3.org>
So long as you don't also need to associate a language with the content,
and you only want to distinguish text/plain from text/html, you can do:

{
  "@value": "<html>goes here</html",
  "@type": "rdf:HTML"
}


On Fri, Nov 7, 2014 at 5:30 AM, Tor Skjøtskift <tor.skjotskift@amedia.no>
wrote:

> When we create an article in a cmd we usually have a rich text field for
> body text.
> How would we describe a newsArticle schema with a text-field containing
> rich media (text/html). We have the primitive data type text in schema.org,
> but it would be very usable to be able to differentiate between rich text
> and strings in order to create scaffolding mechanisms for json-ld
>
>


-- 
Rob Sanderson
Technology Collaboration Facilitator
Digital Library Systems and Services
Stanford, CA 94305
Received on Friday, 7 November 2014 17:24:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:42 UTC