Personally I’ve never used the YUI library (yet), but the new event delegation functionality of YUI 3.0 has a very nice look to it:
// Defining simple listeners on each element:
Y.on(“click”, handleClick,
“#container ul li a.profile”);
// Defining listener on a container using the delegate() method:
Y.delegate(‘click’, handleClick,
‘#container’, ‘ul li a.profile’);
[...]
Event delegation in YUI 3 moves the overhead of walking the DOM tree from the loading process to the point of user interaction, and decreases complexity by removing the need to match target elements within the callback. Instead, delegate() tests the event target (e.target) against the selector (‘ul li a.profile’) after the event is fired but before the callback is executed…
More at the YUI Blog.
by Trond on November 16, 2009
The other day I needed to “re-invoke”/refresh the current page – i.e. the response HTML – during a <webtest />.
Since neither the manual nor a couple of quick Google searches gave me what I needed, here’s how I solved the problem using a simple <scriptStep> followed by an <invoke>:
<scriptStep description="Get the current HTTP Request URL." language="groovy">
def url = step.getContext()
.getCurrentResponse()
.getWebResponse()
.getRequestSettings()
.getUrl()
.toExternalForm();
step.setWebtestProperty('tmp.currentRequestUrl', url, step.PROPERTY_TYPE_DYNAMIC);
</scriptStep>
<!-- now you can use it like this or pass it to a definition -->
<invoke url="#{tmp.currentRequestUrl}" />
In case it might be of use to you…
by Trond on September 30, 2009
Google Alerts recently notified me of Digital Collection, a German supplier of software for managing and research of digital information
, which has created a topic maps based tool for news monitoring, research, archiving, workflows and now content creation
called DC-X.
From the company’s blog entry:
The benefits of treating thesaurus and list terms as topics in a topic map:
- Built-in support for multiple names, which we’re using to store translations for terms: All lists and thesauri can now be multi-lingual.
- Class/instance relationship between terms; the “City” list is itself a topic, “Hamburg” and “Oslo” are instances of the “City” topic. This way an unlimited number of lists or thesauri can co-exist. Terms can even belong to multiple lists.
- Arbitrary relations between terms: A thesaurus hierarchy is modeled using associations like “broader/narrower” or “synonym/preferred term”. Geographic hierarchies can use “part/whole” associations.
- External identifier URIs can be specified for any term, so metadata can be mapped to metadata of other software using RDF, or anything else that points to the same URI.
- Custom metadata can be attached to any term. We’ll use this for thesaurus “scope notes”, geo coordinates for cities etc.
They also mention that it is implemented based on XTM, why they chose not to use RDF, how the tool can be used, as well as plans for implementing a topic map browser and editor.
Alexander Johannesen’s Event Model Ontology
While blogging I might as well be the first one (?) to link to Alexander Johannesen’s “Missing ontological serinity in the world of software systems architecture” and “What event model ontology?”
by Trond on September 14, 2009
Back when I was in the university I took an undergraduate subject called Web programming. As part of that class, each student had to build a web site presenting the Shakespeare plays in a given format. The source was a bunch of XML documents.
Building the site using PHP and SAX parsing was fun enough at the time, but even though the XTM 1.0 specification mentions #play, #shakespeare and #written-by, I can’t recall ever seeing a topic map enabled site of the Shakespeare plays.
I therefore thought that it’d be fun to transform the Shakespeare XMLs into a topic map and publish it through a web site built on top of Ontopia.
I’m just putting the front end together piece by piece (15 mins here and 15 mins there :/ – currently not very usable).
The current (draft) version of the topic map is available for export (~23 MB LTM, ~133 MB XTM 2.0). This can also be browsed with Omnigator. If you observe any major flaws, feel free to leave a comment below
by Trond on September 2, 2009
It’s been quite quiet around here lately, but I just had to post this gem.
Talisman Energy’s web site welcomes you with the words:
Conditions for Viewing this Site.
Say no more … or perhaps maybe just the note:
NOTE: Clicking on “Accept” will enable you to view the rest of this website without having to “Accept” again within 30 days.
These people must have understood something that I missed.

by Trond on August 28, 2009
Ontopia
The Ontopia project has had it’s “kick-off” meeting, which I unfortunately could not attend, and set up a blog at http://ontopia.wordpress.com/, with mailing list at http://groups.google.com/group/ontopia. Awesome.
Subj3ct
Back in May, NetworkedPlanet launched Subj3ct.com. I quote: Subj3ct provides the technology and services to enable Web 3.0 applications to define and exchange subject definitions
.