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

RE: Starting with Contexts and Schema.org

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Tue, 6 Aug 2013 13:49:25 +0200
To: "'Linked JSON'" <public-linked-json@w3.org>
Message-ID: <000d01ce929b$103862c0$30a92840$@lanthaler@gmx.net>
Hi Vikash,

if you use a prefix such as xsd, you need to declare it.



--
Markus Lanthaler
@markuslanthaler




------------------- Original message -------------------------
From: vikash agrawal [mailto:vikashagrawal1990@gmail.com] 
Sent: Monday, August 05, 2013 7:57 PM
To: Niklas Lindström
Cc: Markus Lanthaler; Linked JSON
Subject: Re: Starting with Contexts and Schema.org

hi Everyone, 

Context Public.json ->https://gist.github.com/ivikash/6041987

Context Event.json ->https://gist.github.com/ivikash/6157882

Context Place.json ->https://gist.github.com/ivikash/6157930

I have one query, If schema.org says that the type is an organisation or say postal address, it be expanded to an IRI, am i right? 

I had a word with taaz, but can I get a slightly better insight at this.

Regards
~Vikash

On Tue, Jul 23, 2013 at 12:35 AM, vikash agrawal <vikashagrawal1990@gmail.com> wrote:
Errors Noted! 
Reading the spec and Rectifying!

On Tue, Jul 23, 2013 at 12:29 AM, vikash agrawal <vikashagrawal1990@gmail.com> wrote:
Hey Nikalas, 

I have tried to understand your statements.

So, I this would be first working Person schema, https://gist.github.com/ivikash/6041987 (Revision 7).

If this looks good, I will file a PR and move to Places and events too :-)

Regards
~Vikash


On Mon, Jul 22, 2013 at 9:24 PM, Niklas Lindström <lindstream@gmail.com> wrote:
Hi Vikash,

Also note that you don't need to add explicit "@id" mappings to the terms since their names can be resolved against the defined "@vocab" value.

Or I should say "should resolve", since there seems to be something strange going on with some of them. For instance, both "presentAddress" and "permanentAddress" are mapped to "http://schema.org/address", "image" is mapped to "http://schema.org/url" and "phoneNumber" to "http://schema.org/telephone" in your context. It seems like a copy-paste error (apparently so if you look at "firstName", "middleName" and "familyName"), and I don't think it is a good idea if it is intentional. You should use the term names as defined in the vocabulary, unless you have some very specific reason otherwise. What is your intention here?

Cheers,
Niklas

On Mon, Jul 22, 2013 at 5:27 PM, vikash agrawal <vikashagrawal1990@gmail.com> wrote:
Thank-You Markus and Dave,



On Mon, Jul 22, 2013 at 8:09 PM, Markus Lanthaler <markus.lanthaler@gmx.net> wrote:
On Monday, July 22, 2013 3:39 PM, vikash agrawal wrote:
> Thank-You Nikalas and Markus,
>
> I am pretty sure, I do have a lot of things to grasp. I
> did refer and read the spec after being advised by Manu
> and I am progressing.
Good


:-)
 

> This is my very initial attempt to the context. And I
> think there might small or big mistakes and glitches.
> Can you please see to this and let me know my mistakes.
>
> https://gist.github.com/ivikash/6041987
You don't need to type-coerce everything to @id. You only do that if the value is a URL. The value of firstName, lastName etc. for sure isn't. So you have to remove the "@type": "@id".


Over IRC, Dave really made me understand things, which I werent able to get in the first shot.

I am writing the person context and share the gist link soon :) 

 
> [Using GMail, and I hope its in ascii]
Nope, it's HTML :-P


Cant help it any more :P. Else I have to use mutt :D
 

Cheers,
Markus


--
Markus Lanthaler
@markuslanthaler
Received on Tuesday, 6 August 2013 11:50:20 UTC

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