Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add support for JSON-LD #87

Closed
njh opened this Issue · 21 comments

8 participants

@lanthaler

Let me know if you need any help with this.

@indeyets
Collaborator

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.

@serwan

Hi,
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.
http://www.w3.org/TR/json-ld/#named-graphs

What do you think should be better ?

Both lib are alive.

@indeyets
Collaborator

@serwan do you mean https://github.com/digitalbazaar/php-json-ld ?

I see 2 issues with it:

  1. it is not available at packagist. or is it?
  2. it doesn't provide node-centric API similar to what lib by @lanthaler provides (and I find it quite useful)

@lanthaler is there a chance to get named-graphs support in your lib in foreseeable future? :)

@lanthaler
@serwan

@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.

@indeyets
Collaborator
@cKlee

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?

@indeyets
Collaborator

@cKlee it is in plans. I'll do my best to push the code soon.

@coreation

Me and @pietercolpaert are also awaiting this feature with great enthusiasm!

@coreation

@indeyets Any update on this feature?

@lanthaler
@coreation

But still no way to change a Graph from @lanthaler his library to an EasyRdf_Graph?

Gratz on the first release btw ;)

@lanthaler
@coreation

Great stuff @lanthaler! Looking forward when @indeyets finds time to close the deal.

@inf3rno

Still no JSON-LD parser in the documentation.

@njh
Owner
@inf3rno

Ohh, thanks! When will it come?

@pietercolpaert

Any update?

@pietercolpaert pietercolpaert referenced this issue in iRail/hyperRail
Open

text/turtle output #8

@indeyets
Collaborator

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.

@indeyets indeyets closed this in 81c864b
@serwan

Sorry for beeing "meta late", problem is fixed and sure you were right to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.