Skip to main content
  1. Posts/

Validator Improvements

I’ve just moved an improved license validator into place . While I had initially planned to migrate away from straight-CGI coding with this update, the gods were against me. I started prototyping in Quixote , and ran into problems with Unicode encoding. So I decided to put the conversion on hold. If I figure out how to emit Unicode from Quixote, I’ll probably do this at some point in the future.

This update does, however, have some real improvements, all of which were suggested by the excellent testers on the cc-metadata mailing list . These include:

  • Seperate forms for URL or paste-in validation; previously the URL always overrode the text area, which could be frustrating
  • The addition of some sample RDF, as well as convenience buttons on the form
  • Better error reporting. If your RDF (XML) is not well-formed, the validator will now tell you where the error occurs (if it knows); more on this in a moment
  • When parsing a web page, problems in one RDF segment won’t affect validation of other segments
  • You can now view the raw RDF from the results page by clicking the show raw RDF links
  • Things that look like links, are
  • Magnets are properly magnetized
  • `rdf:about` is displayed
  • If a RDF segment does not contain a license, the validator says so, and then tells you what it might contain
  • Various cosmetic changes

With such a large number of changes, the source code layout has also changed. Instead of a single file, the code is now split into a handful of modules. I’ll have a tarball up later this evening.

A note regarding validation: currently the validator only “validates” as much as RDFlib does; I’m working on that. Further, if you receive some weird traceback, or an “unknown error” message, please e-mail me .

Thanks for all the suggestions and trouble reports; try it out and let me know what you think.