it.unibo.cs.USI.tools
Class EntityRelationshipConsistencyTable
java.lang.Object
it.unibo.cs.USI.tools.EntityRelationshipConsistencyTable
- All Implemented Interfaces:
- SemanticMappingConstants
public class EntityRelationshipConsistencyTable
- extends java.lang.Object
- implements SemanticMappingConstants
The table of consistency for entities and relationships.
Part of the table is stored in form of rules (DISJOINTNESS and INCOMPATIBILITY
for entities and DISJOINTNESS, INCOMPATIBILITY and INTERSECTION for relationships).
For instance, if a pair of entities is incompatible, also relationships connecting
them must be.
The rest of the table is an actual table (a three dimensional array). Every
entry contains an object that checks the cardinalities of the relationships.
- Version:
- Beta
May 31, 2005 12:00:36 PM
- Author:
- Matteo Magnani
Method Summary |
boolean |
isConsistent(int[] schema,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2)
This method checks if a schema (an array of SemanticRelationships) is consistent,
according to this table. |
boolean |
isConsistent(int A1A2,
int B1B2,
int R1R2,
int lA1,
int uA1,
int lB1,
int uB1,
int lA2,
int uA2,
int lB2,
int uB2)
This method checks an entry in the table of inconsistencies. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
private CardinalityChecker[][][] table
EntityRelationshipConsistencyTable
public EntityRelationshipConsistencyTable()
- Builds the part of the table that is stored as an array.
isConsistent
public boolean isConsistent(int A1A2,
int B1B2,
int R1R2,
int lA1,
int uA1,
int lB1,
int uB1,
int lA2,
int uA2,
int lB2,
int uB2)
- This method checks an entry in the table of inconsistencies.
- Parameters:
A1A2
- B1B2
- R1R2
- lA1
- uA1
- lB1
- uB1
- lA2
- uA2
- lB2
- uB2
-
- Returns:
isConsistent
public boolean isConsistent(int[] schema,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2)
- This method checks if a schema (an array of SemanticRelationships) is consistent,
according to this table.
- Parameters:
schema
- relS1
- relS2
- cardS1
-
- Returns: