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.Set;
21  
22  import org.openrdf.model.Resource;
23  import org.openrdf.model.URI;
24  import org.openrdf.model.Value;
25  import org.openrdf.model.ValueFactory;
26  
27  public interface TFactory extends ValueFactory {
28  
29      /**
30       * Creates a new tripleset statement with the supplied subject, predicate,
31       * object, graph name and associated triplesets.
32       * 
33       * @param subject
34       *            The statement's subject.
35       * @param predicate
36       *            The statement's predicate.
37       * @param object
38       *            The statement's object.
39       * @param context
40       *            The statement's context.
41       * @param ts
42       *            The statement's tripleset.
43       * @return The created statement.
44       */
45      public TStatement createStatement(Resource subject, URI predicate,
46              Value object, Resource context, URI... ts);
47  
48      /**
49       * Creates a new tripleset statement with the supplied subject, predicate,
50       * object, graph name and associated triplesets.
51       * 
52       * @param subject
53       *            The statement's subject.
54       * @param predicate
55       *            The statement's predicate.
56       * @param object
57       *            The statement's object.
58       * @param context
59       *            The statement's context.
60       * @param ts
61       *            The statement's tripleset.
62       * @return The created statement.
63       */
64      public TStatement createStatement(Resource subject, URI predicate,
65              Value object, Resource context, Set<URI> ts);
66  }