vorg / RAM

Remote Access Memory
1 stars 0 forks source link

Data Model #3

Open vorg opened 9 years ago

vorg commented 9 years ago

Client - Server

Everything is the same type of object

Item

vorg commented 9 years ago

Use case: Bookmark

Minimalistic:

{
  "text": "Marcin Ignac @url(http://marcinignac.com) @date(2015-10-11)",
  "tags": ["data", "visualization", "generative", "art", "portfolio"],
  "attachment": "a9ec723260234db51fb4013924ceae42_screeshot.png"
}

With attributes expanded:

{
  "text": "Marcin Ignac",
  "url" : "http://marcinignac.com",
  "date" : "2015-10-11",
  "tags": ["data", "visualization", "generative", "art", "portfolio"],
  "attachment": "a9ec723260234db51fb4013924ceae42_screeshot.png"
}
vorg commented 9 years ago

Use case: Long note

A. Markdown powered node attribute:

screen shot 2015-10-11 at 02 54 37
{
  "text": "My thoughts about data driven art",
  "tags": ["data", "art"],
  "note" "# Data art\n\nLet's start by comparing data art to data viz..."
}

B. Every paragraph is a separate node:

screen shot 2015-10-11 at 02 54 08
{
  "id: "1",
  "text": "My thoughts about data driven art",
  "tags": ["data", "art"]
},
{
  "id: "2",
  "pid: "1",
  "text": ""# Data art",
},
{
  "id: "3",
  "pid: "1",
  "text": "Let's start by comparing data art to data viz..."
}
nicknikolov commented 9 years ago

A note could be this box... http://prosemirror.net/demo_markdown.html