|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.modelmanagement.modelgen.HDMToRDFS
public class HDMToRDFS
A class to do HDM to RDFS model transformations
Field Summary | |
---|---|
private java.util.ArrayList |
allConstraintObjects
|
private java.util.ArrayList |
allEdgeObjects
|
private java.util.ArrayList |
allNodeObjects
|
private java.util.Hashtable |
classes
|
private Construct |
cons
|
private Construct |
edge
|
private java.util.Hashtable |
extents
|
private Model |
hdm
|
private TypeHierarchy |
hlth
|
private Construct |
node
|
private Construct |
property
|
private java.lang.String |
propertySuffix
|
private Model |
rdfs
|
private Construct |
rdfsClass
|
private Construct |
rdfsClassOrLiteral
|
private java.util.ArrayList |
rootNodeObjects
|
private Schema |
sourceSchema
|
Constructor Summary | |
---|---|
HDMToRDFS(Schema s1)
Creates a new instance of HDMToRDFS |
Method Summary | |
---|---|
private Schema |
addClass(Schema transformedSchema,
SchemaObject hdmNode)
Add a RDFS Class to Automed |
private void |
addHDMObjectsToHashTables()
Add all the HDM objects to the appropriate hash classes |
private Schema |
addProperty(Schema s,
SchemaObject hdmEdgeObject)
Add a property |
private java.lang.String |
computeCardinality(Schema transformedSchema,
SchemaObject hdmEdgeObject)
|
Schema |
modelGen(TransformModel am)
Transform the HDM elements in this schema into RDFS elements |
private Schema |
removeHDMConstructs(Schema transformedSchema)
Remove the HDM constructs from the transformed schema |
void |
setSchema(Schema s)
Set the schema to transform |
private void |
setUpRDFSModel()
Set up the RDFS model, the constructs and the type hierarchy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String propertySuffix
private Model hdm
private Construct node
private Construct cons
private Construct edge
private Model rdfs
private Construct rdfsClass
private Construct rdfsClassOrLiteral
private Construct property
private Schema sourceSchema
private TypeHierarchy hlth
private java.util.ArrayList allEdgeObjects
private java.util.ArrayList allConstraintObjects
private java.util.ArrayList allNodeObjects
private java.util.ArrayList rootNodeObjects
private java.util.Hashtable extents
private java.util.Hashtable classes
Constructor Detail |
---|
public HDMToRDFS(Schema s1) throws NotFoundException
s1
- The schema to transform
NotFoundException
- Throws an exception if constrcuts are not foundMethod Detail |
---|
public void setSchema(Schema s)
s
- The schema to transformprivate void addHDMObjectsToHashTables() throws AutoMedException
AutoMedException
private Schema removeHDMConstructs(Schema transformedSchema) throws AutoMedException
AutoMedException
private Schema addClass(Schema transformedSchema, SchemaObject hdmNode) throws IntegrityException, TypeMismatchException, NotFoundException
IntegrityException
TypeMismatchException
NotFoundException
private Schema addProperty(Schema s, SchemaObject hdmEdgeObject) throws AutoMedException
AutoMedException
private java.lang.String computeCardinality(Schema transformedSchema, SchemaObject hdmEdgeObject)
private void setUpRDFSModel() throws NotFoundException
NotFoundException
public Schema modelGen(TransformModel am) throws AutoMedException
am
- The TransformModel object that holds the HDM objects and the RDFS constructs they've
been matched to during the matching process
AutoMedException
- General AutoMedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |