The Semantic Web Widget Library

Main

Download

Documentation

Examples

RDF ACL

Wish List

About

The Semantic Web Widget Library is a library for creating user interfaces that work with the Semantic Web. This project aims to provide a useful set of tools for viewing and editing Semantic Web data that can easily be integrated into any Website.

A much more thorough description of the inspiration and goals for the project is provided in Jim Hollenbach's MEng thesis, submitted May 2010.

Getting Started

The widget library code is written entirely in Javascript, so there is no special configuration necessary to work with remote data directly within your own pages! If you are looking for a test page to start playing around with the library in, you can use the following sample, which loads all of the Javascript source required by the library, including jQuery, from DIG space:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:sw="http://dig.csail.mit.edu/2010/rdf-widgets/swjs#">
  <head>
    <script type="text/javascript"
            src="http://dig.csail.mit.edu/2010/rdf-widgets/rdfwidgets.js">
    </script>
    <link rel="sw:data"
          href="http://dig.csail.mit.edu/2010/rdf-widgets/doap"></link>

  </head>

  <body>
    <p sw:widget="label"
       sw:subject="http://dig.csail.mit.edu/2010/rdf-widgets/doap#welcome">
    </p>
  </body>
</html>

When executed, the code above should produce the following output:

That's it! Check out the Examples and Documentation to start learning more!