Skip to content

Processing notifications #7

@Dexagod

Description

@Dexagod

Processing notifications

Callback approach

Notifications dicovered and filtered by the agent now need to be processed.
In the JavaScript environment, this processing is done using a callback function.

const agent = new LDNAgent(config)
const f = (quads: RDF.Quad[]) => { // Process the quads }
agent.process(id, {callback: f})

CLI Modules

In the command line, specifying specific actions for notifications is difficult.
Because fo this, the CLI interface can make use of modules that are called using specific commands.

Currently a list command is available, that writes the notifications to the command line in a format specified by the -F <format> attribute.

Concrete questions

Javascript Interface

  • Processing is done on for each notification individually
    • Maybe there are cases where multiple notifications at once need to be processed (stream processing?)
    • How should notifications be ordered?
  • Should the Javascript interface be handled by returning an iterator for the discovered notifications, instead of taking a callback function and processing them that way?

CLI interface

  • How can we enable developers to create custom CLI modules, and make them callable in their instance of the LDN-Agent CLI interface.

  • How can we make these modules easily sharable?

  • Is there a better approach than these modules?

  • Maybe CLI modules are not the answer?

    • Developers can pipe the listed notifications to do further processing?
    • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions