File:  [Public] / java / classes / org / w3c / rdf / TripleStore.java
Revision 1.1: download - view: text, annotated - select for diffs
Tue May 12 13:15:39 1998 UTC (26 years, 1 month ago) by jsaarela
Branches: MAIN
CVS tags: rel-2-2, R_2_0_beta_3, R_2_0_beta_2_1, HEAD
Routines for RDF manipulation added.

/**
 * TripleStore allows one to add and delete triples
 *
 * $Log: TripleStore.java,v $
 * Revision 1.1  1998/05/12 13:15:39  jsaarela
 * Routines for RDF manipulation added.
 *
 *
 * @author Janne Saarela
 */

package org.w3c.rdf;

import java.util.Vector;
import java.util.Enumeration;

public interface TripleStore {
    /**
     * Add a vectorful of triples to the underlying storage manager
     *
     * @see Triple
     */
    public boolean add (Vector vTriples);

    /**
     * Add a single triple to the underlying storage manager
     *
     * @see Triple
     */
    public boolean add (Triple triple);

    /**
     * Delete a vectorful of triples from the underlying storage manager
     *
     * The triple may have one or more items set to null in which
     * case it will match with triples with the set items matching.
     * Example: (A,null,null) will delete all triples with the
     * first item set to A.
     *
     * @see Triple
     */
    public boolean delete (Vector vTriples);

    /**
     * Delete a single triple from the underlying storage manager
     *
     * The triple may have one or more items set to null in which
     * case it will match with triples with the set items matching.
     * Example: (A,null,null) will delete all triples with the
     * first item set to A.
     *
     * @see Triple
     */
    public boolean delete (Triple triple);
}
  

Webmaster