Class OntologyValidationService<T>
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_validation.OntologyValidationService<T>
- Type Parameters:
T
- The class which represents the ontology such as OWLOntology in case of the OWL API.
- Direct Known Subclasses:
JenaOntologyValidationService
,OwlApiOntologyValidationService
An OntologyValidationService allows to validate a single ontology, i.e., make sure that the ontology is parseable.
In addition the service calculates statistics about the ontology.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOntologyValidationService
(File ontologyFile) ConstructorOntologyValidationService
(String fileContent) ConstructorOntologyValidationService
(URI ontologyUri) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Free all resources which are attached to this validation service.protected abstract boolean
computeHasOntologyDefinition
(T ontology) protected abstract int
computeNumberOfRestrictions
(T ontology) protected abstract int
computeNumberOfStatements
(T ontology) protected void
computeStatistics
(T ontology) Set local statistics variables.Returns all class-, property- and instance-URIs.int
int
int
int
int
int
int
protected String
getVersionFromJarFile
(Class clazz) abstract boolean
isConceptDefined
(String concept) boolean
boolean
protected abstract T
parseOntology
(String fileContent) protected abstract T
parseOntology
(URI ontUri) retrieveClasses
(T ontology) retrieveDatatypeProperties
(T ontology) retrieveInstances
(T ontology) retrieveObjectProperties
(T ontology) retrieveProperties
(T ontology) protected abstract String
protected abstract String
toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGERDefault logger. -
classes
-
datatypeProperties
-
objectProperties
-
properties
-
instances
-
numberOfRestrictions
private int numberOfRestrictions -
numberOfStatements
private int numberOfStatements -
ontologyDefined
private boolean ontologyDefined -
ontologyParseable
private boolean ontologyParseable -
ontologyParseError
-
libName
-
libVersion
-
ontology
-
ontologyUri
-
-
Constructor Details
-
OntologyValidationService
Constructor- Parameters:
ontologyUri
- URI of the ontology to be validated.
-
OntologyValidationService
Constructor- Parameters:
fileContent
- file content of ontology file.
-
OntologyValidationService
Constructor- Parameters:
ontologyFile
- Ontology File to be validated.
-
-
Method Details
-
close
public void close()Free all resources which are attached to this validation service. -
computeStatistics
Set local statistics variables.- Parameters:
ontology
- The ontologies for which the statistics shall be computed and set.
-
parseOntology
- Throws:
Exception
-
parseOntology
- Throws:
Exception
-
retrieveClasses
-
retrieveDatatypeProperties
-
retrieveObjectProperties
-
retrieveProperties
-
retrieveInstances
-
computeNumberOfRestrictions
-
computeNumberOfStatements
-
computeHasOntologyDefinition
-
retriveLibName
-
retriveLibVersion
-
isConceptDefined
-
getVersionFromJarFile
-
getAllResources
Returns all class-, property- and instance-URIs.- Returns:
- A large set of all resources.
-
getClasses
-
getNumberOfClasses
public int getNumberOfClasses() -
getDatatypeProperties
-
getNumberOfDatatypeProperties
public int getNumberOfDatatypeProperties() -
getObjectProperties
-
getNumberOfObjectProperties
public int getNumberOfObjectProperties() -
getProperties
-
getNumberOfProperties
public int getNumberOfProperties() -
getInstances
-
getNumberOfInstances
public int getNumberOfInstances() -
getNumberOfRestrictions
public int getNumberOfRestrictions() -
getNumberOfStatements
public int getNumberOfStatements() -
isOntologyDefined
public boolean isOntologyDefined() -
isOntologyParseable
public boolean isOntologyParseable() -
getLibName
-
getLibVersion
-
getOntology
-
getOntologyUri
-
getOntologyParseError
-
toString
-