跳转到主要内容

RDF图最小化

项目描述

安装

对于推理,需要一个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 a rdfs:Resource 由RDFS推理规则推导。

参考文献

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。

源代码分发

graphmin-0.1.8.tar.gz (3.7 kB 查看散列值)

上传时间: 源代码

支持者: