My blog got the new domain name Diveintodata.org
Posted: July 28, 2009 Filed under: Others | Tags: Blogging Leave a commentThe two week has passed since I opened moved this blog to here. Finally, I got a domain name “diveintodata.org” three days ago, and then I set my blog to be published as new domain. Now, I’m happy ๐
Anyway, from now I’m going to write at least one articles within a week. The articles will discuss computer science issues, especially newly emerging database issues.
Paper: Graph Twiddling in a MapReduce World
Posted: July 17, 2009 Filed under: Research | Tags: graph, graph cluster, map-reduce, scalable computing 5 CommentsToday, at the lab seminar I presented the paper โGraph Twiddling in a MapReduce Worldโ published in IEEE Computing in Science & Engineering. This paper addresses an investigation into the feasibility of decomposion graph operations into a series of MapReduce processes. In this post, Iโm going to discuss this paper briefly.
As I mentioned above, this paper discusses the feasibility of decompositing graph operations into a series of MapReduce processes. As you know, the MapReduce has been gaining attentions in various applications that cope with large-scale datasets. However, to the best of my knowledge there have been no studies for dealing with graphs on MapReduce. This paper proposes several operations as follows:
- Augmenting Edges with Degrees
- Simplifying the Graph
- Enumerating Triangles
- Enumerating Rectangles
- Finding Trusses
- Barycentric Clustering
- Finding Components
Some operations are performed in combination with other operations. Actually, some of them are very easy problems if they can traverse graphs. However, as the author said, traversing graphs with MapReduce is very inefficient (i.e., causing many MapReduce iterations) because a mapper reads only a record randomly for each map operation. Anyway, all the operations that the paper proposed avoid traversing graphs. Instead, their common pattern in graph algorithms proposed is as follows:
- A map operation: Read and process all the edges (or vertex) or changing some piece of edge (or vertex) information. Then, result in records by vertex as key.
- A reduce oprtation: For each record obtained from the previous map operation, read and determine the updated state of vertex or edge; emit this information in partially (or locally) updated records. Then, results in them.
- A reduce opration: For each record from the previous reduce operation, combine the updates globally and complete updated information.
Discussion
Even though this paper proposes several graph operations, they are still unnatural owing to too many MapReduce iterations; to the best of my knowledge, each MapReduce job’s initializing cost is very expensive. It is because mapper only can read record sequentially.ย The proposed graph operations based on MapReduce will cause the overhead of both MR iteration and communication. As a result, the feasible primitive graph operations with MapReduce are very limited. In addition, there are evidences to show the MapReduce is not suited to graph operations, but I will state them later.
Therefore, I think that a new programming model for graph (or complexity data) are needed. Ideally, the new programming model for graph must support graph traversing. In addition, data are needed to be preserved in locality in regards with their connectivity although data are distributed across a number of data nodes. Actually, basing these ideas Iโm concreting โHamburg: A New Programming Model for Graph Dataโ inspired by a blog post โLarge-scale Graph Computing at Googleโ
References
- Jonathan Conhen, โGraph Twiddling in a MapReduce Worldโ, Volume 11, Issue 4, pp 29โ41, IEEE Computing in Science & Engineering, July-Aug, 2009.
- Jeffrey Dean and Sanjay Ghemawat, โMapReduce: Simplified Data Processing on Large Clustersโ, OSDI’04: Sixth Symposium on Operating System Design and Implementation, San Francisco, CA, December, 2004.
- Google Cluster Computing and MapReduce Lecture 5
- Breath-first graph search using an iterative map-reduce algorithm
- Hamburg, Hadoop Wiki
What is the Common Tag?
Posted: July 16, 2009 Filed under: Research | Tags: common tag, rdf, semantic web, tagging 1 Comment์ต๊ทผ Common Tag (http://www.commontag.org)๋ผ๋ ์๋ก์ด ํค์๋๊ฐ ์๋งจํฑ ์น ์ปค๋ฎค๋ํฐ์ ๋ฑ์ฅํ์ต๋๋ค. ์ฌ์ค ํ๊ทธ(Tag)๋ ์ด๋ฏธ ๋ง์ด ์ต์ํ ์์คํ ์ ๋๋ค. ๊ทธ๋ฐ๋ฐ Common Tag๊ฐ ์ต๊ทผ ๋ง์ด ์ธ๊ธ๋์ด Common Tag๊ฐ ๋ฌด์์ธ์ง ๊ธฐ์กด ํ๊ทธ์ ์ด๋ป๊ฒ ๋ค๋ฅธ์ง ๊ด๋ จ ๊ธ๋ค์ ์ฝ์ด๋ณด๊ณ ๊ฐ๋จํ ์ ๋ฆฌํด ๋ณด์์ต๋๋ค.
๊ณต์ ์ฌ์ดํธ์ ์ค๋ช ๋์ด ์๋ Common Tag๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
Common Tag is an open tagging format developed to make content more connected, discoverable and engaging. Unlike free-text tags, Common Tags are references to unique, well-defined concepts, complete with metadata and their own URLs
Common Tag๋ ์ปจํด์ธ ๊ฐ์ ์ฐ๊ฒฐ์ฑ, ๊ฒ์ ๊ฐ๋ฅ์ฑ, ์์ฉ ํ๋ก๊ทธ๋จ์ ์ํ ํ์ฉ์ฑ์ ํฅ์ ์ํค๊ธฐ ์ํด ๊ฐ๋ฐ๋ ๊ณต๊ฐ ํ๊ทธ ํํ์ด๋ค. free-text ๊ธฐ๋ฐ์ ๊ธฐ์กด ํ๊ทธ์ ๋ฌ๋ฆฌ ๊ณ ์ ์ฑ, ์ ์ ์๋ ๊ฐ๋ , ๋ฉํ๋ฐ์ดํฐ๋ฅผ ํตํ ์์ ์ฑ, ์์ฒด URL์ ๊ฐ์ง๋ค.
๊ฐ๋จํ ๋งํ๋ฉด ๊ธฐ์กด ํ๊ทธ๊ฐ free-text๊ธฐ๋ฐ์ผ๋ก ์ฌ์ฉ์๊ฐ ์์ ๋กญ๊ฒ ์
๋ ฅํ๋ ํ
์คํธ ํํ์๋ค๋ฉด Common Tag๋ ๋ฏธ๋ฆฌ ์ ์ ์๋ ๊ฐ๋
์ URI๋ฅผ ๋ถ์ฌํ๊ณ ์ด URI๋ฅผ ํ๊ทธ๋ก ์ฌ์ฉํฉ๋๋ค. ๊ทธ ๋์ Web 2.0์ ์ฌ๋ฌ ์ปจํ
์ธ ๋ค์ ํ๊ทธ(Tag)๋ผ๋ free-text ํํ์ ํ
์คํธ์ ์ํด ๋ถ๋ฅ๋์ด์ก๊ณ ๊ฒ์์ ์ด์ฉ๋์์ต๋๋ค. ๊ทธ๋ฌ๋ ๊ธฐ์กด ํ๊ทธ๋ ์ฌ์ค ์ ์ญํ ์ ํ์ง ๋ชปํ์ต๋๋ค. ๋์์ด์์ด, ๋์์ด์์ด๋ก ์ธํด ๋ถ๋ฅ๊ฐ ์ ํํ๊ฒ ๋์ง ๋ชปํ๊ณ ๋ฐ๋ผ์ ๊ฒ์ ๊ฒฐ๊ณผ๋ ๊ทธ์ ๊ทธ๋ฐ ํ๋ฆฌํฐ๋ฅผ ๋ณด์ฌ์คฌ์ต๋๋ค. Common Tag๋ ์ด๋ฌํ ๋จ์ ์ ๋ณด์ํ๊ธฐ ์ํด ์ ์๋ ๊ฒ์ผ๋ก ๋ณด์ฌ์ง๋๋ค.
Why use Common Tag?
๊ทธ๋ผ Common Tag๋ฅผ ์ฌ์ฉํ๊ฒ ๋๋ฉด ๋ฌด์์ด ์ข์์ง๊น์? ๋ค์๊ณผ ๊ฐ์ ์ด์ ๋๋ฌธ์ ์ปจํ ์ธ ์์ฐ์ ๋ฐ ์๋น์ ๊ทธ๋ฆฌ๊ณ ๊ด๋ จ ์ดํ๋ฆฌ์ผ์ด์ ๊ฐ๋ฐ์๋ค์ ํธ์๊ฐ ํฅ์๋ฉ๋๋ค.
- Findability๊ฐ ํฅ์๋ฉ๋๋ค. ๋ช ํํ ์๋ฏธ์ ํต์ผ๋ Common Tag๋ฅผ ํตํด ์ํ๋ ๋ฐ์ดํฐ๋ฅผ ์ ํํ๊ฒ ์ฐพ์ ์ ์๊ฒ ๋ฉ๋๋ค.
- ๋ป์ด ์ ์ ์๋์ด ์๊ณ ์ ์ผํ ํค๋ฅผ ๊ฐ์ง๋ Common Tag๋ฅผ ํตํด ์ ๋ณด๋ค๊ฐ์ ์ฐ๊ฒฐ์ฑ์ด ํฅ์ ๋ฉ๋๋ค. ์ฆ ๊ฐ์ Common Tag๋ฅผ ๊ฐ์ง ์ปจํ ์ธ ๋ผ๋ฆฌ๋ Common Tag์ ํด๋นํ๋ URI๋ฅผ ํตํด ์ฐ๊ฒฐ์ฑ์ ๊ฐ์ง๊ฒ ๋๋๊ฑฐ์ฃ . ๊ธฐ์กด ํ๊ทธ๋ ๋์์ด์์ด ๋ฐ ๋์์ด์์ด๋ก ์ธํด ์๋ชป๋ ์ฐ๊ฒฐ์ ๊ฐ์ง๊ฑฐ๋ ์ฐ๊ฒฐ๋์ง ์๋ ๊ฒฝ์ฐ๊ฐ ๋ง์์ต๋๋ค.
- Common Tag๋ ๋จ์ํ ์คํธ๋ง(string)์ด ์๋ URI์ ์ํด ์๋ณ ๋ฐ ์ฐธ์กฐ๋์ด์ง๋๋ฐ ํ๋ก๊ทธ๋จ์ด ์ฒ๋ฆฌํ๊ธฐ๊ฐ ์์ํด ์ง๋๋ค. ๋ํ ๋์์ด์์ด์ ๊ฒฝ์ฐ ํ๋ก๊ทธ๋จ๋ค์ ์ฌ์ค ๊ตฌ๋ณํ๋ ๊ฒ์ด ๋ถ๊ฐ๋ฅํ๋ฐ Common Tag์ ๊ฒฝ์ฐ๋ URI๋ฅผ ํตํด ์๋ณ๋๊ธฐ ๋๋ฌธ์ ์ด๋ฐ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ง ์์ต๋๋ค.
How Can We Make use of Common Tag?
์น ๋ฌธ์(HTML document) ์์ฒด๋ฅผ Common Tag๋ฅผ ํตํด ํ๊น ํ ์ ๋ ์์ผ๋ฉฐ ๋ฌธ์์ ํน์ ์น์ , ํน์ ๋จ์ด ๋ฐ ๋ฏธ๋์ด ํ์ผ์ ํ๊น ํ ์ ๋ ์์ต๋๋ค. ์ฌ๋ด์ด์ง๋ง ์ ์ด HTML์ด ํํ์ ์์ฃผ๋ก ์ค๊ณ๋์์๋๋ฐ ์ด์ ๊ฐ์ด ์๋งจํฑ ๋ฐ์ดํฐ๊ฐ HTML์์ ์ฝ์ ๋ ์ ์๋ ๊ฒ์ RDFa ๋๋ถ์ ๋๋ค. RDFa๋ HTML์ RDF๋ฅผ embeding ํ ์ ์๊ฒ ํ๋ W3C์ Recommendation ์ ๋๋ค. RDFa๋ RDF์ ๋ํด์๋ ์ถํ์ ๋ ๋ค๋ฃจ๋๋ก ํ๊ฒ ์ต๋๋ค.
ํ๊ฐ์ง ์๋ก Common Tag๋ฅผ ํตํด HTML์ anchor text์ ๋ค์๊ณผ ๊ฐ์ด ํ๊น ํ ์ ์๊ฒ ๋ฉ๋๋ค. ์ด์ธ์ ํ์ฉ์ ๋ํด์๋ Common Taggingโs QuickStartGuide ์ ์ฐธ๊ณ ํ์ธ์.
<div xmlns:ctag="http://commontag.org/ns#" rel="ctag:tagged">NASA's <a typeof="ctag:Tag" rel="ctag:means"href="http://rdf.freebase.com/ns/en.phoenix_mars_mission"property="ctag:label">Phoenix Mars Lander</a> has deployed its robotic arm.</div>์์ ๊ฐ์ด ๊ธฐ์กด HTML์ ์ ๋ค์ด๊ฐ ์ ์์ต๋๋ค. ์ด๋ฐ ๊ธฐ์ ์ ์ธ ๋ถ๋ถ๋ง ๋ณด๋ฉด ์น ๋ฌธ์์ Common Tag๊ฐ ์์ฃผ ์ฝ๊ฒ ์ ์ฉ๋ ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค. ๊ทธ๋ฌ๋ Common Tag๊ฐ ํ๊น ๋ ๋ฐ์ดํฐ์ ๋ํด์๋ ์์ฃผ ์ ์ฉํ๊ฒ ์ฐ์ผ ์ ์์ผ๋ ํ๊น ํ ๋ ๊ฒฐ๊ตญ์ ์์ ์ด ๋ํ๋ด๊ณ ์ถ์ ๋ป์ ๊ฐ์ง Common Tag๋ฅผ ๊ณจ๋ผ๋ด๋ ์ฆ ์ฌ๋์ ์์ ๊ฑฐ์ณ์ผ ํ๋ค๋๊ฒ ๋ถํธํจ์ผ๋ก ์์ฉํ ๊ฒ ๊ฐ์ต๋๋ค. ์ฌ์ค ํ์ฌ์ ๊ธฐ์ ์์ค์ผ๋ก๋ ๋ถ๊ฐํผํ ๋ฌธ์ ์ธ๋ฐ ์น ์ ์ํด๋ค์ Common Tag ์๋์์ฑ ๊ธฐ๋ฅ์ด๋ผ๋์ง ๊ฒ์๊ธฐ๋ฅ์ผ๋ก ์ปค๋ฒ๋์ด์ผ ํ ๊ฒ ๊ฐ์ต๋๋ค.
Conclusion
๊ฒฐ๊ณผ์ ์ผ๋ก๋ RDFa์ ๋๋ถ์ด Common Tag๊ฐ ๋ง์ด ๋ณด๊ธ๋์ด ์น ์ ์ํด ๋ฐ ์น ์ดํ๋ฆฌ์ผ์ด์ ๋ค์ด ์ด๋ค์ ์ ์ง์ํ๊ฒ ๋๋ฉด ์๋งจํฑ ๋ฐ์ดํฐ๋ ๋์ฑ ํ๋ถํด์ง ๊ฒ์ผ๋ก ์์๋๊ณ ์. ๋ํ Common Tag๋ฅผ ํตํด ๋ฌธ์ ๋๋ ๋ฌธ์์ ์ผ๋ถ๋ถ์ ์ธ๋ฌผ, ์ฌ๋ฌผ, ์ง๋ฆฌ ์ ๋ณด ๋ฐ ์ถ์์ ๊ฐ๋ ์ ์ ํํ๊ฒ ํ๊น ํ ์ ์๊ฒ ๋๊ณ ์ด๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํฅ๋ฏธ๋ก์ด ์ดํ๋ฆฌ์ผ์ด์ ์ด ์์์ง ๊ฒ์ผ๋ก ๊ธฐ๋๋ฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ๊ธ ์ค ํ๋ฆฐ ๋ด์ฉ์ด ์์ผ๋ฉด ์ง์ ๋ถํ ๋๋ฆฝ๋๋ค.
See Also: