Dl/Dataset: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) |
Stonezhong (talk | contribs) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
<big><b>A Dataset object represent a series of Data Unit objects for the same purpose.</b></big> | <big><b>A Dataset object represent a series of Data Unit objects for the same purpose.</b></big> | ||
For example, a dataset could represent daily nasdaq stock quotes, every day, it has a data unit that captures the open price, close price, high and low price for all stock traded on nasdaq stock exchange market. | For example, a dataset could represent daily nasdaq stock quotes, every day, it has a data unit that captures the open price, close price, high and low price for all stock traded on nasdaq stock exchange market. | ||
| Line 12: | Line 13: | ||
id: UUID | id: UUID | ||
Primary key | Primary key | ||
name: str | |||
A unique name that people can reference this data series, since id is very difficult to remember for human beings. | |||
description: str | |||
A human readable string that helps people to understand this dataset. | |||
owner: str | |||
The owner of this dataset. In case people have questions about this dataset, the owner should be contacted. | |||
is_disconnected: | |||
If True, then this dataset is disconnected and user can no longer append data unit to it. | |||
</nowiki></pre> | </nowiki></pre> | ||
| Line 24: | Line 37: | ||
= Considerations = | = Considerations = | ||
<div class="toccolours mw-collapsible mw-collapsed expandable"> | <div class="toccolours mw-collapsible mw-collapsed expandable"> | ||
<div class="mw-collapsible-preview"></div> | <div class="mw-collapsible-preview">Data Units belongs to a Dataset</div> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
* Each DataUnit object has a dataset_id field, which tells the owner of the dataset. | |||
* For any Dataset object we can tell list of DataUnit it owns. | |||
</div> | </div> | ||
</div> | </div> | ||
<p></p> | <p></p> | ||