![]() ![]() Hawk will automatically try to register the necessary metamodels when it first encounters them in a model, so long as they are in the global EMF package registry. It will list the URIs of the currently registered metamodels. The configure dialog will open:įor managing metamodels, we need to go to the "Metamodels" tab. To do this, select the index in the Hawk view and either double click it or click on the "Configure" button. Managing metamodels ¶Īfter creating the index, the next step is to register the metamodels of the models that are going to be indexed. Once all settings are to your liking, click on "Finish" and Hawk will create and set up the index. ![]() Since Hawk 2.2.0, the dialog requires selecting at least one metamodel parser, one model parser, and one query engine. Remote instances will have no plugins enabled by default. The "Advanced" tab of this dialog allows you to select which Hawk plugins to enable for this instance:īy default, local instances will have all metamodel parsers, all model parsers, and all query engines enabled out of the box. Periodic synchronisation can be completely disabled by changing the minimum and maximum delays to 0: in this mode, Hawk will only synchronise on startup, when a repository is added or when the user requests it manually. If it finds a change, it will reset back to the minimum value. Hawk will start at the minimum value: every time it does not find any changes, it will double the delay up to the maximum value. Min/max delay: minimum and maximum delays in milliseconds between synchronisations.Back-end: database backend to be used (note that only some backends support time-aware operation: please see here for details).Remote location: only used for the remote instances.If the folder exists, Hawk will reuse that database instead of creating a new one. Local storage folder: folder that will store the actual database (in local instances), or a reference to the remote server (in remote instances).By default, Hawk only indexes the latest version of the model, but you can also make it operate in a time-aware manner mode) where it will record all versions of the model into a temporal graph. Instance type: you can use a local instance, or an instance hosted in an external server.Name: a descriptive name for the index.The "Base Configuration" tab of this dialog contains these fields: To create a new index, open the Hawk view and use the "New" button to open this dialog: Configure: opens the index configuration dialog, which allows for managing the registered metamodels, the repositories to be indexed, the attributes to be derived and the attributes to be indexed.Hawk itself only provides a "local" factory that looks at the subdirectories of the current Eclipse workspace. Import: imports a Hawk index from a factory.New: creates a new index (more info below).To remove a local index completely, select it and press Shift+Delete. Delete: removes an index from the Hawk view, without deleting the actual database (it can be recovered later using the "Import" button).Sync: request the Hawk index to check the indexed repositories immediately.Stop: stops a Hawk index if it was running.Run: starts a Hawk index if it was stopped.Hawk indexes are queried and managed from this view. To manage and use Hawk indexes, first open the "Hawk" Eclipse view, using "Window > Show View > Other. In the following sections, we will show how to perform these steps. Perform fast and efficient queries on the graph, using one of the supported query languages (see table above).Add the desired indexed and derived attributes.Wait for the initial batch insert (may take some time in large repositories).Add the model repositories to be monitored.Add the required metamodels to the index.Create a new Hawk index, based on a specific backend (e.g.Using Hawk generally involves these steps: Local folders, SVN repositories, Git repositories, Eclipse workspaces, HTTP files Update the graph based on the detected changes in the models and metamodels Translate high-level queries into efficient graph queriesĮpsilon Object Language, Epsilon Pattern Language, OrientDB SQL React to changes in the graph produced by the updatersĮMF, Modelio, IFC2x3/IFC4 in this repo, and UML2 Currently, it contains the following kinds of components: Type Managing derived attributes and referencesĬore concepts and general usage ¶ Components ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |