[
https://issues.apache.org/jira/browse/JENA-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962067#comment-15962067
]
ASF GitHub Bot commented on JENA-1292:
--------------------------------------
GitHub user fpservant opened a pull request:
https://github.com/apache/jena/pull/235
jsonld: @vocab in @context for "" ns prefix
"" prefix are not allowed in jsonld's @context. "" ns prefix defined in a
model were therefore ignored. This pull request proposes to define @vocab with
the ns corresponding to such an "" prefix. Everything else remained unchanged.
cf. JENA-1292
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fpservant/jena atvocabNEW2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/235.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #235
----
commit d81a0f0e35aba7b86b979574b2e3a33c4e4a1f78
Author: François-Paul Servant <[email protected]>
Date: 2017-04-08T19:49:42Z
jsonld: @vocab in @context for "" ns prefix
----
> almost impossible to get @vocab prefix in JsonLDContext
> -------------------------------------------------------
>
> Key: JENA-1292
> URL: https://issues.apache.org/jira/browse/JENA-1292
> Project: Apache Jena
> Issue Type: Bug
> Components: RIOT
> Affects Versions: Jena 3.2.0
> Environment: Linux, Ecplise 4.2
> Reporter: Elie Roux
> Priority: Minor
> Labels: newbie
>
> It's almost impossible to get the empty prefix of a model mapped to Json-ld
> "@vocab" context, to do so I have to rebuild a context from scratch, which is
> not really nice...
> The fix should be a one-liner, see comment on
> https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java#L402
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)