reasonable 0.2.0-alpha

An OWL 2 RL reasoner with reasonable performance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import owlrl
import rdflib
import sys

g = rdflib.Graph()

def load_file(f):
    if f.endswith('.ttl'):
        g.parse(f, format='ttl')
    elif f.endswith('.n3'):
        g.parse(f, format='ntriples')
for f in sys.argv[1:]:
    load_file(f)
owlrl.DeductiveClosure(owlrl.OWLRL_Semantics).expand(g)