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.impl;
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.impl.ValueFactoryImpl;
26
27 import com.ontotext.ordi.tripleset.TFactory;
28 import com.ontotext.ordi.tripleset.TStatement;
29
30 public class TFactoryImpl extends ValueFactoryImpl implements TFactory {
31
32 public TStatement createStatement(Resource subject, URI predicate,
33 Value object, Resource context, URI... ts) {
34 return new TStatementImpl(subject, predicate, object, context, ts);
35 }
36
37 public TStatement createStatement(Resource subject, URI predicate,
38 Value object, Resource context, Set<URI> ts) {
39 return new TStatementImpl(subject, predicate, object, context, ts);
40 }
41 }