Hi!

Sorry if this question has been already answered. Based on a previous query
to this list ( http://goo.gl/kfKMqP ) now I have a small problem.

I have the same query and the following code (see query and code here:
http://pastebin.com/16B6MPmz ).

My problem is that, if I execute this query manually against the endpoint
(see: http://goo.gl/RVWuSi ) I can get correctly the desired result (a
datatype). However, doing this by code, I got the QuerySolution object
(which contains the variable name (dt) and the datatype (xml:string)), but
I can't get the datatype from the QuerySolution object.

If I try calling getResource(variable) method, it returns null. If I do the
same with the getLiteral(variable) or get(variable) to get a RDFNode,
always it returns a null value. Now, I'm getting the value parsing the
toString() value of the QuerySolution object, but I'm wondering if it is an
easier way to do that, or maybe I'm not using the correct classes/methods.

Thanks!

-- 
Dr. Alejandro Rodríguez González - PhD

Bioinformatics at Centre for Plant Biotechnology and Genomics UPM-INIA
Polytechnic University of Madrid
http://www.alejandrorg.com
Phone: +34 914524900 . Ext: 25550


*Once the game is over, the king and the pawn go back in the same box. -
Italian proverb*

Reply via email to