Coder Social home page Coder Social logo

Comments (2)

AJAY31797 avatar AJAY31797 commented on June 11, 2024 1

Thanks @ashleysommer. I am still not able to see the correct results. Basically, for every constraint, my query results in Conforms:True. Seems like some mistake with my query.
Anyways, thanks for your support and suggestion of the Discord SHACL discussion forum.

from pyshacl.

ashleysommer avatar ashleysommer commented on June 11, 2024

Hi @AJAY31797
It seems like you are looking for the validation results amongst the Debug log messages. You will not find the conformance reports and validation result in those debug logs.
The conformance result (boolean True/False) is in the variable conforms and the result text is in the variable results_text.

Try this:

from pyshacl import validate
r = validate(data_graph = Datagraph, shacl_graph = Shapegraph, data_graph_format="turtle", shacl_graph_format="turtle", inference = "rdfs", debug = True, abort_on_error = False, meta_shacl = False, serialize_report_graph = "ttl")
conforms, results_graph, results_text = r
print("Conforms: ", str(conforms))
print("Results:\n", results_text)

Note, these basic usage instructions are in the README file, and this kind of question should be asked on the Discord SHACL Discussion forum, not on the issue tracker.

from pyshacl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.