|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.swkm.model.db.impl.DBValidator
public class DBValidator
Validates schema and data
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
DBValidator(RDF_Validator v,
int repr,
RDFDB_Model model,
DBRepresentation representation)
Create a new DBValidator. |
|
| Method Summary | |
|---|---|
java.util.ArrayList |
getPropertyDomainRange(IRDF_Property property)
Returns the URIs of the domain & the range classes of the stored RDF property and sets their ids in the hashmap. |
boolean |
isSubClass(java.lang.String sub,
java.lang.String sup,
int level,
boolean schemaValidation)
Tests if the class with URI is subset of the class with URI . |
void |
validateData()
26-02-07 My purpose is to obtain the same result with validateData by performing only one property domain range fetching query for all properties once,keeping the results in some structure and then using them repeatidly for all property instances |
void |
validateSchema()
Validate the schema of the input file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public DBValidator(RDF_Validator v,
int repr,
RDFDB_Model model,
DBRepresentation representation)
| Method Detail |
|---|
public void validateData()
throws java.sql.SQLException
java.sql.SQLException - if some query aborts
public void validateSchema()
throws java.sql.SQLException
java.sql.SQLException - if some query aborts
public boolean isSubClass(java.lang.String sub,
java.lang.String sup,
int level,
boolean schemaValidation)
throws java.sql.SQLException
schemaValidation - Indicates if the function is used for validating schema or data
java.sql.SQLException - if some query aborts
public java.util.ArrayList getPropertyDomainRange(IRDF_Property property)
throws java.sql.SQLException
java.sql.SQLException - if some query aborts
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||