Either make own, or use:
Let me know if you need any help with this.
I'd definitely go with https://github.com/lanthaler/JsonLD
This library is based on official spec-tests, so quality should be high.
It has support for composer, so it is trivial to add it to equation.
just to fit actuality Json-ld is from 01-16-2014 a part of W3C.
Welcome http://www.w3.org/TR/json-ld !
I noticed that in EasyRdf composer.json the https://github.com/lanthaler/JsonLD lib is just sugested, and Travis test are disabled.
Other part is Lanthaler lib does not support named graph.
What do you think should be better ?
Both lib are alive.
@serwan do you mean https://github.com/digitalbazaar/php-json-ld ?
I see 2 issues with it:
@lanthaler is there a chance to get named-graphs support in your lib in foreseeable future? :)
@lanthaler https://github.com/lanthaler/JsonLD/blob/master/JsonLD.php line 66/67 has to be remove then ^^
I can't get the @id of the named graph in the the json-ld result string when i "toString" a document with a named graph.
Does anyone work on a JSON-LD parser yet? In my project https://github.com/cKlee/easyM2R I'm currently using ML\JsonLD ntriples serialization to be parsed by EasyRDF (see https://github.com/cKlee/easyM2R/blob/master/MARC2RDF.php#L805). Since EasyRDF already depends on ML\JsonLD for JSON-LD serialization, maybe it should also for the parser. But I'm not sure if the 'ntriples bridge' is a good solution. Something like
JSON-LD Document --> ML\JsonLD parser --> ML\JsonLD Graph --> Then a miracle occurs --> EasyRDF Graph
would be nice. Any ideas?
@cKlee it is in plans. I'll do my best to push the code soon.
Me and @pietercolpaert are also awaiting this feature with great enthusiasm!
@indeyets Any update on this feature?
But still no way to change a Graph from @lanthaler his library to an EasyRdf_Graph?
Gratz on the first release btw ;)
Great stuff @lanthaler! Looking forward when @indeyets finds time to close the deal.
Still no JSON-LD parser in the documentation.
Ohh, thanks! When will it come?
can we close this?
if only missing thing is documentation, then we can't do anything about it (except releasing new version). We have both Parser and Serializer. Bugs can be handled separately.
JSON-LD Parser. closes gh-87
Sorry for beeing "meta late", problem is fixed and sure you were right to close it.