project35.metaData
Class OntologyTermValidationService
java.lang.Object
project35.metaData.OntologyTermValidationService
- All Implemented Interfaces:
- java.io.Serializable, ServiceClass, DocumentValidationService
public class OntologyTermValidationService
- extends java.lang.Object
- implements DocumentValidationService
this service performs a number of checks that will help the data curator
- duplicate ontology terms appear within the same list of terms used
to tag a given record type X field type Y.
- label of an ontology term doesn't appear anywhere in the text of
the data set
- a field has ontology services, there are records that have values
for that field, but no ontology terms were used in any of the field
entries
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OntologyTermValidationService
public OntologyTermValidationService()
validate
public java.util.HashMap validate(Project35FormContext project35FormContext,
RecordModel metaDataRootModel)
throws java.lang.Exception
- Validation Service
- Specified by:
validate
in interface DocumentValidationService
- Throws:
java.lang.Exception
getInitialisationParameters
public Parameter[] getInitialisationParameters()
- Specified by:
getInitialisationParameters
in interface ServiceClass
initialiseService
public void initialiseService(java.net.URL resourceDirectory,
Parameter[] initialisationParameters)
throws java.lang.Exception
- Specified by:
initialiseService
in interface ServiceClass
- Throws:
java.lang.Exception