nectec.semantic.web.knowledge.application.framework.mapping
Class Mapping

java.lang.Object
  extended by nectec.semantic.web.knowledge.application.framework.mapping.Mapping

public class Mapping
extends Object

Contains the methods for mapping module. Note: Directory names represent the name of classes in the ontology used.


Constructor Summary
Mapping(String root)
          Constructor method.
 
Method Summary
 void concatData(boolean inferenceOut)
          Simply just to concatenate 'data.xml' from Instances into one file and named it 'concat_data.xml' located under 'Mapping/Output'.
 ArrayList<String> getAllMapingProfiles()
          Get all mapping profile directories in 'Mapping Config' each of which represents a respective class name in the ontology used.
 void runMappingAndUpdatingProcess()
          Update all data involved as provided in the 'Mapping Config' directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapping

public Mapping(String root)
Constructor method. This should not be called directly. Instead one should get this object from the class 'ServiceRepresentative'.

Parameters:
root - Location of the mapping data directory on the system.
Method Detail

runMappingAndUpdatingProcess

public void runMappingAndUpdatingProcess()
Update all data involved as provided in the 'Mapping Config' directory.


concatData

public void concatData(boolean inferenceOut)
Simply just to concatenate 'data.xml' from Instances into one file and named it 'concat_data.xml' located under 'Mapping/Output'.

Parameters:
inferenceOut - Whether user wants inferences written to the file or not.

getAllMapingProfiles

public ArrayList<String> getAllMapingProfiles()
Get all mapping profile directories in 'Mapping Config' each of which represents a respective class name in the ontology used.

Returns:
Collection of the class names