reasonable 0.2.0

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
import reasonable
import rdflib

g = rdflib.Graph()
g.parse('Brick.ttl', format='ttl')
g.parse('example_models/small1.n3', format='ntriples')

r = reasonable.PyReasoner()
r.from_graph(g)
triples = r.reason()
print("from rdflib:", len(triples))
g2 = rdflib.Graph()
for t in triples:
    print(t)
    g2.add(t)
g2.serialize('output.ttl', format='ttl')