RDFa Test Harness

Overview

The RDFa Test Harness provides an interactive mechanism to check the conformance of an RDFa extractor and SPARQL query engine. This service is intended for anybody that wants to see how RDFa works as well as developers that want to do conformance testing on their own RDFa/SPARQL implementations.

There are several things that you can do on this web page:

Configuration

RDFa JavaScript Parser URL:

This is how you write a bootstrap JS file for testing your library.

  var nameOfYourLibrary = function () {
    /*
      Function pointer to parse RDFa. The last parameter is a
      callback to be called when done parsing a document.
    */ 
    var parseRDFa = function (testName, document, callback) {
        // call your parsing function
        // just call callback(model) when done
    }

    /*
      Use jQuery function to fetch RDFa library and hook onload
      event to function that calls global function 'runTests'
      make sure to pass parseRDFa function pointer.
    */
    $.getScript(yourLibraryUrl, function() {
      runTests(parseRDFa);
    });

  }();

Test Cases

EARL Report


Last modified: 2008-03-12, Elias Torres

Copyright © 1994-2007 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.