Worked Examples
Understand data-to-mark provenance — Visualization & Graphing
Understand data-to-mark provenance — Visualization & Graphing Cross-application area: Visualization & Graphing Status: Initial scientific graphics guidance; platform-specific features not verified. Why this visualization matters P
Application area: Visualization & Graphing
Article classification: Scientific methodology / Data provenance / Visualization integrity
Audience: Researchers, scientific programmers, data engineers, visualization developers, research reviewers, and publication editors
Technical level: Intermediate to advanced
Reference environment: Python 3, NumPy, pandas, Matplotlib, and pytest
Relevant standards: W3C PROV-O, W3C PROV-DM, and WCAG 2.2
Primary outputs: Source-to-mark lineage register, reproducible figure, transformation manifest, validation report, and scientific evidence record
Estimated reading time: 13–16 minutes, excluding practical exercises
1. Scientific and technical overview
Data-to-mark provenance describes the relationship between the numerical or categorical information contained in a scientific dataset and the graphical elements used to represent it.
A graphical mark may be a point, line segment, bar, polygon, error interval, raster cell, surface, or other visual element.
Every meaningful mark should be traceable to its source observations, derived statistics, transformation methods, and rendering parameters.
For example, a scatter-plot point may represent a single measurement, whereas a bar may represent the mean of several observations. The two marks require different provenance records.
A scientific figure should allow an independent reviewer to answer:
- Which source dataset produced this figure?
- Which source record or records contributed to a particular mark?
- Was the displayed value observed, calculated, interpolated, or simulated?
- Which transformations were applied?
- Which units and coordinate systems were used?
- How were missing records, filters, and exclusions handled?
- Which numerical or statistical method produced the result?
- Which rendering configuration determined its visual appearance?
- Can the mark be regenerated from preserved inputs?
Primary acceptance condition: A reader or authorized reviewer can trace every scientifically meaningful graphical claim back to identifiable source data and documented analytical methods.
Provenance establishes traceability. It does not independently establish that the original measurements or scientific conclusions are valid.
2. Understand the data-to-mark relationship
A scientific rendering pipeline typically contains several distinct representations:
Authoritative source records
|
v
Source validation and classification
|
v
Filtering and data transformations
|
v
Derived numerical or statistical values
|
v
Graphical encoding specification
|
v
Renderer data structures
|
v
Visible marks, labels, and legends
|
v
Exported scientific figure
Provenance must describe the dependencies between these stages.
The record should distinguish the analytical meaning of a value from the graphical representation chosen for it.
For example, changing a point’s marker shape does not change its underlying measurement. Changing an aggregation from a mean to a median changes the numerical result and therefore requires a new analytical provenance record.
3. Define a provenance model
The W3C PROV Data Model distinguishes entities, activities, and agents. Its ontology representation, PROV-O, provides vocabulary for expressing these relationships in interoperable provenance graphs (W3C, 2013a; W3C, 2013b).
3.1 Entities
Entities represent identifiable data objects or artifacts.
Examples include:
- Source datasets.
- Individual observations.
- Analysis tables.
- Model outputs.
- Derived statistics.
- Rendering specifications.
- Figures and exported artifacts.
3.2 Activities
Activities describe processes that use or generate entities.
Examples include data cleaning, filtering, aggregation, regression, interpolation, rendering, and export.
3.3 Agents
Agents identify responsible people, software services, or organizations.
Examples include researchers, numerical analysis software, visualization services, and publication reviewers.
3.4 Provenance relationships
A conceptual provenance graph can be expressed as:
Source observations
|
| used by
v
Aggregation activity
|
| generated
v
Derived mean
|
| used by
v
Rendering activity
|
| generated
v
Graphical bar mark
|
| included in
v
Scientific figure
The graph must preserve enough identifying information to reconstruct and independently examine the analytical relationship.
A source checksum is useful for artifact integrity but is not a substitute for record-level lineage.
4. Mathematical foundations
4.1 Direct observation marks
Suppose a source dataset contains observations:
D = {r_1, r_2, ..., r_n}
A graphical mark representing an individual observation may be defined as:
m_i = E(r_i, C)
where:
m_iis a graphical mark.r_iis the source record.Eis the graphical encoding function.Cis the rendering configuration.
The configuration may determine mark position, size, shape, color, scale, opacity, or label.
The source record remains the authoritative representation of the observed value.
4.2 Derived statistical marks
A mark may represent a statistic computed from multiple source observations.
For a group G containing n observations:
mean_G = (1/n) * sum(y_i for i in G)
The provenance of the mean must identify all contributing observations, the grouping rule, exclusions, and the aggregation method.
Conceptually:
m_G = E(A({r_i : i in G}), C)
where A is the documented aggregation procedure.
4.3 Weighted aggregation
Where observations have unequal statistical weights:
weighted_mean =
sum(w_i * y_i) / sum(w_i)
The result depends on both the observations and the weights.
A provenance record that preserves only the resulting weighted mean is insufficient for independent reconstruction.
4.4 Provenance sets
Define a lineage function L mapping a graphical mark to the source records contributing to it:
L(m) = {source record identifiers}
For a direct observation:
L(m_1) = {r_1}
For a mean derived from three observations:
L(m_mean) = {r_1, r_2, r_3}
A source-ID set is useful but may not fully describe dependencies. Weighted operations, joins, conditional exclusions, and model predictions may require parameter values, dependency edges, intermediate artifacts, and transformation versions.
4.5 Numerical reconciliation
Let the independently recomputed value be y_ref and the value supplied to the renderer be y_mark.
A common floating-point comparison uses:
|y_mark - y_ref|
<= atol + rtol * |y_ref|
Here, absolute and relative tolerances must be justified by numerical precision and scientific requirements.
Numerical equality does not establish provenance identity. Two unrelated records may have identical values. Record identities and dependency relationships must therefore be validated separately.
5. Define the source-to-mark contract
A reproducible provenance model should record both scientific data relationships and rendering attributes.
| Field | Purpose |
|---|---|
| figure_id | Identifies the scientific figure |
| figure_version | Distinguishes figure revisions |
| mark_id | Identifies a logical graphical mark |
| mark_type | Point, bar, line, area, interval, cell, or other mark |
| source_dataset_id | Identifies the authoritative dataset |
| source_version | Identifies the immutable dataset revision |
| source_record_ids | Identifies contributing observations |
| transformation_id | Identifies the analytical operation |
| transformation_version | Identifies the method or code revision |
| derived_value | Stores or references the validated result |
| units | Defines the measurement dimensions |
| uncertainty | Describes relevant uncertainty calculations |
| encoding | Describes graphical mapping and scale properties |
| render_config | Identifies rendering parameters |
| artifact_reference | Links to the exported figure |
| validation_status | Records the applicable verification result |
This contract is illustrative. It does not describe a certified Sustainable Catalyst database, API, or graph schema.
6. Construct a deterministic reference fixture
The following synthetic fixture contains two experimental groups with three observations each.
The objective is to produce two bars representing group means while preserving the record identifiers contributing to each bar.
| Record ID | Group | Value (synthetic units) |
|---|---|---|
| C01 | Control | 10 |
| C02 | Control | 12 |
| C03 | Control | 14 |
| T01 | Treatment | 15 |
| T02 | Treatment | 18 |
| T03 | Treatment | 21 |
Expected means:
Control mean:
(10 + 12 + 14) / 3 = 12
Treatment mean:
(15 + 18 + 21) / 3 = 18
Difference:
18 - 12 = 6 synthetic units
The example is purely synthetic. It does not establish a treatment effect, statistical significance, or causal relationship.
7. Build the provenance and rendering example
7.1 Prepare the environment
mkdir sc-data-mark-provenance
cd sc-data-mark-provenance
python3 -m venv .venv
source .venv/bin/activate
python -m pip install pandas numpy matplotlib pytest
python --version
python -m pip freeze > requirements-lock.txt
For production reproducibility, use reviewed dependency pins and record the operating environment and code revision.
7.2 Create the provenance script
Save as generate_provenance.py.
import hashlib
import json
from pathlib import Path
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
OUTPUT = Path("provenance-output")
OUTPUT.mkdir(exist_ok=True)
def sha256(path):
digest = hashlib.sha256()
with Path(path).open("rb") as handle:
for block in iter(
lambda: handle.read(1024 * 1024),
b""
):
digest.update(block)
return digest.hexdigest()
# Deterministic synthetic observations.
source = pd.DataFrame({
"record_id": [
"C01", "C02", "C03",
"T01", "T02", "T03"
],
"group": [
"Control", "Control", "Control",
"Treatment", "Treatment", "Treatment"
],
"value": [
10.0, 12.0, 14.0,
15.0, 18.0, 21.0
]
})
source_path = OUTPUT / "source.csv"
source.to_csv(source_path, index=False)
data = pd.read_csv(source_path)
assert len(data) == 6
assert data["record_id"].is_unique
assert data["record_id"].notna().all()
assert data["group"].notna().all()
assert np.isfinite(data["value"]).all()
# Preserve explicit categorical order.
groups = ["Control", "Treatment"]
marks = []
for index, group in enumerate(groups):
subset = data.loc[data["group"] == group]
if subset.empty:
raise ValueError("Missing expected group")
values = subset["value"].to_numpy(
dtype=float
)
mean_value = float(np.mean(values))
marks.append({
"mark_id": f"bar-{index + 1:02d}",
"mark_type": "bar",
"group": group,
"value": mean_value,
"unit": "synthetic_units",
"source_record_ids": subset[
"record_id"
].tolist(),
"transformation": "arithmetic_mean",
"source_count": len(subset)
})
# Independently validate the reference values.
assert marks[0]["value"] == 12.0
assert marks[1]["value"] == 18.0
assert marks[0]["source_record_ids"] == [
"C01", "C02", "C03"
]
assert marks[1]["source_record_ids"] == [
"T01", "T02", "T03"
]
# Save mark-level lineage.
lineage_path = OUTPUT / "mark-lineage.json"
lineage_path.write_text(
json.dumps(marks, indent=2),
encoding="utf-8"
)
# Render the two aggregate marks.
fig, ax = plt.subplots(
figsize=(7.5, 4.5),
dpi=150
)
containers = ax.bar(
[mark["group"] for mark in marks],
[mark["value"] for mark in marks],
color=["#174a67", "#a43b28"]
)
ax.set_ylabel(
"Mean response (synthetic units)"
)
ax.set_ylim(0, 22)
ax.set_title(
"Synthetic group means"
)
# Validate numerical bar heights.
for patch, mark in zip(containers, marks):
assert np.isclose(
patch.get_height(),
mark["value"],
rtol=0,
atol=1e-12
)
fig.tight_layout()
figure_path = OUTPUT / "group-means.png"
fig.savefig(figure_path)
plt.close(fig)
report = {
"fixture": "synthetic_group_means",
"dataset_id": "synthetic-groups-001",
"record_count": len(data),
"mark_count": len(marks),
"source_sha256": sha256(source_path),
"lineage_sha256": sha256(lineage_path),
"figure_sha256": sha256(figure_path),
"numerical_validation": "pass",
"source_to_mark_lineage": "pass",
"renderer_input_validation": "pass",
"visual_review": "not_tested",
"scientific_review": "not_tested"
}
(OUTPUT / "validation-report.json").write_text(
json.dumps(report, indent=2),
encoding="utf-8"
)
print("Source records:", len(data))
print("Graphical marks:", len(marks))
print("Control mean:", marks[0]["value"])
print("Treatment mean:", marks[1]["value"])
print("Lineage validation: PASS")
7.3 Execute the example
python generate_provenance.py
Expected output:
Source records: 6
Graphical marks: 2
Control mean: 12.0
Treatment mean: 18.0
Lineage validation: PASS
Generated artifacts:
provenance-output/
source.csv
mark-lineage.json
group-means.png
validation-report.json
These are expected outcomes of the example, not independently verified production test results.
The test verifies the arithmetic, source identifiers, and bar heights stored in Matplotlib. It does not establish pixel-level correctness, scientific causality, accessibility, or deployed-platform functionality.
8. Interpret the lineage register
The generated lineage record describes each aggregate mark and its contributing observations.
For example:
{
"mark_id": "bar-01",
"mark_type": "bar",
"group": "Control",
"value": 12.0,
"unit": "synthetic_units",
"source_record_ids": [
"C01",
"C02",
"C03"
],
"transformation": "arithmetic_mean",
"source_count": 3
}
The value 12.0 is reproducible from the listed source records using the stated aggregation method.
A reviewer should also be able to confirm that no required source records were omitted, duplicated, or incorrectly assigned to the group.
The lineage record is an analytical mapping, not automatically a graphical feature. An application would require a separately implemented and tested interface to provide interactive source inspection.
9. Distinguish direct, aggregate, and modeled marks
Different graphical elements require different forms of provenance.
| Mark type | Required dependencies | Validation method |
|---|---|---|
| Scatter point | Source record and coordinate mapping | Point-to-record reconciliation |
| Aggregate bar | Contributing records, grouping, and estimator | Independent statistic calculation |
| Error bar | Estimator, uncertainty method, sample, and bounds | Independent interval calculation |
| Regression line | Input records, model specification, parameters, and fitting method | Model-output reconciliation |
| Interpolated surface | Source coordinates, interpolation method, grid, and parameters | Reference-grid comparison |
| Heat-map cell | Source subset, aggregation or binning, and color normalization | Cell-value and range verification |
| Simulation state | Model revision, parameters, initial conditions, and state timestamp | Simulation-state verification |
| Geospatial polygon | Geometry source, coordinate system, attributes, and transformations | Geometry and attribute reconciliation |
A regression line cannot ordinarily be traced to one source observation. Its provenance may depend on the complete fitting dataset, model formula, preprocessing rules, and numerical optimizer.
Similarly, a spatially interpolated value may depend on several surrounding observations and assumptions about spatial continuity.
10. Preserve provenance through transformations
Visualization workflows may apply filtering, sorting, aggregation, joining, binning, smoothing, normalization, or interpolation before marks are generated.
Each transformation should preserve or explicitly construct lineage metadata.
10.1 Filtering
For a filtered subset:
D_filtered = {r in D : condition(r)}
Record the filter expression, source version, retained record IDs, and relevant exclusions.
10.2 Aggregation
For group aggregates, retain all contributing record identifiers and the selected estimator.
A derived value should not be assigned the provenance of only one representative observation.
10.3 Joins
Joins may introduce unexpected duplication or mismatched source identifiers.
Verify join keys and cardinality. Retain relevant identifiers from both contributing sources where the result depends on both.
10.4 Interpolation and smoothing
Interpolated marks are derived estimates rather than directly observed values.
Record the contributing observations, interpolation method, parameters, grid, and permitted domain.
10.5 Renderer-level transformations
Some declarative visualization engines support filtering, aggregation, binning, sorting, and calculated fields within the chart specification.
For example, Vega-Lite supports transformations at the view level and within encoding definitions (Vega-Lite Developers, n.d.).
These operations must be included in provenance analysis. A renderer can correctly display a derived value even when the original data table contains no corresponding row.
When source-level traceability is essential, consider materializing a validated intermediate table and its contributing record IDs before rendering.
11. Automated provenance validation
Provenance tests should verify more than the final numerical value.
They should also verify that all expected contributing records are present and that the correct transformation was used.
11.1 Create the test module
Save as test_provenance.py.
import numpy as np
import pandas as pd
import pytest
def validate_mark(mark, source):
ids = mark["source_record_ids"]
if len(ids) != len(set(ids)):
raise ValueError("Duplicate lineage IDs")
indexed = source.set_index(
"record_id",
verify_integrity=True
)
missing = set(ids) - set(indexed.index)
if missing:
raise ValueError("Unknown source records")
subset = indexed.loc[ids]
if not (
subset["group"] == mark["group"]
).all():
raise ValueError("Incorrect group lineage")
if mark["transformation"] != "arithmetic_mean":
raise ValueError("Unsupported transformation")
expected = float(
subset["value"].mean()
)
np.testing.assert_allclose(
mark["value"],
expected,
rtol=0,
atol=1e-12
)
return True
@pytest.fixture
def source():
return pd.DataFrame({
"record_id": ["C01", "C02", "C03"],
"group": ["Control"] * 3,
"value": [10., 12., 14.]
})
@pytest.fixture
def mark():
return {
"mark_id": "bar-01",
"group": "Control",
"value": 12.0,
"source_record_ids": [
"C01", "C02", "C03"
],
"transformation": "arithmetic_mean"
}
def test_valid_lineage(mark, source):
assert validate_mark(mark, source)
def test_unknown_source_rejected(mark, source):
broken = dict(mark)
broken["source_record_ids"] = [
"C01", "C02", "X99"
]
with pytest.raises(ValueError):
validate_mark(broken, source)
def test_duplicate_source_rejected(mark, source):
broken = dict(mark)
broken["source_record_ids"] = [
"C01", "C01", "C03"
]
with pytest.raises(ValueError):
validate_mark(broken, source)
def test_wrong_value_detected(mark, source):
broken = dict(mark)
broken["value"] = 15.0
with pytest.raises(AssertionError):
validate_mark(broken, source)
def test_wrong_group_rejected(mark, source):
broken = dict(mark)
broken["group"] = "Treatment"
with pytest.raises(ValueError):
validate_mark(broken, source)
def test_wrong_method_rejected(mark, source):
broken = dict(mark)
broken["transformation"] = "median"
with pytest.raises(ValueError):
validate_mark(broken, source)
11.2 Execute the tests
python -m pytest -v test_provenance.py
Six test cases are defined. They cover valid lineage, unknown source records, duplicate identifiers, incorrect values, group mismatches, and unsupported transformations.
This reference module checks the stated contributing IDs but does not independently verify that the complete group was included. Production tests should also compare the mark’s lineage set against the full eligible source-record set under the documented filter and grouping rules.
The tests must be executed before recording any result as passed.
12. Validate lineage completeness
Correct numerical values are not sufficient to establish complete source lineage.
For example, the mean of two observations may equal the mean of three observations. A lineage record could therefore omit an observation while still passing a numerical comparison.
Define the expected source set:
L_expected(m)
and the recorded source set:
L_recorded(m)
For a complete deterministic aggregation:
L_expected(m) = L_recorded(m)
A completeness test can be implemented as:
def verify_lineage_completeness(
expected_ids,
recorded_ids
):
expected = set(expected_ids)
recorded = set(recorded_ids)
return {
"complete": expected == recorded,
"missing": sorted(expected - recorded),
"unexpected": sorted(recorded - expected)
}
result = verify_lineage_completeness(
["C01", "C02", "C03"],
["C01", "C03"]
)
assert not result["complete"]
assert result["missing"] == ["C02"]
Where duplicate source contributions are meaningful, a simple set comparison is insufficient. Use a representation that preserves multiplicity, weights, and dependency roles.
13. Record uncertainty and statistical provenance
Error bars, confidence intervals, modeled ranges, and statistical annotations require lineage extending beyond point estimates.
For example, a sample standard deviation is:
s = sqrt(
sum((y_i - mean)^2) / (n - 1)
)
This expression applies to the conventional sample standard deviation for n greater than 1.
If the figure displays an interval:
[L, U]
record the calculation method, sample size, contributing observations, units, parameters, and relevant statistical assumptions.
A provenance record should not describe an interval as a confidence interval merely because two graphical bounds surround a mean.
Source-to-mark traceability and statistical validity remain separate requirements.
14. Preserve graphical encoding provenance
The same numerical data may produce substantially different visual impressions under different encodings.
Record:
- Chart type and mark geometry.
- Axis variables and units.
- Linear, logarithmic, or other transformations.
- Axis limits and direction.
- Color mapping and normalization ranges.
- Marker size and symbol encoding.
- Sorting and categorical order.
- Faceting and grouping rules.
- Clipping and visible domain.
- Aggregation and interpolation.
- Rendering-engine version.
For a linear color normalization:
c = (x - x_min) / (x_max - x_min)
the values x_min and x_max materially affect the displayed color.
The figure’s provenance should preserve these limits or the rule used to derive them.
15. Interactive provenance inspection
Where an application supports interactive graphics, an authorized user may benefit from inspecting the underlying source information associated with a selected mark.
A conceptual interaction is:
Select graphical mark
|
v
Resolve mark identifier
|
v
Retrieve authorized lineage record
|
v
Identify contributing source artifacts
|
v
Display transformation and numeric result
|
v
Provide permitted source inspection
Potential inspection information includes:
- Mark ID and displayed value.
- Source dataset and version.
- Contributing source record IDs.
- Transformation method and parameters.
- Source and output units.
- Uncertainty definition.
- Numerical validation status.
- Permitted links to underlying research evidence.
This describes a design pattern, not a verified Sustainable Catalyst interface.
Interactive inspection must enforce source-level authorization. Public visibility of a figure does not imply that all underlying records may be disclosed.
16. Accessibility and scientific communication
Provenance should remain useful even when the graphical interface cannot be operated or visually interpreted.
Provide suitable alternatives including:
- Structured numerical tables.
- Descriptive figure captions.
- Extended scientific explanations.
- Accessible summaries of aggregated statistics.
- Permitted source references.
- Keyboard-accessible controls where interaction is required.
- Non-color-only distinctions between data categories.
For aggregated marks, an accessible table may identify the group, mean, sample count, units, and relevant uncertainty.
Detailed source lineage may be available in a separate authorized research view or downloadable provenance record.
Follow applicable WCAG 2.2 principles for non-text content, semantics, keyboard operation, and accessible numerical equivalents (W3C, 2024).
17. Reproducibility and provenance manifest
A publication-grade figure should retain enough metadata to regenerate its scientifically meaningful values and inspect the relationship between sources and graphical marks.
The following JSON illustrates a possible provenance manifest. It is not a certified Sustainable Catalyst schema.
{
"schema_version": "example-1.0",
"figure_id": "synthetic-group-comparison",
"figure_version": "1.0",
"source": {
"dataset_id": "synthetic-groups-001",
"dataset_version": "1.0",
"classification": "synthetic",
"checksum_algorithm": "sha256",
"checksum": null
},
"analysis": {
"transformation": "arithmetic_mean",
"grouping_field": "group",
"value_field": "value",
"units": "synthetic_units"
},
"marks": [
{
"mark_id": "bar-01",
"group": "Control",
"value": 12.0,
"source_record_ids": [
"C01", "C02", "C03"
]
},
{
"mark_id": "bar-02",
"group": "Treatment",
"value": 18.0,
"source_record_ids": [
"T01", "T02", "T03"
]
}
],
"rendering": {
"engine": "matplotlib",
"version": null,
"mark_type": "bar",
"y_axis_limits": [0, 22]
},
"validation": {
"numeric": "not_tested",
"lineage_completeness": "not_tested",
"rendering": "not_tested",
"accessibility": "not_tested",
"scientific_review": "not_tested"
}
}
Actual source checksums, code versions, library versions, artifact hashes, execution dates, and validation outcomes should be populated from executed workflows.
A provenance manifest does not establish that the underlying source data are scientifically correct or that the reported analysis is causally valid.
18. Scientific acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Source identification | Every mark resolves to the intended source artifact or documented derived object | Source IDs and artifact versions |
| Record identity | Contributing observations are correctly identified | Lineage register |
| Lineage completeness | All expected contributors are included | Set or dependency comparison |
| Transformation integrity | Documented methods reproduce derived values | Independent computation |
| Numerical consistency | Mark values agree with reference results | Numerical tests |
| Units | Source and display units are correct | Unit validation |
| Missingness | Exclusions and missing values are documented | Filter and mask tests |
| Uncertainty | Interval lineage and methods are traceable | Statistical validation |
| Encoding | Scales and graphical mappings are recorded | Rendering configuration |
| Authorization | Source inspection respects access restrictions | Access-control tests |
| Accessibility | Essential values and relationships remain accessible | Accessibility review |
| Reproducibility | Independent execution reconstructs the required lineage and figure data | Execution receipt |
| Scientific review | Claims remain supported by source evidence and methods | Reviewer assessment |
Decision rule: Record applicable criteria as Pass, Fail, or Not Tested. A graphical mark should not be classified as fully traceable merely because its numerical value matches an expected result.
19. Sustainable Catalyst research integration
Data-to-mark provenance provides a potential connection between Sustainable Catalyst’s source discovery, reproducible analysis, scientific visualization, knowledge graph, and publication workflows.
The following responsibilities describe an intended integration model. Actual data contracts, API behavior, and deployment state require verification.
| Application | Intended responsibility |
|---|---|
| Library | Preserve source identity, dataset versions, rights, metadata, and provenance |
| Workbench | Record reproducible transformations, computational results, and analysis artifacts where implemented |
| Research Lab | Validate statistical methods, model assumptions, and numerical results |
| Visualization & Graphing | Associate graphical marks with validated values and lineage references |
| Site Intelligence | Associate geospatial marks with coordinates, spatial sources, and transformations where applicable |
| Decision Studio | Preserve evidence dependencies for scenario and decision visualizations where implemented |
| Research | Connect published figures to analytical outputs, source references, and scientific claims |
| Workspace | Track project ownership, provenance review, publication approval, and corrective actions |
19.1 Knowledge graph relationships
A research knowledge graph could represent relationships among source datasets, analytical methods, derived results, graphical marks, and publications.
Source dataset
|
v
Analysis activity
|
v
Derived statistic
|
v
Graphical mark
|
v
Scientific figure
|
v
Research publication
Where appropriate, these relationships may be expressed using concepts from W3C PROV-O.
However, a knowledge graph should not be treated as authoritative merely because its relationships are machine-readable. Each edge requires a verified source or documented derivation.
19.2 Platform acceptance requirements
Before documenting data-to-mark provenance as a verified Sustainable Catalyst feature, retain:
- Owning repository and exact implementation revision.
- Source dataset and analysis-object schemas.
- Supported transformation and lineage models.
- Renderer adapter and installed version.
- Mark identifier and source-resolution behavior.
- Persistence and immutable artifact references.
- Authorization and source-inspection behavior.
- Executed numerical and lineage-completeness tests.
- Runtime figure and inspection evidence.
- Known limitations and unsupported mark types.
20. Limitations and scientific interpretation
Data-to-mark provenance is necessary for transparent scientific visualization, but it is not equivalent to independent scientific validation.
A figure may have complete lineage and still be misleading because of:
- Biased or unrepresentative sampling.
- Incorrect measurements or source metadata.
- Inappropriate statistical estimators.
- Invalid model assumptions.
- Unsupported interpolation or extrapolation.
- Misleading axis transformations or visual encodings.
- Unrepresented uncertainty.
- Unsupported causal interpretations.
Record scientific validity, lineage integrity, numerical verification, and graphical accessibility as separate outcomes.
Do not infer that a graph is scientifically correct simply because every mark has a source reference.
21. Technical references
- World Wide Web Consortium (W3C) (2013a). PROV-O: The PROV Ontology. W3C Recommendation, 30 April 2013. Available at: https://www.w3.org/TR/prov-o/.
- World Wide Web Consortium (W3C) (2013b). PROV-DM: The PROV Data Model. W3C Recommendation, 30 April 2013. Available at: https://www.w3.org/TR/prov-dm/.
- Harris, C.R. et al. (2020). ‘Array programming with NumPy’, Nature, 585, pp. 357–362. Available at: https://doi.org/10.1038/s41586-020-2649-2.
- McKinney, W. (2010). ‘Data Structures for Statistical Computing in Python’, Proceedings of the 9th Python in Science Conference, pp. 56–61. Available at: https://doi.org/10.25080/Majora-92bf1922-00a.
- Vega-Lite Developers (n.d.). Data Transformations. Available at: Vega-Lite documentation.
- Vega-Lite Developers (n.d.). Aggregation. Available at: Vega-Lite aggregation documentation.
- Matplotlib Development Team (n.d.). matplotlib.lines.Line2D. Available at: Matplotlib API documentation.
- NumPy Developers (n.d.). numpy.testing.assert_allclose. Available at: NumPy documentation.
- pytest Development Team (n.d.). pytest Documentation. Available at: https://docs.pytest.org/en/stable/.
- World Wide Web Consortium (W3C) (2024). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: https://www.w3.org/TR/WCAG22/.
22. Completion and verification record
| Field | Required record |
|---|---|
| Figure ID | Figure identifier and revision |
| Source artifact | Dataset version and integrity reference |
| Mark identifiers | Stable identifiers for applicable logical marks |
| Lineage completeness | Pass, Fail, or Not Tested |
| Transformation validation | Pass, Fail, or Not Tested |
| Numerical reconciliation | Pass, Fail, or Not Tested |
| Rendering validation | Pass, Fail, or Not Tested |
| Uncertainty validation | Pass, Fail, or Not Tested |
| Authorization | Pass, Fail, or Not Tested |
| Accessibility | Pass, Fail, or Not Tested |
| Reproducibility | Pass, Fail, or Not Tested |
| Scientific review | Pass, Fail, or Not Tested |
| Reviewer | Actual reviewer and review date |
| Evidence | Source data, lineage records, code, tests, figures, and artifact hashes |
| Outstanding limitations | Unresolved lineage, numerical, scientific, or implementation concerns |
Completion criterion: Every scientifically meaningful mark or aggregate must be traceable to its contributing source data and documented transformations, and applicable numerical, lineage-completeness, rendering, authorization, accessibility, and reproducibility checks must be satisfied.
Scientific limitation: Provenance demonstrates how a visual result was produced. It does not independently establish that the input data, experimental design, statistical model, or scientific interpretation is valid.
Current implementation status: Data-to-mark provenance methodology, deterministic reference fixture, illustrative lineage schema, and validation procedures documented. No particular Sustainable Catalyst provenance graph, renderer integration, or production source-inspection interface is certified without source audit, executed tests, and release-specific acceptance.
