gr.forth.ics.rdfsuite.vrp.corevrp.validator
Class RDF_Validator

java.lang.Object
  extended by gr.forth.ics.rdfsuite.vrp.corevrp.validator.RDF_Validator

public class RDF_Validator
extends java.lang.Object

RDF_Validator.java


Field Summary
 RDF_Model basis_model
          The model we want to validate.
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
RDF_Validator(RDF_Model mdl)
          Create a new RDF_Validator.
 
Method Summary
 void create_class_dag()
           
 void create_property_dag()
           
 long getinheritTime()
          Returns the time required to inherit the domain and the range to the sub properties
 RDF_DAG getsubClassOfDAG()
          Returns the subClasses Directed Acyclic Graph.
 RDF_DAG getsubMetaClassOfDAG()
           
 RDF_DAG getsubMetaPropertyOfDAG()
           
 RDF_DAG getsubPropertyOfDAG()
          Returns the subProperties Directed Acyclic Graph.
 void inheritDomainRange()
          -Inherits the domain and range of a property to its subProperty in case they are not already defined.
 void setclassLoop(boolean b)
          Setting the classLoop option.
 void setgraph(boolean b)
          Setting the graph option.
 void setinheritance(boolean b)
          Setting the inheritance option.
 void setpropertyLoop(boolean b)
          Setting the propertyLoop option.
 void setsourceTargetTypes(boolean b)
          Setting the sourceTargetTypes option.
 void setsubClassOfDAG(RDF_DAG class_dag)
          Sets the subClasses Directed Acyclic Graph.
 void setsubMetaClassOfDAG(RDF_DAG meta_class_dag)
          Sets the subClasses Directed Acyclic Graph.
 void setsubMetaPropertyOfDAG(RDF_DAG meta_property_dag)
          Sets the subClasses Directed Acyclic Graph.
 void setsubPropertyOfDAG(RDF_DAG property_dag)
          Sets the subClasses Directed Acyclic Graph.
 void setsubsetSubpropertyDomainRange(boolean b)
          Setting the subsetSubpropertyDomainRange option.
 void settyping(boolean b)
          Setting the typing option.
 void setuniqueDefinedDomainRange(boolean b)
          Setting the uniqueDefinedDomainRange option.
 void setverbose(boolean b)
          Setting the verbose option.
 boolean subClassOf_check()
          Testing for loops in the subClassOf Statements.
 boolean subProperty_check()
          Tests for loops in the subPropertyOf Statements Create the property dag Test dag for loops
 void subpropertyDomainRange_check()
          Testing if the domain and range of a sub property fit to the domain and range of the super properties.
 boolean validate()
          The method starting all the jobs for the validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

basis_model

public RDF_Model basis_model
The model we want to validate.

Constructor Detail

RDF_Validator

public RDF_Validator(RDF_Model mdl)
Create a new RDF_Validator.

Method Detail

setverbose

public void setverbose(boolean b)
Setting the verbose option. Default is 'false'.


setgraph

public void setgraph(boolean b)
Setting the graph option. Default is 'false'.


setclassLoop

public void setclassLoop(boolean b)
Setting the classLoop option. Default is 'false'.


setpropertyLoop

public void setpropertyLoop(boolean b)
Setting the propertyLoop option. Default is 'false'.


setinheritance

public void setinheritance(boolean b)
Setting the inheritance option. Default is 'false'.


setsubsetSubpropertyDomainRange

public void setsubsetSubpropertyDomainRange(boolean b)
Setting the subsetSubpropertyDomainRange option. Default is 'false'.


setuniqueDefinedDomainRange

public void setuniqueDefinedDomainRange(boolean b)
Setting the uniqueDefinedDomainRange option. Default is 'false'.


settyping

public void settyping(boolean b)
Setting the typing option. Default is 'false'.


setsourceTargetTypes

public void setsourceTargetTypes(boolean b)
Setting the sourceTargetTypes option. Default is 'false'.


getsubClassOfDAG

public RDF_DAG getsubClassOfDAG()
Returns the subClasses Directed Acyclic Graph.


setsubClassOfDAG

public void setsubClassOfDAG(RDF_DAG class_dag)
Sets the subClasses Directed Acyclic Graph.


getsubMetaClassOfDAG

public RDF_DAG getsubMetaClassOfDAG()

setsubMetaClassOfDAG

public void setsubMetaClassOfDAG(RDF_DAG meta_class_dag)
Sets the subClasses Directed Acyclic Graph.


getsubMetaPropertyOfDAG

public RDF_DAG getsubMetaPropertyOfDAG()

setsubMetaPropertyOfDAG

public void setsubMetaPropertyOfDAG(RDF_DAG meta_property_dag)
Sets the subClasses Directed Acyclic Graph.


getsubPropertyOfDAG

public RDF_DAG getsubPropertyOfDAG()
Returns the subProperties Directed Acyclic Graph.


setsubPropertyOfDAG

public void setsubPropertyOfDAG(RDF_DAG property_dag)
Sets the subClasses Directed Acyclic Graph.


getinheritTime

public long getinheritTime()
Returns the time required to inherit the domain and the range to the sub properties


validate

public boolean validate()
The method starting all the jobs for the validation. Returns true if the total descriptions are valid


subProperty_check

public boolean subProperty_check()
Tests for loops in the subPropertyOf Statements Create the property dag Test dag for loops


subClassOf_check

public boolean subClassOf_check()
Testing for loops in the subClassOf Statements. - Create class dag - Test dag for loops


inheritDomainRange

public void inheritDomainRange()
-Inherits the domain and range of a property to its subProperty in case they are not already defined. Retrieves the properties from the property dag after the loop check in a certain topological order -If a property has no domains defined it inherits the domains from its superproperty IF is unique(if only one superProperty exists) -If a property has no ranges defined it inherits the ranges from its superproperty IF it is unique(if only one superProperty exists)


subpropertyDomainRange_check

public void subpropertyDomainRange_check()
Testing if the domain and range of a sub property fit to the domain and range of the super properties. -All properies are retrieved from the property dag in a topological order -If a property has no ranges defined but its superProperty has an error is thrown -If property and superproperty have ranges, the range classes are compared. >Compare means that therange class of the property should be a subclass of the range class of the superproperty (recursive check, with the superclasses of the range class of the property etc) -The same occurs for the domains


create_class_dag

public void create_class_dag()

create_property_dag

public void create_property_dag()