Skip to main content

RDF Graph Minimisation

Project description


For the inferencing, a special branch of rdflib is needed:

## don't install this stuff system-wide, use virtualenv
virtualenv foo
. ./foo/bin/activate
## install the bits that are needed
pip install pyparsing
pip install -e svn+
pip install hg+
pip install graphmin


Running this example:

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

Should give this result:

@prefix eg: <>.
@prefix rdf: <>.

eg:a a eg:A.

Because eg:a a rdfs:Resource is entailed by the RDFS inference rules.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page