Package dev.enola.rdf.io
Class JavaThingRdfConverter
java.lang.Object
dev.enola.rdf.io.JavaThingRdfConverter
- All Implemented Interfaces:
Converter<Stream<Thing>,,org.eclipse.rdf4j.model.Model> ConverterInto<Stream<Thing>,,org.eclipse.rdf4j.rio.RDFHandler> AbstractModelConverter<Stream<Thing>>
public class JavaThingRdfConverter
extends Object
implements AbstractModelConverter<Stream<Thing>>, ConverterInto<Stream<Thing>,org.eclipse.rdf4j.rio.RDFHandler>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(Stream<Thing> from, org.eclipse.rdf4j.rio.RDFHandler into) Convert from an I into an O.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.rdf.proto.AbstractModelConverter
convertMethods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrow
-
Constructor Details
-
JavaThingRdfConverter
public JavaThingRdfConverter()
-
-
Method Details
-
convertInto
public boolean convertInto(Stream<Thing> from, org.eclipse.rdf4j.rio.RDFHandler into) throws ConversionException, IOException Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<Stream<Thing>,org.eclipse.rdf4j.rio.RDFHandler> - Parameters:
from- the input to convertinto- the destination where to output- Returns:
- true if conversion was successful, false if this converter cannot handle it; see
ConverterIntoChain - Throws:
ConversionException- in case of conversion problems or technical failures to read from I or write to OIOException- TODO wrap IOException into ConversionException and remove throws
-