Thank you very much both of you! You were very helpful!
> Subject: Re: [Dbpedia-discussion] Jena-Virtuoso
> From: hwilli...@openlinksw.com
> Date: Thu, 8 Dec 2011 11:38:28 +0000
> CC: aliki_...@hotmail.com; dbpedia-discussion@lists.sourceforge.net
> To: olivier.ros...@gmail.com
>
> Hi Aliki,
>
> As Olivier indicates the public DBpedia SPARQL endpoint is only accessible
> via HTTP (port 80) so you have to use the jena “sparqlService” method to
> access it with something like:
>
> Query query = QueryFactory.create(sq);
> QueryExecution qexec =
> QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query);
>
> ResultSet results = qexec.execSelect();
> ResultSetFormatter.out(System.out, results, query);
> qexec.close() ;
>
> The current method you are attempting to use for access the server ie
> VirtGraph("jdbc:virtuoso://localhost:1111/charset=UTF-8/log_enable=2", "dba",
> "dba”); is using the Virtuoso Jena provider which requires access to the
> Virtuoso SQL port 1111 which is not publicly accessible on the DBpedia SPARQL
> endpoint.
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc. // http://www.openlinksw.com/
> 10 Burlington Mall Road, Suite 265, Burlington MA 01803
> Weblog -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter -- http://twitter.com/OpenLink
> Google+ -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
>
> On 8 Dec 2011, at 11:03, Olivier Rossel wrote:
>
> > 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 <aliki_...@hotmail.com>:
> >> 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: olivier.ros...@gmail.com
> >>> Date: Thu, 8 Dec 2011 11:45:31 +0100
> >>> Subject: Re: [Dbpedia-discussion] Jena-Virtuoso
> >>> To: aliki_...@hotmail.com
> >>> CC: dbpedia-discussion@lists.sourceforge.net
> >>
> >>>
> >>> 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 <aliki_...@hotmail.com>:
> >>>> 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
> >>>> Dbpedia-discussion@lists.sourceforge.net
> >>>> 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
> > Dbpedia-discussion@lists.sourceforge.net
> > 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
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion