Andy Fitzgerald
Information Architect & Content Strategist
Create and manage SKOS compliant taxonomies, thesauri, and classification schemes in Sanity Studio.
Taxonomies are crucial tools for organization and interoperability between and across data sets. Taxonomy Manager provides a way for content authors to create, use, and maintain standards compliant taxonomies in Sanity Studio.
The Taxonomy Manager document schema is based on the World Wide Web Consortium (W3C) Simple Knowledge Organization Scheme (SKOS) recommendation. Concept and concept scheme editor tools include standard SKOS properties, brief hints for creating consistent concepts and vocabularies, and validation functions for preventing consistency errors.
The concept editor includes filtering and validation to help you create consistent SKOS vocabularies. Adding the same concept to Broader and Related fields is not allowed, and the editor validates disjunction of Related concepts with Broader Transitive up to five hierarchical levels in either direction.
Preferred Labels are validated for uniqueness across concepts, and Preferred, Alternative, and Hidden are validated to prevent duplicates and overlap.
Standard optional SKOS documentation fields are included by default.
For cases where more than one taxonomy is needed, multiple SKOS Concept Schemes are supported. Schemes can be used to configure filtered views of concepts in Sanity Structure Builder, and will provide for additional filtering and view options in future versions of Taxonomy Manager.
skosConcept
and skosConceptScheme
Install using the Sanity CLI.
$ sanity install taxonomy-manager
Configure your concept namespace in <your-studio-folder>/config/taxonomy-manager.json
:
{
"namespace": "http://example.com/"
}
This namespace defines the base URI for your concepts and concept schemes. The W3C recommends the use of HTTP URIs when minting concept URIs since they are resolvable to representations that can be accessed using standard Web technologies. For more information about URIs on the Semantic Web, see Cool URIs for the Semantic Web and Best Practice Recipes for Publishing RDF Vocabularies.
You can use Structure Builder to create a separate area for your taxonomy tools.
const hiddenDocTypes = (listItem) =>
!['skosConcept', 'skosConceptScheme'].includes(
listItem.getId()
)
export default () =>
// ... other structure builder items
S.divider(),
S.documentTypeListItem("skosConcept").title("Concepts"),
S.documentTypeListItem("skosConceptScheme").title("Taxonomy Schemes"),
S.divider(),
// ... other structure builder items
namespace
field of the configuration file.The Simple Knowledge Organization System (SKOS) is a common data model for sharing and linking knowledge organization systems via the Web.
Many knowledge organization systems, such as thesauri, taxonomies, classification schemes and subject heading systems, share a similar structure, and are used in similar applications. SKOS captures much of this similarity and makes it explicit, to enable data and technology sharing across diverse applications.
The SKOS data model provides a standard, low-cost migration path for porting existing knowledge organization systems to the Semantic Web. SKOS also provides a lightweight, intuitive language for developing and sharing new knowledge organization systems. It may be used on its own, or in combination with formal knowledge representation languages such as the Web Ontology language (OWL).
skosConceptScheme
skosConceptScheme
typeMIT © Andy Fitzgerald See LICENSE
sanity install taxonomy-manager
Information Architect & Content Strategist