webr3 / rdf-interfaces

Core Implementation of the RDF Interfaces
http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/
The Unlicense
31 stars 4 forks source link

Implementation of the Core RDF Interfaces in ECMAScript-262 V5 (Javascript)

The RDF Interfaces Specification defines a set of standardized interfaces for working with RDF data in a programming environment.

This is an ECMAScript-262 V5 (Javascript) implementation of those interfaces, by the specification editor.

Note: This is a base implementation upon which libraries can be built, and which modular components can use, another library will be provided shortly which extends this implementation and adds in various DataParsers / Serializers, Query mechanisms and the usual array of utility + shorthand methods.

Compatibility

The code uses newer features such as Object.defineProperties and Array.prototype.(some, every, forEach, filter), Data.now and Array.isArray, the implementation should be compatible with:

See the ECMAScript 5 compatibility table for more up to date compatibility information.

License

This code is released in to the public domain, and UNLICENSED.

Usage

This implementation provides the RDF Concept Interfaces and the RDF Environment Interfaces, essentially it provides an instance of RDFEnvironment ready to go.

Simply include the file as per usual in a browser and access via the .rdf variable, or in node.js and similar rdf = require('./rdfi');