(This page is still under construction.)


Some help (such as sample SPARQL queries) can be found on answers.semanticweb.com and/or Stack Overflow. The most recent 10 posts for each site should be seen in the Feeds section, lower down on this page. Full searches are linked here --


If the information you need cannot be found there, you can:

  1. create a new post on one of the Overflow sites and use the tag "dbpedia"
  2. check the DBpedia support page .

Feeds

(Still not displayed correctly, we are working on aggregating the feed)

Feed Title: answers.semanticweb.com (last 10 items)

How to avoid repeated company names and group them as a one category in sparql?

I have following query link text , you can find each company name for example amazon web service repeated several times regarding to its locations or its product. I have tried different solution with group in order to avoid of all these repeated row but i couldn't get reasonable result. I would like to have only one row amazon web service where have all the information only in one row. therefore if there is several location then have array of location also for product name the same. If there is any help i will be appreciated. This is my current query:

 select  ?homepage ?abstract ?product ?location ?thumbnail   (group_concat(?company_name;separator=",") as ?company_name) (group_concat(?productLabel ;separator=",") as ?productLabel)  (group_concat(?locationLabel ;separator=",") as ?locationLabel) 
    where {
        ?company dcterms:subject category:Cloud_computing_providers.

        ?company rdfs:label ?company_name.
        ?company foaf:homepage ?homepage.
        ?company dbpedia-owl:abstract ?abstract.
    Optional {
        ?company dbpedia-owl:product ?product.
        ?product rdfs:label ?productLabel .
        FILTER (langMatches(lang(?productLabel),"en")) 
      }
    Optional {
        ?company dbpedia-owl:location ?location.
        ?location rdfs:label ?locationLabel .

        FILTER (langMatches(lang(?locationLabel),"en")) 
    }  
     Optional {
            ?company dbpedia-owl:thumbnail ?thumbnail.
              }

    FILTER (langMatches(lang(?abstract),"en"))

    }
    GROUP BY  ?homepage ?abstract ?product ?location ?thumbnail

How to extract final labels with sparql from dbpedia

I have following query for sparql which give me name, location, product ,abstract,.. of different company. I need only to extract final label. I mean regarding to location i have a link http://dbpedia.org/resource/California where i am not interested in that. I need only final part in my answer "california" .Is there any help to tell me how i should change my query in order to get only value for all this properties not link.

select distinct *
where {
    ?company dcterms:subject category:Cloud_computing_providers.
    ?company foaf:name ?name.
    ?company foaf:homepage ?homepage.
    ?company dbpedia-owl:abstract ?abstract.
    Optional{?company dbpedia-owl:product ?product.}
    Optional{?company dbpedia-owl:location ?location.}
    Optional{?company dbpedia-owl:thumbnail ?thumbnail.}
     FILTER (langMatches(lang(?abstract),"en"))  
}

[SOLVED] wikiPageUsesTemplate attribute in 2014 DBpedia dumps.

Hi,

I was unable (probably my own inability) to find, which file contains the 'wikiPageUsesTemplate' attribute in the newest (2014) release of DBpedia dumps. For example:

 http://dbpedia.org/resource/!PAUS3 http://dbpedia.org/property/wikiPageUsesTemplate http:dbpedia.org/resource/Template:Persondata

Thanx!

EDIT: solved, by using mapping-based types.

DBpedia entities, classes and ontology

Hi,

I'm trying to figure out how DBpedia entities are classified considering only the its ontology. Typically, an entity E is classified with N classes that belong to the same branch in the ontology hierarchy. For instance the entity http://dbpedia.org/resource/Galileo_Galilei is classified using owl:Thing, Person, Scientist that are connected by rdfs:subClassOf in the same branch. owl:Thing <- Person <- Scientist. What if Galileo has also the class Painter? It is possible to have this kind of situation? How can i check it?

This answer was similar but takes into consideration also other ontologies such as YAGO, schema.org, etc... while here I'm considering only the DBpedia Ontology.

Thank you

Entity linking database relation model (Based on dbpedia)

I am trying to come up with a model for a knowledge database to solve the problem of entity linking. The knowledge database is composed of the following tables. What do you think of this design? Is there something missing or any suggestion? Do you agree with the terminologies


  • Entity: Uniquely identifiable thing or object. It has the following attributes: ID, Name, Type {Person, Organization, Place}, Title, Document {wiki page associated with the entity}

  • Variations: Name variations of the entity {different languages} that refer to the same entity. An entity can have 1 to many variations. A Variation can refer to 1 or many entities.Vladimir putin #SameAs enter image description here

  • Co-reference: Different names that refer to the same entity Michael Jordan #wikiPageRedirects

enter image description here

  • Relations: Relations between entities in the knowledge database. An entity can have 1 to many relations. A relation can refer to 1 or many entities. enter image description here

enter image description here

How the pass the output of one sparql query as a input to another sparql query.

Query1:

 prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    prefix dbpedia-owl: <http://dbpedia.org/ontology/>
     SELECT  *WHERE
        {   
        { 
      select distinct ?film where  {
      ?film a dbpedia-owl:Film .
      ?film rdfs:label ?label .
      filter regex( str(?label), "Lagaan", "i")
      }
      limit 10
   }

Query2:

PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
        select ?similar (count(?p) as ?similarity) where { 
          values ?movie { <http://dbpedia.org/resource/Lagaan> }
          ?similar ?p ?o ; a dbpedia-owl:Film .
          ?movie   ?p ?o .
        }
        group by ?similar ?movie
        having count(?p) > 35
        order by desc(?similarity)

So what i am trying to do is get the dbpedia movie link using the movie name in the first query and pass that link in the second query to get the movies similar to this movie.For e.g Lagaan.Now instead of passing the link manually in the second query is there a way to combine the two queries and ouput of first query is passed as input to the second query.i.e:the link of the movie lagaan.

Getting an exception while executing the SPARQL Query

Hi All,

I am very new to this language. I am trying to executing a SPARQL query and I observed a weird behavior. Here is the example:

SELECT (Count (DISTINCT ?Name) AS ?result) WHERE 
{ 
  ?x foaf:givenName ?FirstName;
  foaf:surname ?LastName;
  rdfs:label ?Name;
  dbpedia-owl:birthDate ?dob;
  dbpedia-owl:abstract ?abstract;
  dbpprop:shortDescription ?sh.
  FILTER(LANGMATCHES(LANG(?Name), "en"))
}

Here are the problems:

  1. I executed this query multiple times and each time I got different results (the count). I don't know why I am getting this kind of weird behavior...???
  2. I added another FILTER to the aforementioned query and I am getting the below exception.

Exception: Virtuoso 42000 Error The estimated execution time 120 (sec) exceeds the limit of 120 (sec).

I don't know how to overcome these issues. Can some one spread the light on these issues...???

Thanks & Regards, Amar

DBPedia resource - timestamp

Hi,

Is there currently any way to get a timestamp about a DBPedia resource as http://dbpedia.org/resource/Europe

The goal would be, in a scenario where a local copy of a resource is needed, to detect that a newer version has been published and then update the local copy.

It seems that the http-header "last-modified" is empty.

Or could we use the http-header "expires" data, but this doesn't seem to really reflect that the RDF data has been updated, does it ?

I guess there isn't a VoID description available for those linked data accessed from their URL ?

Thank you for any pointer
Fabian

Sparql query on Dbpedia with different languages

I have a wiki page and from the infobox I want to retrieve some specific informations from dbpedia. With respect to dbpedia infobox_properties_definitions available online I'm able to achieve my goal but only under "en" language. An example: the following query works fine ("images shield" comes directly from the infobox page of Pergine_Valsugana ):

select ?value where {
?propName rdfs:label "image shield"@en .
dbpedia:Pergine_Valsugana ?propName ?value
}

but if I try the same for "it" wikipedia page in which "image_shield" is replaced with "Stemma" I dont get any result (I should have one because downloading the infobox_properties_en_uris_it.nt from dbpedia the triple I'm looking for is present and "Stemma" definition as well in infobox_property_definitions_en_uris_it.nt) Here is the query with no result:

select ?value where { 
?propName rdfs:label "Stemma"@it .
dbpedia:Pergine_Valsugana ?propName ?value
}

Thanks

DBpedia Statistics without SPARQL

Hi everyone, I'm trying to make some statistics on the DBpedia Dataset. The first approach I used was making SPARQL queries. It turns out as explained in this previous discussion that Virtuoso is bugged and it is not possible to retrieve the desired numbers. So, in order to overcome the problem I dowloaded DBpedia as Tables for querying the data in a way different from SPARQL.

I want to retrieve which are the numbers of triples that connnect each pair of classes in the Dbpedia ontology. Since the SPARQL approach failed which tools can I use? What do you suggest? MongoDB is a good choice for dealing with this kind of data? What about Neo4j? Is there other solutions? is this the wrong approach?


Feed Title: StackOverflow (last 10 items)

Get dbpedia link of entity using stanford NER

I am trying to find entities from text using stanford NER. It is working fine so far. Now I want to find the dbpedia link of the entities. I have seen it is available in alchemy API. Is it possible to find the dbpedia links of entities using stanford NER?

Please, can someone provide me all language tags available in dbpedia like @en @fr @de?

the title says all of my question... i searched in google but didnt find any list... ie i tried @HE or @YI for hebrew without success.

here is my working arraylist of language in xml array

<!-- String Array Languages-->
    <string-array name="array_language">
        <item>EN</item>
        <item>DE</item>
        <item>FR</item>
        <item>ES</item>
        <item>PT</item>
        <item>IT</item>
        <item>NL</item>
        <item>PL</item>
        <item>JA</item>
        <item>ZH</item>
        <item>RU</item>
        <item>AR</item>
    </string-array>

Jena sparql (Dbpedia) query OPTIONAL filter gives no results but (http://dbpedia.org/snorql/) same query works

hello ive this query in this site working http://dbpedia.org/snorql/

   PREFIX ontology: <http://dbpedia.org/ontology/>

SELECT DISTINCT ?author ?name ?wiki  ?desc ?thumb WHERE {
?author a ontology:Book;
rdfs:label ?name;
ontology:wikiPageID ?wiki;
ontology:abstract ?desc.
OPTIONAL {?author <http://dbpedia.org/ontology/thumbnail> ?thumb }.
FILTER (lang(?name) = 'en')
FILTER (regex(?name,  "lo") || regex(?desc, "lo"))
FILTER (lang(?desc) = 'en').
}ORDER BY ?name LIMIT 100

but in my jena queryFactory java class it only works if i remove Optional filter for thumbnail at this line :

OPTIONAL {?author <http://dbpedia.org/ontology/thumbnail> ?thumb }.

here is my jena java method that works :

private String authorQuery(String entity, String keyWord, String language) {

        return addPrefix("rdfs: <http://www.w3.org/2000/01/rdf-schema#>") +
                addPrefix("rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>") +
                addPrefix("dbpprop: <http://dbpedia.org/property/>") +
                addPrefix("ontology: <http://dbpedia.org/ontology/>") +

                addQuery("SELECT DISTINCT ?author ?name ?wiki  ?desc ?thumb WHERE {\n" +
                        "?author a ontology:" + entity + ";\n" +
                        "rdfs:label ?name;\n" +
                        "ontology:wikiPageID ?wiki;\n" +
                        "ontology:abstract ?desc;\n" +
                        "<http://dbpedia.org/ontology/thumbnail> ?thumb.\n" +
                        "FILTER (lang(?name) = '" + language + "') " +
                        "FILTER (regex(?name,  \"" + keyWord + "\") || regex(?desc,  \"" + keyWord + "\"))\n" +
                        " FILTER (lang(?desc) = '" + language + "')." +
                        "}\n" +
                        "ORDER BY ?name\n" +
                        "LIMIT 40000");
    }

but as soon as i add optionnal keyword in this line :

"<http://dbpedia.org/ontology/thumbnail> ?thumb.\n" +

No result are returned, can someone tell me why? :(

PS : it work well without OPTIONAL FILTER

Edit : whole DbpediaQuery class

public class DbPediaQuery {
    //array of authors
    private DbPediaQuery() {
    }

    public static DbPediaQuery createDbPediaQuery() {
        return new DbPediaQuery();
    }

    public LinkedList<Entity> queryAuthor(String entity, String keyWord, String language) {
        LinkedList<Entity> temp = new LinkedList<>();
        Query query = QueryFactory.create(authorQuery(entity, keyWord, language));

        QueryExecution qexec = QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query);
        try {
            temp.addAll(collectAuthors(qexec.execSelect()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return temp;
    }

    private String authorQuery(String entity, String keyWord, String language) {

        return addPrefix("rdfs: <http://www.w3.org/2000/01/rdf-schema#>") +
                addPrefix("rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>") +
                addPrefix("dbpprop: <http://dbpedia.org/property/>") +
                addPrefix("ontology: <http://dbpedia.org/ontology/>") +

                addQuery("SELECT DISTINCT ?author ?name ?wiki  ?desc ?thumb WHERE {\n" +
                        "?author a ontology:" + entity + ";\n" +
                        "rdfs:label ?name;\n" +
                        "ontology:wikiPageID ?wiki;\n" +
                        "ontology:abstract ?desc;\n" +
                        "<http://dbpedia.org/ontology/thumbnail> ?thumb.\n" +
                        "FILTER (lang(?name) = '" + language + "') " +
                        "FILTER (regex(?name,  \"" + keyWord + "\") || regex(?desc,  \"" + keyWord + "\"))\n" +
                        " FILTER (lang(?desc) = '" + language + "')." +
                        "}\n" +
                        "ORDER BY ?name\n" +
                        "LIMIT 40000");
    }

    private LinkedList<Entity> collectAuthors(ResultSet results) {
        LinkedList<Entity> temp = new LinkedList<>();
        while (results.hasNext()) {
            Entity a = new Entity();
            QuerySolution row = results.next();
            String fullName = row.get("name").toString().substring(0, row.get("name").toString().indexOf("@"));
            String biography = row.get("desc").toString().substring(0, row.get("desc").toString().indexOf("@"));
            a.setTitle(fullName);
            a.setWikiID(Integer.parseInt(row.get("wiki").toString().substring(0, row.get("wiki").toString().indexOf("^"))));
            if (!row.get("thumb").toString().isEmpty())
                a.setPictureURL(row.get("thumb").toString());
            else
                a.setPictureURL("http://www.google.fr/imgres?imgurl=http%3A%2F%2Fwww.elated.com%2Fres%2FImage%2Farticles%2Fmanagement%2Fapache%2Fmaking-a-custom-error-page%2Fapache_404_default.gif&imgrefurl=https%3A%2F%2Fgithub.com%2Fjdorn%2Fphp-reports%2Fissues%2F43&h=241&w=400&tbnid=KQI5AbkkVp3-uM%3A&zoom=1&docid=6Bd7CTaQ291_UM&ei=5AU0VceoI87WPYOvgCg&tbm=isch&iact=rc&uact=3&dur=3255&page=1&start=0&ndsp=20&ved=0CDYQrQMwBw");
            a.setBiography(biography);
            temp.add(a);
            System.out.println("FAAT" + a.getTitle());
        }
        return temp;
    }

    private String addPrefix(String prefix) { return "PREFIX " + prefix + "\n"; }

    private String addQuery(String query) { return query; }
}

DBPedia query to extract all attributes from all the smartphones present in dbpedia

Is it possible to make a query to extract all the attributes from all the smartphones present in DBPedia?

Finding all pages containing images in Wikimedia category via API

Im currently trying to find all the pages where images/media from a particular category are being used on wikimedia commons.

Using the api, I can list all the images with no problem, but im struggling to make the query add in all the pages the items are used.

here is an example category with only two media images http://commons.wikimedia.org/wiki/Category:Automobiles

here is the api call I am using

http://commons.wikimedia.org/w/api.php?action=query&prop=images&format=json&generator=categorymembers&gcmtitle=Category%3AAutomobiles&gcmprop=title&gcmnamespace=6&gcmlimit=200&gcmsort=sortkey

The long term aim is to find all the pages the images from our collections appear on and then get all the tags from those pages about the images. We can then use this to enhance our archive of information about those images and hopefully used linked data to find relevant images we may not know about from dbpedia.

I might have to do two queiries, first get the images then request info about each page, but I was hoping to do it all in one call.

Query DBPedia on "is [property] of" [duplicate]

I want to obtain a list of "is [property] of" items.

For example, Barack Obama on DBPedia has both "successor" as property and "is successor of" properties (with different successors!).

The first I can get with the following SPARQL query:

PREFIX ont: <http://dbpedia.org/ontology/>
PREFIX obama: <http://dbpedia.org/resource/Barack_Obama>
SELECT ?successor
WHERE{  
    obama: ont:successor ?successor
}  

How, can I get the list of items that satisfy "is successor of" criteria?

Connecting to DBpedia endpoint behind a Proxy gives 407 error?

i am trying to connect to DBpedia to run a sparql query using apache jena. I am behind a proxy server, problem is i am getting a error with my code when connecting using apache jena but i can make a connection using direct url. This code is working.

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URL;
import java.net.URLConnection;

/**
 *
 * @author user
 */
public class NewClass {
     public static void main(String[] args) throws Exception {
         System.setProperty("http.proxyHost", "10.25.0.42");
    System.setProperty("http.proxyPort", "3128");
     Authenticator.setDefault(new Authenticator()
    {
    protected PasswordAuthentication getPasswordAuthentication()
    {
    return new PasswordAuthentication("asiddh-me-13","*****".toCharArray());
    }
    });
        URL oracle = new URL("http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=select++%3Fx+%3Fy+%3Fc+%3Fp%0D%0Awhere%7B%0D%0A%3Fx+dbpedia-owl%3AwikiPageDisambiguates+dbpedia%3ASOAP%3B%0D%0A+dbpedia-owl%3AwikiPageDisambiguates+%3Fy.%0D%0A%3Fy+dbpedia-owl%3Aabstract+%3Fc.%0D%0A%3Fy+dbpedia-owl%3Athumbnail+%3Fp.%0D%0Afilter%28langmatches%28lang%28%3Fc%29%2C%22en%22%29%29%0D%0A%7D&format=text%2Fhtml&timeout=30000&debug=on");
        URLConnection yc = oracle.openConnection();
        BufferedReader in = new BufferedReader(new InputStreamReader(
                                    yc.getInputStream()));
        String inputLine;
        while ((inputLine = in.readLine()) != null) 
            System.out.println(inputLine);
        in.close();
    }
}

But when i try to connect using Jena api it's giving me Error.

import com.hp.hpl.jena.query.Query;
import com.hp.hpl.jena.query.QueryExecution;
import com.hp.hpl.jena.query.QueryExecutionFactory;
import com.hp.hpl.jena.query.QueryFactory;
import com.hp.hpl.jena.query.QuerySolution;
import com.hp.hpl.jena.query.ResultSet;
import java.net.Authenticator;
import java.net.PasswordAuthentication;


public class Sparqldbpedia {
    public static void main(String[] args) {


System.setProperty("http.proxyHost", "10.25.0.42");
System.setProperty("http.proxyPort", "3128");
 Authenticator.setDefault(new Authenticator()
{
protected PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication("asiddh-me-13","****".toCharArray());
}
});


 String keyword="";
 keyword="tank";




 String sparqlQueryString = "PREFIX p: <http://dbpedia.org/property/>"+
"PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>"+
"PREFIX dbpedia: <http://dbpedia.org/resource/>"+
"PREFIX category: <http://dbpedia.org/resource/Category:>"+
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>"+
                "select  ?x ?y ?c ?p\n" +
"where{\n" +
"?x dbpedia-owl:wikiPageDisambiguates dbpedia:"+keyword+ ";\n" +
" dbpedia-owl:wikiPageDisambiguates ?y.\n" +
"?y dbpedia-owl:abstract ?c.\n" +
"?y dbpedia-owl:thumbnail ?p.\n" +
"filter(langmatches(lang(?c),\"en\"))\n" +
"}";
        Query query = QueryFactory.create(sparqlQueryString);
    QueryExecution qexec = QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query);

    System.out.println("try block");
    try {
        ResultSet results = qexec.execSelect();
        for ( ; results.hasNext() ; )
    {
        QuerySolution soln = results.nextSolution() ;
        String x = soln.get("?x").toString();
        String y = soln.get("?y").toString();
        String c = soln.get("?c").toString();
        String p = soln.get("?p").toString();

        System.out.print(x +"\t"+y+"\t"+c+"\t"+p+"\n");
    }

    }catch(Exception e){System.out.println("catch error"+e.getMessage());}
    finally { qexec.close() ; }




}

}

Error is :

HTTP 407 error making the query: Proxy Authentication Required

Virtuoso 42000 Error SR186: How to grant permission on dbpedia with a SPARQL Query?

On de.dbpedia, I'm running the following query:

SELECT distinct *
WHERE {
{
    ?name dcterms:subject category-de:Haus_Liechtenstein.
    ?name rdf:type foaf:Person.
Optional {?name <http://de.dbpedia.org/ontology/deathDate> ?deathDate}
MINUS {?name dbpedia-owl:deathDate ?d}
}
union{
    SERVICE silent <http://dbpedia.org/sparql>{
    ?name dcterms:subject category-en:Princely_Family_of_Liechtenstein.
    ?name rdf:type foaf:Person.
Optional {?name <http://dbpedia.org/ontology/deathDate> ?deathDate}
MINUS {?name <http://dbpedia.org/ontology/deathDate> ?d}
}
}
}

Getting the following error:

Virtuoso 42000 Error SR186: No permission to execute procedure DB.DBA.SPARUL_LOAD_SERVICE_DATA with user ID 106, group ID 106

Is there a way to grant permission? How can I get my results? btw: the "Optional" is only to check if I get the correct results...

Thanks a lot in advance

Fobi

Restricting DBpedia Lookup Service API to search only in labels

DBpedia Page states that when keyword search is performed, it searches for label as well as the anchor text (text used to refer the target entity). Hence, when searched for an entity 'Aaron', the first result returned is for the entity 'Elvis Presley', because the entity is referred by the anchor text 'Aaron'.

Is there some way to restrict this search to label only? A way around is to get around 10-20 results and then check ourselves for the label field.

Querying the DBPedia ontology using sparql, java, Jena API

I am trying to query the DBPedia using sparql from a javacode For some query it works perfectly anf for another one it doesn't work. I don't think that I have an error in my query because I already tested it in the DBPedia aparql endpoint.

Here is my java code:

package ja1;

import com.hp.hpl.jena.query.*;
import com.hp.hpl.jena.rdf.model.*;
import com.hp.hpl.jena.util.*;

    public class Q_DBP_Online {

        public static void main(String[]args)
            {
                sparqlTest();
            }

    public static void sparqlTest()
       {             
         /*String queryString = "SELECT ?o WHERE {"+
                                "?s ?p ?o ."+
                                "} LIMIT 10";*/
         String str="Obama";
         String queryString = "PREFIX pr:<http://xmlns.com/foaf/0.1/>" +
                              "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>"+ 
                              "SELECT DISTINCT ?s ?label WHERE {" +                                        
                              "?s rdfs:label ?label . "+
                              "?s a pr:Person."+
                              "FILTER (lang(?label) = 'en'). "+
                              "?label bif:contains"+str+" ."+
                              "}";

         Query query = QueryFactory.create(queryString);        
         QueryExecution qexec =         QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query);
         try
          {
            ResultSet results = qexec.execSelect();
            while(results.hasNext()){
           QuerySolution soln = results.nextSolution();
           //Literal name = soln.getLiteral("x");
           System.out.println(soln);
                }
             }
         finally{
              qexec.close();
          }

}

}

So the first query which is commented runs perfectly and the second one doesn't run and I get this message in netbeans:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/rodwan/Desktop/Th_Pr/apache-jena-2.12.1/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/rodwan/Desktop/Th_Pr/pellet-2.3.1/lib/jena/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

Exception in thread "main" com.hp.hpl.jena.query.QueryParseException: Encountered " "(" "( "" at line 1, column 169.
Was expecting one of:
    "values" ...
    "graph" ...
    "optional" ...
    "minus" ...
    "bind" ...
    "service" ...
    "filter" ...
    "{" ...
    "}" ...
    ";" ...
    "," ...
    "." ...

    at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:102)
    at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:53)
    at com.hp.hpl.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:37)
    at com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:148)
    at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:80)
    at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:53)
    at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:41)
    at ja1.Q_DBP_Online.sparqlTest(Q_DBP_Online.java:38)
    at ja1.Q_DBP_Online.main(Q_DBP_Online.java:18)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)

----------------------------------