from pyrudof import Rudof, RudofConfig, ShaclValidationMode, ShapesGraphSource, RDFFormat, ReaderMode rudof = Rudof(RudofConfig()) rudof.read_shacl_str(""" prefix : prefix sh: prefix xsd: :Person a sh:NodeShape; sh:targetNode :ok, :ko ; sh:property [ sh:path :name ; sh:minCount 1; sh:maxCount 1; sh:datatype xsd:string ; ] . """) rudof.read_data_str(""" prefix : :ok :name "alice" . :ko :name 1 . """) result = rudof.validate_shacl() print(result.show())