可视化朋友的朋友 (foaf) 图

发布于 2024-07-04 03:16:23 字数 776 浏览 6 评论 0原文

我编写了一个脚本将 twitter 好友导出为 foaf rdf 描述。 现在我正在寻找一种工具来可视化朋友网络。 我尝试了 http://foafscape.berlios.de/ 但对于 300 多个节点来说,它真的很慢并且确实自动格式化做得不好。

有什么好的图形可视化工具的提示吗? 如果它们不直接支持 foaf 也没关系,但它们应该能够使用图像作为图形节点并能够显示大型图形。 Linux 支持就好了。

哦,我正在寻找一种可以手动移动节点的交互式工具。

更新:感谢您的意见。 我了解 graphviz,对于静态图像来说它真的很棒。 但对于大型数据集,我需要能够选择节点并突出显示所有邻居。

I wrote a script to export twitter friends as foaf rdf description. Now I'm looking for a tool to visualize the friend networks. I tried http://foafscape.berlios.de/ but for 300+ Nodes it is really slow and does a bad job on auto formatting.

Any hints for good graph visualization tools? It's ok if they do not support foaf directly, but they should be able to use images for graph nodes and be able to display large graphs. Linux support would be nice.

Oh, and I'm searching for an interactive tool where I can move nodes by hand.

Update: Thanks for your input. I know graphviz and for static images it is really great. But for large datasets I need to be able to select nodes and highlight all neighbours.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

澜川若宁 2024-07-11 03:16:23

正如其他海报所推荐的,绝对是 Graphviz。 它需要一个输入文件,我们称之为 foaf.dot,格式如下:

graph G {
    "George Formby" [shape=custom, shapefile="file:formby.png"];
    "Michael Jackson" [shape=custom, shapefile="file:jackson.png"];
    "George Formby" -- "Michael Jackson";
    "Fred Flinstone" -- "Michael Jackson";
    "Michael Jackson" -- "Steve McQueen";
}

请注意,该文件描述了一个无向图(希望你们的友谊是相互的)。 有向图的语法类似。

为了将图形输出到 pdf 文件(假设您已经安装了 graphviz),请运行以下命令

dot -Tpdf foaf.dot > foaf.pdf

Graphviz 支持除 pdf 之外的多种输出格式,请参阅其文档了解详细信息。

我发现“dot”程序通常提供最好的输出结果,但是 graphviz 总共包含 5 个布局程序。 来自文档:

  • dot - 用于绘制有向图的过滤器
  • neato - 用于绘制无向图的过滤器
  • twopi - 用于图的径向布局的过滤器
  • circo - 用于图的圆形布局的过滤器
  • fdp - 用于绘制无向图的过滤器

As recommended by other posters, definitely Graphviz. It takes an input file, let's call it foaf.dot, in the following format:

graph G {
    "George Formby" [shape=custom, shapefile="file:formby.png"];
    "Michael Jackson" [shape=custom, shapefile="file:jackson.png"];
    "George Formby" -- "Michael Jackson";
    "Fred Flinstone" -- "Michael Jackson";
    "Michael Jackson" -- "Steve McQueen";
}

Note that this file describes an undirected graph (hopefully your friendships are reciprocal). The syntax for directed graphs is similar.

In order to output your graph to a pdf file (assuming that you have already installed graphviz) run the following command

dot -Tpdf foaf.dot > foaf.pdf

Graphviz supports a number of output formats other than pdf, see its documentation for details.

I find that the 'dot' program usually provides the best output results, however graphviz contains a total of 5 layout programs. From the documentation:

  • dot - filter for drawing directed graphs
  • neato - filter for drawing undirected graphs
  • twopi - filter for radial layouts of graphs
  • circo - filter for circular layout of graphs
  • fdp - filter for drawing undirected graphs
陌生 2024-07-11 03:16:23

也许 prefuse 可视化工具包可能会帮助您。 它基于 Java,并具有许多示例应用程序,包括图形查看器

perhaps the prefuse visualization toolkit might help you. It's based on Java and has many sample apps including a graph viewer.

芯好空 2024-07-11 03:16:23

您可以尝试 Graphviz。 它在 Linux、Windows 和 Mac OS X 上运行,并将生成图形的图像(PNG、PS 等)。 您必须将 foaf 数据转换为其自己的自定义语言,但它非常容易学习。

You could try Graphviz. It runs on Linux, Windows and Mac OS X and it will generate an image (PNG, PS, etc) of the graph. You will have to transform your foaf data into its own custom language, but it's pretty easy to learn.

月棠 2024-07-11 03:16:23

我不知道有任何程序可以自动生成图形可视化并且允许您交互式地调整节点,但是Graphviz 是一个非常流行的图形可视化工具。 它可以导出为 SVG,以便您可以在您最喜欢的矢量图形编辑器中编辑结果。

I don't know of any program that auto-generates graph visualizations and allows you to interactively adjust nodes, but Graphviz is a really popular tool for graph visualization. It can export to SVG so you can edit the result in your favorite vector graphics editor.

不如归去 2024-07-11 03:16:23

对于大型图,Gephi (http://gephi.org/) 非常流行。 它是高度可定制的,有很多布局和演示选项。

For large graphs, Gephi (http://gephi.org/) is very popular. It is highly customisable, with lots of layout and presentation options.

香橙ぽ 2024-07-11 03:16:23

您尝试过基于Python的IDE NodeBox(1.0)吗? 这就是我用来生成这些的: http://givememydata.com/#images

vizster 看起来很酷,我会检查一下。

have you tried the Python-based IDE NodeBox (1.0)? That's what I used to generate these: http://givememydata.com/#images

vizster looks cool though, I'll check out that.

你的背包 2024-07-11 03:16:23

检查此论坛:http://goosebumps4all.net/34all/bb/forumdisplay。 php?fid=28
对于一些耀斑示例,那里有一个朋友的朋友图。

check this forum: http://goosebumps4all.net/34all/bb/forumdisplay.php?fid=28
for some flare examples, there is a friend of a friend graph around there.

老旧海报 2024-07-11 03:16:23

尝试使用谷歌社交图谱。 在上周 dConstruct08 的一次演讲中,有一张社交图表显示了 Robert Scoble 的朋友关系。

http://code.google.com/apis/socialgraph/
http://dconstruct.org/2008

Try using Google Social Graph. In one of the talks at dConstruct08 last week there was a social graph showing the friend connections of Robert Scoble.

http://code.google.com/apis/socialgraph/
http://dconstruct.org/2008

青萝楚歌 2024-07-11 03:16:23

如果您使用 Java,则可以使用 JGraph

If you're using Java, you could use JGraph.

誰認得朕 2024-07-11 03:16:23

我知道 Adob​​e Flex 有一些图形可视化组件,当然,这将使该应用程序能够在 Flash 上运行,而 Flash 对您的潜在用户群具有极好的渗透率。 我会在 Google 上搜索 Flex SpringGraph 组件,然后检查一下。 Flex 有大量的图形组件,包括付费版本和免费版本。

我脑子里只有一个 SpringGraph:
http://www.adobe.com/cfusion/交换/index.cfm?event=extensionDetail&extid=1048510

I know Adobe Flex has a few graph visualization components out there, and of course that would enable the app to run on Flash which has an excellent penetration rate into your potential userbase. I'd Google up the Flex SpringGraph component, and check that out. There are a ton of graphing components in the wild for Flex, both paid and free versions.

Just one SpringGraph off the top of my head:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1048510

双马尾 2024-07-11 03:16:23

我之前推荐过 Graphviz,但我想我应该添加另一个推荐,因为我已经使用了 Gephi,这是一个比许多工具更新的工具这里的东西。 这是一个非常强大的交互式图形探索工具,我发现它比这里的许多替代品更有用且更快。

I previously recommended Graphviz, but thought I should add another recommendation now that I have used Gephi, a newer tool than a lot of the stuff here. It's a very powerful interactive graph exploration tool which I have found much more usable and much faster than a lot of the alternatives here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文