Skip to content

Commit

Permalink
SPARQLTargetType
Browse files Browse the repository at this point in the history
- New SPARQL-based Target Type feature
- The Paramaterisable form of SPARQLTarget from the SHACL Advanced Features spec
- https://www.w3.org/TR/shacl-af/#SPARQLTargetType
Added a test for SPARQLTargetType - Theres none in the SHT suite, or the DASH suite.
Refactored `sh:parameter` code in SPARQL-based Constraint Components, SHACLFunctions, and SPARQL-Based Target Types
- They all now share a common SHACLParameter helper class, reducing code duplication
Refactored `SPARQLQueryHelper`
- `SPARQLQueryHelper` internal class is now more helpful
- `query_helper` can now extract param bindings into param-value pairs for parameterised queries
- Reduces more code duplication
  • Loading branch information
ashleysommer committed Sep 7, 2020
1 parent 383665d commit 15e21ee
Show file tree
Hide file tree
Showing 14 changed files with 782 additions and 372 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Python PEP 440 Versioning](https://www.python.org/dev/peps/pep-0440/).

## [0.13.1] - 2020-09-07

## Added
- SPARQLTargetType
- New SPARQL-based Target Type feature
- The Paramaterisable form of SPARQLTarget from the SHACL Advanced Features spec
- https://www.w3.org/TR/shacl-af/#SPARQLTargetType
- Added a test for SPARQLTargetType - Theres none in the SHT suite, or the DASH suite.

## Changed
- Refactored `sh:parameter` code in SPARQL-based Constraint Components, SHACLFunctions, and SPARQL-Based Target Types
- They all now share a common SHACLParameter helper class, reducing code duplication
- Refactored `SPARQLQueryHelper`
- `SPARQLQueryHelper` internal class is now more helpful
- `query_helper` can now extract param bindings into param-value pairs for parameterised queries
- Reduces more code duplication


## [0.13.0] - 2020-09-04

## Added
Expand Down Expand Up @@ -627,7 +645,8 @@ just leaves the files open. Now it is up to the command-line client to close the

- Initial version, limited functionality

[Unreleased]: https://github.com/RDFLib/pySHACL/compare/v0.13.0...HEAD
[Unreleased]: https://github.com/RDFLib/pySHACL/compare/v0.13.1...HEAD
[0.13.1]: https://github.com/RDFLib/pySHACL/compare/v0.13.0...v0.13.1
[0.13.0]: https://github.com/RDFLib/pySHACL/compare/v0.12.2...v0.13.0
[0.12.2]: https://github.com/RDFLib/pySHACL/compare/v0.12.1.post2...v0.12.2
[0.12.1.post2]: https://github.com/RDFLib/pySHACL/compare/v0.12.1.post1...v0.12.1.post2
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "pyshacl"
version = "0.13.0"
version = "0.13.1"
# Don't forget to change the version number in __init__.py along with this one
description = "Python SHACL Validator"
license = "Apache-2.0"
Expand Down
8 changes: 5 additions & 3 deletions pyshacl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# -*- coding: latin-1 -*-
#
from pyshacl.validate import Validator, validate
from .shape import Shape
from .shapes_graph import ShapesGraph
from .validate import Validator, validate


# version compliant with https://www.python.org/dev/peps/pep-0440/
__version__ = '0.13.0'
__version__ = '0.13.1'
# Don't forget to change the version number in pyproject.toml along with this one

__all__ = ['validate', 'Validator', '__version__']
__all__ = ['validate', 'Validator', '__version__', 'Shape', 'ShapesGraph']
Loading

0 comments on commit 15e21ee

Please sign in to comment.