ng-atomspace-visualizer
v0.11.1
Published
visualizer for the opencog atomspace.
Downloads
4
Readme
ng2-atomspace-visualizer
This module is a design of a visualizer for the [opencog atomspace] (https://github.com/opencog/atomspace).
Setup
npm install ng2-atomspace-visualizer --save
Configuration
Simple example
app.module.ts
import {AtomspaceVisualizerModule} from 'ng2-atomspace-visualizer'
@NgModule({
imports: [
CommonModule,
AtomspaceVisualizerModule.forRoot()
],
declarations: [AppComponent],
providers: []
})
export class AppModule { }
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
private atoms:any = null;
constructor() {
this.atoms = /** atoms to visualize in json format **/
}
}
app.component.html
<cog-visualizer [atoms]="atoms"></cog-visualizer>
TODO
- work on enhancement of the visualizer