Hi,
I'm executing the following SPARQL query in JAVA...

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>  
SELECT ?s ?sl ?p ?o ?ol ?range ?domain 
WHERE { 
        ?s rdf:type <http://dbpedia.org/ontology/Person> .   
        ?s rdfs:label ?sl .     
        ?s ?p ?o .      
        ?o rdfs:label ?ol .     
        FILTER (  langMatches( lang(?sl), "de" )  && langMatches( lang(?ol), 
"de" ) )   
        ?p  rdfs:range  ?range .        
        ?p  rdfs:domain ?domain . } 
LIMIT 10000 // tried different LIMITs ranging from 1000 - 100.000
OFFSET 0

... like this:

QueryEngineHTTP qexec = new QueryEngineHTTP(SPARQL_ENDPOINT_URI, query);
qexec.addDefaultGraph(DBPEDIA_DEFAULT_GRAPH);

But I get, regardless of the endpoint I'm choosing, http://dbpedia.org/sparql 
or http://live.dbpedia.org/sparql, only this error message. What is this error? 
Is there a way to avoid it?

Exception in thread "main" HttpException: HttpException: 502 Proxy Error: 
HttpException: 502 Proxy Error
        at 
com.hp.hpl.jena.sparql.engine.http.HttpQuery.execCommon(HttpQuery.java:340)
        at 
com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:190)
        at com.hp.hpl.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:147)
        at 
com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:117)
        at 
de.uni_leipzig.simba.boa.backend.configuration.command.impl.WriteRelationToFileCommand.getKnowledge(WriteRelationToFileCommand.java:208)
        at 
de.uni_leipzig.simba.boa.backend.configuration.command.impl.WriteRelationToFileCommand.execute(WriteRelationToFileCommand.java:49)
        at 
de.uni_leipzig.simba.boa.backend.configuration.command.impl.WriteRelationToFileCommand.main(WriteRelationToFileCommand.java:38)
Caused by: HttpException: 502 Proxy Error
        at 
com.hp.hpl.jena.sparql.engine.http.HttpQuery.execCommon(HttpQuery.java:301)
        ... 6 more

Kind regards,
Daniel
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to