On 23/01/14 10:53, Olivier Rossel wrote:
Let's say you want to retrieve this graph:
:s :p :o

as this JSON-LD:
{"@id": "o", "reverse-p": "s"}

Would it be possible, or is the JSON serialization harcoded to
serialize each resource and only its outgoing properties ?

Are there examples of graph serialization in the JSON-LD spec?

I think the "profile=" feature s what you are after:

http://www.w3.org/TR/json-ld/#iana-considerations

It's a bit of a nuisance that JSON-LD has this additional feature that does not apply to other formats, i.e. it needs JSON-LD custom code over and above dispatch to a writer.

        Andy




On Thu, Jan 23, 2014 at 11:29 AM, Andy Seaborne <[email protected]> wrote:

On 23/01/14 09:26, Olivier Rossel wrote:

Can a SPARQL endpoint return data in JSON-LD format?


It will be able to when JSON-LD is integrated into Jena.  It may not look
nice in all cases though - there's no path for a specialized @context.

There are scaling issues with JSON-LD - the spec mandates certain
algorithms which work on the whole structure - but ATM I believe these will
not be much trouble because the client isn't streaming (it's JSON so you
need to parse the whole object/map) and the client is naturally limited in
what it will ask for.

         Andy





On Wed, Jan 22, 2014 at 10:37 PM, Andy Seaborne <[email protected]> wrote:

  On 22/01/14 20:52, Phillip Rhodes wrote:

  I know it's been discussed before, since I think I was the last one
(or one of the last) to bring it up. :-)

To search the archives, try using Gmane.org.
http://dir.gmane.org/search.php?match=jena

But the short version, as I understand it, is that Jena JSONLD support
is here:  https://github.com/afs/jena-jsonld

I don't actually know enough about the history and the project
internals to know why it's separate or if there are plans to pull it
into main Jena or not, but there is support there and usable.  We use
it in a couple of our projects and it works fine.


Because I haven't moved it into Jena proper yet :-)  You may notice there
was a small amount of activity a few days ago - clearing up prior to
moving
to RIOT.  It's just a small matter of finding the time.  Then it'll will
be
in the main build.

The real work is done by https://github.com/jsonld-
java/jsonld-java(which only depends on other Apache Licensed
dependencies). I was waiting

for jsonld-java to go to v0.3 but I'll move the code in depending on v0.2
and switch when they release 0.3.

          Andy
relatively quick)


   Phil

This message optimized for indexing by NSA PRISM


On Wed, Jan 22, 2014 at 3:41 PM, Samuel Padgett <[email protected]>
wrote:



JSON-LD is now a W3C Recommendation [1]. Has JSON-LD been considered
for
Jena? I was curious if it was in the roadmap or if there are no plans
for
support. It would be nice if JSON-LD were supported natively.

I searched the JIRA issues for Jena and didn't find anything.
(Apologies
if
this has been discussed on the mailing list before... I couldn't find
an
obvious way to search the archives.)

[1] http://www.w3.org/TR/2014/REC-json-ld-20140116/
--
Samuel Padgett | IBM Rational | [email protected]
Eclipse Lyo: Enabling tool integration with OSLC








Reply via email to