Class SemanticAnnotation
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
org.odpi.openmetadata.frameworks.discovery.properties.Annotation
org.odpi.openmetadata.frameworks.discovery.properties.DataFieldAnnotation
org.odpi.openmetadata.frameworks.discovery.properties.SemanticAnnotation
- All Implemented Interfaces:
Serializable
SemanticAnnotation provides a recommendation as to the likely meaning of data. This can be expressed informally with
explicit strings, or via lists of GUIDs that match elements in a formal glossary. It can be attached to an asset
or a data field within an asset.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSemanticAnnotation(SemanticAnnotation template) Copy clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return a list of unique identifiers of glossary categories that describe the topic of the data.Return a list of unique identifiers of glossary terms that describe the meaning of the data.Return a string that describes the meaning of this data.Return a string that describes the topic that this data is about.inthashCode()Create a hash code for this element type.voidsetCandidateGlossaryCategoryGUIDs(List<String> candidateGlossaryCategoryGUIDs) Set up a list of unique identifiers of glossary categories that describe the topic of the data.voidsetCandidateGlossaryTermGUIDs(List<String> candidateGlossaryTermGUIDs) Set up a list of unique identifiers of glossary terms that describe the meaning of the data.voidsetInformalTerm(String informalTerm) Set up a string that describes the meaning of this data.voidsetInformalTopic(String informalTopic) Set up a string that describes the topic that this data is about.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.Annotation
getAdditionalProperties, getAnalysisStep, getAnnotationStatus, getAnnotationType, getConfidenceLevel, getExplanation, getExpression, getJsonProperties, getNumAttachedAnnotations, getReviewComment, getReviewDate, getSteward, getSummary, setAdditionalProperties, setAnalysisStep, setAnnotationStatus, setAnnotationType, setConfidenceLevel, setExplanation, setExpression, setJsonProperties, setNumAttachedAnnotations, setReviewComment, setReviewDate, setSteward, setSummaryMethods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setTypeName
-
Constructor Details
-
SemanticAnnotation
public SemanticAnnotation()Default constructor -
SemanticAnnotation
Copy clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getInformalTerm
Return a string that describes the meaning of this data.- Returns:
- string name
-
setInformalTerm
Set up a string that describes the meaning of this data.- Parameters:
informalTerm- string name
-
getInformalTopic
Return a string that describes the topic that this data is about.- Returns:
- string name
-
setInformalTopic
Set up a string that describes the topic that this data is about.- Parameters:
informalTopic- string name
-
getCandidateGlossaryTermGUIDs
Return a list of unique identifiers of glossary terms that describe the meaning of the data.- Returns:
- list of guids
-
setCandidateGlossaryTermGUIDs
Set up a list of unique identifiers of glossary terms that describe the meaning of the data.- Parameters:
candidateGlossaryTermGUIDs- list of guids
-
getCandidateGlossaryCategoryGUIDs
Return a list of unique identifiers of glossary categories that describe the topic of the data.- Returns:
- list of guids
-
setCandidateGlossaryCategoryGUIDs
Set up a list of unique identifiers of glossary categories that describe the topic of the data.- Parameters:
candidateGlossaryCategoryGUIDs- list of guids
-
toString
Standard toString method.- Overrides:
toStringin classDataFieldAnnotation- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAnnotation- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classAnnotation- Returns:
- int hash code
-