RE: W3C standardization process

On Thursday, February 13, 2014 8:47 PM, James Langley wrote:
> > So you want to manipulate the JSON representation directly instead of
> > mapping it to domain POJOs, right? In my JSON-LD processor [1] I've
> > implemented a first version of a "node API" as I call it. That's very
> > similar to the FluentBuilder API you talk about. It's in PHP but I'm
> > sure you get the idea:
> > 
> >   // get the default graph from the JSON-LD request doc.
> >   $graph = $request->getGraph();
> > 
> >   $graph->getNode('http://example.com/node1')
> >     ->setType('http://example.com/vocab#SomeClass')
> >     ->setProperty('http://example.com/vocab#propertyA', 'A')
> >     ->removeProperty('http://example.com/vocab#propertyB');
> > 
> >   $serialized = JsonLD::toString($graph->toJsonLd());
> > 
> > Is that more or less what you are looking for?
> 
> Yes, that's the approach we're thinking of taking.

Cool.. So have you decided already whether you'll base it on Hydra? I'm sure
a lot of people on this list would be willing to help (myself included) and
we would learn a lot from it.

Let me know if you have any further questions.



--
Markus Lanthaler
@markuslanthaler

Received on Thursday, 13 February 2014 20:20:21 UTC