Skip to content

Instantly share code, notes, and snippets.

@gaspard
Created April 15, 2011 08:39
Show Gist options
  • Save gaspard/921404 to your computer and use it in GitHub Desktop.
Save gaspard/921404 to your computer and use it in GitHub Desktop.
In order to easily share Zena applications, this is a full export of VirtualClasses and Roles with properties, indexing information and relations.
---
Node:
type: Class
Original:
type: Role
columns:
origin:
ptype: string
index: string
tz:
ptype: string
weight:
ptype: integer
Task:
type: Role
columns:
assigned:
ptype: string
Document:
type: Class
Image:
type: Class
TextDocument:
type: Class
Template:
type: Class
Note:
type: Class
Paf:
type: VirtualClass
columns:
bar:
ptype: datetime
index: .idx_datetime1
foo:
ptype: datetime
index: .idx_datetime1
Letter:
type: VirtualClass
columns:
paper:
ptype: string
search:
ptype: string
index: ml_string
search_mono:
ptype: string
index: string
Post:
type: VirtualClass
columns:
date:
ptype: datetime
index: .idx_datetime1
relations:
blogs:
target_kpath: NPP
source_role: added_note
relations:
calendars:
target_kpath: NPP
target_icon: <img src='/images/date.png' alt='calendar'/>
source_role: news
Page:
type: Class
Tracker:
type: VirtualClass
Project:
type: Class
Blog:
type: VirtualClass
idx_class: IdxProject
idx_scope: "{'blog' => 'self'}"
idx_reverse_scope: nodes in project
relations:
collaborators:
target_kpath: NRC
target_icon: <img src='/images/user.png' alt='collaborator'/>
source_role: collaborator_for
source_icon: <img src='/images/project.png' alt='projet'/>
rel_group: people
home:
target_kpath: N
target_icon: <img src='/images/home.png' alt='home'/>
source_role: home_for
source_icon: <img src='/images/project.png' alt='projet'/>
rel_group: web
hot:
target_kpath: N
target_icon: <img src='/images/lightbulb.png' alt='hot'/>
source_role: hot_for
source_icon: <img src='/images/project.png' alt='projet'/>
rel_group: web
Section:
type: Class
Skin:
type: Class
Tag:
type: VirtualClass
idx_scope: "{'tag' => %w{project self}}"
Reference:
type: VirtualClass
idx_scope: "{'reference' => 'references'}"
Contact:
type: VirtualClass
columns:
address:
ptype: string
country:
ptype: string
email:
ptype: string
first_name:
ptype: string
name:
ptype: string
index: string
idx_scope: "{'reference' => 'references', 'contact' => 'project'}"
relations:
favorites:
target_kpath: N
target_icon: <img src='/images/heart.png' alt='favorite'/>
source_role: favorite_for
relations:
icon:
target_kpath: NDI
target_icon: <img src='/images/medal_gold_2.png' alt='icon'/>
source_role: icon_for
references:
target_kpath: N
source_role: reference_for
rel_group: doc.ref
set_tags:
target_kpath: NPT
target_icon: <img src='/images/tag_blue.png' alt='tag'/>
source_role: tagged
rel_group: doc.tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment