java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.properties.DcatResource
Direct Known Subclasses:
DcatDataService, DcatDataset

public class DcatResource extends Object
DcatResource holds the properties that are common to the resources described in a DCAT catalog (dcat:Resource): datasets, dataset series, data services and the catalogs themselves.
  • Constructor Details

    • DcatResource

      public DcatResource()
      Default constructor
  • Method Details

    • getIri

      public String getIri()
      Return the IRI that identifies the resource. It is null if the resource is a blank node.
      Returns:
      string IRI
    • setIri

      public void setIri(String iri)
      Set up the IRI that identifies the resource. It is null if the resource is a blank node.
      Parameters:
      iri - string IRI
    • getNodeId

      public String getNodeId()
      Return the identifier of the resource within its document. It is the IRI of the resource, or a blank node identifier if the resource has no IRI, and is the value used when another resource in the document refers to this one.
      Returns:
      string identifier
    • setNodeId

      public void setNodeId(String nodeId)
      Set up the identifier of the resource within its document. It is the IRI of the resource, or a blank node identifier if the resource has no IRI, and is the value used when another resource in the document refers to this one.
      Parameters:
      nodeId - string identifier
    • getTitle

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

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

      public Map<String,String> getTitleTranslations()
      Return the names of the resource in other languages, keyed by language tag.
      Returns:
      map of language to name
    • setTitleTranslations

      public void setTitleTranslations(Map<String,String> titleTranslations)
      Set up the names of the resource in other languages, keyed by language tag.
      Parameters:
      titleTranslations - map of language to name
    • getDescription

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

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

      public Map<String,String> getDescriptionTranslations()
      Return the descriptions of the resource in other languages, keyed by language tag.
      Returns:
      map of language to description
    • setDescriptionTranslations

      public void setDescriptionTranslations(Map<String,String> descriptionTranslations)
      Set up the descriptions of the resource in other languages, keyed by language tag.
      Parameters:
      descriptionTranslations - map of language to description
    • getIdentifiers

      public List<String> getIdentifiers()
      Return the identifiers of the resource (dct:identifier).
      Returns:
      list of identifiers
    • setIdentifiers

      public void setIdentifiers(List<String> identifiers)
      Set up the identifiers of the resource (dct:identifier).
      Parameters:
      identifiers - list of identifiers
    • getIssued

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

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

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

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

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

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

      public DcatAgent getPublisher()
      Return the agent responsible for making the resource available (dct:publisher).
      Returns:
      agent
    • setPublisher

      public void setPublisher(DcatAgent publisher)
      Set up the agent responsible for making the resource available (dct:publisher).
      Parameters:
      publisher - agent
    • getCreators

      public List<DcatAgent> getCreators()
      Return the agents responsible for producing the resource (dct:creator).
      Returns:
      list of agents
    • setCreators

      public void setCreators(List<DcatAgent> creators)
      Set up the agents responsible for producing the resource (dct:creator).
      Parameters:
      creators - list of agents
    • getContactPoints

      public List<DcatContactPoint> getContactPoints()
      Return who to contact about the resource (dcat:contactPoint).
      Returns:
      list of contact points
    • setContactPoints

      public void setContactPoints(List<DcatContactPoint> contactPoints)
      Set up who to contact about the resource (dcat:contactPoint).
      Parameters:
      contactPoints - list of contact points
    • getKeywords

      public List<String> getKeywords()
      Return the keywords or tags describing the resource (dcat:keyword).
      Returns:
      list of keywords
    • setKeywords

      public void setKeywords(List<String> keywords)
      Set up the keywords or tags describing the resource (dcat:keyword).
      Parameters:
      keywords - list of keywords
    • getThemes

      public List<DcatConcept> getThemes()
      Return the themes (categories) of the resource (dcat:theme).
      Returns:
      list of concepts
    • setThemes

      public void setThemes(List<DcatConcept> themes)
      Set up the themes (categories) of the resource (dcat:theme).
      Parameters:
      themes - list of concepts
    • getResourceType

      public String getResourceType()
      Return the nature or genre of the resource (dct:type).
      Returns:
      string
    • setResourceType

      public void setResourceType(String resourceType)
      Set up the nature or genre of the resource (dct:type).
      Parameters:
      resourceType - string
    • getLicense

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

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

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

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

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

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

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

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

      public String getLandingPage()
      Return the web page that gives access to the resource (dcat:landingPage).
      Returns:
      string URL
    • setLandingPage

      public void setLandingPage(String landingPage)
      Set up the web page that gives access to the resource (dcat:landingPage).
      Parameters:
      landingPage - string URL
    • getDocumentation

      public List<String> getDocumentation()
      Return the pages that document the resource (foaf:page).
      Returns:
      list of URLs
    • setDocumentation

      public void setDocumentation(List<String> documentation)
      Set up the pages that document the resource (foaf:page).
      Parameters:
      documentation - list of URLs
    • getVersion

      public String getVersion()
      Return the version of the resource (dcat:version).
      Returns:
      string version
    • setVersion

      public void setVersion(String version)
      Set up the version of the resource (dcat:version).
      Parameters:
      version - string version
    • getVersionNotes

      public String getVersionNotes()
      Return the description of this version of the resource (adms:versionNotes).
      Returns:
      string
    • setVersionNotes

      public void setVersionNotes(String versionNotes)
      Set up the description of this version of the resource (adms:versionNotes).
      Parameters:
      versionNotes - string
    • getStatus

      public String getStatus()
      Return the lifecycle status of the resource (adms:status).
      Returns:
      string
    • setStatus

      public void setStatus(String status)
      Set up the lifecycle status of the resource (adms:status).
      Parameters:
      status - string
    • getPreviousVersion

      public String getPreviousVersion()
      Return the IRI of the previous version of the resource (dcat:previousVersion).
      Returns:
      string IRI
    • setPreviousVersion

      public void setPreviousVersion(String previousVersion)
      Set up the IRI of the previous version of the resource (dcat:previousVersion).
      Parameters:
      previousVersion - string IRI
    • getOtherProperties

      public Map<String,List<String>> getOtherProperties()
      Return the properties of the resource 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 resource 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