{"id":73,"date":"2005-05-31T11:29:06","date_gmt":"2005-05-31T16:29:06","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=73"},"modified":"2005-05-31T11:29:06","modified_gmt":"2005-05-31T16:29:06","slug":"javascript-rdf-searching","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/73\/javascript-rdf-searching\/","title":{"rendered":"Javascript, RDF Searching"},"content":{"rendered":"<p>I&#8217;ve been doing some playing with goofy Javascript stuff lately to try to get my head wrapped around it, since I&#8217;m going to be needing to implement it in a few tools at work in the near future. <\/p>\n<p>I&#8217;ve so far used it in<br \/>\n 1. An admin interface for Athena&#8217;s email accounts,<br \/>\n 2. An inventory listing for a work project<br \/>\n 3. The newest one, a &#8220;suggestion&#8221; field for Wordnet searches against the RDF store I just imported this morning.<\/p>\n<p>Danny <a href=\"http:\/\/dannyayers.com\/archives\/2005\/05\/31\/wordnet-in-rdf-new-version\/\">alerted<\/a> me to the existence of a new Wordnet dataset. I grabbed the full set, dropped it into Redland, and set up a <a href=\"http:\/\/crschmidt.net\/semweb\/wordnet\/sparql\">sparql search<\/a> against it. The top box there is the nifty one though: type in a string (say, apple) and watch the right side as a list of suggestions is populated.<\/p>\n<p>I still need to get it actually doing a Google Suggest-like dropdown box, but haven&#8217;t had the time to hack <a href=\"http:\/\/wick.sourceforge.net\/\">WICK<\/a> to do what I want as far as that goes.<\/p>\n<p>I&#8217;m still learning, and as such, the code is sucky. I wouldn&#8217;t recommend reading it for an example: it&#8217;s a quick hack, but it works. Still many bugs to work out &#8211; for example, if you type apple, it still searches for app, appl, apple in the process. But I&#8217;ll get there. (Okay, so I just did a few bug fixes that make it much better, and switched the search mechanism to use MySQL rather than an 11 Meg PHP array. Much better now.)<\/p>\n<p>Anyway, I think it&#8217;s cool. RDF people can mark it down in the &#8220;another SPARQL datastore&#8221;, Javascript people can mark it down as &#8220;Another idiot trying to use XmlHttpRequest and doing it wrong.&#8221;<\/p>\n<p>Lemme know if you&#8217;ve got suggestions!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been doing some playing with goofy Javascript stuff lately to try to get my head wrapped around it, since I&#8217;m going to be needing to implement it in a few tools at work in the near future. I&#8217;ve so far used it in 1. An admin interface for Athena&#8217;s email accounts, 2. An inventory [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,28,29],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-javascript","category-php","category-sparql"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}