Skip to content

Validation Runtimes #119

@SzalonyNiemiec

Description

@SzalonyNiemiec

Calling the validate() function, even on relatively small graphs takes hours for me. Are there any tips or tricks for reducing the runtime?

this is what I'm currently doing:

def validate_kg_for_brick(kg_turtle):
    g = Graph(load_brick=True)
    g.parse(data=kg_turtle, format="turtle")
    conforms, results_graph, results_text = g.validate()
    return conforms, results_text

As I don't use the results_graph I considered messing with the implementation of validate in pyshacl, to take out the generation of the results graph, to cut down on runtime. Is this advisable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions