joshsh / sesametools

A collection of utilities for use with OpenRDF Sesame (as of recently, Eclipse RDF4J)
Other
50 stars 11 forks source link

Changes on develop #23

Closed ansell closed 12 years ago

ansell commented 12 years ago

Add CloseableGraphQueryResult to match CloseableTupleQueryResult

Add NQuadsToNTriplesConverter command line and static utility class to nquads to provide a simple way to downgrade from nquads to ntriples using a given InputStream and OutputStream for nquads and ntriples respectively.

Add a new module, uritranslator, for translating URIs between different base URIs using Sparql 1.1 Update queries so the server is able to translate on the fly without returning results to the user.

Bump to Sesame-2.6.3

Remove references to Aduna and FortyTwo repositories in module pom.xml files and locate them solely in the parent pom.xml file.

ansell commented 12 years ago

I reverted the NQuadsToNTriplesConverter commit.

ansell commented 12 years ago

I did some work on the Sesamize module to make it possible to stream any InputStream through the translate method into any OutputStream. This makes it match the functionality that was in NQuadsToNTriplesConverter.

The current File-to-OutputStream method is still available as a wrapper to the InputStream-to-OutputStream method.

I also added a small bug fix to NQuadsFormat to fix the declaration that it supports namespaces, as it doesn't support them by design, and I added some alternative MIME-types from Any23's NQuadsExtractor and some alternative file extensions that were declared in Args from sesamize. This enabled me to similify Args a little, as it previously had tertiary operators on a return line in both Args.getRDFFormat methods, which are quite confusing to read and maintain.