mustrd 0.2.4__py3-none-any.whl → 0.2.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,97 @@
1
+ Metadata-Version: 2.1
2
+ Name: mustrd
3
+ Version: 0.2.6
4
+ Summary: A Spec By Example framework for RDF and SPARQL, Inspired by Cucumber.
5
+ Home-page: https://github.com/Semantic-partners/mustrd
6
+ License: MIT
7
+ Author: John Placek
8
+ Author-email: john.placek@semanticpartners.com
9
+ Requires-Python: >=3.11,<4.0
10
+ Classifier: Framework :: Pytest
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Classifier: Topic :: Utilities
20
+ Requires-Dist: Jinja2 (==3.1.3)
21
+ Requires-Dist: beautifulsoup4 (>=4.11.1,<5.0.0)
22
+ Requires-Dist: colorama (==0.4.6)
23
+ Requires-Dist: colorlog (>=6.7.0,<7.0.0)
24
+ Requires-Dist: coverage (==7.4.3)
25
+ Requires-Dist: flake8 (==7.0.0)
26
+ Requires-Dist: multimethods-py (>=0.5.3,<0.6.0)
27
+ Requires-Dist: numpy (>=1.26.0,<1.27.0)
28
+ Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
29
+ Requires-Dist: pandas (>=1.5.2,<2.0.0)
30
+ Requires-Dist: pyanzo (>=3.3.10,<4.0.0)
31
+ Requires-Dist: pyshacl (>=0.23.0,<0.24.0)
32
+ Requires-Dist: pytest (>=7.2.0,<8.0.0)
33
+ Requires-Dist: rdflib (>=6.3.2,<7.0.0)
34
+ Requires-Dist: requests (>=2.28.2,<3.0.0)
35
+ Requires-Dist: tabulate (>=0.9.0,<0.10.0)
36
+ Requires-Dist: toml (>=0.10.2,<0.11.0)
37
+ Requires-Dist: tomli (>=2.0.1,<3.0.0)
38
+ Requires-Dist: urllib3 (==1.26.19)
39
+ Project-URL: Repository, https://github.com/Semantic-partners/mustrd
40
+ Description-Content-Type: text/markdown
41
+
42
+ # mustrd
43
+
44
+
45
+ [<img src="https://github.com/Semantic-partners/mustrd/raw/python-coverage-comment-action-data/badge.svg" alt="coverage badge">](https://github.com/Semantic-partners/mustrd/tree/python-coverage-comment-action-data)
46
+
47
+ ### Why?
48
+
49
+ How do you know your SPARQL, whether it's in a pipeline, or a query, is doing what you intend?
50
+
51
+ As much as we love RDF and SPARQL and Semantic Tech in general, we found a small gap in tooling to give us that certainty.
52
+
53
+ We missed the powerful testing frameworks that have evolved in imperative languages that help ensure you've written code that does what you think it should.
54
+
55
+ We wanted to be able to
56
+
57
+ * setup data scenarios and ensure queries worked as expected
58
+ * setup edge cases for queries and ensure they still work
59
+ * isolate small sparql enrichment / transformation steps and know we're only INSERTing what we intend
60
+
61
+ Enter MustRD.
62
+
63
+ ### What?
64
+
65
+ MustRD is a Spec-By-Example ontology, with a reference python implementation, inspired by the likes of Cucumber.
66
+
67
+ It's designed to be triplestore/SPARQL engine agnostic (aren't open standards *wonderful*!).
68
+
69
+ ### What it is NOT
70
+ MustRD is nothing to do with SHACL, or an alternative to it. In fact, we use SHACL for some of our features.
71
+
72
+ SHACL provides validation around data.
73
+
74
+ MustRD provides validation around data transformations.
75
+
76
+ ### How?
77
+ You define your specs in ttl, or trig files.
78
+ We use the SBE approach of *Given*, *When*, *Then* to define starting dataset, an action, and a set of expectations. We build up a set of data.
79
+ Then, depending on whether your SPARQL is a CONSTRUCT, SELECT or a INSERT/DELETE, we run it, and compare results against a set of expectations (*Then*) that are defined in the same way as a *Given* .
80
+ Alternatively, you could define your *Then*
81
+
82
+ * as an explicit ASK, or
83
+ * select; or
84
+ * in a higher-order expectation language like you will be used to in various platforms, a set of expectations.
85
+
86
+
87
+ ### When?
88
+
89
+ Soon. It's a work in progress, and we're building the things *we* need for the projects we work on at multiple clients, with multiple vendor stacks.
90
+ We already think it's useful, but it might not meet *your* needs, out of the box.
91
+
92
+ We invite you to try it, see where it doesn't fit, and raise an issue, or even better, a PR! If you need something custom, please check out our consultancy rates, and we might be able to prioritise a new feature for you.
93
+
94
+ ## Support
95
+ We're a specialist consultancy in Semantic Tech, we're putting this out in case it's useful, but if you need more support, kindly contact our business team on info@semanticpartners.com, or mustrd@semanticpartners.com
96
+
97
+
@@ -24,8 +24,8 @@ mustrd/templates/md_ResultList_template.jinja,sha256=_8joJ7vtw_qoqxv3HhUtBgRfhOe
24
24
  mustrd/templates/md_stats_template.jinja,sha256=96W62cMWu9UGLNv65ZQ8RYLjkxKHhJy-FlUtXgud6XY,155
25
25
  mustrd/test/test_mustrd.py,sha256=ku4-UQ2railFo6z9apaIkPFOk980XSwCPBEHjhwWZUE,126
26
26
  mustrd/utils.py,sha256=OGdLvw7GvjrFgTJo0J97Xwdh-_ZgSmapmOistrEchO0,1387
27
- mustrd-0.2.4.dist-info/LICENSE,sha256=r8nmh5fUct9h2w8_RDl13EIscvmwCLoarPr1kg35MnA,1078
28
- mustrd-0.2.4.dist-info/METADATA,sha256=DzgBXFO7VFY1GOIvyievl6sa9zie0az-oVjEFY2T_t0,2976
29
- mustrd-0.2.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- mustrd-0.2.4.dist-info/entry_points.txt,sha256=v7V7sN0_L1aB4Ug_9io5axlQSeJ1C0tNrQWwdXdV58s,50
31
- mustrd-0.2.4.dist-info/RECORD,,
27
+ mustrd-0.2.6.dist-info/LICENSE,sha256=r8nmh5fUct9h2w8_RDl13EIscvmwCLoarPr1kg35MnA,1078
28
+ mustrd-0.2.6.dist-info/METADATA,sha256=qZqzOBwDMAiwhUiypQz4gcQRH3bQCOg4W8CHGgX3efs,4236
29
+ mustrd-0.2.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ mustrd-0.2.6.dist-info/entry_points.txt,sha256=v7V7sN0_L1aB4Ug_9io5axlQSeJ1C0tNrQWwdXdV58s,50
31
+ mustrd-0.2.6.dist-info/RECORD,,
@@ -1,71 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mustrd
3
- Version: 0.2.4
4
- Summary: A Spec By Example framework for RDF and SPARQL, Inspired by Cucumber.
5
- Home-page: https://github.com/Semantic-partners/mustrd
6
- License: MIT
7
- Author: John Placek
8
- Author-email: john.placek@semanticpartners.com
9
- Requires-Python: >=3.11,<4.0
10
- Classifier: Framework :: Pytest
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Natural Language :: English
13
- Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Topic :: Software Development :: Quality Assurance
18
- Classifier: Topic :: Software Development :: Testing
19
- Classifier: Topic :: Utilities
20
- Requires-Dist: Jinja2 (==3.1.3)
21
- Requires-Dist: beautifulsoup4 (>=4.11.1,<5.0.0)
22
- Requires-Dist: colorama (==0.4.6)
23
- Requires-Dist: colorlog (>=6.7.0,<7.0.0)
24
- Requires-Dist: coverage (==7.4.3)
25
- Requires-Dist: flake8 (==7.0.0)
26
- Requires-Dist: multimethods-py (>=0.5.3,<0.6.0)
27
- Requires-Dist: numpy (>=1.26.0,<1.27.0)
28
- Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
29
- Requires-Dist: pandas (>=1.5.2,<2.0.0)
30
- Requires-Dist: pyanzo (>=3.3.10,<4.0.0)
31
- Requires-Dist: pyshacl (>=0.23.0,<0.24.0)
32
- Requires-Dist: pytest (>=7.2.0,<8.0.0)
33
- Requires-Dist: rdflib (>=6.3.2,<7.0.0)
34
- Requires-Dist: requests (>=2.28.2,<3.0.0)
35
- Requires-Dist: tabulate (>=0.9.0,<0.10.0)
36
- Requires-Dist: toml (>=0.10.2,<0.11.0)
37
- Requires-Dist: tomli (>=2.0.1,<3.0.0)
38
- Requires-Dist: urllib3 (==1.26.19)
39
- Project-URL: Repository, https://github.com/Semantic-partners/mustrd
40
- Description-Content-Type: text/markdown
41
-
42
- # Developer helper
43
-
44
- ## Try it out
45
-
46
- Ensure you have python3 installed, before you begin.
47
- To install the necessary dependencies, run the following command from the project root.
48
-
49
- `pip3 install -r requirements.txt`
50
-
51
- Run the following command to execute the accompanying tests specifications.
52
-
53
- `python3 src/run.py -v -p "test/test-specs" -g "test/data" -w "test/data" -t "test/data"`
54
-
55
- You will see some warnings. Do not worry, some tests specifications are invalid and intentionally skipped.
56
-
57
- For a brief explanation of the meaning of these options use the help option.
58
-
59
- `python3 src/run.py --help`
60
-
61
- ## Run the tests
62
-
63
- Run `pytest` from the project root.
64
-
65
- ## Additional Notes for Developers
66
- Mustrd remains very much under development. It is anticipated that additional functionality and triplestore support will be added over time. The project uses [Poetry](https://python-poetry.org/docs/) to manage dependencies so it will be necessary to have this installed to contribute towards the project. The link contains instructions on how to install and use this.
67
- As the project is actually built from the requirements.txt file at the project root, it is necessary to export dependencies from poetry to this file before committing and pushing changes to the repository, using the following command.
68
-
69
- `poetry export -f requirements.txt --without-hashes > requirements.txt`
70
-
71
-
File without changes