public class IndividualCreator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
XPATH_TO_XMI_CLASSES |
static String |
XPATH_TO_XMI_DATATYPE |
static String |
XPATH_TO_XMI_GENERALIZATIONS |
static String |
XPATH_TO_XMI_STUBS |
| Constructor and Description |
|---|
IndividualCreator(com.weaverplatform.sdk.Weaver weaver,
HashMap<String,String> xmiClasses,
HashMap<String,String> xmiValueClasses,
HashMap<String,com.weaverplatform.sdk.Entity> predicates,
com.weaverplatform.sdk.Entity dataset) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWeaverGeneralizations(NodeList generalizations)
Loop trough xmi-associations and map them to weaver as annotations
|
static String |
deAccent(String str) |
void |
mapXmiClasses()
Creates two hashMaps from all xmi Classes
|
HashMap<String,com.weaverplatform.sdk.Entity> |
run() |
void |
toWeaverGeneralization(String subType,
String superType)
Creates an Weaver Individual
|
com.weaverplatform.sdk.Entity |
toWeaverIndividual(String individualId,
boolean isRdfsClass)
Creates an Weaver Individual
|
public static final String XPATH_TO_XMI_CLASSES
public static final String XPATH_TO_XMI_STUBS
public static final String XPATH_TO_XMI_GENERALIZATIONS
public static final String XPATH_TO_XMI_DATATYPE
public void createWeaverGeneralizations(NodeList generalizations)
generalizations - public void mapXmiClasses()
public void toWeaverGeneralization(String subType, String superType)
subType - superType - public com.weaverplatform.sdk.Entity toWeaverIndividual(String individualId, boolean isRdfsClass)
individualId - Copyright © 2016. All rights reserved.