SPARQLBot

Getting started with SPARQLBot

by Michael Hausenblas

HOME: semsol.org/semcamp/sparqlbot

A hands-on introduction to SPARQLBot (SB), the Semantic Web command line tool.

SB is an IRC bot available on irc: #sparqlbot (as sparqlbot) and #foaf (as foafbot).
SB can load and query a bunch of Semantic Web formats, be it RDF-based or not (such as µF).
Many commands already exist from low-level stuff to specific tasks.

(ACTION) Launch your IRC client and connect to #sparqlbot

(ACTION) Copy and paste the following commands. Try one after the other and see what happens.
Have a look at the commands to see what happens behind the scenes.


General stuff

sparqlbot, help
sparqlbot, smush
sparqlbot, count graphs
sparqlbot, count triples

XFN

sparqlbot, load http://twitter.com/Scobleizer
sparqlbot, Scobleizer's contacts
sparqlbot, Dan Brickley is contact of Benjamin Nowack

FOAF

sparqlbot, load http://sw-app.org/mic.xhtml
sparqlbot, load (your foaf file URL here)
sparqlbot, my name
sparqlbot, my blog
sparqlbot, my depiction
sparqlbot, mhausenblas' homepage
sparqlbot, mhausenblas knows bengee
sparqlbot, mhausenblas x-knows-y ?whom
sparqlbot, mhausenblas x-knows-y-nick ?whom

RSS and AtomOwl based news

sparqlbot, load http://rss.slashdot.org/Slashdot/slashdot
sparqlbot, news about

sparqlbot, load http://riese.joanneum.at/updates
sparqlbot, whatsup prices

Semantic Web FAQ

sparqlbot, load http://www.w3.org/RDF/FAQ
sparqlbot, faq SPARQL
sparqlbot, faq SKOS

LastFM recently listened

sparqlbot, load http://dbtune.org/last-fm/moustaki
sparqlbot, moustaki's last tracks

Geonames-based location on Google map

sparqlbot, geo-load Vienna
sparqlbot, where is Vienna
sparqlbot, list places Poland

FOAF-based person's geo-home (location on Google map)

sparqlbot, load http://sw-app.org/mic.xhtml
sparqlbot, mhausenblas's geo-home

Geonames-based pictures from flickr

sparqlbot, geo-load Rome
sparqlbot, pictures from Rome

SIOC-based blog post query

sparqlbot, load http://community.linkeddata.org/dataspace/mhausenblas/weblog/Michael%27s%20Weblog/sioc.rdf
sparqlbot, query DELETE FROM http://community.linkeddata.org/dataspace/mhausenblas/weblog/Michael%27s%20Weblog/sioc.rdf

DOAP-based project description

sparqlbot, sf-load clisp
sparqlbot, describe project clisp

Exif data

sparqlbot, load http://www.kanzaki.com/test/exif2rdf?u=http%3A%2F%2Fsw.joanneum.at%2Frammx%2Fusecases%2Fexample%2Fch_example.jpg
sparqlbot, when was http://sw.joanneum.at/rammx/usecases/example/ch_example.jpg taken