mustrd 0.3.1a3__tar.gz → 0.3.1a4__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.1a3 → mustrd-0.3.1a4}/PKG-INFO +1 -1
  2. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/steprunner.py +5 -0
  3. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/pyproject.toml +1 -1
  4. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/LICENSE +0 -0
  5. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/README.md +0 -0
  6. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/README.adoc +0 -0
  7. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/README.md +0 -0
  8. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/TestResult.py +0 -0
  9. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/__init__.py +0 -0
  10. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/anzo_utils.py +0 -0
  11. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/logger_setup.py +0 -0
  12. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/catalog-v001.xml +0 -0
  13. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/mustrdShapes.ttl +0 -0
  14. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/mustrdTestOntology.ttl +0 -0
  15. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/mustrdTestShapes.ttl +0 -0
  16. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/ontology.ttl +0 -0
  17. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/test-resources/resources.ttl +0 -0
  18. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/triplestoreOntology.ttl +0 -0
  19. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/model/triplestoreshapes.ttl +0 -0
  20. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/mustrd.py +0 -0
  21. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/mustrdAnzo.py +0 -0
  22. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/mustrdGraphDb.py +0 -0
  23. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/mustrdRdfLib.py +0 -0
  24. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/mustrdTestPlugin.py +0 -0
  25. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/namespace.py +0 -0
  26. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/run.py +0 -0
  27. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/spec_component.py +0 -0
  28. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/templates/md_ResultList_leaf_template.jinja +0 -0
  29. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/templates/md_ResultList_template.jinja +0 -0
  30. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/templates/md_stats_template.jinja +0 -0
  31. {mustrd-0.3.1a3 → mustrd-0.3.1a4}/mustrd/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mustrd
3
- Version: 0.3.1a3
3
+ Version: 0.3.1a4
4
4
  Summary: A Spec By Example framework for RDF and SPARQL, Inspired by Cucumber.
5
5
  License: MIT
6
6
  Author: John Placek
@@ -185,12 +185,17 @@ def _spade_edn_group_source(spec_uri: URIRef, triple_store: dict, when: SpadeEdn
185
185
  def _spade_edn_group_source(spec_uri: URIRef, triple_store: dict, when: SpadeEdnGroupSourceWhenSpec):
186
186
  log.info(f"Running SpadeEdnGroupSource for {spec_uri} using {triple_store}")
187
187
 
188
+ edn_file_dir = os.path.dirname(when.file) # Get the directory of the EDN file
188
189
  merged_graph = Graph()
189
190
 
190
191
  # Iterate over the list of WhenSpec objects in `when.value`
191
192
  for step_when_spec in when.value:
192
193
  try:
193
194
  if step_when_spec.queryType == MUST.UpdateSparql:
195
+ # Resolve file paths relative to the EDN file
196
+ if hasattr(step_when_spec, 'filepath'):
197
+ step_when_spec.filepath = os.path.join(edn_file_dir, step_when_spec.filepath)
198
+
194
199
  log.info(f"Dispatching run_when for UpdateSparql step: {step_when_spec}")
195
200
  query_result = run_when_impl(spec_uri, triple_store, step_when_spec)
196
201
  log.info(f"Executed SPARQL query: {query_result}")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mustrd"
3
- version = "0.3.1a3"
3
+ version = "0.3.1a4"
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