Hi Andy,
Our framework has a View layer which users can visualise data based on
ontologies , an orchestration engine which pulls data and amalgamates from
various triple stores.
The view layer generates a query (which is in select format) and the
orchestration engine converts the select to construct query with federation
(for simple stuff it works). As the view layer expects the data to be as RDF
statements rather than resultset, i have been converting select to construct
query using ARC. I feel its better to use an Jena inbuilt function to convert
it to a model.
Yeah will give this a try and see what happens.
Thanks
Kamalraj
> On 6 Feb 2015, at 8:38 pm, Andy Seaborne <[email protected]> wrote:
>
> On 06/02/15 02:32, Kamalraj Jairam wrote:
>> Hello All,
>>
>> How do i convert a sparql resultset to a model ?
>>
>> Is it possible without transforming the spraql select query to a
>> construct query?
>>
>> Thanks
>> Kamalraj
>
> What are you trying to do?
>
> You can convert a ResultSet to a model with ResultSetFormatter.toModel. It's
> really left-over code from the days when SPARQL testing looked like it would
> be model based.
>
> It is encoding the result set, and it's not related to the vocabulary of the
> model queried. Try it out to see the vocabulary used.
>
> Andy
>