Sha256: 8a3c4bf1a17c8be74e700418666110d51682cf4d8648a5ed51fbda870773e478

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

vocabulary Blog;

/*
 * Value Types
 */
AuthorId is written as AutoCounter;
CommentId is written as AutoCounter;
Name is written as VariableLengthText(64);
Ordinal is written as UnsignedInteger(32);
PostId is written as AutoCounter;
Style is written as VariableLengthText(20);
Text is written as LargeLengthText;
TopicId is written as AutoCounter;

/*
 * Entity Types
 */
Author is identified by its Id;
author-Name is of at most one Author,
	Author is called one Name;

Comment is identified by its Id;
Author wrote Comment,
	Comment was written by one Author;

Content is identified by Style and Text where
	Content is of at most one Style,
	Content has one Text,
	Text is of Content;
Content provides text of Comment,
	Comment consists of one text-Content;

Post is identified by its Id;
Post was written by one Author;

Topic is identified by its Id;
Post belongs to one Topic,
	Topic contains Post;
Topic belongs to at most one parent-Topic [acyclic];
Topic is called one topic-Name,
	Name is of at most one Topic;

Paragraph is where
	Post includes Ordinal paragraph;
Content is of Paragraph,
	Paragraph contains one Content;
Paragraph has Comment,
	Comment is on one Paragraph;

/*
 * Constraints:
 */
either Content provides text of Comment or Content is of Paragraph but not both;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activefacts-0.8.6 examples/CQL/Blog.cql
activefacts-0.8.5 examples/CQL/Blog.cql