はてなキーワード:rdfとは
セマンティック・ウェブ(英:semantic web)はW3C のティム・バーナーズ=リーによって提唱された、
ウェブページの意味を扱うことを可能とする標準やツール群の開発によってワールド・ワイド・ウェブの利便性を向上させるプロジェクト。
セマンティック・ウェブの目的はウェブページの閲覧という行為に、データの交換の側面に加えて意味の疎通を付け加えることにある。
現在のワールド・ワイド・ウェブ上のコンテンツは主にHTMLで記述されている。
HTMLでは文書構造を伝えることは可能だが、個々の単語の意味をはじめとする詳細な意味を伝えることはできない。
これに対し、セマンティック・ウェブはXMLによって記述した文書にRDFやOWLを用いてタグを付け加える。
この、データの意味を記述したタグが文書の含む意味を形式化し、コンピュータによる自動的な情報の収集や分析へのアプローチが可能となると期待されている。
そこで、sesamizeという単語について調べたところ、以下の用法が見つかった。
そんなものは、どうにでもsesamize
大抵のおやじギャグは、検索すれば先例が見つかるものだ。sesamizeも例に漏れず、2006年の2chの書き込みに先例が見つかった。
Sesamize YourBanana (or a compatiblecell phone)
遅くとも2005年には、セサミストリートを制作しているSesame Workshopがsesamizeという単語を使用している。
RDFデータベースのJavaフレームワークであるSesameのコマンドラインツール。
DNAメチル化の解析を行うSeSAMeというR言語のパッケージのために、データファイルを変換するツール。
SESAMEというセキュリティアーキテクチャを用いてアプリケーションを保護することをsesamizeと表現することがあるようだ?
軽く検索しただけなので、把握しきれていない用法があるかもしれない。
初めてスマホに表示された。
bugったのか?
ThisXML filedoes not appear to haveany style information associated withit. The documenttreeis shown below.
<rdf:RDFxmlns="http://purl.org/rss/1.0/"xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:content="http://purl.org/rss/1.0/modules/content/"xml:lang="ja">
<channelrdf:about="https://anond.hatelabo.jp/rss">
<title>はてな匿名ダイアリー</title>
<link>https://anond.hatelabo.jp/</link>
<description>はてな匿名ダイアリー</description>
最近はやりのLOD(LinkedOpen Data)のデータフォーマットについてメモ。
例はWikipediaのコピペ。もっと違いが分かりやすい例があると良いのだが。
<rdf:RDFxmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Descriptionrdf:about="http://en.wikipedia.org/wiki/Tony_Benn"> <dc:title>Tony Benn</dc:title> <dc:publisher>Wikipedia</dc:publisher> </rdf:Description></rdf:RDF>
@prefixdc: <http://purl.org/dc/elements/1.1/>.<http://en.wikipedia.org/wiki/Tony_Benn>dc:title "Tony Benn";dc:publisher "Wikipedia".
@prefixdc: <http://purl.org/dc/elements/1.1/>.<http://en.wikipedia.org/wiki/Tony_Benn>dc:title "Tony Benn";dc:publisher "Wikipedia".
<http://en.wikipedia.org/wiki/Tony_Benn> <http://purl.org/dc/elements/1.1/title> "Tony Benn".<http://en.wikipedia.org/wiki/Tony_Benn> <http://purl.org/dc/elements/1.1/publisher> "Wikipedia".
<http://en.wikipedia.org/wiki/Tony_Benn> <http://purl.org/dc/elements/1.1/title> "Tony Benn" <http://en.wikipedia.org/wiki/Tony_Benn>.<http://en.wikipedia.org/wiki/Tony_Benn> <http://purl.org/dc/elements/1.1/publisher> "Wikipedia" <http://en.wikipedia.org/wiki/Tony_Benn>.
{ "@context": { "dc": "http://purl.org/dc/elements/1.1/" }, "@id": "http://en.wikipedia.org/wiki/Tony_Benn", "dc:title": "Tony Benn", "dc:publisher": "Wikipedia"}
「404Not Found」のページは2005年6月29日当時は総合検索サイトだった模様。
http://web.archive.org/web/20050629025401/http://www.e-fresh.jp/index.cgi
タイケン学園公認アダルトサイトは2007年9月25日当時は「上位表示のためのサーチエンジンWEB」だった模様。どちらにしても問題ありだけど。
http://web.archive.org/web/20070925182729/http://www.navi-e.com/
http://d.hatena.ne.jp/LukeSilvia/20080313/1205424352
そのままやってインストールできたけど、shift+Uも、右クリックメニューも何も出ないし。
まあ、記事を作ってくれたことは有難いことだな。
どうせどこかでオレが間違えてるんだろ?
とりあえず、flagfoxというもので確認したところ
install.rdf やchrome.manifest の
改行コードはCRLF でOKそうだが、jsm やらjs はLF のみみたい。
なんだ、この統一感の無さは。それとも、どっちでもいいのかな?
Fxのサイドバー開閉ボタン(閉じるボタン)が消えた(SS→http://skm.vip2ch.com/-/hirame/hirame083969.jpg)
これが何をやっても修復出来ない。
地味に不便なのでもう一回素のFxからやり直そうかと思っていたところ耳寄りな情報を発見。
ツールバーなどの表示設定はプロファイルフォルダ内のlocalstore.rdfというファイルに保存されているらしい。
プロファイルフォルダがどこにあるかについてはググってください。
ちゃんとバックアップ取って消してから起動。
直った。
Fxは若干設定ファイルが分かりにくいよね。localstore.rdfにツールバー設定が保存されているなんて分からないでしょ。
Operaだとtoolbarフォルダ直下にiniがあるから分かりやすい。
追記:localstore.rdfは壊れやすいらしいのでいつの間にか表示が変になっていた場合このファイルを疑うといいらしい。
参照
http://firefox.geckodev.org/index.php?%E3%83%97%E3%83%AD%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB#meda2383
RDF の普及がなぜ進まないかと言えば、「現場の一存で導入できない」という部分が一番大きい。そして、現場より上の人にはメリットを理解させるのがむずかしい。
microformats はすばらしい。現場の一存で導入できる。誰も損しない。
そして、最近AutoPagerize や LDRize で注目を集めている外部 annotation による技法。まったくもって馬鹿馬鹿しい。サイト側がちゃんとマークアップするのが本筋だろう!というところはありつつも、まあ現実的にはみんながみんなちゃんとマークアップしてくれるわけではないので、現実的な解法としてアリだよな。うん。
Plagger のEFT とかも手動でやってんのはかなりバカバカしいんだけどさ、まあそれなりに動いてるわけよ。それはそれでアリなんじゃねーの?って感じがするよな。うん。
まあ、でも理想はmicroformats なり megaformats だから、それを忘れたら負けだよな。うん。
ほんでさ、EFT は単純に情報の盗賊みたいなイメージが強かったんだけど、AutoPagerize や LDRize の場合は対応しとくとサイトのユーザビリティがあがるのな。ほんとうぃんうぃんだよな。
まんこ。
何か名前の響きからしてこんな感じの人を想像してたんだけど
でもいままでamachang発言((X)HTML+CSS しか出来ない人は真剣に第二の何かを探したほうがいい
とか)の反応ざっと見てきたけどid:amachang(とその周辺)が「マークアップエンジニア = (X)HTML+CSS しか出来ない人」として話を進めてるのにも関わらずそれについて反論があんまりないんだよな。「趣味じゃなくて仕事として(X)HTML(とCSS)を作成するためにはこれこれこういう知識が必要なんだよ」とか「マークアップエンジニアには(X)HTMLとCSSしかすることがないとでも思ってんのか馬鹿」とか言ったりするのかと思ったらほとんどそんなことなくて、むしろ同意ですとかそんなこと言われなくてもわかってるよとかJavaScriptだって同じじゃんとか見た感じそんなのばっかり。どうも俺の想像した職業とは違うらしい。
マークアップエンジニアって本当に(X)HTMLとCSSの知識だけで(X)HTMLとCSS書いてる人なの?反応見ててそもそも(X)HTMLとCSSに理解があるのかってこと自体にまで疑問を感じるんだけど。
20070629230000改定
20070702125800バグ発見:スクリプト中にある「&&」が、「&&」になっている。増田の仕様らしい。
20070827224900改定
// ==UserScript==// @nameanond pickup// @namespacehttp://anond.hatelabo.jp/20070608230645// @descriptionpickuptrackbacktreetop section at Hatelabo::AnonymousDiary// @includehttp://anond.hatelabo.jp/*// ==/UserScript==(function() {var threshold_bm = 1;var threshold_tb = 1;var ignoreList = {"/20070801172335": 33,"/20070806163721": 10,};var firstPager_l = document.evaluate("//div[@class='pager-l']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;functionHide(){}Hide.prototype.setup = function() {this.style = document.createElement("style");this.style.id = "hide";this.style.type = "text/css";document.getElementsByTagName("head")[0].appendChild(this.style);var self = this;this.a = newObject();this.a.visible = document.createElement("a");this.a.visible.id = "visible";this.a.visible.href = "#";this.a.visible.innerHTML = "visiblehide section";//this.a.visible.setAttribute("onclick","document.getElementById('hide').innerHTML = 'div.hide {display: block}';document.getElementById('visible').style.display = 'none';document.getElementById('unvisible').style.display = 'inline';");this.a.visible.addEventListener("click", function(){self.visible()}, false);firstPager_l.parentNode.insertBefore(this.a.visible, firstPager_l);this.a.unvisible = document.createElement("a");this.a.unvisible.id = "unvisible";this.a.unvisible.href = "#";this.a.unvisible.innerHTML = "unvisiblehide section";//this.a.visible.setAttribute("onclick","document.getElementById('hide').innerHTML = 'div.hide {display: none}';document.getElementById('visible').style.display = 'inline';document.getElementById('unvisible').style.display = 'none';");this.a.unvisible.addEventListener("click", function(){self.unvisible()}, false);firstPager_l.parentNode.insertBefore(this.a.unvisible, firstPager_l);if (GM_getValue("visible", 0)) {this.visible();} else {this.unvisible();}}Hide.prototype.visible = function() {this.style.innerHTML = "div.hide {display: block}";this.a.visible.style.display = "none";this.a.unvisible.style.display = "inline";GM_setValue("visible", 1);}Hide.prototype.unvisible = function() {this.style.innerHTML = "div.hide {display: none}";this.a.visible.style.display = "inline";this.a.unvisible.style.display = "none";GM_setValue("visible", 0);}Hide.prototype.append = function(section) {if (section.className.match(/hide/)) {return;}section.className += "hide";}Hide.prototype.clear = function(section) {section.className = section.className.replace(/hide/g, "");}Hide.prototype.is = function(section) {return section.className.match(/hide/);}varhide = newHide();hide.setup();var target = document.evaluate("//div[@class='section' and child::*[not(@class='sectionfooter') and descendant::a[starts-with(@href,'http://anond.hatelabo.jp/2') or starts-with(@href,'/2') and not(child::span[@class='sanchor'])]]]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for (var i=0; i<target.snapshotLength; i++) {hide.append(target.snapshotItem(i));}vartbs = document.evaluate("//p[@class='sectionfooter']/a[2]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for (var i=0; i<tbs.snapshotLength; i++) {vartb =tbs.snapshotItem(i);if (tb.innerHTML == "\u30c8\u30e9\u30c3\u30af\u30d0\u30c3\u30af(0)") {//hide.append(tb.parentNode.parentNode);bookmark(tb, 0);} else if (!hide.is(tb.parentNode.parentNode)) {trackback(tb, 1);} else {bookmark(tb, 1);}}functiontrackback(tb, callback) {GM_xmlhttpRequest({method: "GET",url: "http://anond.hatelabo.jp/" +tb.pathname.match(/\d{14}/),onload: function(result) {varlink = result.responseText.match(/<aname="tb">(.|\s)*/)[0].match(/<li>\s*<ahref="http:\/\/anond.hatelabo.jp\/\d{14}"/g);var n =link.length;for (var l inlink) {var m = "/" +link[l].match(/\d{14}/);if (m in ignoreList) {n -= ignoreList[m];}}if (n < threshold_tb) {tb.innerHTML =tb.innerHTML.replace(/\)$/, "/"+n+")");if (callback) {bookmark(tb);}} else {tb.innerHTML =tb.innerHTML.replace(/\)$/, '/<span style="color:red;">'+n+"</span>)");}}});}function bookmark(tb, callback){GM_xmlhttpRequest({method: "GET",url: "http://b.hatena.ne.jp/entry/rss/http://anond.hatelabo.jp/" +tb.pathname.match(/\d{14}/),onload: function(result) {var r = result.responseText.match(/<rdf:lirdf:resource=/g);if (r && r.length >= threshold_bm){hide.clear(tb.parentNode.parentNode);if (callback) {trackback(tb);}} else {hide.append(tb.parentNode.parentNode);}}});}})();
今はスッキリしているのは古いやつ
/// ==UserScript==// @nameanond pickup// @namespacehttp://anond.hatelabo.jp/20070608230645// @descriptionpickuptrackbacktreetop section at Hatelabo::AnonymousDiary// @includehttp://anond.hatelabo.jp/*?page=*// ==/UserScript==(function() {var target = document.evaluate("//div[@class='section' and child::*[not(@class='sectionfooter') and descendant::a[starts-with(@href,'http://anond.hatelabo.jp/2') or starts-with(@href,'/2') and not(child::span[@class='sanchor'])]]]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0; i<target.snapshotLength; i++) {target.snapshotItem(i).style.display = "none";}vartrackback = document.evaluate("//p[@class='sectionfooter']/a[2]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0; i<trackback.snapshotLength; i++) {if (trackback.snapshotItem(i).innerHTML == "\u30c8\u30e9\u30c3\u30af\u30d0\u30c3\u30af(0)") {trackback.snapshotItem(i).parentNode.parentNode.style.display = "none";} else if (trackback.snapshotItem(i).parentNode.parentNode.style.display != "none") {count(trackback.snapshotItem(i));}}function count(tb) {GM_xmlhttpRequest({method: "GET",url: "http://anond.hatelabo.jp/" +tb.getAttribute("href").match(/[0-9]{14}/),onload: function(result) {var n = result.responseText.replace(/\n/g,"").match(/<aname="tb">.*/)[0].match(/<li>/g).length;if (n < 10) {tb.innerHTML =tb.innerHTML.replace(/\)$/,"/"+n+")");} else {tb.innerHTML =tb.innerHTML.replace(/\)$/,'/<span style="color:red;">'+n+"</span>)");}}});}})();