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

Aaron Coburn commented on JENA-1948:
------------------------------------

Starting with a reader makes a lot of sense. I have some code that currently 
implements the bridge between a RIOT reader and a Titanium parser, portions of 
which are generic enough to go into Jena. In the process of working with 
Titanium, here is what I have found.

 
 # The currently released version of Titanium requires JakartaEE 9 (`import 
jakarta.json...`), which is too new for the frameworks we use, so we rely on 
Titanium version 0.8.6. Not everyone would necessarily have that restriction, 
but it may be presumptuous to think that everyone can immediately upgrade to 
the latest JEE. And unfortunately, the Titanium package structure is different 
between 0.8 and 1.x, so one can't just use maven exclusions to pick the right 
dependencies. As such, perhaps it would make senst to have a `jena-jsonld` and 
a `jena-jsonld-jee8` module?
 # I have found it very useful to be able to customize the document loader 
(esp. for Titanium 0.8.6), so as long as the Jena interfaces make this 
possible, that would be great.

 

Effectively, what I've done is to build up a `JsonLdParser11` class that 
implements the `ReaderRIOTFactory` and then I bind that to `Lang.JSONLD` via 
`RDFParserRegistry::registerLangTriples` and 
`RDFParserRegistry::registerLangQuads`

 

I like the idea of creating a `Lang.JSONLD_11` type.

 

I would also be happy to contribute a generalized version of what I have for 
Jena

> Consider using Titanium library for JSON-LD 1.1 support
> -------------------------------------------------------
>
>                 Key: JENA-1948
>                 URL: https://issues.apache.org/jira/browse/JENA-1948
>             Project: Apache Jena
>          Issue Type: Wish
>          Components: JSON-LD, RIOT
>            Reporter: Didac
>            Priority: Major
>              Labels: First
>
> Since there is finally a [JSON-LD 1.1 recommendation 
> release|https://www.w3.org/TR/json-ld11/] and Json-LD java is not fully 
> supporting JSON-LD 1.1 (plus it seems to be looking for maintainers) maybe is 
> time to take a look to the other project out there that supports JSON-LD 11 
> in Java: [https://github.com/filip26/titanium-json-ld]
> The coverage is pretty good. I haven't seen any performance comparison 
> though. And the project is very recent, but worth taking a look.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to