gtfierro / reasonable

OWL 2 Reasoner built on DataFrog
BSD 3-Clause "New" or "Revised" License
73 stars 4 forks source link

Minimal example breaks with `IndentationError` #21

Closed lu-pl closed 1 year ago

lu-pl commented 1 year ago

Environment:

Minimal example:

from rdflib import Graph, Namespace
from rdflib.namespace import OWL

import reasonable

ex = Namespace("http://example.org/")

graph = Graph()
graph.add((ex.subj, ex.pred, ex.obj))
graph.add((ex.inverse, OWL.inverseOf, ex.pred))

r = reasonable.PyReasoner()
r.from_graph(graph)

r.from_graph(graph) breaks with

    [...]
    # r.from_graph(graph)
    ^^^^^^^^^^^^^^^^^^^
  File "converters.pg", line 2
    def get_triples(graph):
IndentationError: unexpected indent
gtfierro commented 1 year ago

Can you try pip install reasonable==0.2.2a3? I'm traveling but I can do a new point release when I get back

lu-pl commented 1 year ago

Sorry for the late reply, just tried it with reasonable==0.2.2a3: same problem, IndentationError.

gtfierro commented 1 year ago

I'm sorry, I meant reasonable==0.2.2a4 -- this seems to work ok for me when I try locally.

lu-pl commented 1 year ago

Thanks, reasonable==0.2.2a4 works fine!

What is the course of action now, should I just use reasonable==0.2.2a4 in production or will there be a new release?

gtfierro commented 1 year ago

reasonable==0.2.2 release was just published so you don't have to worry about the pre-release. Closing for now -- let me know if you run into any issues