View Javadoc

1   /*
2    ORDI - Ontology Repository and Data Integration
3   
4    Copyright (c) 2004-2007, OntoText Lab. / SIRMA
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package com.ontotext.ordi.tripleset;
19  
20  import java.util.Iterator;
21  
22  import org.openrdf.model.Statement;
23  import org.openrdf.model.URI;
24  
25  /**
26   * An RDF statement with specified graph name and meta-data represented as
27   * triplesets.
28   * 
29   * @author vassil
30   * 
31   * TODO: Check if Resource type is compatible with the SPARQL definition of
32   * graph name.
33   */
34  public interface TStatement extends Statement {
35  
36      /**
37       * Gets iterator to the associated triplesets for this statement instance.
38       * 
39       * @return iterator with the associated triplests
40       */
41      public Iterator<URI> getTriplesetIterator();
42  
43      /**
44       * Checks if this statement is associated with a specific tripleset URI.
45       * 
46       * @param uri
47       *            the tripleset identifier to be checked
48       * @return true if the statement is associated or false if otherwise
49       */
50      public boolean isMemberOf(URI uri);
51  }