Git Product home page Git Product logo

sparql-java's People

Contributors

bordercloud avatar ladsgroup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sparql-java's Issues

java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier

Crash when I try to make a Wikidata query

java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes2.dex)
java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes2.dex) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit (SSLConnectionSocketFactory.java:146) at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:964)

java.lang.NoSuchMethodError in the runtime

I tried to run SparqlClient to query Wikidata (code very similar as in the main README file).
Build tool: Maven

<dependency>
  <groupId>com.bordercloud</groupId>
  <artifactId>SPARQL-JAVA</artifactId>
  <version>1.0.9</version>
</dependency>

Exception is thrown in Runtime:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.http.client.utils.URIBuilder.setCharset(Ljava/nio/charset/Charset;)Lorg/apache/http/client/utils/URIBuilder;
at com.bordercloud.sparql.SparqlClient.sendQueryGET(SparqlClient.java:508)
at com.bordercloud.sparql.SparqlClient.sendQueryGET(SparqlClient.java:493)
at com.bordercloud.sparql.SparqlClient.queryRead(SparqlClient.java:458)
at com.bordercloud.sparql.SparqlClient.query(SparqlClient.java:352)
at com.bordercloud.sparql.SparqlClient.query(SparqlClient.java:333)
at org.example.App.executeWikidata(App.java:66)
at org.example.App.main(App.java:48)

Support customizing user agent

As far as I can tell, this library will currently send the default Apache HttpComponents User-Agent header to the query service (though I haven’t tested it). It should allow users to customize this (and ideally use a default that identifies this particular library).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.