bordercloud / sparql-java Goto Github PK
View Code? Open in Web Editor NEWClient SPARQL 1.1 (very simple) for Java
License: Other
Client SPARQL 1.1 (very simple) for Java
License: Other
Insert a new property in order to customize the user agent.
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)
Vulnerabilities from dependencies:
CVE-2020-36518
Need to update the package: version > 2.13.2.2
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)
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).
Errors to fix.
Replace == by equals for String.
How can i get a list of entities with russian encoding?
TODO: ask the token before sending the SPARQL query:
The token will be revoked when the class is deleted by the garbage collector.
If the token is obsolete, request it again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.