I’ve just closed the loop on last weekend’s XMPP / Apple Remote hack, using Strophe.js, a library that extends XMPP into normal Web pages. I hope I’ll find some way to use this in the NoTube project (eg. wired up to Web-based video playing in OpenSocial apps), but even if not it has been a […]
Tag Archives: Ruby
Streaming Apple Events over XMPP
I’ve just posted a script that will re-route the OSX Apple Remote event stream out across XMPP using the Switchboard Ruby library, streaming click-down and click-up events from the device out to any endpoint identified by a Jabber/XMPP JID (i.e. Jabber ID). In my case, I’m connecting to XMPP as the user xmpp:buttons@foaf.tv, who is […]
Skosdex: SKOS utilities via jruby
I just announced this on the public-esw-thes and public-rdf-ruby lists. I started to make a Ruby API for SKOS. Example code snippet from the readme.txt (see that link for the corresponding output): require “src/jena_skos” s1 = SKOS.new(“http://norman.walsh.name/knows/taxonomy”) s1.read(“http://www.wasab.dk/morten/blog/archives/author/mortenf/skos.rdf” ) s1.read(“file:samples/archives.rdf”) s1.concepts.each_pair do |url,c| puts “SKOS: #{url} label: #{c.prefLabel}” end c1 = s1.concepts[“http://www.ukat.org.uk/thesaurus/concept/1366”] # Agronomy puts […]
Beautiful plumage: Topic Maps Not Dead Yet
Echoing recent discussion of Semantic Web “Killer Apps”, an “are Topic Maps dead?” thread on the topicmaps mailing list. Signs of life offered include www.fuzzzy.com (‘Collaborative, semantic and democratic social bookmarking’, Topic Maps meet social networking; featured tag: ‘topic maps‘) and a longer-list from Are Gulbrandsen who suggests a predictable hype-cycle dropoff is occuring, as […]
Lqraps! Reverse SPARQL
(update: files are now in svn; updated the link here) I’ve just published a quick writeup (with running toy Ruby code) of a “reverse SPARQL” utility called lqraps, a tool for re-constructing RDF from tabular data. The idea is that such a tool is passed a tab-separated (eventually, CSV etc.) file, such as might conventionally […]
RDF in Ruby revisited
If you’re interested in collaborating on Ruby tools for RDF, please join the public-rdf-ruby@w3.org mailing list at W3C. Just send a note to public-rdf-ruby-request@w3.org with a subject line of “subscribe”. Last weekend I had the fortune to run into Rich Kilmer at O’Reilly’s ‘Social graph Foo Camp‘ gathering. In addition to helping decorate my tent, […]
Ruby client for querying SPARQL REST services
I’ve started a Ruby conversion of Ivan Herman’s Python SPARQL client, itself inspired by Lee Feigenbaum’s Javascript library. These are tools which simply transmit a SPARQL query across the ‘net to a SPARQL-protocol database endpoint, and handle the unpacking of the results. These queries can result in yes/no responses, variable-to-value bindings (rather like in SQL), […]
Ruby dup() and clone() with frozen strings
I’m exhuming some 5-year old Ruby RDF code, and in the process finding a few things got broken while I was in the time capsule. Here in the shiny future, I found myself hitting an unfamiliar “can’t modify frozen string” error. It all worked just fine back in the hazy summer of 2002, I’m sure. […]
Loosly joined
find . -name danbri-\*.rdf -exec rapper –count {} \; rapper: Parsing file ./facebook/danbri-fb.rdf rapper: Parsing returned 2155 statements rapper: Parsing file ./orkut/danbri-orkut.rdf rapper: Parsing returned 848 statements rapper: Parsing file ./dopplr/danbri-dopplr.rdf rapper: Parsing returned 346 statements rapper: Parsing file ./tribe.net/danbri-tribe.rdf rapper: Parsing returned 71 statements rapper: Parsing file ./my.opera.com/danbri-opera.rdf rapper: Parsing returned 123 statements rapper: […]
Flickr’d
Just renewed my Flickr-Pro account for 2 years, ensuring an irregular supply of pigeon, fish and other misc depictions. I wasn’t 100% happy with the wording of their terms though. To participate in Flickr pro, you must have a valid Yahoo! ID and, solely if you have not received a free offer or gift for […]