VIE - Using RDFa to make content editable

41
Vienna IKS Editables

description

VIE is a library making RDFa -annotated content editable in a browser. Also showcased are Palsu, an online meeting tool built on VIE and Node.js, and Midgard Create, the CMS VIE was originally built for.

Transcript of VIE - Using RDFa to make content editable

Page 1: VIE - Using RDFa to make content editable

Vienna IKS Editables

Page 2: VIE - Using RDFa to make content editable

“Build a CMS, no forms allowed”

Page 3: VIE - Using RDFa to make content editable

Just Edit

Page 4: VIE - Using RDFa to make content editable

CMS and JavaScript must agree on the content model

Page 5: VIE - Using RDFa to make content editable

RDFa: Your Content, Explained

Page 6: VIE - Using RDFa to make content editable

RDFa: Your Content, Explained

Page 7: VIE - Using RDFa to make content editable

Suddenly JavaScript can understand

Page 8: VIE - Using RDFa to make content editable

Bonus: SEO

...assuming we get the schema.org mess sorted out

Page 9: VIE - Using RDFa to make content editable
Page 10: VIE - Using RDFa to make content editable

VIE – Bridging RDFa to JavaScript

● MIT license, developed by IKS Project on GitHub

● Depends on Backbone.js and jQuery● Load RDFa entities as JavaScript objects● Sync changes to server, and to DOM● References enable list manipulation● Change events

Page 11: VIE - Using RDFa to make content editable

Content Management

System

Database Content RepositoryDatabase

Web Framework

Web Editing Tool

Monolithic approach Decoupled approach

Page 12: VIE - Using RDFa to make content editable

Web Framework

Web Editing Tool

HTML+RDFa JSON-LD over REST

Page 13: VIE - Using RDFa to make content editable

Communicating changes to server

Page 14: VIE - Using RDFa to make content editable

Shared JavaScript CMS API

Page 15: VIE - Using RDFa to make content editable

Get started with VIE

1. Mark up your content with RDFa

2. Include vie.js to your pages

3. Implement Backbone.sync

Page 16: VIE - Using RDFa to make content editable
Page 17: VIE - Using RDFa to make content editable

Questions?

[email protected]

@bergie

Page 18: VIE - Using RDFa to make content editable

Online Meeting Tool

http://palsu.me

Page 19: VIE - Using RDFa to make content editable

See how far we can push VIE and VIE^2

Page 20: VIE - Using RDFa to make content editable

IKS has a lot of meetings. Make them work better

Page 21: VIE - Using RDFa to make content editable
Page 22: VIE - Using RDFa to make content editable
Page 23: VIE - Using RDFa to make content editable
Page 24: VIE - Using RDFa to make content editable

Using palsu.me

1. Log in with your Twitter account

2. Create a meeting

3. Set an agenda

4. Invite the other participants

5. Have the meeting

6. Annotate action points

http://palsu.me/help

Page 25: VIE - Using RDFa to make content editable

Under the hood● Node.js and Express as the

application server● Written in CoffeeScript● Socket.io (websockets, COMET) for real-time

communications● Redis-powered triplestore● VIE for server and client-side templating● VIE^2 for smart annotations● Aloha Editor for content editing

Page 26: VIE - Using RDFa to make content editable

VIE on the server

Page 27: VIE - Using RDFa to make content editable

Questions?

[email protected]

@bergie

Page 28: VIE - Using RDFa to make content editable

Create

Page 29: VIE - Using RDFa to make content editable

“Build a CMS, no forms allowed”

Page 30: VIE - Using RDFa to make content editable

Entering editing state

Page 31: VIE - Using RDFa to make content editable

Editing and saving

Page 32: VIE - Using RDFa to make content editable

Drag-and-drop images

Drop image, choose variant to use

Page 33: VIE - Using RDFa to make content editable

History and workflows

Workflows that are available for this content item

Page 34: VIE - Using RDFa to make content editable

CMS interface should not affect the page contents

Page 35: VIE - Using RDFa to make content editable

CMS interface should notaffect the page contents

Page 36: VIE - Using RDFa to make content editable

Never lose content

Page 37: VIE - Using RDFa to make content editable

RDBMS

Midgard2 Content Repository

Midgard MVC for PHP

jQuery Aloha Backbone.js

Zeta Comp.

Midgard2 Content Repository

Midgard MVC for PHP

Application Server in PHP

Layers of Midgard Create

Page 38: VIE - Using RDFa to make content editable

RDBMS

Midgard2 Content Repository

Midgard MVC for PHP

jQuery Aloha Backbone.js

Zeta Comp.

Midgard2 Content Repository

Midgard MVC for PHP

Some backend that can do JSON and REST

...and in your CMS too?

Page 39: VIE - Using RDFa to make content editable

Got Linux?$ sudo apt-get install php5-midgard2$ sudo pear channel-discover pear.indeyets.pp.ru$ sudo pear install indeyets/midgardmvc_installer$ midgardmvc install http://bit.ly/hV05pi midgard$ ./midgard/run

Page 40: VIE - Using RDFa to make content editable

Relevant technologies

● VIEhttps://github.com/bergie/VIE

● AppServer-in-PHPhttps://github.com/indeyets/appserver-in-php

● PHP Content Repositoryhttp://phpcr.github.com/

● Aloha Editorhttp://aloha-editor.org/

Page 41: VIE - Using RDFa to make content editable

Questions?

[email protected]

@bergie