DerwenAI / kglab

Graph Data Science: an abstraction layer in Python for building knowledge graphs, integrated with popular graph libraries – atop Pandas, NetworkX, RAPIDS, RDFlib, pySHACL, PyVis, morph-kgc, pslpython, pyarrow, etc.
https://derwen.ai/docs/kgl/
MIT License
574 stars 65 forks source link

RDF tests failing #250

Open Mec-iS opened 2 years ago

Mec-iS commented 2 years ago

I'm submitting a

Current Behaviour:

After #249 Trying to run tests with pytest tests/rdf_tests/test_rdf_basic.py -k test_rdf_runner -s, you get a report file with all the tests run. Some tests return errors, for example:

{
    "Basic - Term 7": {
        "input": "basic/data-4.ttl",
        "query": "basic/term-7.rq",
        "error": "Expected {SelectQuery | ConstructQuery | DescribeQuery | AskQuery}, found '.'  (at char 140), (line:5, col:23)",
        "length_check_error": null
    },
    "Multibytes character at the end of a unicode espace sequence": {
        "input": null,
        "query": "oxigraph-tests/sparql/long_unicode_escape_with_multibytes_char.ru",
        "error": "Expected {SelectQuery | ConstructQuery | DescribeQuery | AskQuery}, found '\\'  (at char 0), (line:1, col:1)",
        "length_check_error": null
    },
    "Simple DESCRIBE request": {
        "input": "oxigraph-tests/sparql/describe_input.ttl",
        "query": "oxigraph-tests/sparql/describe_where.rq",
        "error": "DESCRIBE not implemented",
        "length_check_error": null
    },
    "Halloween Problem: An update operation should not be able to read its own writes": {
        "input": null,
        "query": "oxigraph-tests/sparql/halloween_problem.ru",
        "error": "Expected {SelectQuery | ConstructQuery | DescribeQuery | AskQuery}, found 'INSERT'  (at char 33), (line:2, col:1)",
        "length_check_error": null
    },
    "A very nested property path": {
        "input": null,
        "query": "oxigraph-tests/sparql/nested_path.rq",
        "error": "maximum recursion depth exceeded in comparison",
        "length_check_error": null
    },
    "A very nested expression": {
        "input": null,
        "query": "oxigraph-tests/sparql/nested_expression.rq",
        "error": "maximum recursion depth exceeded while calling a Python object",
        "length_check_error": null
    }
}

Expected Behaviour:

Tests should pass without error message