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

public class DcatDistribution extends Object
DcatDistribution describes a specific representation of a dataset (dcat:Distribution) such as a downloadable file or an access point.
  • 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 who can access the distribution (dct:accessRights).
    Return the IRIs of the data services that give access to the distribution (dcat:accessService).
    Return the URL of a resource that gives access to the distribution (dcat:accessURL).
    Return the size of the distribution in bytes (dcat:byteSize).
    Return the algorithm used to calculate the checksum (spdx:algorithm).
    Return the checksum of the downloadable file (spdx:checksumValue).
    Return the compression format of the distribution (dcat:compressFormat).
    Return the standards that the distribution conforms to (dct:conformsTo).
    Return the description of the distribution (dct:description).
    Return the URL of the downloadable file (dcat:downloadURL).
    Return the file format of the distribution (dct:format).
    Return the IRI that identifies the distribution.
    Return the date that the distribution was formally issued (dct:issued).
    Return the languages used in the distribution (dct:language).
    Return the licence under which the distribution is made available (dct:license).
    Return the IANA media type of the distribution (dcat:mediaType).
    Return the date that the distribution was last changed (dct:modified).
    Return the properties of the distribution that have no specific field in this bean, keyed by the IRI of the property.
    Return the packaging format of the distribution (dcat:packageFormat).
    Return the rights statement for the distribution (dct:rights).
    Return the name of the distribution (dct:title).
    int
    Return hash code based on properties.
    void
    setAccessRights(String accessRights)
    Set up who can access the distribution (dct:accessRights).
    void
    setAccessServices(List<String> accessServices)
    Set up the IRIs of the data services that give access to the distribution (dcat:accessService).
    void
    setAccessURL(String accessURL)
    Set up the URL of a resource that gives access to the distribution (dcat:accessURL).
    void
    setByteSize(Long byteSize)
    Set up the size of the distribution in bytes (dcat:byteSize).
    void
    setChecksumAlgorithm(String checksumAlgorithm)
    Set up the algorithm used to calculate the checksum (spdx:algorithm).
    void
    setChecksumValue(String checksumValue)
    Set up the checksum of the downloadable file (spdx:checksumValue).
    void
    setCompressFormat(String compressFormat)
    Set up the compression format of the distribution (dcat:compressFormat).
    void
    setConformsTo(List<String> conformsTo)
    Set up the standards that the distribution conforms to (dct:conformsTo).
    void
    setDescription(String description)
    Set up the description of the distribution (dct:description).
    void
    setDownloadURL(String downloadURL)
    Set up the URL of the downloadable file (dcat:downloadURL).
    void
    setFormat(String format)
    Set up the file format of the distribution (dct:format).
    void
    Set up the IRI that identifies the distribution.
    void
    setIssued(String issued)
    Set up the date that the distribution was formally issued (dct:issued).
    void
    setLanguages(List<String> languages)
    Set up the languages used in the distribution (dct:language).
    void
    Set up the licence under which the distribution is made available (dct:license).
    void
    setMediaType(String mediaType)
    Set up the IANA media type of the distribution (dcat:mediaType).
    void
    setModified(String modified)
    Set up the date that the distribution was last changed (dct:modified).
    void
    Set up the properties of the distribution that have no specific field in this bean, keyed by the IRI of the property.
    void
    setPackageFormat(String packageFormat)
    Set up the packaging format of the distribution (dcat:packageFormat).
    void
    setRights(String rights)
    Set up the rights statement for the distribution (dct:rights).
    void
    Set up the name of the distribution (dct:title).
    Standard toString method.

    Methods inherited from class java.lang.Object

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

    • DcatDistribution

      public DcatDistribution()
      Default constructor
  • Method Details

    • getIri

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

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

      public String getTitle()
      Return the name of the distribution (dct:title).
      Returns:
      string name
    • setTitle

      public void setTitle(String title)
      Set up the name of the distribution (dct:title).
      Parameters:
      title - string name
    • getDescription

      public String getDescription()
      Return the description of the distribution (dct:description).
      Returns:
      string description
    • setDescription

      public void setDescription(String description)
      Set up the description of the distribution (dct:description).
      Parameters:
      description - string description
    • getAccessURL

      public String getAccessURL()
      Return the URL of a resource that gives access to the distribution (dcat:accessURL).
      Returns:
      string URL
    • setAccessURL

      public void setAccessURL(String accessURL)
      Set up the URL of a resource that gives access to the distribution (dcat:accessURL).
      Parameters:
      accessURL - string URL
    • getDownloadURL

      public String getDownloadURL()
      Return the URL of the downloadable file (dcat:downloadURL).
      Returns:
      string URL
    • setDownloadURL

      public void setDownloadURL(String downloadURL)
      Set up the URL of the downloadable file (dcat:downloadURL).
      Parameters:
      downloadURL - string URL
    • getMediaType

      public String getMediaType()
      Return the IANA media type of the distribution (dcat:mediaType).
      Returns:
      string media type
    • setMediaType

      public void setMediaType(String mediaType)
      Set up the IANA media type of the distribution (dcat:mediaType).
      Parameters:
      mediaType - string media type
    • getFormat

      public String getFormat()
      Return the file format of the distribution (dct:format).
      Returns:
      string format
    • setFormat

      public void setFormat(String format)
      Set up the file format of the distribution (dct:format).
      Parameters:
      format - string format
    • getByteSize

      public Long getByteSize()
      Return the size of the distribution in bytes (dcat:byteSize).
      Returns:
      long
    • setByteSize

      public void setByteSize(Long byteSize)
      Set up the size of the distribution in bytes (dcat:byteSize).
      Parameters:
      byteSize - long
    • getCompressFormat

      public String getCompressFormat()
      Return the compression format of the distribution (dcat:compressFormat).
      Returns:
      string format
    • setCompressFormat

      public void setCompressFormat(String compressFormat)
      Set up the compression format of the distribution (dcat:compressFormat).
      Parameters:
      compressFormat - string format
    • getPackageFormat

      public String getPackageFormat()
      Return the packaging format of the distribution (dcat:packageFormat).
      Returns:
      string format
    • setPackageFormat

      public void setPackageFormat(String packageFormat)
      Set up the packaging format of the distribution (dcat:packageFormat).
      Parameters:
      packageFormat - string format
    • getIssued

      public String getIssued()
      Return the date that the distribution was formally issued (dct:issued).
      Returns:
      string date
    • setIssued

      public void setIssued(String issued)
      Set up the date that the distribution was formally issued (dct:issued).
      Parameters:
      issued - string date
    • getModified

      public String getModified()
      Return the date that the distribution was last changed (dct:modified).
      Returns:
      string date
    • setModified

      public void setModified(String modified)
      Set up the date that the distribution was last changed (dct:modified).
      Parameters:
      modified - string date
    • getLicense

      public DcatConcept getLicense()
      Return the licence under which the distribution is made available (dct:license).
      Returns:
      concept
    • setLicense

      public void setLicense(DcatConcept license)
      Set up the licence under which the distribution is made available (dct:license).
      Parameters:
      license - concept
    • getRights

      public String getRights()
      Return the rights statement for the distribution (dct:rights).
      Returns:
      string
    • setRights

      public void setRights(String rights)
      Set up the rights statement for the distribution (dct:rights).
      Parameters:
      rights - string
    • getAccessRights

      public String getAccessRights()
      Return who can access the distribution (dct:accessRights).
      Returns:
      string
    • setAccessRights

      public void setAccessRights(String accessRights)
      Set up who can access the distribution (dct:accessRights).
      Parameters:
      accessRights - string
    • getConformsTo

      public List<String> getConformsTo()
      Return the standards that the distribution conforms to (dct:conformsTo).
      Returns:
      list of IRIs
    • setConformsTo

      public void setConformsTo(List<String> conformsTo)
      Set up the standards that the distribution conforms to (dct:conformsTo).
      Parameters:
      conformsTo - list of IRIs
    • getLanguages

      public List<String> getLanguages()
      Return the languages used in the distribution (dct:language).
      Returns:
      list of languages
    • setLanguages

      public void setLanguages(List<String> languages)
      Set up the languages used in the distribution (dct:language).
      Parameters:
      languages - list of languages
    • getChecksumAlgorithm

      public String getChecksumAlgorithm()
      Return the algorithm used to calculate the checksum (spdx:algorithm).
      Returns:
      string algorithm
    • setChecksumAlgorithm

      public void setChecksumAlgorithm(String checksumAlgorithm)
      Set up the algorithm used to calculate the checksum (spdx:algorithm).
      Parameters:
      checksumAlgorithm - string algorithm
    • getChecksumValue

      public String getChecksumValue()
      Return the checksum of the downloadable file (spdx:checksumValue).
      Returns:
      string checksum
    • setChecksumValue

      public void setChecksumValue(String checksumValue)
      Set up the checksum of the downloadable file (spdx:checksumValue).
      Parameters:
      checksumValue - string checksum
    • getAccessServices

      public List<String> getAccessServices()
      Return the IRIs of the data services that give access to the distribution (dcat:accessService).
      Returns:
      list of IRIs
    • setAccessServices

      public void setAccessServices(List<String> accessServices)
      Set up the IRIs of the data services that give access to the distribution (dcat:accessService).
      Parameters:
      accessServices - list of IRIs
    • getOtherProperties

      public Map<String,List<String>> getOtherProperties()
      Return the properties of the distribution that have no specific field in this bean, keyed by the IRI of the property.
      Returns:
      map of property IRI to values
    • setOtherProperties

      public void setOtherProperties(Map<String,List<String>> otherProperties)
      Set up the properties of the distribution that have no specific field in this bean, keyed by the IRI of the property.
      Parameters:
      otherProperties - map of property IRI to values
    • 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