You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Tran Thai Binh <th...@gmail.com> on 2011/12/21 15:24:24 UTC
Query results asText
Dear all,
Sorry if this is wrong mail list.
I use Jena and Sparql to query my RDF Model,
when I use
"ResultSetFormatter.out(System.out, results, query);"
the result is show. But nothing happen when I use
"String theResults;
theResults = ResultSetFormatter.asText(results,query);"
Please explane to me.
Thanks in advance.
Binh
--
Trần Thái Bình
GIS and Remote Sensing
thaibinhtran@gmail.com
ttbinh@vast-hcm.ac.vn
Phone: (848) 38247360
mobile:
- Việt Nam -
Re: Query results asText
Posted by Tran Thai Binh <th...@gmail.com>.
Dear Chris,
I think I know the problem. I have used both so the second return nothing.
Thank you very much,
Binh
On Wed, Dec 21, 2011 at 3:39 PM, Chris Dollin
<ch...@epimorphics.com>wrote:
> Binh said:
>
> > Dear all,
> > Sorry if this is wrong mail list.
>
> It's the right list.
>
> > I use Jena and Sparql to query my RDF Model,
> > when I use
> >
> > "ResultSetFormatter.out(System.out, results, query);"
> >
> > the result is show. But nothing happen when I use
> >
> > "String theResults;
> > theResults = ResultSetFormatter.asText(results,query);"
>
> Did you remember to write the string out?
>
> Chris
>
> PS String theResults = ResultSetFormatter.asText(results,query);
>
> --
> "It does not need to take events in their correct order."
> /Hexwood/
>
> Epimorphics Ltd, http://www.epimorphics.com
> Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
> 6PT
> Epimorphics Ltd. is a limited company registered in England (number
> 7016688)
>
--
Trần Thái Bình
GIS and Remote Sensing
thaibinhtran@gmail.com
ttbinh@vast-hcm.ac.vn
Phone: (848) 38247360
mobile:
- Việt Nam -
Re: Query results asText
Posted by Chris Dollin <ch...@epimorphics.com>.
Binh said:
> Dear all,
> Sorry if this is wrong mail list.
It's the right list.
> I use Jena and Sparql to query my RDF Model,
> when I use
>
> "ResultSetFormatter.out(System.out, results, query);"
>
> the result is show. But nothing happen when I use
>
> "String theResults;
> theResults = ResultSetFormatter.asText(results,query);"
Did you remember to write the string out?
Chris
PS String theResults = ResultSetFormatter.asText(results,query);
--
"It does not need to take events in their correct order." /Hexwood/
Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)