QualifiedStatements
Compact display of the JSKOS fields qualifiedRelations, qualifiedLiterals, and qualifiedDates.
The overview shows property labels and primary statement values. Language, date range, and significant rank (Preferred or Deprecated) are shown next to the value. Types, sources, places, mappings, and nested qualified statements are available through an inline inspector. Mapping bundle visualization supports memberSet, memberChoice, and memberList, but does not explicitly interpret memberRoles.
Only one inspector is open at a time. Nested objects are followed through a breadcrumb path instead of rendering a deeply indented tree. Resource-only references are treated as cycles when their object or URI is already in the current path. Distinct qualified statements remain navigable when they reference the same resource URI but carry separate qualifiers.
Props
itemobject, required — JSKOS item containing Qualified Statements.resolvefunction, defaultnull— asyncresolve(uri)callback returning a JSKOS resource.registryobject, defaultnull— cocoda-sdk-compatible registry with agetConceptsmethod. It is used whenresolveis not provided.labelForUrifunction, defaultnull— synchronouslabelForUri(uri)callback for application-provided labels.
URI labels use labelForUri first, then labels embedded in the data or loaded through resolve/registry, and finally a shortened URI. Embedded and resolved JSKOS labels use the shared content language selection. Inspector language maps continue to show all available values and language codes.
Accessibility
Disclosure and breadcrumb controls are native buttons. Disclosure buttons use aria-expanded and aria-controls. All resource links remain separate from buttons. Pressing Escape closes the active inspector and restores focus to its disclosure button.
CSS variables and classes
--jskos-vue-qualifiedStatements-fontWeight--jskos-vue-qualifiedStatements-gap--jskos-vue-qualifiedStatements-smallGap--jskos-vue-qualifiedStatements-propertyWidth--jskos-vue-qualifiedStatements-statementGap--jskos-vue-qualifiedStatements-groupGap--jskos-vue-qualifiedStatements-mutedOpacity--jskos-vue-qualifiedStatements-border--jskos-vue-qualifiedStatements-focusOutline--jskos-vue-qualifiedStatements-inspectorColumns.jskos-vue-qualifiedStatements.jskos-vue-qualifiedStatements-row.jskos-vue-qualifiedStatements-disclosure.jskos-vue-qualifiedStatements-inspector.jskos-vue-qualifiedStatements-breadcrumb
Example
The examples are exact subsets of the cocoda-Test-Person JSKOS dataset.
Code
vue
<script setup>
import { QualifiedStatements } from "jskos-vue"
const item = {
qualifiedLiterals: {
"https://example.org/note": [{
literal: { string: "Example note", language: "en" },
source: [{ prefLabel: { en: "Example source" } }],
}],
},
}
</script>
<template>
<QualifiedStatements :item="item" />
</template>ItemDetails integration
QualifiedStatements can be placed after the existing detail tabs without changing ItemDetails:
vue
<ItemDetails :item="item">
<template #afterTabs>
<QualifiedStatements
:item="item"
:resolve="resolve" />
</template>
</ItemDetails>