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
#!/usr/bin/env python3
from rdflib import Graph
import sys

g = Graph()
filename, ending = sys.argv[1].split('.')
if ending == 'ttl':
    g.parse(sys.argv[1], format='ttl')
elif ending == 'rdf':
    g.parse(sys.argv[1], format='xml')
with open(f"{filename}.n3", "wb") as f:
    f.write(g.serialize(format='ntriples'))