EGraph
The tool-chain uses an XML data format which is, at present, an extension of the GraphML file format. GraphML provides a suitable way for representing graph-based information and it fits perfectly with our requirements. This format may evolve to a more general data representation format for the WP2Meta Data.The EGraph Data format
The three main elements which are present in the EGraph format are:- Node s: They are used to model packages which are present in a given package base.
- Edge s: They are used to model simple relationships between two packages.
- Hyperedges s: They are used to model "alternative" relationships between a set of packages.
Node elements contain an attribute id which specifies the name of the package. Node elements contain the following metadata which give information about the package properties:
- Version :The available package version(s)
- Provides :The virtual packages (package names which do not correspond to actual packages but are simply references to common functionalities)
Edge elements contain the following attributes:
- source, target : The two packages wich are involved in the dependency relationship
- type : The relationship type. At present it can be:
- Install : The relationship describes a link to a package which is needed in order to install the given package.
- Run : The relationship describes a link to a package which is needed in order to run the application provided by the given package.
- Conflict : The relationship describes a link to a package which should not be already present in the system when trying to install the given package.
- Replace : The relationship describe a link to a package which should be removed in order to install the given package.
- source, target : The source and target version of the packages involved in the relationship
- operator : A version operator which can be LT, LE, EQ, GE, GT, ALL (<, <= , ==, >=, > or don't care respectively).
Hyperedge elements have only a type attribute and then contain a set of endpoing elements which defines all the packages involved in the alternative relationship An endpoint has two attributes:
- type
- out : The endpoint represents the source package for the alternative relationship. There can be only one out endpoint in an hyperedge specification.
- in : The endpoint represents one of the alternative targets for the relationhsip.
- node : The package name involved in the relationship.
Version 1.5 last modified by MarcLijour on 05/04/2006 at 11:14
Document data
Attachments:
No attachments for this document
Comments: 0