W3C home > Mailing lists > Public > public-schemaorg@w3.org > October 2017

schema.org JSON-LD context file and identifier IRIs

From: Umutcan Simsek <umutcan.simsek@sti2.at>
Date: Fri, 6 Oct 2017 14:23:09 +0200
To: public-schemaorg@w3.org
Message-ID: <3aa71523-52e5-50a8-3637-867dba2d8392@sti2.at>

Maybe I should ask this to the JSON-LD community, but I'll give it a try
here too since it is also schema.org related.

I am trying to convert some schema.org annotations in JSON-LD format to
N-QUADS by using the java implementation of JSON-LD processor.

JSON-LD processor needs to expand the annotation first, which requires
the schema.org context definition.

The "menu" as well as  the "hasMenu" property has @type = @id
definitions, which tells the processor to convert the value to an IRI.
However, these properties can also have Text values, so if the
annotation has just a plain text value for these properties, converting
them to IRIs would be wrong.

 So far I have been modifying the context file that I cached so it
produces string representation no matter what the value is.  Is there a
way to solve this problem?

Many thanks


Umutcan Simsek, MSc.
STI Innsbruck
Deparment of Computer Science
University of Innsbruck
Tel: +43 512 507 53723
Skype: umutcansimsek
Received on Friday, 6 October 2017 12:23:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:12:37 UTC