All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.ugent.rml.target.Target Maven / Gradle / Ivy

package be.ugent.rml.target;

import be.ugent.rml.store.Quad;

import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

/**
 * This interface represents the target of a knowledge graph.
 * For example, a local file, a SOLID pod, a Triple Store, and so on.
 */
public interface Target {

    /**
     * This method returns an OutputStream for the target.
     * @return the OutputStream corresponding to the target.
     * @throws IOException
     */
    OutputStream getOutputStream() throws IOException;

    /**
     * This method returns the serialization format of the target.
     * @return serialization format.
     */
    String getSerializationFormat();

    /**
     * This method closes the target.
     */
    void close();

    /**
     * This method returns the metadata associated with the target.
     */
    List getMetadata();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy