Interface RDFDatabaseBuilder<X extends RDFDatabaseBuilder<X>>
- All Superinterfaces:
org.aksw.commons.util.obj.HasSelf<X>
public interface RDFDatabaseBuilder<X extends RDFDatabaseBuilder<X>>
extends org.aksw.commons.util.obj.HasSelf<X>
Essentially a batching version of the
RDFLinkDataset API.-
Method Summary
Modifier and TypeMethodDescriptiondefault Xdefault XPrepare an RDF file for loading.build()Determine the types of arguments: If all files are directly nq or ttl then use them as file arguments.Set the database name.setOutputFolder(Path outputFolder) The the folder of the database location.Methods inherited from interface org.aksw.commons.util.obj.HasSelf
self
-
Method Details
-
setOutputFolder
The the folder of the database location. -
setName
Set the database name. May not be supported by the underlying database management system. -
addPath
Prepare an RDF file for loading. If the data is triple-based it will be added to the currently set graph. Builder implementations may eagerly validate the added path.- Throws:
IOException
-
addPath
- Throws:
IOException
-
addPath
- Throws:
IOException
-
build
Determine the types of arguments: If all files are directly nq or ttl then use them as file arguments. Otherwise, build a stream from the argument: - A mix of nq and ttl is not supported. - Use cat or a codec to decode files - Use a flag whether to use process substitution or command grouping.- Returns:
- Throws:
IOExceptionInterruptedException
-