Class Mapping
java.lang.Object
org.incenp.obofoundry.sssom.model.Mapping
Represents a
mapping object.
Automatically generated from the SSSOM LinkML schema.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionMapping()Creates a new empty instance.protectedMapping(String recordId, String subjectId, String subjectLabel, String subjectCategory, String predicateId, String predicateLabel, PredicateModifier predicateModifier, String objectId, String objectLabel, String objectCategory, String mappingJustification, List<String> authorId, List<String> authorLabel, List<String> reviewerId, List<String> reviewerLabel, List<String> creatorId, List<String> creatorLabel, String license, EntityType subjectType, String subjectSource, String subjectSourceVersion, EntityType objectType, String objectSource, String objectSourceVersion, EntityType predicateType, String mappingProvider, String mappingSource, MappingCardinality mappingCardinality, List<String> cardinalityScope, String mappingTool, String mappingToolId, String mappingToolVersion, LocalDate mappingDate, LocalDate publicationDate, LocalDate reviewDate, Double confidence, Double reviewerAgreement, List<String> curationRule, List<String> curationRuleText, List<String> subjectMatchField, List<String> objectMatchField, List<String> matchString, List<String> subjectPreprocessing, List<String> objectPreprocessing, Double similarityScore, String similarityMeasure, List<String> seeAlso, String issueTrackerItem, String other, String comment, Map<String, ExtensionValue> extensions) Creates a new instance from the specified values. -
Method Summary
Modifier and TypeMethodDescriptionstatic Mapping.MappingBuilderbuilder()protected booleanbooleanGets the value of theauthor_idslot.getAuthorId(boolean set) Gets the list ofauthor_idvalues, optionally initializing the list if needed.Gets the value of theauthor_labelslot.getAuthorLabel(boolean set) Gets the list ofauthor_labelvalues, optionally initializing the list if needed.Gets the value of thecardinality_scopeslot.getCardinalityScope(boolean set) Gets the list ofcardinality_scopevalues, optionally initializing the list if needed.Gets the value of thecommentslot.Gets the value of theconfidenceslot.Gets the value of thecreator_idslot.getCreatorId(boolean set) Gets the list ofcreator_idvalues, optionally initializing the list if needed.Gets the value of thecreator_labelslot.getCreatorLabel(boolean set) Gets the list ofcreator_labelvalues, optionally initializing the list if needed.Gets the value of thecuration_ruleslot.getCurationRule(boolean set) Gets the list ofcuration_rulevalues, optionally initializing the list if needed.Gets the value of thecuration_rule_textslot.getCurationRuleText(boolean set) Gets the list ofcuration_rule_textvalues, optionally initializing the list if needed.Gets the map of extension values.getExtensions(boolean set) Gets the map of extension values, optionally initializing the map if needed.Gets the value of theissue_tracker_itemslot.Gets the value of thelicenseslot.Gets the value of themapping_cardinalityslot.Gets the value of themapping_dateslot.Gets the value of themapping_justificationslot.Gets the value of themapping_providerslot.Gets the value of themapping_sourceslot.Gets the value of themapping_toolslot.Gets the value of themapping_tool_idslot.Gets the value of themapping_tool_versionslot.Gets the value of thematch_stringslot.getMatchString(boolean set) Gets the list ofmatch_stringvalues, optionally initializing the list if needed.Gets the value of theobject_categoryslot.Gets the value of theobject_idslot.Gets the value of theobject_labelslot.Gets the value of theobject_match_fieldslot.getObjectMatchField(boolean set) Gets the list ofobject_match_fieldvalues, optionally initializing the list if needed.Gets the value of theobject_preprocessingslot.getObjectPreprocessing(boolean set) Gets the list ofobject_preprocessingvalues, optionally initializing the list if needed.Gets the value of theobject_sourceslot.Gets the value of theobject_source_versionslot.Gets the value of theobject_typeslot.getOther()Gets the value of theotherslot.Gets the value of thepredicate_idslot.Gets the value of thepredicate_labelslot.Gets the value of thepredicate_modifierslot.Gets the value of thepredicate_typeslot.Gets the value of thepublication_dateslot.Gets the value of therecord_idslot.Gets the value of thereview_dateslot.Gets the value of thereviewer_agreementslot.Gets the value of thereviewer_idslot.getReviewerId(boolean set) Gets the list ofreviewer_idvalues, optionally initializing the list if needed.Gets the value of thereviewer_labelslot.getReviewerLabel(boolean set) Gets the list ofreviewer_labelvalues, optionally initializing the list if needed.Gets the value of thesee_alsoslot.getSeeAlso(boolean set) Gets the list ofsee_alsovalues, optionally initializing the list if needed.Deprecated.Deprecated.Use#getSimilarityScore()instead.Gets the value of thesimilarity_measureslot.Gets the value of thesimilarity_scoreslot.Gets the value of thesubject_categoryslot.Gets the value of thesubject_idslot.Gets the value of thesubject_labelslot.Gets the value of thesubject_match_fieldslot.getSubjectMatchField(boolean set) Gets the list ofsubject_match_fieldvalues, optionally initializing the list if needed.Gets the value of thesubject_preprocessingslot.getSubjectPreprocessing(boolean set) Gets the list ofsubject_preprocessingvalues, optionally initializing the list if needed.Gets the value of thesubject_sourceslot.Gets the value of thesubject_source_versionslot.Gets the value of thesubject_typeslot.inthashCode()booleanIndicates whether the subject of this mapping is not mapped to any entity on the object side.booleanIndicates whether the object of this mapping is not mapped to any entity on the subject side.invert()Creates an inverted version of this mapping if possible.Creates an inverted version of this mapping with an explicit predicate.booleanIndicates whether this mapping represents a "literal" mapping.booleanIndicates whether this mapping represents a "missing" mapping.voidsetAuthorId(List<String> value) Sets the value of theauthor_idslot.voidsetAuthorLabel(List<String> value) Sets the value of theauthor_labelslot.voidsetCardinalityScope(List<String> value) Sets the value of thecardinality_scopeslot.voidsetComment(String value) Sets the value of thecommentslot.voidsetConfidence(Double value) Sets the value of theconfidenceslot.voidsetCreatorId(List<String> value) Sets the value of thecreator_idslot.voidsetCreatorLabel(List<String> value) Sets the value of thecreator_labelslot.voidsetCurationRule(List<String> value) Sets the value of thecuration_ruleslot.voidsetCurationRuleText(List<String> value) Sets the value of thecuration_rule_textslot.voidsetExtensions(Map<String, ExtensionValue> value) Sets the map of extension values.voidsetIssueTrackerItem(String value) Sets the value of theissue_tracker_itemslot.voidsetLicense(String value) Sets the value of thelicenseslot.voidSets the value of themapping_cardinalityslot.voidsetMappingDate(LocalDate value) Sets the value of themapping_dateslot.voidsetMappingJustification(String value) Sets the value of themapping_justificationslot.voidsetMappingProvider(String value) Sets the value of themapping_providerslot.voidsetMappingSource(String value) Sets the value of themapping_sourceslot.voidsetMappingTool(String value) Sets the value of themapping_toolslot.voidsetMappingToolId(String value) Sets the value of themapping_tool_idslot.voidsetMappingToolVersion(String value) Sets the value of themapping_tool_versionslot.voidsetMatchString(List<String> value) Sets the value of thematch_stringslot.voidsetObjectCategory(String value) Sets the value of theobject_categoryslot.voidsetObjectId(String value) Sets the value of theobject_idslot.voidsetObjectLabel(String value) Sets the value of theobject_labelslot.voidsetObjectMatchField(List<String> value) Sets the value of theobject_match_fieldslot.voidsetObjectPreprocessing(List<String> value) Sets the value of theobject_preprocessingslot.voidsetObjectSource(String value) Sets the value of theobject_sourceslot.voidsetObjectSourceVersion(String value) Sets the value of theobject_source_versionslot.voidsetObjectType(EntityType value) Sets the value of theobject_typeslot.voidSets the value of theotherslot.voidsetPredicateId(String value) Sets the value of thepredicate_idslot.voidsetPredicateLabel(String value) Sets the value of thepredicate_labelslot.voidSets the value of thepredicate_modifierslot.voidsetPredicateType(EntityType value) Sets the value of thepredicate_typeslot.voidsetPublicationDate(LocalDate value) Sets the value of thepublication_dateslot.voidsetRecordId(String value) Sets the value of therecord_idslot.voidsetReviewDate(LocalDate value) Sets the value of thereview_dateslot.voidsetReviewerAgreement(Double value) Sets the value of thereviewer_agreementslot.voidsetReviewerId(List<String> value) Sets the value of thereviewer_idslot.voidsetReviewerLabel(List<String> value) Sets the value of thereviewer_labelslot.voidsetSeeAlso(List<String> value) Sets the value of thesee_alsoslot.voidDeprecated.Use#setSimilarityMeasure(String)instead.voidsetSemanticSimilarityScore(Double value) Deprecated.Use#setSimilarityScore(Double)instead.voidsetSimilarityMeasure(String value) Sets the value of thesimilarity_measureslot.voidsetSimilarityScore(Double value) Sets the value of thesimilarity_scoreslot.voidsetSubjectCategory(String value) Sets the value of thesubject_categoryslot.voidsetSubjectId(String value) Sets the value of thesubject_idslot.voidsetSubjectLabel(String value) Sets the value of thesubject_labelslot.voidsetSubjectMatchField(List<String> value) Sets the value of thesubject_match_fieldslot.voidsetSubjectPreprocessing(List<String> value) Sets the value of thesubject_preprocessingslot.voidsetSubjectSource(String value) Sets the value of thesubject_sourceslot.voidsetSubjectSourceVersion(String value) Sets the value of thesubject_source_versionslot.voidsetSubjectType(EntityType value) Sets the value of thesubject_typeslot.toSExpr()Creates a canonical S-expression representing this mapping.toString()
-
Constructor Details
-
Mapping
public Mapping()Creates a new empty instance. -
Mapping
protected Mapping(String recordId, String subjectId, String subjectLabel, String subjectCategory, String predicateId, String predicateLabel, PredicateModifier predicateModifier, String objectId, String objectLabel, String objectCategory, String mappingJustification, List<String> authorId, List<String> authorLabel, List<String> reviewerId, List<String> reviewerLabel, List<String> creatorId, List<String> creatorLabel, String license, EntityType subjectType, String subjectSource, String subjectSourceVersion, EntityType objectType, String objectSource, String objectSourceVersion, EntityType predicateType, String mappingProvider, String mappingSource, MappingCardinality mappingCardinality, List<String> cardinalityScope, String mappingTool, String mappingToolId, String mappingToolVersion, LocalDate mappingDate, LocalDate publicationDate, LocalDate reviewDate, Double confidence, Double reviewerAgreement, List<String> curationRule, List<String> curationRuleText, List<String> subjectMatchField, List<String> objectMatchField, List<String> matchString, List<String> subjectPreprocessing, List<String> objectPreprocessing, Double similarityScore, String similarityMeasure, List<String> seeAlso, String issueTrackerItem, String other, String comment, Map<String, ExtensionValue> extensions) Creates a new instance from the specified values.
-
-
Method Details
-
getRecordId
Gets the value of therecord_idslot. -
setRecordId
Sets the value of therecord_idslot. -
getSubjectId
Gets the value of thesubject_idslot. -
setSubjectId
Sets the value of thesubject_idslot. -
getSubjectLabel
Gets the value of thesubject_labelslot. -
setSubjectLabel
Sets the value of thesubject_labelslot. -
getSubjectCategory
Gets the value of thesubject_categoryslot. -
setSubjectCategory
Sets the value of thesubject_categoryslot. -
getPredicateId
Gets the value of thepredicate_idslot. -
setPredicateId
Sets the value of thepredicate_idslot. -
getPredicateLabel
Gets the value of thepredicate_labelslot. -
setPredicateLabel
Sets the value of thepredicate_labelslot. -
getPredicateModifier
Gets the value of thepredicate_modifierslot. -
setPredicateModifier
Sets the value of thepredicate_modifierslot. -
getObjectId
Gets the value of theobject_idslot. -
setObjectId
Sets the value of theobject_idslot. -
getObjectLabel
Gets the value of theobject_labelslot. -
setObjectLabel
Sets the value of theobject_labelslot. -
getObjectCategory
Gets the value of theobject_categoryslot. -
setObjectCategory
Sets the value of theobject_categoryslot. -
getMappingJustification
Gets the value of themapping_justificationslot. -
setMappingJustification
Sets the value of themapping_justificationslot. -
getAuthorId
-
getAuthorId
-
setAuthorId
-
getAuthorLabel
-
getAuthorLabel
-
setAuthorLabel
-
getReviewerId
-
getReviewerId
-
setReviewerId
-
getReviewerLabel
-
getReviewerLabel
-
setReviewerLabel
-
getCreatorId
-
getCreatorId
-
setCreatorId
-
getCreatorLabel
-
getCreatorLabel
-
setCreatorLabel
-
getLicense
Gets the value of thelicenseslot. -
setLicense
Sets the value of thelicenseslot. -
getSubjectType
Gets the value of thesubject_typeslot. -
setSubjectType
Sets the value of thesubject_typeslot. -
getSubjectSource
Gets the value of thesubject_sourceslot. -
setSubjectSource
Sets the value of thesubject_sourceslot. -
getSubjectSourceVersion
Gets the value of thesubject_source_versionslot. -
setSubjectSourceVersion
Sets the value of thesubject_source_versionslot. -
getObjectType
Gets the value of theobject_typeslot. -
setObjectType
Sets the value of theobject_typeslot. -
getObjectSource
Gets the value of theobject_sourceslot. -
setObjectSource
Sets the value of theobject_sourceslot. -
getObjectSourceVersion
Gets the value of theobject_source_versionslot. -
setObjectSourceVersion
Sets the value of theobject_source_versionslot. -
getPredicateType
Gets the value of thepredicate_typeslot. -
setPredicateType
Sets the value of thepredicate_typeslot. -
getMappingProvider
Gets the value of themapping_providerslot. -
setMappingProvider
Sets the value of themapping_providerslot. -
getMappingSource
Gets the value of themapping_sourceslot. -
setMappingSource
Sets the value of themapping_sourceslot. -
getMappingCardinality
Gets the value of themapping_cardinalityslot. -
setMappingCardinality
Sets the value of themapping_cardinalityslot. -
getCardinalityScope
-
getCardinalityScope
-
setCardinalityScope
-
getMappingTool
Gets the value of themapping_toolslot. -
setMappingTool
Sets the value of themapping_toolslot. -
getMappingToolId
Gets the value of themapping_tool_idslot. -
setMappingToolId
Sets the value of themapping_tool_idslot. -
getMappingToolVersion
Gets the value of themapping_tool_versionslot. -
setMappingToolVersion
Sets the value of themapping_tool_versionslot. -
getMappingDate
Gets the value of themapping_dateslot. -
setMappingDate
Sets the value of themapping_dateslot. -
getPublicationDate
Gets the value of thepublication_dateslot. -
setPublicationDate
Sets the value of thepublication_dateslot. -
getReviewDate
Gets the value of thereview_dateslot. -
setReviewDate
Sets the value of thereview_dateslot. -
getConfidence
Gets the value of theconfidenceslot. -
setConfidence
Sets the value of theconfidenceslot. -
getReviewerAgreement
Gets the value of thereviewer_agreementslot. -
setReviewerAgreement
Sets the value of thereviewer_agreementslot. -
getCurationRule
-
getCurationRule
-
setCurationRule
-
getCurationRuleText
-
getCurationRuleText
-
setCurationRuleText
-
getSubjectMatchField
-
getSubjectMatchField
Gets the list ofsubject_match_fieldvalues, optionally initializing the list if needed.- Parameters:
set- Iftrue, the underlying field will be initialized to an empty list if it happens to benull.- Returns:
- The list of subject_match_field values.
-
setSubjectMatchField
-
getObjectMatchField
-
getObjectMatchField
-
setObjectMatchField
-
getMatchString
-
getMatchString
-
setMatchString
-
getSubjectPreprocessing
-
getSubjectPreprocessing
Gets the list ofsubject_preprocessingvalues, optionally initializing the list if needed.- Parameters:
set- Iftrue, the underlying field will be initialized to an empty list if it happens to benull.- Returns:
- The list of subject_preprocessing values.
-
setSubjectPreprocessing
-
getObjectPreprocessing
-
getObjectPreprocessing
Gets the list ofobject_preprocessingvalues, optionally initializing the list if needed.- Parameters:
set- Iftrue, the underlying field will be initialized to an empty list if it happens to benull.- Returns:
- The list of object_preprocessing values.
-
setObjectPreprocessing
-
getSimilarityScore
Gets the value of thesimilarity_scoreslot. -
setSimilarityScore
Sets the value of thesimilarity_scoreslot. -
getSimilarityMeasure
Gets the value of thesimilarity_measureslot. -
setSimilarityMeasure
Sets the value of thesimilarity_measureslot. -
getSeeAlso
-
getSeeAlso
-
setSeeAlso
-
getIssueTrackerItem
Gets the value of theissue_tracker_itemslot. -
setIssueTrackerItem
Sets the value of theissue_tracker_itemslot. -
getOther
Gets the value of theotherslot. -
setOther
Sets the value of theotherslot. -
getComment
Gets the value of thecommentslot. -
setComment
Sets the value of thecommentslot. -
getExtensions
Gets the map of extension values. -
getExtensions
Gets the map of extension values, optionally initializing the map if needed.- Parameters:
set- Iftrue, the underlying field will be initialized to an empty map if it happens to benull.- Returns:
- The map of extension values.
-
setExtensions
Sets the map of extension values. -
isUnmapped
public boolean isUnmapped()Indicates whether this mapping represents a "missing" mapping.A missing mapping is a mapping where the subject_id or the object_id (or both) is the special value
sssom:NoTermFound, and indicates that an entity in one domain could not be mapped to any entity in another domain.- Returns:
Trueif the mapping is a missing mapping,falseotherwise.
-
hasUnmappedSubject
public boolean hasUnmappedSubject()Indicates whether the object of this mapping is not mapped to any entity on the subject side.- Returns:
Trueif the subject of this mapping issssom:NoTermFound,falseotherwise.
-
hasUnmappedObject
public boolean hasUnmappedObject()Indicates whether the subject of this mapping is not mapped to any entity on the object side.- Returns:
Trueif the object of this mapping issssom:NoTermFound,falseotherwise.
-
isLiteral
public boolean isLiteral()Indicates whether this mapping represents a "literal" mapping.A literal mapping is a mapping where either the subject or the object (or both) is a literal, as indicated by the
subject_typeorobject_typeslot being set toEntityType.RDFS_LITERAL.- Returns:
Trueif the mapping is a literal mapping,falseotherwise.
-
invert
-
invert
Creates an inverted version of this mapping if possible.Inversion is possible if the predicate is one of the known "common" predicates and is invertible. To invert a mapping with an arbitrary predicate, use
invert(String).- Returns:
- A new mapping that is the inverse of this one, or
nullif inversion is not possible.
-
toSExpr
Creates a canonical S-expression representing this mapping.- Returns:
- A String uniquely representing this mapping, as a canonical S-expression.
-
getSemanticSimilarityScore
Deprecated.Use#getSimilarityScore()instead. -
setSemanticSimilarityScore
Deprecated.Use#setSimilarityScore(Double)instead. -
getSemanticSimilarityMeasure
Deprecated.Use#getSimilarityMeasure()instead. -
setSemanticSimilarityMeasure
Deprecated.Use#setSimilarityMeasure(String)instead. -
toString
-
equals
-
canEqual
-
hashCode
-
builder
-
toBuilder
-
#getSimilarityMeasure()instead.