Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

An Ontology for Task Abstraction Vocabularies

DS 2023 | Communicating with Data

Overview

This notebook proposes a set of categories to classify action vocabularies used in task abstraction.

A set of catgories constitutes an ontology if they collectively define the various modes of existence for a collection of related things. For example, we may want to distinguish between things that are real or imaginary, concrete or abstract, mental or material, etc.

The need for such an ontology follows from the fact that existing vocabularies reflect different levels of description, ranging from specific and concrete actions to more general ones. Existing classificaiton by intent are useful but orthogonal to the task of differentiating between actions that are general and specific.

In addition, current vocabularies, taken as whole, do not compose a complete set of terms to fully describe the process of data exploration and visualization.

The following ontology is proposed as a simple partitioning of the space of actions in order to facilitate the process of converting actions into artifacts for visualization, e.g. dashboards and infographics.

The categories

Based on a review of a consolidated list of vocabulary terms, we propose the following four categories:

Each term refers to an ontological level, ranging from the concrete and specific to the abstract and general.

Terms assessed as Abstract or Meta are not directly executable; they describe goals that must be decomposed into atomic or compound operations before a tool can be chosen.

Based on these levels, we reproduce the vocabulary described in the previous notebook as follows.

The revised list

1. Data Preparation

TermDefinitionLevelTools
NormalizeApply a consistent scale or form across variables to enable comparisonAtomicsklearn.preprocessing.StandardScaler; MinMaxScaler; df.apply()
TransformConvert data to a new representation or scaleAbstractToo broad; could be np.log(), df.apply(), sklearn Pipeline, or any of the rows below
SortOrder observations by the value of a variableAtomicdf.sort_values()
CleanRemove errors, blanks, and inconsistenciesCompounddf.dropna(); df.fillna(); df.str.strip(); df.replace()
CondenseReduce the size or complexity of a datasetAbstractIntent-dependent; could be df.groupby().agg(), df.sample(), or filtering
CombineMerge two or more datasets or views into oneAtomicpd.merge(); pd.concat()
ReshapeRestructure data between long and wide formatsAtomicdf.melt(); df.pivot(); df.pivot_table()
DeduplicateEliminate repeated records from a datasetAtomicdf.drop_duplicates()
TransposeSwap rows and columnsAtomicdf.T; df.transpose()
MapAssign raw values to categories, bins, or identifiersAtomics.map(); s.replace(); pd.cut(); pd.qcut()
DeclareSet a column’s data type and measurement scaleAtomics.astype('category'); s.astype('float64'); pd.to_datetime() — Added from 53 Visualization Vocabulary.ipynb
ImputeReplace missing values with statistical estimates rather than dropping themAtomicdf.fillna(df.mean()); sklearn.impute.SimpleImputer; KNNImputer; IterativeImputer
InterpolateFill gaps in a sequence by estimating values between known neighborsAtomicdf.interpolate(method='linear'); df.interpolate(method='time')
SampleRandomly draw a subset of rows for exploration, prototyping, or bootstrappingAtomicdf.sample(n=); df.sample(frac=); sklearn.model_selection.train_test_split()
EncodeConvert categorical variables to numeric representations for analysis or modelingAtomicpd.get_dummies(); sklearn.preprocessing.OneHotEncoder; LabelEncoder; OrdinalEncoder
BinGroup a continuous variable into discrete intervalsAtomicpd.cut(); pd.qcut()
ReduceProject high-dimensional data into fewer dimensions for visualization or modelingAtomicsklearn.decomposition.PCA; sklearn.manifold.TSNE; umap.UMAP

2. Summarization & Aggregation

TermDefinitionLevelTools
AggregateCompute a summary value over a group of observationsAtomicdf.groupby().agg(); .sum(); .mean(); .count()
SummarizeExtract key numbers representing a specific aspect of the dataCompounddf.describe(); df.groupby().agg(); df.value_counts()
Compute Derived ValueCalculate a new variable from existing onesAtomicdf.assign(); df['col'] = expr; df.eval()
QuantifyExpress a qualitative pattern as a numeric valueAbstractIntent-dependent; could be encoding, counting, or scoring
EstimateApproximate a value without exact computationAbstractOverlaps with Approximate; could be df.sample(), a sklearn model, or scipy.stats
ApproximateProvide a close but imprecise numeric representationAbstractOverlaps with Estimate; np.round(); regression; curve fitting
Apply linear regressionFit a line to quantify direction and strength of a trendAtomicsklearn.linear_model.LinearRegression; statsmodels.formula.api.ols()
Transform (Statistical)Compute a visualization-specific summary within the render step (binning, smoothing, confidence intervals)Atomicsns.histplot(); sns.kdeplot(); sns.regplot(); sns.boxplot() — Added from 53 Visualization Vocabulary.ipynb

3. Distribution & Shape

TermDefinitionLevelTools
Characterize DistributionDescribe the spread, modality, skew, and form of a variable’s valuesCompounddf.describe(); sns.histplot(); sns.kdeplot(); sns.boxplot(); scipy.stats.skew()
Determine RangeIdentify min/max values; enumerate unique categorical valuesAtomics.min(); s.max(); s.unique(); s.nunique()
DistributeShow how values are spread across observations or spaceAbstractAmbiguous; could mean sns.histplot(), spatial geopandas, or layout spacing

4. Ordering & Ranking

TermDefinitionLevelTools
RankAssign a relative position to each observation based on a variableAtomics.rank(); df.sort_values() with positional index
ReorderChange the sequence of categories or observations to reveal a patternAtomicdf.sort_values(); pd.Categorical(categories=ordered_list, ordered=True)

5. Comparison

TermDefinitionLevelTools
CompareEvaluate differences between two or more categories, groups, or variablesAbstractNo single operation; typically df.groupby() + sns.barplot() or plt.subplots()
ContrastHighlight the degree of difference between two values or groupsAbstractOverlaps with Compare; achieved through chart choice, shared axes, and color — not one call
JuxtaposePlace two views side by side to make differences immediately visibleAtomicplt.subplots(1, 2); sns.FacetGrid; plotly.make_subplots()
AlignArrange marks so that differences in size are easy to judgeAtomicplt.subplots(sharex=True, sharey=True); ax.set_xlim() to match ranges
CategorizeGroup observations into discrete classes for comparisonAtomicpd.cut(); pd.qcut(); pd.Categorical()
DifferentiateIdentify the specific features that distinguish one group from anotherAbstractCompound process; typically multiple grouped comparisons
Define PrecisionRepresent values with enough accuracy to support meaningful comparisonAbstractDesign decision; no direct tool equivalent

6. Part-Whole Decomposition

TermDefinitionLevelTools
Show ProportionExpress the relative size of parts within a wholeAtomics / s.sum(); plt.pie(); sns.barplot() with df.value_counts(normalize=True)
Show PartitionDivide a total into mutually exclusive partsCompounddf.groupby().size() + plt.pie() or stacked bar
ComposeShow how a whole is made up of its componentsAbstractRealized as pie, stacked bar, or treemap; overlaps with Show Proportion and Show Partition
Show VolumeRepresent the cumulative or total magnitude of a quantityAtomicplt.fill_between(); sns.lineplot(fill=True); area charts in plotly
ApportionAllocate a total into proportional sharesAtomics / s.sum(); overlaps with Show Proportion

7. Relationship & Correlation

TermDefinitionLevelTools
ConnectReveal relationships between distinct entities using edges or flowsAtomicnetworkx; plotly Sankey; plt.plot() between node coordinates
ClusterGroup observations that are similar across one or more variablesAtomicsklearn.cluster.KMeans(); DBSCAN(); AgglomerativeClustering(); sns.clustermap()
CorrelateDetermine whether and how two variables move togetherAtomicdf.corr(); scipy.stats.pearsonr(); sns.heatmap(df.corr()); sns.scatterplot()
Categorical RelationshipShow how membership in one category co-occurs with anotherCompoundpd.crosstab(); sns.heatmap(); plotly Sankey / alluvial diagram
Co-varyObserve how two variables change togetherAtomicdf.cov(); sns.scatterplot(); overlaps with Correlate
RelateShow the association between two variablesAbstractOverlaps with Correlate and Co-vary; too broad without further specification
TrendsIdentify a directional pattern across a variable or over timeAbstractCould be sns.regplot(), sns.lineplot(), or time-series decomposition via statsmodels.tsa

8. Temporal Analysis

TermDefinitionLevelTools
TrackFollow a value through an ordered sequenceAtomicsns.lineplot(); plt.plot()
TraceFollow continuous change through timeAtomicsns.lineplot(); plotly.express.line(); overlaps with Track
AccumulateShow quantities building up cumulatively over timeAtomics.cumsum(); plt.fill_between(); area chart variant of sns.lineplot()
ForecastVisualize predicted future values based on current trendsCompoundModel fitting (statsmodels.tsa, sklearn, prophet) + sns.lineplot() for output
ProgressingShow how a value changes across a time dimensionAbstractSubsumed by Track and Trace; no distinct tool
SmoothApply a rolling or kernel-based function to reduce noise in a seriesAtomicdf.rolling(n).mean(); df.ewm(span=n).mean(); scipy.ndimage.gaussian_filter1d()
ResampleChange the temporal resolution of time-series dataAtomicdf.resample('ME').mean(); df.resample('W').sum()
DecomposeSeparate a time series into trend, seasonal, and residual componentsAtomicstatsmodels.tsa.seasonal.seasonal_decompose(); statsmodels.tsa.stl.STL()

9. Anomaly & Extremum Detection

TermDefinitionLevelTools
Find ExtremumIdentify observations with the highest or lowest valuesAtomics.idxmax(); s.idxmin(); df.nlargest(n, col); df.nsmallest(n, col)
Find AnomaliesIdentify observations with unexpected or exceptional valuesCompoundIQR rule with df.loc[]; scipy.stats.zscore(); sklearn.ensemble.IsolationForest
EliminateRemove or flag outliers or values that distort the analysisAtomicdf.loc[condition]; s.clip(lower, upper); df.drop()

10. Filtering & Selection

TermDefinitionLevelTools
IsolateNarrow the data to observations satisfying specific conditionsAtomicdf.loc[]; df.query(); boolean indexing
FocusDirect attention to a specific subset of the dataAbstractCould mean filtering (df.loc[]) or visual highlighting; intent-dependent
SliceSelect a cross-section of the data on one or more dimensionsAtomicdf.loc[]; df.iloc[]; df.xs()
TrimRemove peripheral or irrelevant data or visual elementsAtomics.clip(); df.loc[condition]; overlaps with Isolate and Eliminate
SpecifyDefine conditions that constrain which observations are shownAbstractDesign decision; implemented via filtering or chart parameters
SelectProject to a subset of columnsAtomicdf[['col1', 'col2']]; df.loc[:, cols]; df.filter(items=) — Added from 53 Visualization Vocabulary.ipynb
Retrieve ValueGiven specific observations, look up the values of specified variablesAtomicdf.loc[row_labels, col_labels]; df.at[]; df.iat[] — Added from Amar et al. (2005) via 53 Visualization Vocabulary.ipynb

11. Visual Layout

TermDefinitionLevelTools
SubplotPlace multiple chart panels side by side for comparisonAtomicplt.subplots(); sns.FacetGrid; plotly.make_subplots()
ConcentrationShow the density or clustering of values in a spatial areaAbstractCould be plt.hexbin(); sns.kdeplot(); or geopandas choropleth — intent-dependent
Localize / SituatePosition data in geographic or spatial contextAtomicgeopandas.GeoDataFrame.plot(); plotly.express.scatter_mapbox()
WidenExpand the visible range of an axis or viewAtomicax.set_xlim(lo, hi); ax.set_ylim(lo, hi)
ExpandBroaden the scope or extent of a visualizationAbstractAmbiguous; could mean axis limits, adding variables, or faceting
ZoomNarrow the visible range to magnify a region of interestAtomicax.set_xlim(); ax.inset_axes()
RotateChange the orientation of axis labelsAtomicplt.xticks(rotation=45); ax.tick_params(axis='x', rotation=45)
AutosizeScale a visualization automatically to fit its display contextAtomicplt.tight_layout(); plt.subplots(figsize=); plotly responsive layout
Size ProportionallyScale visual marks in direct proportion to data valuesAtomicplt.scatter(s=values); plotly.express.scatter(size=col)
LayerSuperimpose multiple geometric marks on the same axesAtomicMultiple calls on the same ax; e.g. sns.scatterplot() + sns.regplot(scatter=False) — Added from 53 Visualization Vocabulary.ipynb

12. Visual Encoding

TermDefinitionLevelTools
ColorUse a colormap to encode a third variableAtomicplt.scatter(c=col, cmap='viridis'); sns.scatterplot(hue=col)
RecolorChange the color mapping of an existing visualizationAtomicartist.set_color(); sns.set_palette(); reassigning cmap
GradientUse a continuous color scale to encode magnitudeAtomicplt.scatter(c=col, cmap=); sns.heatmap(cmap=); overlaps with Color
WeightEncode a variable through mark thickness or prominenceAtomicplt.plot(linewidth=val); plt.scatter(linewidths=col)
ScaleAdjust the axis range or unit to reveal relevant variationAtomicax.set_xscale('log'); ax.set_yscale('symlog')
LabelAttach text identifiers to individual data elementsAtomicax.annotate(); ax.bar_label(); plt.text()
AnnotateAdd explanatory text, lines, or markers at specific locationsAtomicax.annotate(); ax.axvline(); ax.text()
MagnifyZoom into a region to expose fine-grained differencesCompoundax.inset_axes(); ax.indicate_inset_zoom(); manual ax.set_xlim()
CalibrateAdjust encoding parameters for accuracyAbstractDesign decision; no single tool equivalent
AssignAttach titles, labels, colors, or other attributes to elementsAbstractToo broad; could be ax.set_title(), hue=, s=, or marker=
CustomizeModify visual properties such as color, size, or layoutAbstractToo broad; encompasses many matplotlib / seaborn style parameters
Map (visual)Bind a data variable to a visual channel (position, color, size, shape, opacity)Atomicsns.scatterplot(x=, y=, hue=, size=, style=); plt.scatter(c=, s=) — Added from 53 Visualization Vocabulary.ipynb
DrawInstantiate a geometric mark type (point, bar, line, area)Atomicsns.scatterplot(); sns.barplot(); sns.lineplot(); plt.bar(); plt.plot() — Added from 53 Visualization Vocabulary.ipynb
StyleSet the aesthetic properties of marks — line dash, marker shape, opacityAtomiclinestyle='--'; marker='o'; alpha=0.5; style= kwarg in seaborn
LegendPlace and configure the chart legendAtomicax.legend(loc=, title=); ax.get_legend().remove(); plt.legend(handles=, labels=)

13. Communication & Narrative

Most terms in this category are Abstract or Meta — they describe design goals and rhetorical intent, not executable operations.

TermDefinitionLevelTools
SimplifyReduce a visualization to a single clear messageAbstractDesign decision; no tool equivalent
CommunicatePresent information clearly to the intended audienceMetaNo tool equivalent
NarrateGuide the viewer through a sequence of insightsMetaJupyter notebook structure; plotly animation; but mostly rhetorical
EngageUse design choices to capture the audience’s attentionAbstractDesign decision
FamiliarizeChoose a chart form the audience already knows how to readAbstractDesign decision
FrameSet context so the viewer interprets the chart correctlyAbstractax.set_title(); plt.suptitle(); but primarily a design decision
EmphasizeDirect the viewer’s attention to the most important elementCompoundax.annotate() with arrow; contrasting color; fontweight='bold'
DemystifyMake complex or unfamiliar data accessibleAbstractDesign decision
ClarifyRemove ambiguity from a visual representationAbstractDesign decision
DirectGuide the viewer’s eye toward a specific elementAbstractRealized through annotation, color, or arrows
IllustrateUse a visual to make an abstract concept concreteAbstractDesign decision
SubstantiateProvide visual evidence to support a claimAbstractDesign decision
CaptionsAdd descriptive text to clarify what a chart showsAtomicax.set_title(); plt.figtext(); plt.suptitle()
Convey a MessageEnsure the chart communicates its intended takeawayMetaNo tool equivalent
TangibleMake data perceptible and meaningful for an audienceAbstractDesign decision
DisplayPresent data in a visual formAbstractEssentially every plotting call; too broad to map to one tool
EncompassingCapture as many relevant facets of the data as possibleAbstractDesign decision

14. Exploration & Inference

TermDefinitionLevelTools
IdentifyRecognize the type, pattern, or entity of interestAbstractPattern-specific; could be df.info(), df.describe(), or domain logic
MonitorTrack key metrics over time for ongoing awarenessCompoundRepeated df.groupby() + sns.lineplot(); dashboard tools like plotly Dash
InterpolatePredict values at positions between known data points using a modelAtomicnumpy.interp(); scipy.interpolate.interp1d(); sklearn regression predictions — for gap-filling in a DataFrame see Data Preparation
IdeateGenerate hypotheses or questions about the dataMetaNo tool equivalent
DevelopBuild understanding iteratively through explorationMetaNo tool equivalent
SolveUse a visualization to answer a specific analytical questionMetaNo tool equivalent

15. Analyst Process (Clinical Analogy)

All terms are Meta-level — they describe the analyst’s epistemic stance and role, not operations on data.

TermDefinitionLevelTools
DiagnosedIdentified the root problem or anomaly in the dataMetaNo tool equivalent
PrescribedRecommended a course of action based on the dataMetaNo tool equivalent
AssessedEvaluated the data against a standard or expectationMetaNo tool equivalent
AdaptedModified the approach in response to what the data revealedMetaNo tool equivalent
MaintainedKept a metric stable or within acceptable boundsMetaNo tool equivalent
SuggestedProposed an interpretation based on the dataMetaNo tool equivalent
RevealedMade a hidden pattern or insight visibleMetaNo tool equivalent
ShowcasesPresents highlights of the data prominentlyMetaNo tool equivalent
RelayedCommunicated findings to another partyMetaNo tool equivalent
ElicitsDraws a response or insight from the viewerMetaNo tool equivalent

Summary

LevelCountNotes
Atomic62Directly executable; clear tool mapping
Compound11Require a pipeline of 2–4 atomic steps
Abstract34Describe goals or design decisions; must be decomposed before coding
Meta16Describe analyst role or rhetorical intent; outside tool scope entirely

Seven terms were added from 53 Visualization Vocabulary.ipynb (marked in their rows): Declare, Select, Retrieve Value (also from Amar et al. 2005), Transform (Statistical), Layer, Map (visual), and Draw. Eleven further terms were added by editorial assessment: Impute, Interpolate (data-level), Sample, Encode, Bin, Reduce (Data Preparation); Smooth, Resample, Decompose (Temporal Analysis); Style, Legend (Visual Encoding).

Several recurring coherence issues appear across categories:

Comprehensive matrix

LevelMutateComputeAnalyzeComposeCommunicate
MetaIdeate · Develop · Solve · Communicate · Narrate · Convey a Message · Diagnose · Prescribe · Assess · Adapt · Maintain · Suggest · Reveal · Showcase · Relay · Elicit
AbstractTransform · Condense · Focus · SpecifyQuantify · Estimate · Approximate · ComposeDistribute · Compare · Contrast · Differentiate · Define Precision · Relate · Trends · ProgressingConcentration · Expand · Calibrate · Assign · Customize · DisplayIdentify · Simplify · Engage · Familiarize · Frame · Demystify · Clarify · Direct · Illustrate · Substantiate · Tangible · Encompassing
CompoundCleanSummarize · Show PartitionCharacterize Distribution · Categorical Relationship · Find Anomalies · ForecastMagnifyEmphasize · Monitor
AtomicNormalize · Sort · Combine · Reshape · Deduplicate · Transpose · Map · Declare · Impute · Interpolate · Sample · Encode · Bin · Reduce · Isolate · Slice · Trim · Select · Retrieve Value · Rank · ReorderAggregate · Compute Derived Value · Apply linear regression · Transform (Statistical) · Show Proportion · Show Volume · ApportionDetermine Range · Juxtapose · Align · Categorize · Connect · Cluster · Correlate · Co-vary · Find Extremum · Eliminate · Track · Trace · Accumulate · Smooth · Resample · DecomposeSubplot · Localize · Widen · Zoom · Rotate · Autosize · Size Proportionally · Layer · Color · Recolor · Gradient · Weight · Scale · Label · Annotate · Map (visual) · Draw · Style · LegendCaptions · Interpolate

Column key:

Column names refer to groups of action types, reduced for purposes of visualization.