Skip to content

IKS/zart.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zart.js

Deprecated repository: Zart has been landed into VIE proper. Get it from there instead. This repository will be removed soon.

Zart is a new JavaScript library for managing information on a web page. It is based on existing VIE and VIE^2 libraries.

Parsing RDFa

One of the key functionalities is making RDFa-annotated content on web pages editable. The way this works is that you use the RDFa service in Zart to parse annotations on a page and turn them into Backbone.js models. These models may the be manipulated to change contents on the page, or sent back to the server via Backbone.sync.

RDFa parsing is easy:

z = new Zart();
z.use(new z.RdfaService());
z.load({element: jQuery('div')}).from('rdfa').execute().success(function(entities) {
    console.log("We got " + entities.length + " editable objects from the page");
});

I/O operations

All Input/Output operations of Zart are based on the jQuery Deferred object, which means that you can attach callbacks to them either before they run, or also after they've been run.

The operations may either succeed, in which case the then callbacks will fire, or be rejected, in which case the fail callbacks will fire. Any then callbacks will fire in either case.

Dependencies

Zart uses the following JavaScript libraries:

Some functionality in Zart additionally uses:

  • RdfQuery as a triplestore and for reasoning over rules

Development

Zart development is coordinated in IKS's GitHub account. To contribute, just fork the repository and send pull requests. Contributions that include their own unit tests appreciated!

Zart source code is inside the src directory. Each separate unit of functionality should be handled in its own file, with the src/Zart.js being the entry point to the system.

Zart is licensed under the MIT license.

Building Zart

The Zart library consists of many individual pieces that we merge together in the build process. You'll need Apache Ant. Then just run:

$ ant

The built Zart library will appear in the dist folder.

Running unit tests

Direct your browser to the test/index.html file to run Zart's QUnit tests.

About

Discontinued. Temporary placeholder for the new VIE API design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published