[Bio] / Sprout / AttributesDBD.xml Repository:
ViewVC logotype

Annotation of /Sprout/AttributesDBD.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : parrello 1.1 <?xml version='1.0' standalone='yes'?>
2 :     <Database>
3 :     <Title>Attributes Database</Title>
4 :     <Entities>
5 :     <Entity name="AttributeGroup" keyType="name-string">
6 :     <Notes>A [i]group[/i] is a named set of attribute keys. An attribute key can belong to
7 :     many groups or none at all.</Notes>
8 :     </Entity>
9 :     <Entity name="AttributeKey" keyType="name-string">
10 :     <Notes>An [i]attribute key[/i] describes named values attached to a particular type of object.
11 :     Each instance of this entity contains the attribute's description and its name. An attribute
12 :     key name must consist of letters, numbers, periods, underscores, and hyphens.</Notes>
13 :     <Fields>
14 :     <Field name="description" type="text">
15 :     <Notes>Text describing the attribute. This should explain what the attribute means and
16 :     what kinds of values are appropriate.</Notes>
17 :     </Field>
18 :     <Field name="data-type" type="name-string">
19 :     <Notes>ERDB data type for the attribute. This serves as documentation only, but
20 :     that may change at some future point.</Notes>
21 :     </Field>
22 :     </Fields>
23 :     </Entity>
24 :     <Entity name="Assignment" keyType="hash-string">
25 :     <Notes>An [i]assignment[/i] represents the relationship between an attribute key and
26 :     an object. The key is the digest of a string formed by the attribute key name, an equal sign,
27 :     and the object ID. Since the key name cannot contain equal signs, the string is enough
28 :     to uniquely identify an assignment.</Notes>
29 :     <Fields>
30 :     <Field name="object-id" type="string">
31 :     <Notes>This is the ID of the object to which the assignment is made.</Notes>
32 :     </Field>
33 :     <Field name="value" relation="AssignmentValue" type="text">
34 :     <Notes>Value assigned to the object for the specified key. There may be more than
35 :     one value assigned.</Notes>
36 :     </Field>
37 :     </Fields>
38 :     <Indexes>
39 :     <Index>
40 :     <Notes>This index allows the user to search for assignments with a particular value.</Notes>
41 :     <IndexFields>
42 :     <IndexField name="value" order="ascending" />
43 :     </IndexFields>
44 :     </Index>
45 :     <Index>
46 :     <Notes>This index allows the user to search for all assignments to a particular object.</Notes>
47 :     <IndexFields>
48 :     <IndexField name="object-id" order="ascending" />
49 :     </IndexFields>
50 :     </Index>
51 :     </Indexes>
52 :     </Entity>
53 :     </Entities>
54 :     <Relationships>
55 :     <Relationship name="IsInGroup" from="AttributeKey" to="AttributeGroup" arity="MM">
56 :     <Notes>This relationship connects an attribute key to the groups of which it is a member.</Notes>
57 :     </Relationship>
58 :     <Relationship name="IsKeyOf" from="AttributeKey" to="Assignment" arity="1M">
59 :     <Notes>This relationship connects an attribute key to its assignments.</Notes>
60 :     </Relationship>
61 :     </Relationships>
62 :     </Database>

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3