You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
...
The text was updated successfully, but these errors were encountered:
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.
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
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?
The text was updated successfully, but these errors were encountered: