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

@value/@type/@language combination

From: Robert Sanderson <azaroth42@gmail.com>
Date: Wed, 13 Aug 2014 16:31:37 -0700
Message-ID: <CABevsUHXyr6+PH2vJ3MqvyhVLKBNuqE9MXY_SLod+iaiCA3Xog@mail.gmail.com>
To: Linked JSON <public-linked-json@w3.org>
Dear all,

We have a use case that would require all three of @value, @type and
@language for a single resource, which is not allowed according to the
specification (eg section 8.3)

We would like to use either plain literals (and hence @value/@language) or
X/HTML in the same space to allow basic styling and linking within the
text.  We want to do this in a way that doesn't involve introspection of
the value to determine whether it's text/plain or text/xml if at all

For example:

  "description": {
    "@value":"<p>Some <b>description</b></p>",
    "@type": "rdf:XMLLiteral",
    "@language" : "en-latn"

Is there any existing best practice for how to accommodate this?



Rob Sanderson
Technology Collaboration Facilitator
Digital Library Systems and Services
Stanford, CA 94305
Received on Wednesday, 13 August 2014 23:32:09 UTC

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