View Source DCAT.Distribution (DCAT.ex v0.1.0)

A Grax schema struct for dcat:Distributions.

A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways, including natural language, media-type or format, schematic organization, temporal and spatial resolution, level of detail or profiles (which might specify any or all of the above).

See https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution.

Summary

Types

@type t() :: %DCAT.Distribution{
  __additional_statements__: term(),
  __id__: term(),
  access_rights: term(),
  access_services: term(),
  access_urls: term(),
  byte_size: term(),
  checksum: term(),
  compression_format: term(),
  conforms_to: term(),
  description: term(),
  download_urls: term(),
  format: term(),
  has_policy: term(),
  licenses: term(),
  media_type: term(),
  package_format: term(),
  release_date: term(),
  rights: term(),
  spacial_resolution: term(),
  title: term(),
  update_date: term()
}

Functions

@spec from(Grax.Schema.t()) :: {:ok, t()} | {:error, any()}
@spec from!(Grax.Schema.t()) :: t()
Link to this function

load(graph, id, opts \\ [])

View Source
@spec load(
  RDF.Graph.t() | RDF.Description.t(),
  RDF.IRI.coercible() | RDF.BlankNode.t(),
  opts :: keyword()
) :: {:ok, t()} | {:error, any()}
Link to this function

load!(graph, id, opts \\ [])

View Source
@spec load!(
  RDF.Graph.t() | RDF.Description.t(),
  RDF.IRI.coercible() | RDF.BlankNode.t(),
  opts :: keyword()
) :: t()