Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] RDF4J integration for Commons RDF

One of the things I was not sure of was how to represent with RDF4J
'statements' that are in multiple contexts.

I assume as an RDF4J Graph that show each statement as a single Triple
(effectively a union graph ; removing would delete the Statement from
all contexts),

.. and an RDF4J Dataset it should be multiple Quads (removing would
remove the graph from the Contexts) - am I right that in RDF4J such a
'trimming' of contexts must be done by removing and adding a modified
Statement?


On 29 September 2016 at 11:35, Stian Soiland-Reyes <stain@xxxxxxxxxx> wrote:
> I've proposed a "rdf4j" integration module to Commons RDF [1], which I
> think we should try to release as part of Commons RDF 0.3.0
>
>
> The entry point would be the RDF4JTermFactory [2] as well as the
> experimental RDF4JParser [3]
>
> The RDF4JTermFactory create Commons RDF instances backed by RDF4J
> 2.0.1, as well as doing from/to conversions between the APIs.
>
> I've already tested this with the new RDF4j module, which shows that
> you can transparently add Jena triple to RDF4J graph stores and vice
> versa.
>
>
> I wonder if RDF4j folks would be able to quickly review this for
> sanity and design decisions?
>
>
> Code: https://github.com/apache/incubator-commonsrdf/pull/24
>
> Javadoc: http://stain.github.io/incubator-commonsrdf/COMMONSRDF-35/org/apache/commons/rdf/rdf4j/package-summary.html
>
> BTW - as I'm the sole author of this module I would be able to submit
> it to RDF4j so it could live there instead - meaning it would be
> easier to keep it up to date with RDF4J releases. However I guess that
> means Commons RDF API must be "finished" (v1.0.0) - we're pretty much
> there - the only thing at the moment is if we should add the RDFParser
> interface (in which form) - and of course then the equivalent
> RDFWriter interface.
>
>
>
> [1] http://commonsrdf.incubator.apache.org/
> [2] http://stain.github.io/incubator-commonsrdf/COMMONSRDF-35/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.html
> [3] http://stain.github.io/incubator-commonsrdf/COMMONSRDF-35/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.html
>
> --
> Stian Soiland-Reyes
> http://orcid.org/0000-0001-9842-9718



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718


Back to the top