Class DcatResource
java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.properties.DcatResource
- Direct Known Subclasses:
DcatDataService,DcatDataset
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return who can access the resource (dct:accessRights).Return the standards that the resource conforms to (dct:conformsTo).Return who to contact about the resource (dcat:contactPoint).Return the agents responsible for producing the resource (dct:creator).Return the description of the resource (dct:description).Return the descriptions of the resource in other languages, keyed by language tag.Return the pages that document the resource (foaf:page).Return the identifiers of the resource (dct:identifier).getIri()Return the IRI that identifies the resource.Return the date that the resource was formally issued (dct:issued).Return the keywords or tags describing the resource (dcat:keyword).Return the web page that gives access to the resource (dcat:landingPage).Return the languages used in the resource (dct:language).Return the licence under which the resource is made available (dct:license).Return the date that the resource was last changed (dct:modified).Return the identifier of the resource within its document.Return the properties of the resource that have no specific field in this bean, keyed by the IRI of the property.Return the IRI of the previous version of the resource (dcat:previousVersion).Return the agent responsible for making the resource available (dct:publisher).Return the nature or genre of the resource (dct:type).Return the rights statement for the resource (dct:rights).Return the lifecycle status of the resource (adms:status).Return the themes (categories) of the resource (dcat:theme).getTitle()Return the name of the resource (dct:title).Return the names of the resource in other languages, keyed by language tag.Return the version of the resource (dcat:version).Return the description of this version of the resource (adms:versionNotes).inthashCode()Return hash code based on properties.voidsetAccessRights(String accessRights) Set up who can access the resource (dct:accessRights).voidsetConformsTo(List<String> conformsTo) Set up the standards that the resource conforms to (dct:conformsTo).voidsetContactPoints(List<DcatContactPoint> contactPoints) Set up who to contact about the resource (dcat:contactPoint).voidsetCreators(List<DcatAgent> creators) Set up the agents responsible for producing the resource (dct:creator).voidsetDescription(String description) Set up the description of the resource (dct:description).voidsetDescriptionTranslations(Map<String, String> descriptionTranslations) Set up the descriptions of the resource in other languages, keyed by language tag.voidsetDocumentation(List<String> documentation) Set up the pages that document the resource (foaf:page).voidsetIdentifiers(List<String> identifiers) Set up the identifiers of the resource (dct:identifier).voidSet up the IRI that identifies the resource.voidSet up the date that the resource was formally issued (dct:issued).voidsetKeywords(List<String> keywords) Set up the keywords or tags describing the resource (dcat:keyword).voidsetLandingPage(String landingPage) Set up the web page that gives access to the resource (dcat:landingPage).voidsetLanguages(List<String> languages) Set up the languages used in the resource (dct:language).voidsetLicense(DcatConcept license) Set up the licence under which the resource is made available (dct:license).voidsetModified(String modified) Set up the date that the resource was last changed (dct:modified).voidSet up the identifier of the resource within its document.voidsetOtherProperties(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.voidsetPreviousVersion(String previousVersion) Set up the IRI of the previous version of the resource (dcat:previousVersion).voidsetPublisher(DcatAgent publisher) Set up the agent responsible for making the resource available (dct:publisher).voidsetResourceType(String resourceType) Set up the nature or genre of the resource (dct:type).voidSet up the rights statement for the resource (dct:rights).voidSet up the lifecycle status of the resource (adms:status).voidsetThemes(List<DcatConcept> themes) Set up the themes (categories) of the resource (dcat:theme).voidSet up the name of the resource (dct:title).voidsetTitleTranslations(Map<String, String> titleTranslations) Set up the names of the resource in other languages, keyed by language tag.voidsetVersion(String version) Set up the version of the resource (dcat:version).voidsetVersionNotes(String versionNotes) Set up the description of this version of the resource (adms:versionNotes).toString()Standard toString method.
-
Constructor Details
-
DcatResource
public DcatResource()Default constructor
-
-
Method Details
-
getIri
Return the IRI that identifies the resource. It is null if the resource is a blank node.- Returns:
- string IRI
-
setIri
Set up the IRI that identifies the resource. It is null if the resource is a blank node.- Parameters:
iri- string IRI
-
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
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
Return the name of the resource (dct:title).- Returns:
- string name
-
setTitle
Set up the name of the resource (dct:title).- Parameters:
title- string name
-
getTitleTranslations
Return the names of the resource in other languages, keyed by language tag.- Returns:
- map of language to name
-
setTitleTranslations
Set up the names of the resource in other languages, keyed by language tag.- Parameters:
titleTranslations- map of language to name
-
getDescription
Return the description of the resource (dct:description).- Returns:
- string description
-
setDescription
Set up the description of the resource (dct:description).- Parameters:
description- string description
-
getDescriptionTranslations
Return the descriptions of the resource in other languages, keyed by language tag.- Returns:
- map of language to description
-
setDescriptionTranslations
Set up the descriptions of the resource in other languages, keyed by language tag.- Parameters:
descriptionTranslations- map of language to description
-
getIdentifiers
Return the identifiers of the resource (dct:identifier).- Returns:
- list of identifiers
-
setIdentifiers
Set up the identifiers of the resource (dct:identifier).- Parameters:
identifiers- list of identifiers
-
getIssued
Return the date that the resource was formally issued (dct:issued).- Returns:
- string date
-
setIssued
Set up the date that the resource was formally issued (dct:issued).- Parameters:
issued- string date
-
getModified
Return the date that the resource was last changed (dct:modified).- Returns:
- string date
-
setModified
Set up the date that the resource was last changed (dct:modified).- Parameters:
modified- string date
-
getLanguages
Return the languages used in the resource (dct:language).- Returns:
- list of languages
-
setLanguages
Set up the languages used in the resource (dct:language).- Parameters:
languages- list of languages
-
getPublisher
Return the agent responsible for making the resource available (dct:publisher).- Returns:
- agent
-
setPublisher
Set up the agent responsible for making the resource available (dct:publisher).- Parameters:
publisher- agent
-
getCreators
Return the agents responsible for producing the resource (dct:creator).- Returns:
- list of agents
-
setCreators
Set up the agents responsible for producing the resource (dct:creator).- Parameters:
creators- list of agents
-
getContactPoints
Return who to contact about the resource (dcat:contactPoint).- Returns:
- list of contact points
-
setContactPoints
Set up who to contact about the resource (dcat:contactPoint).- Parameters:
contactPoints- list of contact points
-
getKeywords
Return the keywords or tags describing the resource (dcat:keyword).- Returns:
- list of keywords
-
setKeywords
Set up the keywords or tags describing the resource (dcat:keyword).- Parameters:
keywords- list of keywords
-
getThemes
Return the themes (categories) of the resource (dcat:theme).- Returns:
- list of concepts
-
setThemes
Set up the themes (categories) of the resource (dcat:theme).- Parameters:
themes- list of concepts
-
getResourceType
Return the nature or genre of the resource (dct:type).- Returns:
- string
-
setResourceType
Set up the nature or genre of the resource (dct:type).- Parameters:
resourceType- string
-
getLicense
Return the licence under which the resource is made available (dct:license).- Returns:
- concept
-
setLicense
Set up the licence under which the resource is made available (dct:license).- Parameters:
license- concept
-
getRights
Return the rights statement for the resource (dct:rights).- Returns:
- string
-
setRights
Set up the rights statement for the resource (dct:rights).- Parameters:
rights- string
-
getAccessRights
Return who can access the resource (dct:accessRights).- Returns:
- string
-
setAccessRights
Set up who can access the resource (dct:accessRights).- Parameters:
accessRights- string
-
getConformsTo
Return the standards that the resource conforms to (dct:conformsTo).- Returns:
- list of IRIs
-
setConformsTo
Set up the standards that the resource conforms to (dct:conformsTo).- Parameters:
conformsTo- list of IRIs
-
getLandingPage
Return the web page that gives access to the resource (dcat:landingPage).- Returns:
- string URL
-
setLandingPage
Set up the web page that gives access to the resource (dcat:landingPage).- Parameters:
landingPage- string URL
-
getDocumentation
Return the pages that document the resource (foaf:page).- Returns:
- list of URLs
-
setDocumentation
Set up the pages that document the resource (foaf:page).- Parameters:
documentation- list of URLs
-
getVersion
Return the version of the resource (dcat:version).- Returns:
- string version
-
setVersion
Set up the version of the resource (dcat:version).- Parameters:
version- string version
-
getVersionNotes
Return the description of this version of the resource (adms:versionNotes).- Returns:
- string
-
setVersionNotes
Set up the description of this version of the resource (adms:versionNotes).- Parameters:
versionNotes- string
-
getStatus
Return the lifecycle status of the resource (adms:status).- Returns:
- string
-
setStatus
Set up the lifecycle status of the resource (adms:status).- Parameters:
status- string
-
getPreviousVersion
Return the IRI of the previous version of the resource (dcat:previousVersion).- Returns:
- string IRI
-
setPreviousVersion
Set up the IRI of the previous version of the resource (dcat:previousVersion).- Parameters:
previousVersion- string IRI
-
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
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
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-