Semantic SearchMonkey
Semantic SearchMonkey
Semantic SearchMonkey
SearchMonkey
Presentation by:
Online at:
http://www.slideshare.net/ptarjan/semantic-searchmonkey
The web was / is fragmented
Funny pictures
Super secret
military site
Friend’s
website
University Cool
event page bookmarks
So we added search to find stuff
Google Yahoo
Super
Funny
secret
pictures
military site
Friend’s
University website Cool
event page bookmarks
But there are many similar sites
• object:video creator:http://paulisageek.com/
length<=60s
Wouldn’t it be cool if you could do:
• object:photo person:http://paulisageek.com
The Semantic What?
• Make a namespace
• Use @property, @rel and @resource
• For DATA: @property makes the node
contents into the value
• For URLs: @rel makes the @resource into
the value
Normal HTML
• <html>
…
<div class="private”>
private static String
<strong>_createCookieHash </strong>
(hash)
…
RDFa: example
• <html xmlns:yui="http://yuilibrary.com/rdf/
1.0/yui.rdf#">
…
<div class="private” rel="yui:method"
resource="#method__createCookieHash">
private static String
<strong property="yui:name">
_createCookieHash </strong> (hash)
…
That’s it!
Before After
Enhanced Result: Zagat
Summary Blob
Part of the puzzle
Semantic vocabularies
SearchMonkey
Vocabularies
• xmlns:foaf=http://xmlns.com/foaf/0.1/
• xmlns:vcard=http://www.w3.org/2001/vcard-rdf/
3.0#
• xmlns:junk=http://example.org/ptarjan/
• My friend “Bob” is an idiot.
– (self, foaf:knows, genid:Ui__152310312_366)
– (genid:Ui__152310312_366, vcard:fn, “Bob”)
– (genid:Ui__152310312_366, junk:isInstanceOf, junk:idiot)
• Unnamed nodes are O.K.
RDFa
• <html xmlns:foaf=“http://xmlns.com/foaf/0.1”
xmlns:vcard=http://www.w3.org/2001/vcard-rdf/
3.0# xmlns:junk=http://example.org/ptarjan/>
<div rel=“foaf:knows”>
<span property=“vcard:fn”>Bob</span>
<span rel=“junk:isInstanceOf”
resource=“junk:idiot” />
</div>
</html>
• </SemanticWeb>
• Questions?
Innards of SearchMonkey
• Demo
Examples
• Rubic’s cube
• VTA Bus
• API Monkey
• BugMeNot
• RetailMeNot
• Amazon
questions?