Class MissingSubjectValidator
java.lang.Object
org.incenp.obofoundry.sssom.checks.MissingSubjectValidator
- All Implemented Interfaces:
IMappingValidator
Checks that a mapping has a subject.
The subject is represented either by the subject_id
slot, or by the
subject_label
slot iff the subject type is set to
EntityType.RDFS_LITERAL
(i.e. if the mapping is a “literal mapping”).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks a mapping for a possible post-parsing error.
-
Constructor Details
-
MissingSubjectValidator
public MissingSubjectValidator()
-
-
Method Details
-
validate
Description copied from interface:IMappingValidator
Checks a mapping for a possible post-parsing error.- Specified by:
validate
in interfaceIMappingValidator
- Parameters:
mapping
- The mapping to check.- Returns:
- An error code, or
null
if the set passes the test represented by this object.
-