Class Mapping


  • public class Mapping
    extends Object
    Represents a mapping object.

    Automatically generated from the SSSOM LinkML schema.

    • Method Detail

      • getRecordId

        public String getRecordId()
        Gets the value of the record_id slot.
      • setRecordId

        public void setRecordId​(String value)
        Sets the value of the record_id slot.
      • getSubjectId

        public String getSubjectId()
        Gets the value of the subject_id slot.
      • setSubjectId

        public void setSubjectId​(String value)
        Sets the value of the subject_id slot.
      • getSubjectLabel

        public String getSubjectLabel()
        Gets the value of the subject_label slot.
      • setSubjectLabel

        public void setSubjectLabel​(String value)
        Sets the value of the subject_label slot.
      • getSubjectCategory

        public String getSubjectCategory()
        Gets the value of the subject_category slot.
      • setSubjectCategory

        public void setSubjectCategory​(String value)
        Sets the value of the subject_category slot.
      • getPredicateId

        public String getPredicateId()
        Gets the value of the predicate_id slot.
      • setPredicateId

        public void setPredicateId​(String value)
        Sets the value of the predicate_id slot.
      • getPredicateLabel

        public String getPredicateLabel()
        Gets the value of the predicate_label slot.
      • setPredicateLabel

        public void setPredicateLabel​(String value)
        Sets the value of the predicate_label slot.
      • getPredicateModifier

        public PredicateModifier getPredicateModifier()
        Gets the value of the predicate_modifier slot.
      • setPredicateModifier

        public void setPredicateModifier​(PredicateModifier value)
        Sets the value of the predicate_modifier slot.
      • getObjectId

        public String getObjectId()
        Gets the value of the object_id slot.
      • setObjectId

        public void setObjectId​(String value)
        Sets the value of the object_id slot.
      • getObjectLabel

        public String getObjectLabel()
        Gets the value of the object_label slot.
      • setObjectLabel

        public void setObjectLabel​(String value)
        Sets the value of the object_label slot.
      • getObjectCategory

        public String getObjectCategory()
        Gets the value of the object_category slot.
      • setObjectCategory

        public void setObjectCategory​(String value)
        Sets the value of the object_category slot.
      • getMappingJustification

        public String getMappingJustification()
        Gets the value of the mapping_justification slot.
      • setMappingJustification

        public void setMappingJustification​(String value)
        Sets the value of the mapping_justification slot.
      • getAuthorId

        public List<String> getAuthorId()
        Gets the value of the author_id slot.
      • getAuthorId

        public List<String> getAuthorId​(boolean set)
        Gets the list of author_id values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of author_id values.
      • setAuthorId

        public void setAuthorId​(List<String> value)
        Sets the value of the author_id slot.
      • getAuthorLabel

        public List<String> getAuthorLabel()
        Gets the value of the author_label slot.
      • getAuthorLabel

        public List<String> getAuthorLabel​(boolean set)
        Gets the list of author_label values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of author_label values.
      • setAuthorLabel

        public void setAuthorLabel​(List<String> value)
        Sets the value of the author_label slot.
      • getReviewerId

        public List<String> getReviewerId()
        Gets the value of the reviewer_id slot.
      • getReviewerId

        public List<String> getReviewerId​(boolean set)
        Gets the list of reviewer_id values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of reviewer_id values.
      • setReviewerId

        public void setReviewerId​(List<String> value)
        Sets the value of the reviewer_id slot.
      • getReviewerLabel

        public List<String> getReviewerLabel()
        Gets the value of the reviewer_label slot.
      • getReviewerLabel

        public List<String> getReviewerLabel​(boolean set)
        Gets the list of reviewer_label values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of reviewer_label values.
      • setReviewerLabel

        public void setReviewerLabel​(List<String> value)
        Sets the value of the reviewer_label slot.
      • getCreatorId

        public List<String> getCreatorId()
        Gets the value of the creator_id slot.
      • getCreatorId

        public List<String> getCreatorId​(boolean set)
        Gets the list of creator_id values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of creator_id values.
      • setCreatorId

        public void setCreatorId​(List<String> value)
        Sets the value of the creator_id slot.
      • getCreatorLabel

        public List<String> getCreatorLabel()
        Gets the value of the creator_label slot.
      • getCreatorLabel

        public List<String> getCreatorLabel​(boolean set)
        Gets the list of creator_label values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of creator_label values.
      • setCreatorLabel

        public void setCreatorLabel​(List<String> value)
        Sets the value of the creator_label slot.
      • getLicense

        public String getLicense()
        Gets the value of the license slot.
      • setLicense

        public void setLicense​(String value)
        Sets the value of the license slot.
      • getSubjectType

        public EntityType getSubjectType()
        Gets the value of the subject_type slot.
      • setSubjectType

        public void setSubjectType​(EntityType value)
        Sets the value of the subject_type slot.
      • getSubjectSource

        public String getSubjectSource()
        Gets the value of the subject_source slot.
      • setSubjectSource

        public void setSubjectSource​(String value)
        Sets the value of the subject_source slot.
      • getSubjectSourceVersion

        public String getSubjectSourceVersion()
        Gets the value of the subject_source_version slot.
      • setSubjectSourceVersion

        public void setSubjectSourceVersion​(String value)
        Sets the value of the subject_source_version slot.
      • getObjectType

        public EntityType getObjectType()
        Gets the value of the object_type slot.
      • setObjectType

        public void setObjectType​(EntityType value)
        Sets the value of the object_type slot.
      • getObjectSource

        public String getObjectSource()
        Gets the value of the object_source slot.
      • setObjectSource

        public void setObjectSource​(String value)
        Sets the value of the object_source slot.
      • getObjectSourceVersion

        public String getObjectSourceVersion()
        Gets the value of the object_source_version slot.
      • setObjectSourceVersion

        public void setObjectSourceVersion​(String value)
        Sets the value of the object_source_version slot.
      • getPredicateType

        public EntityType getPredicateType()
        Gets the value of the predicate_type slot.
      • setPredicateType

        public void setPredicateType​(EntityType value)
        Sets the value of the predicate_type slot.
      • getMappingProvider

        public String getMappingProvider()
        Gets the value of the mapping_provider slot.
      • setMappingProvider

        public void setMappingProvider​(String value)
        Sets the value of the mapping_provider slot.
      • getMappingSource

        public String getMappingSource()
        Gets the value of the mapping_source slot.
      • setMappingSource

        public void setMappingSource​(String value)
        Sets the value of the mapping_source slot.
      • getMappingCardinality

        public MappingCardinality getMappingCardinality()
        Gets the value of the mapping_cardinality slot.
      • setMappingCardinality

        public void setMappingCardinality​(MappingCardinality value)
        Sets the value of the mapping_cardinality slot.
      • getCardinalityScope

        public List<String> getCardinalityScope()
        Gets the value of the cardinality_scope slot.
      • getCardinalityScope

        public List<String> getCardinalityScope​(boolean set)
        Gets the list of cardinality_scope values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of cardinality_scope values.
      • setCardinalityScope

        public void setCardinalityScope​(List<String> value)
        Sets the value of the cardinality_scope slot.
      • getMappingTool

        public String getMappingTool()
        Gets the value of the mapping_tool slot.
      • setMappingTool

        public void setMappingTool​(String value)
        Sets the value of the mapping_tool slot.
      • getMappingToolId

        public String getMappingToolId()
        Gets the value of the mapping_tool_id slot.
      • setMappingToolId

        public void setMappingToolId​(String value)
        Sets the value of the mapping_tool_id slot.
      • getMappingToolVersion

        public String getMappingToolVersion()
        Gets the value of the mapping_tool_version slot.
      • setMappingToolVersion

        public void setMappingToolVersion​(String value)
        Sets the value of the mapping_tool_version slot.
      • getMappingDate

        public LocalDate getMappingDate()
        Gets the value of the mapping_date slot.
      • setMappingDate

        public void setMappingDate​(LocalDate value)
        Sets the value of the mapping_date slot.
      • getPublicationDate

        public LocalDate getPublicationDate()
        Gets the value of the publication_date slot.
      • setPublicationDate

        public void setPublicationDate​(LocalDate value)
        Sets the value of the publication_date slot.
      • getReviewDate

        public LocalDate getReviewDate()
        Gets the value of the review_date slot.
      • setReviewDate

        public void setReviewDate​(LocalDate value)
        Sets the value of the review_date slot.
      • getConfidence

        public Double getConfidence()
        Gets the value of the confidence slot.
      • setConfidence

        public void setConfidence​(Double value)
        Sets the value of the confidence slot.
      • getReviewerAgreement

        public Double getReviewerAgreement()
        Gets the value of the reviewer_agreement slot.
      • setReviewerAgreement

        public void setReviewerAgreement​(Double value)
        Sets the value of the reviewer_agreement slot.
      • getCurationRule

        public List<String> getCurationRule()
        Gets the value of the curation_rule slot.
      • getCurationRule

        public List<String> getCurationRule​(boolean set)
        Gets the list of curation_rule values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of curation_rule values.
      • setCurationRule

        public void setCurationRule​(List<String> value)
        Sets the value of the curation_rule slot.
      • getCurationRuleText

        public List<String> getCurationRuleText()
        Gets the value of the curation_rule_text slot.
      • getCurationRuleText

        public List<String> getCurationRuleText​(boolean set)
        Gets the list of curation_rule_text values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of curation_rule_text values.
      • setCurationRuleText

        public void setCurationRuleText​(List<String> value)
        Sets the value of the curation_rule_text slot.
      • getSubjectMatchField

        public List<String> getSubjectMatchField()
        Gets the value of the subject_match_field slot.
      • getSubjectMatchField

        public List<String> getSubjectMatchField​(boolean set)
        Gets the list of subject_match_field values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of subject_match_field values.
      • setSubjectMatchField

        public void setSubjectMatchField​(List<String> value)
        Sets the value of the subject_match_field slot.
      • getObjectMatchField

        public List<String> getObjectMatchField()
        Gets the value of the object_match_field slot.
      • getObjectMatchField

        public List<String> getObjectMatchField​(boolean set)
        Gets the list of object_match_field values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of object_match_field values.
      • setObjectMatchField

        public void setObjectMatchField​(List<String> value)
        Sets the value of the object_match_field slot.
      • getMatchString

        public List<String> getMatchString()
        Gets the value of the match_string slot.
      • getMatchString

        public List<String> getMatchString​(boolean set)
        Gets the list of match_string values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of match_string values.
      • setMatchString

        public void setMatchString​(List<String> value)
        Sets the value of the match_string slot.
      • getSubjectPreprocessing

        public List<String> getSubjectPreprocessing()
        Gets the value of the subject_preprocessing slot.
      • getSubjectPreprocessing

        public List<String> getSubjectPreprocessing​(boolean set)
        Gets the list of subject_preprocessing values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of subject_preprocessing values.
      • setSubjectPreprocessing

        public void setSubjectPreprocessing​(List<String> value)
        Sets the value of the subject_preprocessing slot.
      • getObjectPreprocessing

        public List<String> getObjectPreprocessing()
        Gets the value of the object_preprocessing slot.
      • getObjectPreprocessing

        public List<String> getObjectPreprocessing​(boolean set)
        Gets the list of object_preprocessing values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of object_preprocessing values.
      • setObjectPreprocessing

        public void setObjectPreprocessing​(List<String> value)
        Sets the value of the object_preprocessing slot.
      • getSimilarityScore

        public Double getSimilarityScore()
        Gets the value of the similarity_score slot.
      • setSimilarityScore

        public void setSimilarityScore​(Double value)
        Sets the value of the similarity_score slot.
      • getSimilarityMeasure

        public String getSimilarityMeasure()
        Gets the value of the similarity_measure slot.
      • setSimilarityMeasure

        public void setSimilarityMeasure​(String value)
        Sets the value of the similarity_measure slot.
      • getSeeAlso

        public List<String> getSeeAlso()
        Gets the value of the see_also slot.
      • getSeeAlso

        public List<String> getSeeAlso​(boolean set)
        Gets the list of see_also values, optionally initializing the list if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty list if it happens to be null.
        Returns:
        The list of see_also values.
      • setSeeAlso

        public void setSeeAlso​(List<String> value)
        Sets the value of the see_also slot.
      • getIssueTrackerItem

        public String getIssueTrackerItem()
        Gets the value of the issue_tracker_item slot.
      • setIssueTrackerItem

        public void setIssueTrackerItem​(String value)
        Sets the value of the issue_tracker_item slot.
      • getOther

        public String getOther()
        Gets the value of the other slot.
      • setOther

        public void setOther​(String value)
        Sets the value of the other slot.
      • getComment

        public String getComment()
        Gets the value of the comment slot.
      • setComment

        public void setComment​(String value)
        Sets the value of the comment slot.
      • getExtensions

        public Map<String,​ExtensionValue> getExtensions​(boolean set)
        Gets the map of extension values, optionally initializing the map if needed.
        Parameters:
        set - If true, the underlying field will be initialized to an empty map if it happens to be null.
        Returns:
        The map of extension values.
      • setExtensions

        public void setExtensions​(Map<String,​ExtensionValue> value)
        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:
        True if the mapping is a missing mapping, false otherwise.
      • hasUnmappedSubject

        public boolean hasUnmappedSubject()
        Indicates whether the object of this mapping is not mapped to any entity on the subject side.
        Returns:
        True if the subject of this mapping is sssom:NoTermFound, false otherwise.
      • hasUnmappedObject

        public boolean hasUnmappedObject()
        Indicates whether the subject of this mapping is not mapped to any entity on the object side.
        Returns:
        True if the object of this mapping is sssom:NoTermFound, false otherwise.
      • 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_type or object_type slot being set to EntityType.RDFS_LITERAL.

        Returns:
        True if the mapping is a literal mapping, false otherwise.
      • invert

        public Mapping invert​(String predicate)
        Creates an inverted version of this mapping with an explicit predicate.
        Parameters:
        predicate - The predicate to use for the new mapping.
        Returns:
        A new mapping that is the inverse of this one, or null if the specified predicate is itself null.
      • invert

        public Mapping 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 null if inversion is not possible.
      • toSExpr

        public String toSExpr()
        Creates a canonical S-expression representing this mapping.
        Returns:
        A String uniquely representing this mapping, as a canonical S-expression.
      • getSemanticSimilarityScore

        @Deprecated
        public Double getSemanticSimilarityScore()
        Deprecated.
        Use #getSimilarityScore() instead.
      • setSemanticSimilarityScore

        @Deprecated
        public void setSemanticSimilarityScore​(Double value)
        Deprecated.
        Use #setSimilarityScore(Double) instead.
      • getSemanticSimilarityMeasure

        @Deprecated
        public String getSemanticSimilarityMeasure()
        Deprecated.
        Use #getSimilarityMeasure() instead.
      • setSemanticSimilarityMeasure

        @Deprecated
        public void setSemanticSimilarityMeasure​(String value)
        Deprecated.
        Use #setSimilarityMeasure(String) instead.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object