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 Type
    Method
    Description
    default X
    addPath(String source)
     
    default X
    addPath(String source, String graph)
     
    addPath(String source, org.apache.jena.graph.Node graph)
    Prepare an RDF file for loading.
    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

      X setOutputFolder(Path outputFolder)
      The the folder of the database location.
    • setName

      X setName(String name)
      Set the database name. May not be supported by the underlying database management system.
    • addPath

      X addPath(String source, org.apache.jena.graph.Node graph) throws IOException
      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

      default X addPath(String source) throws IOException
      Throws:
      IOException
    • addPath

      default X addPath(String source, String graph) throws IOException
      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:
      IOException
      InterruptedException