I may have time to test if the change in this pull request [1] could create 
such response. Feel free to comment there should you have any suggestion, or if 
you could help testing it.

Cheers
Bruno


[1] https://github.com/apache/jena/pull/114



________________________________
From: Laura Morales <[email protected]>
To: jena-users-ml <[email protected]> 
Sent: Monday, 8 May 2017 11:40 PM
Subject: Return nested JSON results



Is there any way to return nested results in JSON from a query? For example 
something like this



{

    "<person-1>": {

        "ex:type":   "ex:Book",

        "ex:title":  "Macbeth",

        "ex:Author": {

            "ex:name": "William Shakespeare"

            ...

        },

        "ex:Characters": [

            { "ex:name": "Duncan" },

            { "ex:name": "Macbeth" },

            { "ex:name": "Macduff" },

            ...

        ]

    }


    "<person-2>": {

        ...

    }

}

Reply via email to