Top Banner
Reaching those web folk Christian Heilmann | http://wait-till-i.com | http://scriptingenabled.org National Maritime Museum, London, UK, April 2009
103

Reaching those web folk

Sep 12, 2014

Download

Education

My talk for museum web developers at the London National Maritime Museum about data distribution, Pipes and YQL
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Reaching those web folk

Reaching those web folk

Christian Heilmann | http://wait-till-i.com | http://scriptingenabled.org

National Maritime Museum, London, UK, April 2009

Page 2: Reaching those web folk

The internet is a media.

Page 3: Reaching those web folk

It is highly distributed, available 24/7 and easy to be a part of.

Page 4: Reaching those web folk

And my god is it huge.

Page 5: Reaching those web folk

The sheer size of the internet makes it hard to be found and to get your content out to people.

Page 6: Reaching those web folk

Which is why people spend more time on optimising their products for search engines than for their end users.

Page 7: Reaching those web folk

To have success in reaching people on the web, we have to re-think some ideas.

Page 8: Reaching those web folk

In the old school model, you build a site and people come.

Page 9: Reaching those web folk

Your Site

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Page 10: Reaching those web folk

This works to some degree, but only really when you are a starting point of the web experience (ISP, news portal...)

Page 11: Reaching those web folk

For normal web sites, much more visitors come to your site in a roundabout way.

Page 12: Reaching those web folk

Your Site

Reader+ User

PartnerSites

SearchEngines

PaidLinks

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ UserReader+ User

Reader+ User

Lots of arrows here...

SocialMedia

Page 13: Reaching those web folk

To make this work on a much bigger scale, re-think the web.

Page 14: Reaching those web folk

The web is *not* a broadcasting media with receivers.

Page 15: Reaching those web folk

Every receiver is also a broadcaster.

Page 16: Reaching those web folk

Starting a blog, signing up for twitter, uploading photos to flickr...

Page 17: Reaching those web folk

All of these things are terribly easy.

Page 18: Reaching those web folk

If you re-think your site as your content, then any of these broadcasting stations can be a relay for your message.

Page 19: Reaching those web folk

Yourcontent

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Page 20: Reaching those web folk

And they talk to yet other people and have access to other distribution channels you aren’t even aware off.

Page 21: Reaching those web folk

Yourcontent

Reader+ User

Reader+ User Reader

+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Reader+ User

Page 22: Reaching those web folk

You validate content on the web with links and quoting from other sources.

Page 23: Reaching those web folk

People add their own opinion and allow for others to give theirs.

Page 24: Reaching those web folk

People also mix your information with other sources to prove a point or validate it.

Page 25: Reaching those web folk

Much like good journalism works – only on a wider, media richer and less professional scale.

Page 26: Reaching those web folk

The power of this distribution is very much obvious if you ever try to pull something from the web. :-)

Page 27: Reaching those web folk

So how can you be part of this?

Page 28: Reaching those web folk

Make your content easy to access.

Page 29: Reaching those web folk

This starts by structuring your web sites in a semantic manner.

Page 30: Reaching those web folk

Continues with adding more semantic richness with RDF and microformats.

Page 31: Reaching those web folk

Gets even easier by providing data feeds in Atom or RSS.

Page 32: Reaching those web folk

And ends with the rolls royce of distribution: your own API.

Page 33: Reaching those web folk

Semantic document structure, RDF and microformats are useful for other machines to make sense of your content.

Page 34: Reaching those web folk

Especially search engines love them.

Page 35: Reaching those web folk

One thing that made this much more obvious to me was when Yahoo opened their index as an API.

Page 37: Reaching those web folk

Using this and special information or technology you can build a cleverer web search.

Page 38: Reaching those web folk

http://ask-boss.appspot.com/

Page 39: Reaching those web folk
Page 40: Reaching those web folk

http://ask-boss.appspot.com/

Page 41: Reaching those web folk

Another thing BOSS does right now is provide a mainstream channel for the semantic web and Microformats.

Page 42: Reaching those web folk

Using SearchMonkey technology BOSS lists this information in the results.

http://www.flickr.com/photos/glenscott/3273401181/

Page 44: Reaching those web folk

Another interesting thing is the keyterms parameter in BOSS.

Page 45: Reaching those web folk

This one returns the keywords people entered to find a web site.

Page 46: Reaching those web folk

http://keywordfinder.org

Page 47: Reaching those web folk

This gives search engines access (and also hard core developers).

Page 48: Reaching those web folk

But you can make it even easier.

Page 49: Reaching those web folk

Your data is already available on the web.

Page 50: Reaching those web folk

And if it is interesting enough, people will try to get to it and remix it.

Page 51: Reaching those web folk

Let’s say I want to display the opening hours of the V&A on my tourism tips site for London.

Page 53: Reaching those web folk

A more useful way to offer that is RSS.

Page 54: Reaching those web folk

That way I can subscribe to this and get updated when there is a change.

Page 55: Reaching those web folk
Page 56: Reaching those web folk

Some companies understood that very early.

Page 59: Reaching those web folk

And they took the next steps of providing APIs to end users to filter down the data to exactly what they need.

Page 60: Reaching those web folk

So now developers have access to all kind of data out on the web to mix and match.

Page 61: Reaching those web folk

And they build blog plugins, Facebook applications and other widgets and distribution channels for our data.

Page 62: Reaching those web folk

The problem is that the more data sources you use, the more time you spend on reading API documentation.

Page 63: Reaching those web folk

The other problem is that the more sources you connect to, the more chances of error are there.

Page 64: Reaching those web folk

What we needed are systems to aggregate several sources painlessly.

Page 66: Reaching those web folk

Pipes allows you to get user input, get data from web resources, put them all together and get them back as XML, JSON and other formats.

Page 67: Reaching those web folk

The drawback of pipes is that it is a visual interface and changes have to be made by hand.

Page 68: Reaching those web folk

You can’t just quickly use a pipe in your code and alter it on the fly.

Page 69: Reaching those web folk

Which is one of the reasons for a new system with a different angle: YQL.

Page 70: Reaching those web folk

YQL is a SQL-style interface to all Yahoo data – and the web!

Page 71: Reaching those web folk

Say you want to get photos of London that you are allowed to show in your own products.

Page 72: Reaching those web folk

You need to define London without a doubt.

select woeid from geo.places where text='London,uk'

Page 73: Reaching those web folk

Then find photos that were taken there.

select id from flickr.photos.search where woe_id in (select woeid from geo.places where text='london,uk')

Page 74: Reaching those web folk

Check that they have the right license.

select id from flickr.photos.search where woe_id in (select woeid from geo.places where text='london,uk')

and license=4

Page 75: Reaching those web folk

And get all the information about them.

select * from flickr.photos.info where photo_id in (select id from

flickr.photos.search where woe_id in (select woeid from geo.places where text='london,uk') and license=4)

Page 76: Reaching those web folk

http://developer.yahoo.com/yqlhttp://developer.yahoo.com/yql/console/?q=select%20*%20from

%20flickr.photos.info%20where%20photo_id%20in%20(select%20id%20from%20flickr.photos.search%20where%20woe_id%20in%20(select%20woeid

%20from%20geo.places%20where%20text%3D%27london%2Cuk%27)%20and%20license%3D4)

Page 77: Reaching those web folk

Then you can build a nice interface and show that data.

Page 79: Reaching those web folk

All without having to spend hours on reading either the Flickr or the GeoPlanet API docs :)

Page 80: Reaching those web folk

This also helps us immensely internally – as we have varying APIs in all departments.

Page 81: Reaching those web folk

YQL gives you access to the Yahoo services and to any data source on the web – including HTML and microformats.

Page 82: Reaching those web folk

Now here’s the really good news:

Page 83: Reaching those web folk

You can easily add your information to YQL via something we call “Open Tables”.

Page 84: Reaching those web folk

Take young Jim O’Donnell of the National Maritime Museum in London.

Page 85: Reaching those web folk

They are already part of the Commons on flickr:http://www.flickr.com/people/nationalmaritimemuseum/

Page 86: Reaching those web folk

He wanted to allow people to access their free data and filter it without providing an API.

Page 87: Reaching those web folk

All it needed was a simple XML file.

Page 88: Reaching those web folk

<?xml version="1.0"?><table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> <meta> <author>Jim O'Donnell</author> <documentationURL>http://www.nmm.ac.uk/collections/</documentationURL> </meta> <bindings> <select produces="XML" itemPath="rss.channel.item"> <urls> <url>http://www.nmm.ac.uk/collections/requestHandlers/doQuickSearch.cfm?searchterm={searchterm}&amp;authority={authority}&amp;category={category}&amp;startrow=1&amp;format=rss</url> </urls> <inputs> <key id="searchterm" type="xs:string" paramType="path" required="true"/> <key id="authority" type="xs:string" paramType="path" required="false" default="category"/> <key id="category" type="xs:string" paramType="path" required="false" default=""/> </inputs> </select> </bindings></table>

http://developer.yahoo.com/yql/guide/yql-opentables-chapter.html

Page 89: Reaching those web folk

http://developer.yahoo.com/yql/console/?q=use%20%27http%3A%2F%2Featyourgreens.org.uk%2Fyql%2Fnmm-search.xml%27%20as%20nmm%3B%0Aselect%20*%20from%20nmm%20where%20category%20%3D%20%27art

%27%20and%20searchterm%20%3D%20%22tower%20bridge%22

Page 90: Reaching those web folk

This was a start, now he is going nuts with it...

Page 91: Reaching those web folk
Page 92: Reaching those web folk
Page 93: Reaching those web folk

Let’s look at some of his stuff later...

Page 94: Reaching those web folk

In conclusion:

Page 95: Reaching those web folk

By opening your data to the web you make web users your data advocates.

Page 96: Reaching those web folk

You start by writing clean, semantic web sites.

Page 97: Reaching those web folk

You make it easier for people by providing data feeds.

Page 98: Reaching those web folk

You really go to town with your own API.

Page 99: Reaching those web folk

If you can’t do that, a YQL open data table pointing to a search engine on your site also works.

Page 100: Reaching those web folk

YQL handles the interface, caching and data conversion for you.

Page 101: Reaching those web folk

YQL also limits the access to sensible levels.

Page 102: Reaching those web folk

It works for us, it can work for you.

Page 103: Reaching those web folk

Keep in touch:

Christian Heilmann

http://wait-till-i.com

http://scriptingenabled.org

http://twitter.com/codepo8

T H A N K S !