java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.properties.DcatConcept

public class DcatConcept extends Object
DcatConcept describes a controlled value used in a DCAT description, such as a theme (skos:Concept), a licence (dct:LicenseDocument) or a media type. It is identified by its IRI and may also have a human-readable label.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the IRI that identifies the concept.
    Return the human-readable label of the concept (skos:prefLabel, dct:title or rdfs:label).
    int
    Return hash code based on properties.
    void
    Set up the IRI that identifies the concept.
    void
    Set up the human-readable label of the concept (skos:prefLabel, dct:title or rdfs:label).
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DcatConcept

      public DcatConcept()
      Default constructor
  • Method Details

    • getIri

      public String getIri()
      Return the IRI that identifies the concept.
      Returns:
      string IRI
    • setIri

      public void setIri(String iri)
      Set up the IRI that identifies the concept.
      Parameters:
      iri - string IRI
    • getLabel

      public String getLabel()
      Return the human-readable label of the concept (skos:prefLabel, dct:title or rdfs:label).
      Returns:
      string label
    • setLabel

      public void setLabel(String label)
      Set up the human-readable label of the concept (skos:prefLabel, dct:title or rdfs:label).
      Parameters:
      label - string label
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int