block by nitaku a545682a4aaa89a39a4a4d8e79b8a39b

Knowledge tree DSL

Full Screen

An example of a Domain-Specific Language for the definition of small knowledge graphs, building on the tangled tree language.

Indentation is used to define a hierarchy of nodes (black) and links (red). Links can be inverted by using < or >.

Three types of links have a special meaning: isA is used to define superclass-subclass relationships, instanceOf links an instance to its class, and denotes links a linguistic term to the concept it stands for.

(Needs cleanup: part of the code for the temporal knowledge graph is still included).

index.js

index.html

AppView.coffee

AppView.js

Editor.coffee

Editor.css

Editor.js

Graph.coffee

Graph.js

NodeLink.coffee

NodeLink.css

NodeLink.js

backbone.d3view.js

index.coffee

index.css

knowledge.peg.js

tsort.js