Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing notifications #7

Open
Dexagod opened this issue Dec 4, 2020 · 0 comments
Open

Processing notifications #7

Dexagod opened this issue Dec 4, 2020 · 0 comments

Comments

@Dexagod
Copy link

Dexagod commented Dec 4, 2020

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?
    • ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant