File: example.py

package info (click to toggle)
pyshacl 0.30.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,628 kB
  • sloc: python: 17,623; makefile: 81; javascript: 78; sh: 50
file content (13 lines) | stat: -rw-r--r-- 407 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
from pyshacl import validate
from os import path

data_ttl_file = \
    '../test/resources/dash_tests/core/complex/personexample.test.ttl'
data_ttl_file = path.abspath(data_ttl_file)

conforms, v_graph, v_text = validate(data_ttl_file, shacl_graph=None, inference='rdfs',
                                     serialize_report_graph=True)
print(conforms)
print(v_graph)
print(v_text)