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 2016/05/11 17:06:12 UTC

[jira] [Commented] (JENA-1178) JSON-LD https @contexts does not work

    [ https://issues.apache.org/jira/browse/JENA-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15280438#comment-15280438 ] 

Andy Seaborne commented on JENA-1178:
-------------------------------------

http://mail-archives.apache.org/mod_mbox/jena-dev/201605.mbox/%3C573313F7.4050408%40apache.org%3E

It works when jena-parent is updated for HTTPClient and java-jsonld.

However, a lot of warnings appear and HTTPcient is central to remote SPARQL.

I am against rushing to update for a release.


> JSON-LD https @contexts does not work
> -------------------------------------
>
>                 Key: JENA-1178
>                 URL: https://issues.apache.org/jira/browse/JENA-1178
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ, RIOT
>    Affects Versions: Jena 3.0.0, Jena 3.0.1, Jena 3.1.0
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
> Maven home: /home/stain/software/maven
> Java version: 1.8.0_91, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-22-generic", arch: "amd64", family: "unix"
>            Reporter: Stian Soiland-Reyes
>              Labels: https, json-ld, jsonld
>
> I am unable to use https JSON-LD @contexts - something with https is not working. Basically this breaks anything at https://w3id.org/ which is popular in JSON-LD community.
> This was broken in 3.0.0, 3.0.1 and 3.1.0 RC3.  
> Upgrading JSON-LD Java to 0.8.2 and corresponding httpclient/httpclient-cache/httpcore seems to fix the issue.
> {code}
> stain@biggie:~/Downloads/95/apache-jena-3.1.0$ bin/riot --syntax jsonld
> {"@context": "https://w3id.org/bundle/context.json", "aggregates":
> "http://example.com/soup" }
> 17:04:59 ERROR riot                 :: invalid remote context:
> https://w3id.org/bundle/context.json
> {code}
> Trying to follow the redirection does not help, as it goes to https as well:
> {code}
> stain@biggie:~/Downloads/95/apache-jena-3.1.0$ bin/riot --syntax jsonld
> {"@context": "https://rawgit.com/researchobject/specifications/gh-pages/bundle/context.json",
> "aggregates": "http://example.com/soup" }
> 17:05:59 ERROR riot                 :: invalid remote context:
> https://rawgit.com/researchobject/specifications/gh-pages/bundle/context.json
> {code}
> Using http instead of https works - so the context is not at fault:
> {code}
> stain@biggie:~/Downloads/95/apache-jena-3.1.0$ bin/riot --syntax jsonld
> {"@context": "http://rawgit.com/researchobject/specifications/gh-pages/bundle/context.json",
> "aggregates": "http://example.com/soup" }
> _:B9c444c8e486c7be3e4a49bbaaff22bc8
> <http://www.openarchives.org/ore/terms/aggregates>
> <http://example.com/soup> .
> {code}
> So I tried with another w3id-identified context, which also fails:
> {code}
> stain@biggie:~/Downloads/95/apache-jena-3.1.0$ bin/riot --syntax jsonld
> {"@context": "https://w3id.org/payswarm/v1", "paymentMethod": "Visa" }
> 17:07:45 ERROR riot                 :: invalid remote context:
> https://w3id.org/payswarm/v1
> {code}
> I get the same errors with 3.0.0 and 3.0.1, so perhaps this is not a
> blocker for this RC.
> Dropping in lib/httpclient-4.5.1.jar  lib/httpclient-cache-4.5.1.jar
> lib/httpcore-4.4.4.jar  lib/jsonld-java-0.8.2.jar
> fixes this issue for both cases:
> {code}
> stain@biggie:~/Downloads/95/apache-jena-3.1.0$ bin/riot --syntax jsonld
> {"@context": "https://w3id.org/payswarm/v1", "paymentMethod": "Visa" }
> _:Bbd3ab47b6dc78802bd11266c6dff7b5c
> <https://w3id.org/commerce#paymentMethod>
> <https://w3id.org/commerce/creditcard#Visa> .
> {code}
> {code}
> stain@biggie:~/Downloads/95/apache-jena-3.1.0$ bin/riot --syntax jsonld
> {"@context": "https://w3id.org/bundle/context.json", "aggregates":
> "http://example.com/soup" }
> _:B4c8067a2a952151f5b2251f8a35c53dc
> <http://www.openarchives.org/ore/terms/aggregates>
> <http://example.com/soup> .
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Commented] (JENA-1178) JSON-LD https @contexts does not work

Posted by Stian Soiland-Reyes <st...@apache.org>.
(Somehow I'm not allowed to Comment on my own Jira issue, so I'll reply here)


On 11 May 2016 at 18:06, Andy Seaborne (JIRA) <ji...@apache.org> wrote:
> http://mail-archives.apache.org/mod_mbox/jena-dev/201605.mbox/%3C573313F7.4050408%40apache.org%3E
> It works when jena-parent is updated for HTTPClient and java-jsonld.
> However, a lot of warnings appear and HTTPcient is central to remote SPARQL.

OK, then that is a good workaround for anyone (like me) needing this -
upgrade jsonld-java and httpclient "at your own risk".

> I am against rushing to update for a release.


I agree this should not hold back 3.1.0 release; as it's not a
regression from 3.0.x.

Shall we plan it for 3.1.1? (I've ambituously set that as Fix For
version). Then we can work through the warnings after changing it on
master, post 3.1.0.



-- 
Stian Soiland-Reyes
Apache Taverna (incubating), Apache Commons RDF (incubating)
http://orcid.org/0000-0001-9842-9718