图表最小化

graphmin的Python项目详细描述


安装

对于推断,rdflib的一个特殊分支是 需要:

## don't install this stuff system-wide, use virtualenv
virtualenv foo
. ./foo/bin/activate

## install the prerequisites
pip install pyparsing
pip install -e svn+http://python-dlp.googlecode.com/svn/trunk/layercake-python#egg=rdflib
pip install hg+https://fuxi.googlecode.com/hg/#egg=fuxi

## install this package from git
git clone git://github.com/wwaites/graphmin.git
cd graphmin
python setup.py develop

示例

运行此示例:

graphmin -i examples/ex1.n3 -f n3 -r examples/rdfs-rules.n3

应给出此结果:

@prefix eg: <http://example.org/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.

eg:a a eg:A.

因为ex1.n3中的语句eg:a rdfs:resource由 rdfs推理规则。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java jgrapht SimpleDirectedWeightedGraph规范化权重   java安卓使用CFB   java如何从javaclass警告浏览器?可能吗?   javagson结构难点   java使用jbossclient的最佳方式是什么。Wildfly 10应用程序中的jar?   JAVA:socket重写以使用CipherInputStream和CipherOutputStream   java Android UI测试长时间点击并拖动   java如何在Android中重置AtomicInteger唯一Id?   多线程客户端/服务器应用程序上的java客户端断开连接   GAE Memcache中的java损坏值   java如何使用变量作为资源的路径?   爪哇?(三向)操作员