Hi Hugh,

Please point us the link once you update it.

Thank you.

On Thu, Sep 4, 2008 at 8:25 PM, Hugh Williams <[EMAIL PROTECTED]>wrote:

> Hi Jiusheng,
> Their appears to be a typo in the online documentation which references the
> "getRdfObject" method when you should just use the normal Java "getObject"
> method to retrieve the data and then use the "instanceof" method to
> determine its type. I shall get the typo corrected, apologies for the
> confusion ...
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software
> Web: http://www.openlinksw.com
> Support: http://support.openlinksw.com
> Forums: http://boards.openlinksw.com/support
>
>
>
> On 4 Sep 2008, at 10:33, jiusheng chen wrote:
>
> Hi Hugh,
>
> Seems there is no getRdfObject method in virtjdbc3.jar, could you help
> check it?
>
> Opensource edition 5.0.8 was used.
>
>
> On Thu, Sep 4, 2008 at 5:22 PM, Jiusheng Chen <[EMAIL PROTECTED]>wrote:
>
>>
>>
>> Thanks,
>>
>> JCHEN
>>
>>
>> *From:* Gang Wang
>> *Sent:* Thursday, September 04, 2008 4:45 PM
>> *To:* Jiusheng Chen
>> *Subject:* The problem about API of virtuoso JDBC3.0
>>
>>
>> Hi jiusheng,
>>
>>
>> The problem about API of virtuoso JDBC3.0:
>>
>> I want to return RDF data, but the API of virtuoso JDBC3.0 may have some
>> error:
>>
>>
>> *[Our code]*:
>>
>> ………..
>>
>> *import  virtuoso.jdbc3.*;*
>>
>> …………
>>
>> * *
>>
>> *boolean* more = stmt.execute(sparql);
>>
>>            ResultSetMetaData data = stmt.getResultSet().getMetaData();
>>
>>
>>            *while*(more)
>>
>>            {
>>
>>                rs = stmt.getResultSet();
>>
>>                *while*(rs.next())
>>
>>                {
>>
>>                    *for*(*int* i = 1;i <= data.getColumnCount();i++)
>>
>>                    {
>>
>> 70                   String s = rs.getString(i);
>>
>> 71                  System.*out*.println(s);
>>
>> 72                      Object o =
>> ((VirtuosoResultSet)rs).getRdfObject(i);
>>
>> ……
>>
>> }
>>
>> }
>>
>>      …………..
>>
>>
>> *[compiler err information]*:
>>
>>
>> testDB.java:72: cannot find symbol
>>
>> symbol  : method getRdfObject(int)
>>
>> location: class virtuoso.jdbc3.VirtuosoResultSet
>>
>>                                        Object o =
>> ((VirtuosoResultSet)rs).getRdfObject(i);
>>
>>                                                                          ^
>>
>> 1 error
>>
>>
>>
>> *[Our question]:*
>>
>> * *
>>
>> * "virtuoso.jdbc3.*" has imported successfully, why can't find
>> getRdfObject(int) ;*
>>
>>
>> Thanks,
>>
>> Gang Wang
>>
>>
>
>
>
> --
> Thanks,
> Chen Jiusheng
>
>
>


-- 
Thanks,
Chen Jiusheng
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to