This simple editor aims to explain how a Domain Specific Language (DSL) can be used and which is its purpose. This use case is about News tagging, an important task within a News organization (some research experiments have been carried out by the NYT research lab).
The language present in the editor enables users to annotate named entity such as a person, organization, place, date and event. For example, the annotation about the date-time 4.57 del 21 luglio 1969 can be made by marking the text with double angle brackets <<> followed by round brackets with a T inside, (T), denoting an entity of class time. The resulting annotation is therefore <<4.57 del 21 luglio 1969>>(T).
In this experiment 5 classes can be used: Time denoted by T, Person P, Organization O, Location L, Event E and no label can be used for a generic thing.
Moreover, an identifier can be included within the round brackets, immidiately after the letter denoting the class, for univocally identifying it with an external data source such as Wikidata. For instance, as in the first annotation, the person Oriana Fallaci can be annotated like <
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://underscorejs.org/underscore-min.js to a secure url
Modified http://backbonejs.org/backbone-min.js to a secure url
https://d3js.org/d3.v3.min.js
https://wafi.iit.cnr.it/webvis/tmp/peg-0.9.0.min.js
https://underscorejs.org/underscore-min.js
https://backbonejs.org/backbone-min.js
https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/codemirror.min.js
https://wafi.iit.cnr.it/webvis/tmp/codemirror_mode_simple.js
https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/addon/search/searchcursor.min.js
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js