1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package com.ontotext.ordi.wsmo4rdf.impl;
19
20 import java.util.List;
21
22 import org.openrdf.model.URI;
23 import org.openrdf.model.Value;
24
25 import com.ontotext.ordi.tripleset.TFactory;
26 import com.ontotext.ordi.tripleset.TStatement;
27 import com.ontotext.ordi.tripleset.impl.TFactoryImpl;
28 import com.ontotext.ordi.wsmo4rdf.WSMLTripleHandler;
29
30 public class ArrayTripleHandlerImpl implements WSMLTripleHandler {
31
32 public final List<TStatement> array = new java.util.ArrayList<TStatement>();
33
34 private TFactory factory = new TFactoryImpl();
35
36 public void handleTriple(URI subject, URI predicate, Value object,
37 URI namedGraph, URI... tripleSets) {
38 array.add(factory.createStatement(subject, predicate, object,
39 namedGraph, tripleSets));
40 }
41
42 }