The RDF Interfaces Specification defines a set of standardized interfaces for working with RDF data in a programming environment.
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.
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:
- Rhino 1.7
- Chrome 6+
- Firefox 4+
- Safari 5+
- Internet Explorer 9
See the ECMAScript 5 compatibility table for more up to date compatibility information.
This code is released in to the public domain, and UNLICENSED.
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');