Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LbdDistribution

Index

Constructors

  • new LbdDistribution(session: Session | Session, dataset: any, id?: string): LbdDistribution
  • Parameters

    • session: Session | Session

      an (authenticated) Solid session

    • dataset: any

      the LbdDataset to which this distribution belongs

    • id: string = ...

      (optional) identifier of the distribution (default: GUID)

    Returns LbdDistribution

Properties

accessService: default
data: any
dataService: default
dataset: LbdDataset
fetch: any
lbdService: LbdService
session: Session | Session
url: string

Methods

  • addAccessUrl(accessUrl: any): Promise<void>
  • description

    Add a new dcat:accessURL to the distribution

    Parameters

    • accessUrl: any

      Access URL of the distribution (e.g. for a satellite service)

    Returns Promise<void>

  • checkExistence(): Promise<boolean>
  • create(file: File | Buffer, options?: object, mimetype?: string, makePublic?: boolean): Promise<void>
  • description

    Create this distribution on a Pod

    Parameters

    • file: File | Buffer

      The file/content of the distribution

    • options: object = {}

      Additional metadata to add to the distribution. form: {[predicate]: value}

    • Optional mimetype: string

      optional: the content type of the distribution. If not provided, it will be guessed. If the guess fails, the content type will be text/plain

    • Optional makePublic: boolean

      access rights

    Returns Promise<void>

  • delete(): Promise<void>
  • get(options?: object): Promise<void>
  • description

    Get the distribution's content

    Parameters

    • options: object = {}

      Fetch options

    Returns Promise<void>

  • getContentType(): any
  • description

    Get the content type of the distribution

    Returns any

    contenttype of the distribution

  • updateMetadata(query: any): Promise<void>
  • description

    Update the metadata of the distribution (i.e. its dataset) with a SPARQL query

    Parameters

    • query: any

      the SPARQL update

    Returns Promise<void>

Generated using TypeDoc