W3C home > Mailing lists > Public > public-linked-json@w3.org > December 2011

Re: My Java implementation of JSON-LD

From: Dave Longley <dlongley@digitalbazaar.com>
Date: Mon, 19 Dec 2011 09:13:46 -0500
Message-ID: <4EEF469A.6000007@digitalbazaar.com>
To: public-linked-json@w3.org
On 12/18/2011 06:18 PM, Gregg Kellogg wrote:
> On Dec 18, 2011, at 9:07 AM, Dave Longley wrote:
>
>> Thanks heaps, Tristan!
>>
>> If I weren't so busy (and perhaps loathed Java a little less :P) I
>> wouldn't mind helping out a bit. But it's probably better that I don't
>> anyway since the other implementations are heavily influenced by my
>> understanding of the spec. It's better if a wider range of people work
>> on various implementations.
>>
>> I would recommend trying to get the tests in the jsonld.js repo running;
>> they'll help cover the edge cases and ensure that your normalization
>> algorithm is correct (hopefully). There have been a few important
>> optimizations to the normalization algorithm since you ported your code
>> (I took a quick look), but they shouldn't change the output. The
>> optimizations just avoid some extra sorting that is unnecessary.
>>
>> At some point we'll be moving the tests over to the json-ld.org repo,
>> where they should be.
> Yes, we need to move those tests over to the json-ld.org site. Manu and I talked about it, but I haven't gotten around to it yet. I think we'd like to be able to both download and run the tests locally, as with other RDF test suites, and to have a site that will poke a responder using a version of the JSON-LD API, similar to how the RDFa crazyivan test suite works.
>
> In any case, it will need some update based on recent changes.

Yes, I'm in the middle of updating some of the various implementations 
with the latest syntax changes. The jsonld.js repo is up-to-date 
(including the tests), but I have to finish the other language 
implementations before I push everything. Then we can move the test 
suite over.

> Gregg
>
>> ta!
>> -Dave
>>
>> On 12/16/2011 10:05 AM, Tristan King wrote:
>>> Hi Guys,
>>>
>>> I've been working on translating the jsonld.js and PyLD code to java.
>>>
>>> It can be found here: https://github.com/tristan/jsonld-java
>>>
>>> It's not complete yet, but as I'm going on holidays for the next month I thought it best to just get it out there now incase anyone else is interested (The README has a list of notes and todos). If anyone else wants to work on this I'll have no trouble with accepting pull requests or adding other Collaborators (message me on github if you're interested).
>>>
>>> I hope some people find this useful.
>>> Thanks
>>> -Tristan
>>>
>>
>> -- 
>> Dave Longley
>> CTO
>> Digital Bazaar, Inc.
>>
>>


-- 
Dave Longley
CTO
Digital Bazaar, Inc.
Received on Monday, 19 December 2011 14:16:48 UTC

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