1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 }