Org.simantics.graph

From Developer Documents
Jump to navigation Jump to search

Introduction

The org.simantics.graph feature provides a textual graph database source editing environment that integrates into the Eclipse IDE.

The feature adds a new project nature and builder for Java/Plug-in projects to support development of .pgraph partial graph source files. The environment will compile all partial graphs with in a project into a single transferable graph /graph.tg. Simantics applications will then be able to integrate this transferable graph into handled databases.

The environment also allows you to add the graph compilation nature to any project from the project's context menu Configure/Add graph compilation.

Plugins

Org.simantics.graph.png

org.simantics.graph
Utilities creating, browsing and editing transferable graphs.
org.simantics.graph.db
Importing transferable graphs to Simantics database and exporting fragments of the database as a transferable graph.
org.simantics.graph.compiler
Translates textual graph format to transferable graphs. Additionally generates resource files.
org.simantics.graph.ui
Eclipse editor, builder and nature for textual graph format and transferable graphs.

Download

The graph development environment is distributed using an update site at http://www.simantics.org/update.

Release notes

1.1.11
Changed graph compiler to generate graph .tg files in Binary Container Format with the format descriptor graph and version 1. The extensions field was also moved to the front of the datatype. See Transferable Graph for information on the current format and converting old TG files.
1.1.10
Removed hardcoded references to Layer0 ontology version 1.0 from the compiler. Now the Layer0 version number is read from the org.simantics.layer0 plugin manifest.
Improved resource classes: the ontology resource changes are no longer listened in the first query that asked the resource class
New syntactic sugar ==> for RequiresValueType
Fixed a bug that prevented graph compiler from making most of the validation checks
1.1.9
Databoard serialization format changed
1.1.8
Removed console
1.1.7
Support for lists. L0.list is template for new lists, L0.orderedSet for old ordered sets.
New syntax >--, -->, <--
Finds some new errors (for example DIA.DefinedElement is now an error, if DIA is not used anywhere else)
1.1.6
Fixed URIs in Resource files (escape of whitespace)
1.1.5
Added extensions-field to tg format
Moved to trove3
Fixed bug in parsing range annotations in datatypes
Started complete validation of Layer0 definitions (added preference page for graph compiler)
1.1.4
Bugfixes
1.1.2
Added outline to graph editor
Added content assist to graph editor
  • Content assists is opened with Ctrl-Space or writing '.'
  • A proposal is selected with Enter or writing '.'
Added Open declaration (F3) action.
Optimized graph compilation time
1.0.8
Added support for annotations in data types (for example unit).
1.0.7
Supports loading literal data from external files (the file name given relative to the directory containing the graph file)
  • @L0.loadBytes "filename"
  • @L0.loadString "filename"
  • @L0.loadDataValue "filename"
Check for the number of template arguments
1.0.5
Changed endianness of transferable graphs.
1.0.3
Fix: When templates with literals were applied, the literal values were put to wrong resources.
1.0.2
Source files are sorted in order to generate identical tgs for identical source files (not necessarily enough, there may be some identity hash maps).
Deprecated resources are marked deprecated in resource files.
Fix: Compiler closes handles to graph.tg files
1.0.1
Reading input files in UTF-8
1.0.0.201008241242
Feature: loads graph.tg:s also from target platform
Feature: New notation Foo."Bar"
Fixed bug in loading graph.tg from dependencies
Fixed bug in automatic creation of inverses for relations whose superrelations have also generated inverses
Feature: Reporting missing URI for relations whose inverse has a URI
Fixed bug in locating lexing errors
Some optimizations in parser