Resource#
- class fdp.resource.Resource(fair_data_point: FairDataPoint = None, iri: str = None, uuid: str = None, *args, **kwargs)#
Bases:
FairDataPointItemClass representing a DCAT dcat:Resource entity.
This class provides common metadata fields shared by all DCAT resource types, such as
Catalog,Dataset, orDataSeries. It serves as a base class defining core descriptive, provenance, and administrative properties.- RDF Class
dcat:Resource- Common subclasses
CatalogDatasetDataSeries
- Supported Resource Properties
- property creator#
The
dcterms:creatorproperty.- Type:
str,FOAFAgent,Graph- Return type:
- Returns:
The resource’s creator.
- property description#
The
dcterms:descriptionproperty.A free-text description of the resource.
- Type:
str,rdflib.term.Literal,rdflib.graph.Graph- Return type:
str- Returns:
The resource’s description.
- property issued#
The
dcterms:issuedproperty.The date the resource was formally issued or published.
- Type:
str,datetime.date,rdflib.graph.Graph,rdflib.term.Literal,- Return type:
datetime.date- Returns:
The publication or release date in ISO 8601 format.
- property license#
The
dcterms:licenseproperty.The license or rights statement under which the resource is made available.
- Type:
str,rdflib.term.URIRef,rdflib.graph.Graph- Return type:
str- Returns:
A reference to the license resource or a literal text description.
Note
must follow recommendation from: https://joinup.ec.europa.eu/release/dcat-ap-how-refer-licence-documents-and-licence-uris
- property publisher#
The
dcterms:publisherproperty.The entity responsible for making the resource available.
- Type:
str,FOAFAgent,rdflib.graph.Graph- Return type:
- Returns:
The publisher, typically a FOAF Agent.
- property theme#
The
dcat:themeproperty.The main category or subject of the resource.
- Type:
str,rdflib.term.URIRef- Return type:
str- Returns:
The resource’s theme.
Note
a list of themes can be found here: https://inspire.ec.europa.eu/theme
Warning
Currently, only a single theme value is supported. The interface may change in future versions to support multiple themes.
- property title#
The
dcterms:titleproperty.The human-readable title of the resource.
- Type:
str,rdflib.term.Literal,rdflib.graph.Graph:rtype:str- Returns:
The preferred label or name of the resource.
- property version#
The
dcat:versionproperty.The version identifier for the resource.
- Type:
str,int, Tuple[int,int,int],fdp.version.Version,rdflib.graph.Graph,rdflib.term.Literal- Return type:
fdp.version.Version- Returns:
The version of the resource in one of the supported formats.