8/23/2005

Achieve a steady ontology from agreements and light-weithed iteration?

It’s no doubt that the ontology is used mainly for knowledge representation.

In the case of knowledge representation, ideally we should express as much knowledge as we know, so that the agent can find/understand anything it needed while performing its task, which unfortunately, is impossible. The other extreme is to give agent the knowledge that it might need in the designed scenario only. In this case the agent will out of work when meeting with unexpected situation (yes, statistic methods might make things better, but don’t solve the problem).

I think ontology struggle in the middle. That is, agents share some basic cognition about the world (ontology), so that their knowledge (instantial ontology) can be shared base on basic cognition. But we can continue arguing to what an extent the basic cognition (ontology) should be modeled? Of course it is the same thing we face with knowledge presentation, because ontology itself is knowledge too.

So we can see that ontology is a kind of “modeled for the future, presented with current”. It’s difficult, who can tell what will happen in the future or not? The current solution is to collect all the experiences from everyone. We find a group of people, they argue, they fight, they compromise, and finally decide “if we have these concepts and relations, it will cover 80% of tasks in the future”. Ontology is an agreement.

So it may be shabby, because the creator has no patients with so many concepts and relations, or the agent doesn’t need so much knowledge presently, or the “expert” himself in fact knows little about the working domain. (I guess these often occur in the domain ontology construction). Thus we will feel the pressing need for ontology evolvement much more often than the change of domain. Because the need is inspired both by the incompleteness of the ontology and by the real changes of the working domain.

Many work related to this problem have been done, such as, ontology evolvement, ontology integration and ontology mapping. For the widely test and usage of these techniques I tend to argue we need some light-weighted iteration. That is, quick publish, quick use, quick review and enter the next iteration quickly. It is just like the idea behind light-weighted software implementation, or, open source. The light- weight iterations should go on until the ontology is steady. Then the changes will occurs mainly because of the changes of domain itself.

But I have to admit that the light- weighted iteration is not an easy thing. En, it’s what I will do next currently.

p.s. We know the definition of ontology is “an explicit specification of conceptualization ”, one of the feature behind this definition is “ontology is an agreement among a community”, all the discussion above is on this feature only.
p.s. this blog is written in Microsoft word using “blogger for word add-in”. I do expecting google’s own IM now.

糊弄和美人计

前天。周日晚上,开始赶给老师的一个报告。赶到晚上三点。早上七点又爬起来做,终于在12点之前搞定,发了出去,以备下午讨论。

明显的糊弄老师和自己。我知道。应该准备三个礼拜的报告,我只是看了一个礼拜的论文+想了一个晚上。很是担心。

于是我出门前跟东子说,没办法了,只好打扮漂亮一点,牺牲色相。带了一对摇曳的耳环,和我的玉石的镯子。一扭一扭,跑去nii。

后来发现科研的时候,美人计是行不通的。首先是我的耳环掉链子,后面的小卡口掉了。然后发现镯子在手上总是跟桌子磕磕碰碰的,心痛...所以一手撸了下来,放在了手提袋子里。

证明美人计还是失败。老师似乎不是很在状态,或者是他有他的想法,跟我的不同。嗬嗬,沟通和达成一致很困难。

又证明我还是一个不太喜欢岁便放弃想法的人。什么事情如果我自己不想放弃。老师再黑着脸我也懒得搭理他。

这个礼拜的任务是:
1.给takeda老师写一个research plan.并转送随心讨论
2.如果有时间:proposal给wanghua师兄。
3.研究如何将uw用rdf/owl表示

8/21/2005

glossaries around ontology mapping

The definitions listed below come from "Ontology Mapping: The State of the Art"
by Yannis Kalfoglou and Marco Schorlemmer

  • Ontology
    (if we adopt an algebraic approach and present ontologies as logical theories,)
    An ontology is then a pair O=(S, A), where S is the (ontologica) signature - desribing the vocabulary - and A is a set of (ontological) axioms - specifying the intended interpretatoin of the vocabulary in some domain of discourse.

  • Ongological signature morphisms:
    We understand ontology mapping as the task of relating the vocabulary of two ontoloiges that share the same domain of discourse in such a way that the mathematical structure of ontological sugnatures and their intended interpretations, as specified by the ontological axioms, are respected.
    structure-preserving mappings between mathematical structures are call morphisms.

    the morphisms of ontological signatures is to determine which concept and relation symbols of one ontology are mapped to concept and relation symbols of the other.

    total ontology mapping:
    A total ontology mapping from O1=(S1,A1) to O2=(S2,A2) is a morphism f: S1->S2 of ontological signatures, such that, A2 = f(A1), i.e. all interpretations that satisfy O2's axioms also satisfy O1's translated axioms. (see also theroy morphism)

    partial ontology mapping:
    a prtial ontology mapping from O1=(S1, A1) to O2=(S2, A2) if there exists a sub-ontology O'1 =(S'1, A'1) (S'1 belong to S1, and A'1 belong to A1) such that there is a total mapping from O'1 to O2.

  • Populated ontoloies:
    In a populated ontoloies, classes of an ontological signature come equipped with their respective instances.

  • Ontology morphisms,
    is a more ambitious and practically necessary approach than ontological signature morphisms. It takes into account how particular ontological axioms are mapped as well. Formally, this would require ontology mappings to be defined in terms of morphisms of ontologies, i.e., signature+ axioms, instead of morphisms of signatures only.
  • Ontology alignment, articulation, merging, translation and integration.
    Ontology mapping only constitutes a fragment of a more ambitious task concerning the alignment, articulation and merging of ontologies.

    Ontology alignment:
    An ontology mapping is a morphism, which usually will consist of a collection of functions assigning the symbols used in one vocabulary to the symbols of the other. But two ontologies may be related in a more general fashion, namely by means of relations instead of functions. Hence, ontology alignment is the task of establishing a collection of binary relations betwwen the vocabularies of two ontoloiges.

    Ontology alignment:

    Ontology merging:

    Ontology translation:
    ontology mapping denotes the process of defining a collection of functions that specify which concepts and relations correspond to which other concepts and relations, wile the ontology translation is the application of the mapping functions to acturally translate the sentences that use the one ontology into the other.

    Ontology integration:
    the composition of ontologies to build new ones, but its respective vocabulary are usually not interpreted in the same domain of discourse.




  • mapping between the schemas: a set of expressions that specify how the data in one source corresponds to the data in the other.
  • marching is typically the firt phase in generating schema mappings.

见证彼此的幸福

大学一起的朋友,还剩三个没结婚。啦啦啦,红红和迷笛。

啦啦啦和迷笛讨论过,怎么能勤俭节约的,找一个好的仪式,处理完这件人生大事。(毕竟李湘或者小S都是少数。)

大话上有朋友,要去教堂。咕咕的鸽子,音乐,红毯,白纱以及誓言。到真让人有些向往。可是回过头来看看,又觉得教会也变得越来越世俗了呢。即使是没有受洗的人,只要交钱,也是可以举行基督徒(还是天主教徒?对不起信教的同学,我无意轻薄。只是没有搞清楚)式的婚礼。当年蒋介石为了跟宋美玲玩这个,还专门跑去信教受洗了,他老人家如果知道现在这样,会不会哀号“时代不同了”。咦,跑题了。只是,教堂是需要挽着父亲的手臂,由父亲将自己交给新郎的吧。像我们这种,没办法实现的人,教堂里的意义似乎已经大大的打了折扣。

于是迷笛还是想去拍婚纱照。我是说,一张有啦啦啦,红红和迷笛的婚纱照。不要满背景飞着玫瑰的电脑合成照片。要油画的感觉,洛可可的风格就不错。她们在大大的休息室,有光束从落地的窗户射进来。红红在帮啦啦啦整理婚纱,迷笛在稍微靠后的地方浅笑,又似乎在神游。要用清新透明的笔触,让幸福弥漫整个画面,笼罩三个新娘。即使什么都没有,迷笛还是想要这样的一张婚纱照。

等到有一天,当夫妻不再相爱,朋友久不联系。至少还有它,让我们曾经见证彼此的幸福。


p.s.
回头去问问另外两个烂人的意见。但是根据我以往的经验,什么东西吧,你想得太美,就一定没办法得到。你看,我是一个很负面的人。

8/19/2005

跳起来扁人的冲动

本周两次有跳起来扁人的冲动。

第一次是在看论文的时候。嗯,看什么看就是说你呢。那个
Start making sense: The Chatty Web approach for global semantic agreements
by Aberer K, Mauroux CP, Hauswirth M

这是一篇由无数的数学符号和公式堆积起来的论文。概率,分布,期望,积分,拓扑,数据模型,元操作。平生最恨这样的论文!因为我理解公式,实在是慢。通常一个公式才看了一半,我就已经忘记前面定义的变量什么意思。图形和文字就很简单,再复杂的图形,我都能跳出来看到全局,然后又很自发的注意到细节。
此外,平心而论,我觉得数学是刻画模型与解决问题的工具而已。一上来丢数学公式,不把模型背后的思路讲清楚的做法,我还是稍微有些鄙夷。

我认了大半个礼拜,就一直在看这个论文。其间吐血吐饭吐了多少次!要多么感谢晋江文学城(www.jjwxc.net),陪着我,一章言情一段论文的,终于看懂整个论文。

然后就是再看一个日剧。叫作夜型爱人专门店。东子推荐的。内容是一个心地善良的在牛郎店当牛郎的吸血鬼如何跟他的正常人小女朋友不断的以私人身份破获各企案件伸张正义的故事。东子推荐的时候,先说的是吸血鬼的故事,被我拒绝;然后她说宣传上写的是:本故事的最大看点是帅哥吸血鬼的便装秀哦。本小姐立刻哭着喊着求东子传给我。
真地看了以后,真的忍不住想冲进屏幕扁那个男猪!吸血鬼就吸血鬼嘛。干吗装可爱,喝那种袋装的鲜血!(大家回忆下CC果冻!!)还作出那种“才不会忘记你呢~”得广告女孩的装可爱表情!!!!!我跳起来,扁扁扁扁扁扁扁!!!然后丢到火星上去喂猪!

8/18/2005

small world graph

D.J. Watts and S.H. Strogatz. Colletive dynamics of 'small world' networks.
Nature, 393:440-442,1998

small-world topologies have been extensively applied to model computer networks or social behaviors. They are typically characterized by high clustering co-efficients ( average fraction of pairs of neighbors of a node that are also neighbors of each other) and relatively small path length (average minimal distance between two nodes).

8/15/2005

技术女青年的两天AJAX之旅-- 实践出真知的Domain Cross

既然已经知道该怎么做了。于是照着现成的改吧改吧改了一个

[代码还没有贴上来]


这个script运行的过程,就是发送请求到服务器,获取del.icio.us/midi叶面,然后取得标签云部分的代码。加在本页html文件中。
专门装了dreamweaver来试验。(突然发现dreamweaver要出8乐。期待中)。在本地运行的时候ok,但是装在blogger模板中以后,运行就总是出现permission denied. 所以很多理论上很简单的事情。做起来还蛮麻烦的。
为了消除这个permission deny。我依次 :

  • 许可javascript。许可activeX。
  • 逐渐降低浏览器安全设置(从中-〉最低-〉enable所有的项目)
  • 将两个站点都加入信任站点。

之后,还是不行。我终于相信,仅仅靠客户端的努力,是无法消除permission deny的问题了。我碰到的。这里我碰到的就是浏览器中的domain cross安全问题。

所谓domain across,就是说我现在所在的页面是www.aaa.com。那么我就是处于aaa.com的domain中,但是如果其中有一部分数据要提交到另一个domain,比如www.bbb.com。就出现了可能的安全隐患。因此浏览器或者提示(据说ie会这样),或者直接拒绝实施这样的操作(firefox等)
一般而言,客户端是没有办法做这种操作的。都是在架一个服务器。具体怎么做,我没有调查。但是当然是可以的:)说了我是功利的程序员。这里有详细地说明。

下午在聊天。今天的工作成果就是,狂写了blog,以及聊天吧。不知道做为抗战胜利六十周年献礼好不好:D

技术女青年的两天AJAX之旅-- 遭遇AJAX

bitty browser

东溜西溜,发现了Bitty Browser,就是可以页面中再嵌一个浏览器!虽然有点简陋,但是有点意思。它使得我们的web页面向桌面更贴近了一步!本来想做一个sample,放在自己的blog上,但是没有想好让它来显示什么,本来想用它来显示我的标签云。后来发现不行。失败。

下面是个例子,显示的是:del.icio.us/midi的页面。可以看到浏览器还提供了其他的功能,能够像正常的浏览器一样到处看。只是小了点。




这个bitty browser,就是所谓的AJAX技术的很好实例。


关于ajax

ajax是新瓶装旧酒。它是Asynchronous JavaScript和XML的简称。包括:

  • XHTML和CSS
  • 使用文档对象模型(Document Object Model)作动态显示和交互
  • 使用XML和XSLT做数据交互和操作
  • 使用XMLHttpRequest进行异步数据接收
  • 使用JavaScript将它们绑定在一起

它所针对的问题是:在旧web页面的交互方式中,由用户触发一个HTTP请求到服务器,服务器对其进行处理后再返回一个新的HTHL页到客户端,每当服务器处理客户端提交的请求时,客户都只能空闲等待,并且哪怕只是一次很小的交互、只需从服务器端得到很简单的一个数据,都要返回一个完整的HTML页,而用户每次都要浪费时间和带宽去重新读取整个页面。

而Ajax的一个最大的特点是无需刷新页面便可向服务器传输或读写数据(又称无刷新更新页面),这一特点主要得益于XMLHTTP组件XMLHTTPRequest对象。这样就可以向再发桌面应用程序只同服务器进行数据层面的交换,而不用每次都刷新界面也不用每次将数据处理的工作提交给服务器来做,这样即减轻了服务器的负担又加快了响应速度、缩短了用户等候时间。

比较详细的关于ajax的介绍:

懒得去看别的英文材料了。

ps.发现自己看东西还是很功利的,用不到的时候绝对不看。而且还引此为荣。

技术女青年的两天AJAX之旅-- 从标签云开始

今天,我给大家说段相声....芬特,为什么一想起来就是这个?嗯,原来自己本来想说的是:今天我给大家介绍一个技术,XJAX。这两天捣鼓这个了。

起源是,我想给blog上添加我在del.icio.us的tag clouds。解释什么是tag clouds要从什么是tag开始。tag(标签)简言之,就是用户自定义的关键字,用来标注的浏览到的文档。有一些公司可以提供服务,让我们保存这些关键字和标注。比如:del.icio.us和citeulike. 我的blog的分类系统,就是利用了del.icio.us的服务。

而标签云(tag cloud)是形象地展示标签的方法。比如我的del.icio.us的标签云,看到了吧?就是右边那一大堆大小不一的关键字。

我想做的事情,就是把这个tag cloud放在我的blog。

这样做的初衷是:使得自己的blog更像一个hub,加强它在搜索引擎中的地位。可以吸引试用搜索引擎的用户。充分发扬广大眼球经济,然后,上市~~~~~~~~yeah~~~然后,向李彦宏那样说:改变世界是我的梦!(这个记者也太恶心了。人家的意思本来不是这样吗~~)

然后先去网上找了找有没有现成的。来回来去就发现三个:

  1. A del.icio.us tag clusterer: 对标签进行聚类的。适合拥有无数标签的人。
  2. http://www.tagcloud.com/:从一堆页面里面提取关键字,然后再按权重显示。
  3. http://kevan.org/extispicious: 随机排队和展示用户的del.icio.us标签,但是标签的大小是按照叶面数量来的。勉强算是我要的东西,但是未免也态随机了。对我的标签的排列如下:http://kevan.org/extispicious.cgi?name=midi

那么这三个都让我不是很满意,我的要求就是:

  • 完全的我自己的del.icio.us的标签(不要什么自动提取和聚类,咱们就是搞那个的,在什么情况下有用完全了解);
  • del.icio.us的标签权重只要跟被我标记的页面数有关就可以了。

还是觉得如果能用del.icio.us一模一样的标签云就好了。于是去上面找文档。发现我有两个办法能够获得del.icio.us上的数据。一是通过使用它们提供的html feeds获得需要的html代码片断,嵌在自己blog页面的源代码中。但是html feeds中没有提供tag clouds的选项。二是调用api,获得xml文件。比如:访问http://del.icio.us/api/tags/get? ,然后输入del.icio.us上的用户名密码后,可以得xml形式的数据。

其实我的想法很简单。既然blogger支持javascript,那么我只要调用del.icio.us的api或者直接获取html页面做解析,然后显示就可以了。缺的只是不知道可以用什么javascript函数。

到这里我本来已经决定调研结束了。然后很happy的给del.icio.us support写了一封信,说想要这个功能,也很happy的收到了回信,得知他们正在开发中。想,万事大吉。

马上就要见到我亲爱的标签云了~

8/14/2005

blogger的user survey

昨天做了一个blogger的user survey。
最后一题是最希望blogger有什么样的功能,我写的是:中国国内用户可以正常访问......

sigh..统计问卷的人看到,不知道是当作笑话还是有些许无奈呢:)