You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Stian Soiland-Reyes (JIRA)" <ji...@apache.org> on 2016/05/12 12:37:12 UTC

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

     [ https://issues.apache.org/jira/browse/JENA-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stian Soiland-Reyes updated JENA-1178:
--------------------------------------
    Fix Version/s: Jena 3.1.1

> 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
>             Fix For: Jena 3.1.1
>
>
> 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)