<add-link>QGraph provides complete update capabilities, however, only a portion has been implemented in Proximity to date. Proximity permits adding links to the database through the use of QGraph queries.
The add-link element
describes how and where to add new links to the database. The element
has two children, representing the query vertices that match the
starting and ending objects for the new links. Each new link must be
given a specified attribute value, specified by the element’s
attrname and
attrval attributes. Attribute
values for new links must be the same for all links created by a
single specification.
Attributes
attrname
|
required | The name of the attribute to be added to each newly created link; the attribute must already exist in the database |
attrval
|
required | The value to be assigned to the new link’s attribute; value must be static |
Children
vertex1 |
exactly one | Name of vertex matching starting objects for the new links; vertex names are case sensitive |
vertex2 |
exactly one | Name of vertex matching ending objects for the new links; vertex names are case sensitive |
Content Model
(vertex1, vertex2)
<add-link attrname="linktype" attrval="newlink"> <vertex1>start-obj</vertex1> <vertex2>end-obj</vertex2> </add-link>