Simplified Insert Trigger

The automatically generated insert triggers on the latest views have been simplified such that attribute metadata values default to the anchor metadata value if not specified. This makes insertion into the view (in order to create a new instance of the anchor and all attributes) as simple as the following code shows:

insert into lAC_Actor (
    Metadata_AC,
    AC_NAM_Actor_Name,
    AC_NAM_ValidFrom,
    GEN_Gender,
    PLV_ProfessionalLevel,
    AC_PLV_ValidFrom
)
values (42, 'Lars S', '1972-08-20', 'Male', 'Master', '2009-09-21'); 

If there is a need to ‘update’ the name this can also be done using the insert trigger on the latest view (given that the surrogate key generated for AC_ID in the previous step was 1):

insert into lAC_Actor (
    AC_ID, 
    AC_NAM_Actor_Name, 
    AC_NAM_ValidFrom,
    Metadata_AC_NAM
)
values (1, 'Lars R', '2004-06-19', 43);

SVG in the Online Modeler

The online modeling tool can now produce an SVG (Scalable Vector Graphics) of the model. This enables further (and lossless) adjustments of the layout and design if the SVG is edited in a program such as the open source editor Inkscape. We have, for example, done this for the figures in our paper submitted to the Data & Knowledge Engineering journal. An example showing the evolution of an anchor schema can be seen below, which was edited to shade the original model.

JS1k Entry

We have entered the JS1k competition, in which you are competing to create the most impressive functionality within 1024 characters of JavaScript code. The intention of our entry is to bring attention to Anchor Modeling (and the online modeler in particular). The winners will be announced at JSConf.eu.

Our contribution can be found by clicking here. It’s an extremely minified (1016 bytes) version of the layout engine used in the online modeling tool. You can still build a node/edge model in it though.