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

org.dspace.rdf.storage.RDFStorage Maven / Gradle / Ivy

The newest version!
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */

package org.dspace.rdf.storage;

import java.util.List;

import org.apache.jena.rdf.model.Model;

/**
 * @author Pascal-Nicolas Becker (dspace -at- pascal -hyphen- becker -dot- de)
 */
public interface RDFStorage {
    /**
     * Don't use this method directly, use
     * {@link org.dspace.rdf.RDFUtil#convert(org.dspace.core.Context,
     * org.dspace.content.DSpaceObject) RDFizer.convert(...)}
     * to convert and store DSpaceObjets.
     *
     * @param uri   Identifier for this DSO
     *              ({@link org.dspace.rdf.RDFUtil#generateIdentifier(org.dspace.core.Context,
     *              org.dspace.content.DSpaceObject) RDFizer.generateIdentifier(...)}).
     *              You can load this model by using this URI.
     * @param model The model to store.
     * @see org.dspace.rdf.RDFizer#RDFizer
     */
    public void store(String uri, Model model);

    /**
     * Don't use this method directly, use
     * {@link org.dspace.rdf.RDFUtil#loadModel(String) RDFizer.loadModel(...)} instead.
     *
     * @param uri Identifier for this DSO
     * @return the model
     */
    public Model load(String uri);

    public void delete(String uri);

    public void deleteAll();

    public List getAllStoredGraphs();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy