Skip to content

pahjbo/vodsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A DSL for VODML

This directory contains a proposal (still a work in progress) for a domain specific language serialization for the VODML called VODSL. The aims of the serialization are

  • have something easier than XML to edit
  • more constrained and specific than UML
  • focused editors via eclipse Xtext with simultaneous graphical visualization via FXDiagram

VODSL eclipse desktop

Some background information and demonstration of how to use the editor can be found in this presentation.
and there is a screencast showing installation and simple use of the editor. (note that the installation has now changed - see below)

In addition to be able to use some of the features of the graphical visualization via FXDiagram it is worth looking at the introductory video on that site.

VODSL Language

The language is discussed in this note

There is an example that uses most of the language constructs.

Installation of Pre-built Editor

The VODSLEditor.setup file can be read into the eclipse installer in advanced mode as a user product to create a minimal customized eclipse installation that just contains the vodsl editor.

  1. ensure that you have a Java 11 or later installed on your machine as well as graphviz
  2. download the eclipse installer https://www.eclipse.org/downloads/
  3. Run the eclipse installer and select "advanced mode" from the menu at top right.
  4. use the green arrow at the top right to add a new user product with the following url https://raw.githubusercontent.com/pahjbo/vodsl/master/VODSLEditor.setup
  5. select the "VODSL" user product and just click next through the dialogs until you have a running editor.
  6. create a new "general" project and then create a file with extension .vodsl - eclipse will prompt whether to convert the project to "XText" - say yes.

Once you have an editor then you can also explore this GitHub project which contains some example/standard models expressed in VODSL.

Using the stand-alone parser

It is possible to use the parser machinery in a stand-alone fashion (i.e. without having to work in eclipse) by using the jar file that is produced in the vodsl.standalone sub-directory.

This jar (only) is published to maven central so you do not to have to build it.

Maven Central

Use the following command to run the parser

java -jar vodslparser-0.4.8-standalone.jar model.vodsl

which will produce a file model.vo-dml.xml of the equivalent VO-DML.

The stand-alone parser is built using maven. All that is necessary (after building the editor plugins in the top level directory with mvn install) is to run

mvn install

in the vodsl.standalone/ directory and a jar file will be produced in target/

Note the standalone parser is now integrated in the standard VO-DML tooling which probably provides a more comprehensive set of tools to work with VO-DML/VODSL models.

Developing

If you want to develop vodsl itself then see the developer instructions.