1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package com.ontotext.ordi.wsmo4rdf;
19
20 import java.util.Set;
21
22 import org.wsmo.common.Entity;
23 import org.wsmo.common.Identifier;
24
25 /**
26 * This interfaces constructs WSMO entities of type {@link Entity}.
27 *
28 * @author vassil
29 *
30 */
31 public interface WSMLfromTriples {
32
33 /**
34 * Constructs set of entities by specified identifier.
35 *
36 * @param id
37 * of the entities
38 * @return set of entities to use that identifier
39 */
40 public Set<Entity> construct(Identifier id);
41
42 /**
43 * Constructs an entity by specified identifier and entity class type
44 *
45 * @param id
46 * of the entity
47 * @param cls
48 * of the entity
49 * @return null or the constructed entity
50 */
51 public Entity construct(Identifier id, Class<? extends Entity> cls);
52 }