mustrd 0.3.1a2__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.
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/PKG-INFO +1 -1
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/steprunner.py +5 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/pyproject.toml +1 -1
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/LICENSE +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/README.md +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/README.adoc +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/README.md +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/TestResult.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/__init__.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/anzo_utils.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/logger_setup.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/catalog-v001.xml +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/mustrdShapes.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/mustrdTestOntology.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/mustrdTestShapes.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/ontology.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/test-resources/resources.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/triplestoreOntology.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/model/triplestoreshapes.ttl +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/mustrd.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/mustrdAnzo.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/mustrdGraphDb.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/mustrdRdfLib.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/mustrdTestPlugin.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/namespace.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/run.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/spec_component.py +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/templates/md_ResultList_leaf_template.jinja +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/templates/md_ResultList_template.jinja +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/templates/md_stats_template.jinja +0 -0
- {mustrd-0.3.1a2 → mustrd-0.3.1a4}/mustrd/utils.py +0 -0
@@ -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}")
|
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
|
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
|
File without changes
|
File without changes
|