summaryrefslogtreecommitdiff
path: root/python-pyshacl.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-pyshacl.spec')
-rw-r--r--python-pyshacl.spec47
1 files changed, 28 insertions, 19 deletions
diff --git a/python-pyshacl.spec b/python-pyshacl.spec
index 37b7cba..92aafcc 100644
--- a/python-pyshacl.spec
+++ b/python-pyshacl.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-pyshacl
-Version: 0.21.0
+Version: 0.22.0
Release: 1
Summary: Python SHACL Validator
License: Apache-2.0
URL: https://github.com/RDFLib/pySHACL
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/0f/f96c0dc6fcc2d12cf352ea81eaa8d061b9afe47459ab73955448eecf0bc0/pyshacl-0.21.0.tar.gz
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f1/0d/8cebe682d77a5e307036099c173676a6b57a474a1123d25ee24b6e52600e/pyshacl-0.22.0.tar.gz
BuildArch: noarch
Requires: python3-black
@@ -100,7 +100,7 @@ usage: pyshacl [-h] [-s [SHACL]] [-e [ONT]] [-i {none,rdfs,owlrl,both}] [-m]
[-ef {auto,turtle,xml,json-ld,nt,n3}] [-V] [-o [OUTPUT]]
DataGraph
-PySHACL 0.21.0 command line tool.
+PySHACL 0.22.0 command line tool.
positional arguments:
DataGraph The file containing the Target Data Graph.
@@ -112,7 +112,8 @@ optional arguments:
A file containing the SHACL Shapes Graph.
-e [ONT], --ont-graph [ONT]
A file path or URL to a document containing extra
- ontological information to mix into the data graph.
+ ontological information. RDFS and OWL definitions from this
+ are used to inoculate the DataGraph.
-i {none,rdfs,owlrl,both}, --inference {none,rdfs,owlrl,both}
Choose a type of inferencing to run against the Data
Graph before validating.
@@ -171,7 +172,7 @@ conforms, results_graph, results_text = r
Where:
* `data_graph` is an rdflib `Graph` object or file path of the graph to be validated
* `shacl_graph` is an rdflib `Graph` object or file path or Web URL of the graph containing the SHACL shapes to validate with, or None if the SHACL shapes are included in the data_graph.
-* `ont_graph` is an rdflib `Graph` object or file path or Web URL a graph containing extra ontological information, or None if not required.
+* `ont_graph` is an rdflib `Graph` object or file path or Web URL a graph containing extra ontological information, or None if not required. RDFS and OWL definitions from this are used to inoculate the DataGraph.
* `inference` is a Python string value to indicate whether or not to perform OWL inferencing expansion of the `data_graph` before validation.
Options are 'rdfs', 'owlrl', 'both', or 'none'. The default is 'none'.
* `abort_on_first` (optional) `bool` value to indicate whether or not the program should abort after encountering the first validation failure or to continue. Default is to continue.
@@ -207,7 +208,7 @@ You can get an equivalent of the Command Line Tool using the Python3 executable
$ python3 -m pyshacl
```
-## Integrated OpenAPI3.0-compatible HTTP REST Service
+## Integrated OpenAPI-3.0-compatible HTTP REST Service
PySHACL now has a built-in validation service, exposed via an OpenAPI3.0-compatible REST API.
@@ -227,6 +228,8 @@ $ pyshacl --server
$ pyshacl_server
# or
$ python3 -m pyshacl server
+# or
+$ docker run --rm -e PYSHACL_SERVER=TRUE -i -t docker.io/ashleysommer/pyshacl:latest
```
By default, this will run the service on localhost address `127.0.0.1` on port `8099`.
@@ -291,7 +294,7 @@ Or build the image yourself, from the PySHACL repository with `docker build . -t
You can now run PySHACL inside a container; but you need to mount the data you want to validate.
For example, to validate `graph.ttl` against `shacl.ttl`, run :
```bash
-docker run --rm --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
+docker run --rm -i -t --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
```
## Compatibility
@@ -424,7 +427,7 @@ usage: pyshacl [-h] [-s [SHACL]] [-e [ONT]] [-i {none,rdfs,owlrl,both}] [-m]
[-ef {auto,turtle,xml,json-ld,nt,n3}] [-V] [-o [OUTPUT]]
DataGraph
-PySHACL 0.21.0 command line tool.
+PySHACL 0.22.0 command line tool.
positional arguments:
DataGraph The file containing the Target Data Graph.
@@ -436,7 +439,8 @@ optional arguments:
A file containing the SHACL Shapes Graph.
-e [ONT], --ont-graph [ONT]
A file path or URL to a document containing extra
- ontological information to mix into the data graph.
+ ontological information. RDFS and OWL definitions from this
+ are used to inoculate the DataGraph.
-i {none,rdfs,owlrl,both}, --inference {none,rdfs,owlrl,both}
Choose a type of inferencing to run against the Data
Graph before validating.
@@ -495,7 +499,7 @@ conforms, results_graph, results_text = r
Where:
* `data_graph` is an rdflib `Graph` object or file path of the graph to be validated
* `shacl_graph` is an rdflib `Graph` object or file path or Web URL of the graph containing the SHACL shapes to validate with, or None if the SHACL shapes are included in the data_graph.
-* `ont_graph` is an rdflib `Graph` object or file path or Web URL a graph containing extra ontological information, or None if not required.
+* `ont_graph` is an rdflib `Graph` object or file path or Web URL a graph containing extra ontological information, or None if not required. RDFS and OWL definitions from this are used to inoculate the DataGraph.
* `inference` is a Python string value to indicate whether or not to perform OWL inferencing expansion of the `data_graph` before validation.
Options are 'rdfs', 'owlrl', 'both', or 'none'. The default is 'none'.
* `abort_on_first` (optional) `bool` value to indicate whether or not the program should abort after encountering the first validation failure or to continue. Default is to continue.
@@ -531,7 +535,7 @@ You can get an equivalent of the Command Line Tool using the Python3 executable
$ python3 -m pyshacl
```
-## Integrated OpenAPI3.0-compatible HTTP REST Service
+## Integrated OpenAPI-3.0-compatible HTTP REST Service
PySHACL now has a built-in validation service, exposed via an OpenAPI3.0-compatible REST API.
@@ -551,6 +555,8 @@ $ pyshacl --server
$ pyshacl_server
# or
$ python3 -m pyshacl server
+# or
+$ docker run --rm -e PYSHACL_SERVER=TRUE -i -t docker.io/ashleysommer/pyshacl:latest
```
By default, this will run the service on localhost address `127.0.0.1` on port `8099`.
@@ -615,7 +621,7 @@ Or build the image yourself, from the PySHACL repository with `docker build . -t
You can now run PySHACL inside a container; but you need to mount the data you want to validate.
For example, to validate `graph.ttl` against `shacl.ttl`, run :
```bash
-docker run --rm --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
+docker run --rm -i -t --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
```
## Compatibility
@@ -745,7 +751,7 @@ usage: pyshacl [-h] [-s [SHACL]] [-e [ONT]] [-i {none,rdfs,owlrl,both}] [-m]
[-ef {auto,turtle,xml,json-ld,nt,n3}] [-V] [-o [OUTPUT]]
DataGraph
-PySHACL 0.21.0 command line tool.
+PySHACL 0.22.0 command line tool.
positional arguments:
DataGraph The file containing the Target Data Graph.
@@ -757,7 +763,8 @@ optional arguments:
A file containing the SHACL Shapes Graph.
-e [ONT], --ont-graph [ONT]
A file path or URL to a document containing extra
- ontological information to mix into the data graph.
+ ontological information. RDFS and OWL definitions from this
+ are used to inoculate the DataGraph.
-i {none,rdfs,owlrl,both}, --inference {none,rdfs,owlrl,both}
Choose a type of inferencing to run against the Data
Graph before validating.
@@ -816,7 +823,7 @@ conforms, results_graph, results_text = r
Where:
* `data_graph` is an rdflib `Graph` object or file path of the graph to be validated
* `shacl_graph` is an rdflib `Graph` object or file path or Web URL of the graph containing the SHACL shapes to validate with, or None if the SHACL shapes are included in the data_graph.
-* `ont_graph` is an rdflib `Graph` object or file path or Web URL a graph containing extra ontological information, or None if not required.
+* `ont_graph` is an rdflib `Graph` object or file path or Web URL a graph containing extra ontological information, or None if not required. RDFS and OWL definitions from this are used to inoculate the DataGraph.
* `inference` is a Python string value to indicate whether or not to perform OWL inferencing expansion of the `data_graph` before validation.
Options are 'rdfs', 'owlrl', 'both', or 'none'. The default is 'none'.
* `abort_on_first` (optional) `bool` value to indicate whether or not the program should abort after encountering the first validation failure or to continue. Default is to continue.
@@ -852,7 +859,7 @@ You can get an equivalent of the Command Line Tool using the Python3 executable
$ python3 -m pyshacl
```
-## Integrated OpenAPI3.0-compatible HTTP REST Service
+## Integrated OpenAPI-3.0-compatible HTTP REST Service
PySHACL now has a built-in validation service, exposed via an OpenAPI3.0-compatible REST API.
@@ -872,6 +879,8 @@ $ pyshacl --server
$ pyshacl_server
# or
$ python3 -m pyshacl server
+# or
+$ docker run --rm -e PYSHACL_SERVER=TRUE -i -t docker.io/ashleysommer/pyshacl:latest
```
By default, this will run the service on localhost address `127.0.0.1` on port `8099`.
@@ -936,7 +945,7 @@ Or build the image yourself, from the PySHACL repository with `docker build . -t
You can now run PySHACL inside a container; but you need to mount the data you want to validate.
For example, to validate `graph.ttl` against `shacl.ttl`, run :
```bash
-docker run --rm --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
+docker run --rm -i -t --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
```
## Compatibility
@@ -991,7 +1000,7 @@ Brisbane, Qld, Australia
%prep
-%autosetup -n pyshacl-0.21.0
+%autosetup -n pyshacl-0.22.0
%build
%py3_build
@@ -1031,5 +1040,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.21.0-1
+* Tue Apr 25 2023 Python_Bot <Python_Bot@openeuler.org> - 0.22.0-1
- Package Spec generated