一个共同开发的简易流程

初期目标是几个人构建某领域一个小的知识网络.

仔细分析可能需要几个工具:
绘制只是图谱的工具graphviz
一个github共享库.

-首先linux下安装graphviz

sudo apt-get install graphviz

-如果出现依赖许多库可以

sudo apt-get -f install

-但是执行这个命令遇到了个错误:

dpkg: regarding .../libcdt5_2.38.0-12ubuntu2.1_amd64.deb containing libcdt5:
 libcdt5 conflicts with libgraphviz4
  libgraphviz4 (version 2.38.0-1~saucy) is present and unpacked but not configured.

-很明显是包解压却没配置导致新的安不上了,执行这些命令:

sudo dpkg -r --force-depends libgraphviz4
sudo apt-get -f install
sudo apt-get upgrade

-下面的文件就可以执行了:

//s.dot
2 //dot s.dot -Tpng -o s.png  -Gsplines=line  
3 digraph G {
4   //a -> c;
5   a -> b;
6   b -> c;
7   subgraph x{
8       rank=same;
9       b->d;
10   }
11   subgraph y{
12       //rank = same;
13       d->e;
14   }
15   subgraph z{
16     rank=same;
17     c->e;
18   }
19 
20  }
21 

然后下面的命令产生相应的图片.

dot -Tsvg test.dot -o test.svg
 or
dot test.dot -Tpng -o test.png

-git网址:https://github.com/GithubZhitao/KonwledgeGraph

-如果你想贡献请fork这个项目在适当的目录下简单配置一下:

git clone https://github.com/GithubZhitao/KonwledgeGraph

#Edit the code
#......
#End

touch all
git add .
git commit -m "your description of this commit."
git push
#input you name and password
#pull resuqest to the master.

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/573476

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值