The method I mentionned does not rely on any low-level Virtuoso
connection, nor wrapping it in a local Jena model.
It just connects to any SPARQL WebService (also called a SPARQL
endpoint) and sends the query
as an HTTP parameter. It retrieve the result data as XML, and wraps it
into a ResultSet object.
You can then iterate the resultSet.

Please note that if your query is not a SELECT but a CONSTRUCT, the
returned data is not wrapped in a ResultSet object
but in a Model object

2011/12/8 aliki aliki <[email protected]>:
> Thanks for the quick reply. The thing is I cannot connect to the server. If
> I manage to connect, I will use the QueryExecutionFactory, I have already
> downloaded the libraries. The line which we need to focus on is:
>
> VirtGraph set = new VirtGraph
> ("jdbc:virtuoso://localhost:1111/charset=UTF-8/log_enable=2", "dba", "dba");
>
> How should I alter the parameters in order to connect to the dbpedia
> virtuoso server?
>
>> From: [email protected]
>> Date: Thu, 8 Dec 2011 11:45:31 +0100
>> Subject: Re: [Dbpedia-discussion] Jena-Virtuoso
>> To: [email protected]
>> CC: [email protected]
>
>>
>> What about:
>>
>> http://jena.sourceforge.net/ARQ/javadoc/com/hp/hpl/jena/query/QueryExecutionFactory.html#sparqlService%28java.lang.String,%20java.lang.String%29
>>
>> 2011/12/8 aliki aliki <[email protected]>:
>> >  Hi everyone!
>> >
>> > I am trying to retrieve information from dbpedia asking SPARQL queries
>> > via
>> > Jena. So I would like to find a way to connect to the Virtuoso Server
>> > without having to download all the data or install a Virtuoso Server on
>> > my
>> > pc.
>> >
>> > If this is not possible, is there any other way/tool (apart from Jena)
>> > that
>> > would do?
>> >
>> > Thaks a lot!
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Cloud Services Checklist: Pricing and Packaging Optimization
>> > This white paper is intended to serve as a reference, checklist and
>> > point of
>> > discussion for anyone considering optimizing the pricing and packaging
>> > model
>> > of a cloud services business. Read Now!
>> > http://www.accelacomm.com/jaw/sfnl/114/51491232/
>> > _______________________________________________
>> > Dbpedia-discussion mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>> >

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to