W3C home > Mailing lists > Public > public-linked-json@w3.org > April 2012

Re: Wikidata

From: Gregg Kellogg <gregg@kellogg-assoc.com>
Date: Thu, 5 Apr 2012 22:59:31 -0400
To: Markus Lanthaler <markus.lanthaler@gmx.net>
CC: Gregg Kellogg <gregg@kellogg-assoc.com>, Niklas Lindström <lindstream@gmail.com>, Linked JSON <public-linked-json@w3.org>
Message-ID: <15CE9A05-9876-4BE8-86AA-29CE7464A299@greggkellogg.net>
On Apr 5, 2012, at 7:13 PM, Markus Lanthaler wrote:

> What about having different property names as follows?
> 
> {
>  "@id" : "q7",
>  "title_en": "Georgia_(country)",
>  "title_de": "Georgien"
> }
> 
> The selector path can be easily generated by a string concatenation and the
> result would be much compacter. 

That's a possibility, but I think they're going to want the "." notation. Also, as I mentioned, they have other things to associate with different languages.

I need to study their data model more [1]. The JSON version is just for a small example, and we need to figure out something more comprehensive.

They're also interested in named graph support for discribing information about their resources. The example they used in IRC was the following:

According to the 1990 CIA fact book, the population of Vatican City in 1970 was 500 people. There's a fact

:vatican :population 500; :population_date "1970"^xsd:gYear . -- using dbpedia vocab
 
And then there's the source of that data, which is an assertion on the graph itself. In TriG it might be something like:

<u> { :vatican :population 500; :population_date "1970"^xsd:gYear . }
{ <u> :source "CIA Fact Book"; :edition "1990" }

Gregg

[1] https://meta.wikimedia.org/wiki/Wikidata/Data_model
[2] http://meta.wikimedia.org/wiki/Wikidata/Data_model_in_JSON

> --
> Markus Lanthaler
> @markuslanthaler
> 
> 
> 
> 
>> -----Original Message-----
>> From: Gregg Kellogg [mailto:gregg@kellogg-assoc.com]
>> Sent: Friday, April 06, 2012 6:21 AM
>> To: Niklas Lindström
>> Cc: Markus Lanthaler; Linked JSON
>> Subject: Re: Wikidata
>> 
>> This actually might make sense. I suggested the following markup, but
>> find it doesn't really work:
>> 
>> {
>>  "@id" : "q7",
>>  "titles" : {
>>    "en" : {
>>      "@context": {"@language" : "en"},
>>      "value" : "Georgia_(country)"
>>    },
>>    "de" : {
>>      "@context": {"@language" : "de"},
>>      "value" : "Georgien"
>>    }
>>  }
>> }
>> 
>> It seems that our processing rules don't provide for @context within a
>> value object.
>> 
>> If we had something like you suggest, with @container: @langmap, this
>> would expand to the following:
>> 
>> {
>>  "@id": "q7",
>>  "titles": [
>>    {"@value": "Georgia_(country)", "@language": "en"},
>>    {"@value": "Georgien", "@language": "de"}
>>  ]
>> }
>> 
>> It's important for them to have a simple selector path, such as
>> titles.en.value.
>> 
>> There's quite a bit of interest in using JSON-LD, if it can work. This
>> would allow them to use a single representation, rather than one for
>> RDF and another for JSON. Also, it seems that named graphs may be an
>> important use case for them.
>> 
>> It might also be interesting to think if framing could come in handy,
>> if there was a way to frame the data for "@language": "en", say, so
>> that a developer could get the representation they want to work with.
>> 
>> Gregg
>> 
>> On Apr 5, 2012, at 10:51 AM, Niklas Lindström wrote:
>> 
>>> Great! I also stumbled across it, and noted the use of language as
>>> keys. We've discussed that previously, with possible support by using
>>> a special "@container": "@langmap" directive for a property. In case
>>> they're convinced that this form is valuable for consumers, I think
>> we
>>> should revisit it.
>>> 
>>> In any case, it'll be interesting and great to see their usage align
>>> and hopefully adopt JSON-LD!
>>> 
>>> Best regards,
>>> Niklas
>>> 
>>> 
>>> On Thu, Apr 5, 2012 at 4:41 PM, Gregg Kellogg <gregg@kellogg-
>> assoc.com> wrote:
>>>> I'll do that. As it happens, I'm talking with Wikia this month
>> anyway, so they're somewhat related.
>>>> 
>>>> Gregg
>>>> 
>>>> On Apr 5, 2012, at 7:31 AM, Markus Lanthaler wrote:
>>>> 
>>>>> Hey guys,
>>>>> 
>>>>> I just stumbled across this:
>>>>> http://meta.wikimedia.org/wiki/Wikidata/Data_model_in_JSON
>>>>> 
>>>>> Looks quite familiar :-) Unfortunately I currently don't have the
>> time to
>>>>> follow that up and introduce them JSON-LD, maybe someone of you has
>> a bit of
>>>>> time to do that.
>>>>> 
>>>>> 
>>>>> Cheers,
>>>>> Markus
>>>>> 
>>>>> 
>>>>> --
>>>>> Markus Lanthaler
>>>>> @markuslanthaler
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
> 
Received on Friday, 6 April 2012 03:00:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:36 GMT