Yes, Richard you answered my question.
Here I come up with a single example:
public void now()
{
String sparqlQueryString = "select distinct ?Concept where {[] a
?Concept } LIMIT 10";
Query query = QueryFactory.create(sparqlQueryString);
QueryExecution qexec = QueryExecutionFactory.sparqlService("
http://dbpedia.org/sparql", query);
try {
ResultSet results = qexec.execSelect();
for ( ; results.hasNext() ; )
{
QuerySolution soln = results.nextSolution() ;
String x = soln.get("Concept").toString();
System.out.print(x +"\n");
}
}
finally { qexec.close() ; }
}
Best,
Fred
2009/8/12 Richard Cyganiak <rich...@cyganiak.de>
> Fred,
>
> On 12 Aug 2009, at 14:27, Fred wrote:
>
>> Hi, is there any snorql java api or similar app for quering and
>> browsing dbpedia data?
>>
>
> Not sure if this is what you mean, but the Jena framework [1] includes a
> SPARQL query library called ARQ [2], which includes APIs for querying remote
> SPARQL stores. So you can use it to send SPARQL queries to DBpedia from your
> Java applications.
>
> Best,
> Richard
>
> [1] http://jena.sourceforge.net/
> [2] http://jena.sourceforge.net/ARQ/
> [3] http://jena.sourceforge.net/ARQ/sparql-remote.html
>
>
> Best
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> Dbpedia-discussion@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>
>
>
--
Fred DurĂ£o
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion