You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2022/03/09 22:36:00 UTC
[jira] [Commented] (JENA-2306) Prepare for switching to JSON-LD 1.1 as the default.
[ https://issues.apache.org/jira/browse/JENA-2306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503889#comment-17503889 ]
Andy Seaborne commented on JENA-2306:
-------------------------------------
{code:java}
public static void main(String...args) throws Exception {
try {
HttpClient hc = HttpClient.newHttpClient();
HttpRequest req = HttpRequest.newBuilder(new URI("https://schema.org/"))
//.version(Version.HTTP_1_1)
.build();
HttpResponse<String> res = hc.send(req, BodyHandlers.ofString());
if ( res.statusCode() != 200 ) {
System.out.println(res.statusCode());
}
else {
String x = res.body();
System.out.println("OK");
}
} catch (Exception ex) {
System.err.println(ex.getMessage());
}
}
{code}
> Prepare for switching to JSON-LD 1.1 as the default.
> ----------------------------------------------------
>
> Key: JENA-2306
> URL: https://issues.apache.org/jira/browse/JENA-2306
> Project: Apache Jena
> Issue Type: Improvement
> Components: RIOT
> Affects Versions: Jena 4.4.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Major
> Fix For: Jena 4.5.0
>
>
> Prepare for switching to JSON-LD 1.1 as the default.
> This is complicated by the fact that, with Java11, java.net.http fails to setup the HTTP/2 connection to schema.org.
> Works with Java17.
> The java.net.http handling is within Titanium; it is not the switchable RIOT default HttpClient.
> It is not a titanium bug - it is reproducible without Titanium.
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)