一个共同开发的简易流程

来源:互联网 发布:js怎么给文本框赋值 编辑:程序博客网 时间:2024/05/17 23:23

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

仔细分析可能需要几个工具:
绘制只是图谱的工具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 libgraphviz4sudo apt-get -f installsudo apt-get upgrade

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

//s.dot2 //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 ordot test.dot -Tpng -o test.png

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

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

git clone https://github.com/GithubZhitao/KonwledgeGraph#Edit the code#......#Endtouch allgit 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
原创粉丝点击