good evening,

> On 2018-01-04, at 15:25, Mikael Pesonen <[email protected]> wrote:
> 
> 
> Thanks, got it working now!
> 
> This is not Jena related anymore, but any tip how to create an ordered list 
> in JSON-LD format? CONSTRUCT just serializes triplets in unordered fashion.
> So I would like JSON-LD contain the results in the same order as with SPARQL 
> ORDER BY.

depending on your json-ld encoding, it may have its own ordering rules.

> 
> Mikael
> 
> 
> On 3.1.2018 12:27, Andy Seaborne wrote:
>> JSON-LD is an RDF serialization, and not a SPARQL result set serialization.
>> 
>> Make a CONSTRUCT query.
>> 
>>     Andy
>> 
>> On 03/01/18 10:23, Mikael Pesonen wrote:
>>> 
>>> Hi,
>>> 
>>> I'm making a simple query
>>> 
>>> SELECT * WHERE {
>>>    GRAPH ?g
>>>    {
>>>      <https://.../9f6c495c-1f99-4f0e-b089-2825282f280e> ?p ?o
>>> }
>>>   }';
>>> 
>>> Everything is fine when requesting application/sparql-results+json or 
>>> text/plain, for example.
>>> 
>>> But for application/ld+json I'm getting application/sparql-results+json 
>>> also. What am I doing wrong?
>>> 
>>> Thanks
>>> 
> 
> -- 
> Lingsoft - 30 years of Leading Language Management
> 
> www.lingsoft.fi
> 
> Speech Applications - Language Management - Translation - Reader's and 
> Writer's Tools - Text Tools - E-books and M-books
> 
> Mikael Pesonen
> System Engineer
> 
> e-mail: [email protected]
> Tel. +358 2 279 3300
> 
> Time zone: GMT+2
> 
> Helsinki Office
> Eteläranta 10
> FI-00130 Helsinki
> FINLAND
> 
> Turku Office
> Kauppiaskatu 5 A
> FI-20100 Turku
> FINLAND
> 

Reply via email to