mustrd 0.3.1a4__tar.gz → 0.3.1a5__tar.gz

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.
Files changed (31) hide show
  1. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/PKG-INFO +1 -1
  2. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/spec_component.py +4 -2
  3. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/pyproject.toml +1 -1
  4. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/LICENSE +0 -0
  5. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/README.md +0 -0
  6. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/README.adoc +0 -0
  7. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/README.md +0 -0
  8. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/TestResult.py +0 -0
  9. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/__init__.py +0 -0
  10. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/anzo_utils.py +0 -0
  11. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/logger_setup.py +0 -0
  12. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/catalog-v001.xml +0 -0
  13. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/mustrdShapes.ttl +0 -0
  14. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/mustrdTestOntology.ttl +0 -0
  15. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/mustrdTestShapes.ttl +0 -0
  16. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/ontology.ttl +0 -0
  17. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/test-resources/resources.ttl +0 -0
  18. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/triplestoreOntology.ttl +0 -0
  19. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/model/triplestoreshapes.ttl +0 -0
  20. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/mustrd.py +0 -0
  21. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/mustrdAnzo.py +0 -0
  22. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/mustrdGraphDb.py +0 -0
  23. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/mustrdRdfLib.py +0 -0
  24. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/mustrdTestPlugin.py +0 -0
  25. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/namespace.py +0 -0
  26. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/run.py +0 -0
  27. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/steprunner.py +0 -0
  28. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/templates/md_ResultList_leaf_template.jinja +0 -0
  29. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/templates/md_ResultList_template.jinja +0 -0
  30. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/templates/md_stats_template.jinja +0 -0
  31. {mustrd-0.3.1a4 → mustrd-0.3.1a5}/mustrd/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mustrd
3
- Version: 0.3.1a4
3
+ Version: 0.3.1a5
4
4
  Summary: A Spec By Example framework for RDF and SPARQL, Inspired by Cucumber.
5
5
  License: MIT
6
6
  Author: John Placek
@@ -848,7 +848,9 @@ def _get_spec_component_spade_edn_group_source_when(spec_component_details: Spec
848
848
 
849
849
  if step_type == Keyword("sparql-file"):
850
850
  try:
851
- with open(step_file, 'r') as sparql_file:
851
+ # Resolve the file path relative to the EDN file's location
852
+ resolved_step_file = Path(absolute_file_path).parent / step_file
853
+ with open(resolved_step_file, 'r') as sparql_file:
852
854
  sparql_query = sparql_file.read()
853
855
 
854
856
  # Assume the individuals are ConstructSparql queries
@@ -860,7 +862,7 @@ def _get_spec_component_spade_edn_group_source_when(spec_component_details: Spec
860
862
  )
861
863
  when_specs.append(when_spec)
862
864
  except FileNotFoundError:
863
- raise ValueError(f"SPARQL file not found: {step_file}")
865
+ raise ValueError(f"SPARQL file not found: {resolved_step_file}")
864
866
 
865
867
  spec_component.file = str(absolute_file_path)
866
868
  spec_component.groupId = group_id
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mustrd"
3
- version = "0.3.1a4"
3
+ version = "0.3.1a5"
4
4
  description = "A Spec By Example framework for RDF and SPARQL, Inspired by Cucumber."
5
5
  authors = [
6
6
  { name = "John Placek", email = "john.placek@semanticpartners.com" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes