Class MissingSubjectValidator
- java.lang.Object
-
- org.incenp.obofoundry.sssom.checks.MissingSubjectValidator
-
- All Implemented Interfaces:
IMappingValidator
public class MissingSubjectValidator extends Object implements IMappingValidator
Checks that a mapping has a subject.The subject is represented either by the
subject_idslot, or by thesubject_labelslot iff the subject type is set toEntityType.RDFS_LITERAL(i.e. if the mapping is a “literal mapping”).
-
-
Constructor Summary
Constructors Constructor Description MissingSubjectValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationErrorvalidate(Mapping mapping)Checks a mapping for a possible post-parsing error.
-
-
-
Method Detail
-
validate
public ValidationError validate(Mapping mapping)
Description copied from interface:IMappingValidatorChecks a mapping for a possible post-parsing error.- Specified by:
validatein interfaceIMappingValidator- Parameters:
mapping- The mapping to check.- Returns:
- An error code, or
nullif the set passes the test represented by this object.
-
-