Keith Richards’ guitar gallery in 4 lines of code

January 24th, 2011, By eitanb

The first line of “code” would be this query, that returns a list of Keith Richards’s guitars (click to check it out):
http://api.headup.com/v1?raw=true&q=Keith Richards/popularmeaning/`instrument`/render(“videolist.html”)
Let’s break down the query to its parts:

  • Keith Richards/popularmeaning – gives us the URI (a unique ID) for Keith Richards, dbpedia:Keith_Richards.
  • `instrument` – that’s a fuzzy matching of the free-form text “instrument” with a predicate of dbpedia:Keith_Richards. We get a list of the instruments that Keith played.
  • Then we render this list of instruments as using a template (that we’ve prepared in advance) called videolist.html.
This is actually a more “fuzzy” way of querying the graph. The strict way of querying it would have been:
http://api.headup.com/v1?raw=true&q=dbpedia:Keith_Richards/dbpedia-owl:instrument/render(“videolist.html”)

The rest of the code resides inside the videolist.html template. Let’s have a look inside:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>SemantiNet's Video Portal</title>
  <link rel="stylesheet" href="http://www.blueprintcss.org/blueprint/screen.css">
  <style type="text/css" media="screen">
  body {background-color: #FAFAFF}
  </style>
</head>
<body>
 <div class="container">
 <div class="span-24">
  <table style="font-family: Consolas; font-size: x-small; background-color: white" class="span-24">
   <%foreach ./take(20)%>
  <tr width="100%">
   <td>
    <%select keytermsforquery/youtube:getplayers/first%>
   <iframe title="YouTube video player" class="youtube-player" type="text/html" width="300" height="230" src="http://www.youtube.com/embed/<%= f:v1/split('/')/*/at(4)%/>" frameborder="0">
   </iframe>
    </%select%>
   </td>
   <td>
   <h2><%= label%/></h2>
    <%= abstract/str:unescapeunicode%/>
   </td>
  </tr>
   </%foreach%>
  </table>
 </div>
 </div>
</body>
</html>

Most of the template is made of simple HTML markup. The query lines are:

  • keytermsforquery/youtube:getplayers/first
    • keytermsforquery - query refinements, for making calls to search APIs (YouTube in this case) –  adds semantic “cues” when querying APIs to get more accurate results.
    • youtube:getplayers – gets YouTube players for the entities.
    • Take only the first video, we want 1 for each instrument.
  • label – brings a nice readable name.
  • abstract/str:unescapeunicode – brings the Wikipedia abstract – and removes Unicode escaping.
In the same way, we can display a nice YouTube gallery of any list we’d like:

Hey You Guys! – A chat with David Sztypuljak about film blogging

January 22nd, 2010, By talk

This week’s guest blogger is a child of the 80′s, self proclaimed geek, and avid Goonies fan. It gives me great pleasure to introduce Dave Sztypuljak – founder and editor extraordinaire of HeyUGuys.co.uk – England’s most popular independent resource for all things film

Mike:

Hi Dave – it’s marvelous speaking to you.

Dave:

Hi Mike!

Mike:

Dave who are the guys at HeyUGuys?

Dave:

The blog was founded by Jon Lyus and myself in November 2008 and is now entering its 2nd year. The name is a reference to “The Goonies” because we both love the film and originally thought we’d be posting only about 80′s movies. About two days after we started I think we realized the scope was too narrow and we wanted to write about film in general. BTW we nearly called the blog 88MPH – probably a less esoteric reference…

Mike:

I’ll admit the “Hey you guys!” eluded me but I’d have caught on to the 88MPH. How did Jon and you connect?

Dave:

We worked at the same investment house. He was in HR and I was in IT.
Jon would send out film quizzes routinely to everyone. I always aced them…
We soon became close friends and a while later, when I decided I’d like to start a film blog, I emailed him and asked him if he wanted to team up. The rest is history…

Mike:

You know Dave, in preparation for this interview I spent a fair amount of time researching film blogs.
It seems to me as if there are very few serious film blogs outside the US. Am I wrong?

Dave:

Actually, Mike you’re absolutely right. We’re pretty unique insofar as we’re a non-American, English language, film blog. Honestly I think it’s given us an advantage in terms of exclusive content and audience.

Mike:

Do you feel cutoff?

Dave:

On the contrary! I feel unique…
Seriously though, being situated in England as we are, has provided us with some amazing opportunities that were very important for building HeyUGuys as a brand.

Mike:

Do tell…

Dave:

About seven months ago we realized Ridley Scott was filming the new Robin Hood movie, with Russell Crowe and Cate Blanchett, in a wood near Farnham in Surrey. Farnham is only about 20 minutes drive from where I live, so one day we headed down there to visit and film the set. We didn’t quite realize it at the time but we’d created an amazing asset for ourselves – original and exclusive content that none of the “big” channels had. The post achieved popularity quickly and was linked to from everywhere.

The Tron poster we posted before anyone else is another example of a scoop that got us a fair deal of attention:

Dave Sztypuljak posted this Tron poster originally on December 9, 2009

Dave Sztypuljak posted this Tron poster originally on December 9, 2009

Mike:

How has the success of HeyUguys affected your lives?

Dave:

Its funny really. The first time we received validation we were being picked up by the mainstream media it was such a surprise I thought it was a hoax!

We got invited to the Star Trek premier by Sky News. One day I opened my inbox and the invitation was just waiting there for me. We got full VIP treatment. Throughout the premier I was waiting for someone to grab me, tell me the whole thing was a mistake, and kick me out the door.

Mike:

From my experience as long as you keep a smooth face and act as if you belong these things go smoothly. Seems you can even gate crash the Whitehouse nowadays as long as you keep your cool.

Dave:

Believe me, when the second premier invitation came in both Jon and I were already far more suave about the whole thing, although we still get very excited!

Mike:

So now that you’re all cool with being a film blogger what are the plans for the future?

Dave:

I’ve recently quit my “day job” to work for HeyUguys full time. The plan for 2010 is to make the blog profitable enough to sustain itself and us. I’d be happy to live my life watching films, mingling with celebrities and writing about it.

Mike:

Sounds like a plan to me. Good luck Dave and thanks for talking to me and for supporting Headup!

Dave:

It’s my pleasure. I actually like what Headup is doing quite a bit, so much so that I’ve been chatting to some blogger friends getting them to try it out.

As the Jewish New Year Passed…

September 23rd, 2009, By admin

The Apple Drops…

You know it’s the holiday season in Israel when half of the country comes back from what seems to have been a perpetual vacation… Nothing like coming off of summer break and going straight into one full month of holiday festivities.

Rather than giant apples made of glass and lights being dropped in Time Square, real apples and honey are passed around and families have big holiday dinners.

New Kid on the Block

Companies customarily throw holiday parties around this time of year.  I was graciously invited to our company BBQ in the backyard of Tal’s (our CEO) home.

Honestly, I was apprehensive about the invite because I am the ”new girl”.   It was only my third day at the job, not to mention that I am fresh off the boat from New York City with only 2 months of living in Israel under my belt.

My idea of New Year’s, is, in fact the big giant apple, freezing cold weather, stupid hats and Champagne toasts. BBQs on a warm pleasant night is a foreign concept to me.

Burgers or Kebabs?

All of us Again
The BBQ was… a BBQ – like any other BBQ you’ve ever been too. A bunch of good friends schmoozin’-n-boozin’ in someone’s backyard.

Meat was grilled and devoured (although it was Kebabs and “Naknikiot” rather then burgers and hot dogs). Beer and wine were poured, music was playing, and stories were told.

Harel Keinan
Adding to the ambiance were 3 new babies. SemantiNet’s team seems to have been a bit busy developing last year ; ) …
As the camera passed from hand to hand so too were the babies, as almost all the girls wanted a chance to coo at them.

Without a doubt, the star of the evening was Che, the English Bulldog with his lovable smile.

Che

All-in-all it is what one expects of the 4th of July except it was September 20th.
I think, despite being “The New Girl” I held my own, at least judging by the amount of Kebab juice, baby drool and Che drool stains I collected during the evening.

Not a bad way to ring in a new year ;)