Package dev.enola.rdf.proto
Class ProtoThingRdfConverter
java.lang.Object
dev.enola.rdf.proto.ProtoThingRdfConverter
- All Implemented Interfaces:
Converter<ThingOrBuilder,,org.eclipse.rdf4j.model.Model> ConverterInto<ThingOrBuilder,,org.eclipse.rdf4j.rio.RDFHandler> AbstractModelConverter<ThingOrBuilder>
public class ProtoThingRdfConverter
extends Object
implements AbstractModelConverter<ThingOrBuilder>, ConverterInto<ThingOrBuilder,org.eclipse.rdf4j.rio.RDFHandler>
Converts a Proto
Thing to an RDF4j Model or into an RDF4j RDFHandler.
See RdfProtoThingsConverter for the "opposite" of this.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(ThingOrBuilder 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
-
ProtoThingRdfConverter
-
ProtoThingRdfConverter
public ProtoThingRdfConverter()
-
-
Method Details
-
convertInto
public boolean convertInto(ThingOrBuilder from, org.eclipse.rdf4j.rio.RDFHandler into) throws ConversionException Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<ThingOrBuilder,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 O
-