@esri/living-atlas-content-validator
v1.6.1
Published
Validation and Scoring rules for curating content in the ArcGIS Living Atlas
Maintainers
Keywords
Readme
Living Atlas Content Validator
This package provides a comprehensive suite of validation and scoring rules designed to streamline content curation for the ArcGIS Living Atlas of the World. It is essential for ensuring that nominated items fulfill the rigorous quality standards required for inclusion in the the Living Atlas of the World.
The package is mainly used by the Living Atlas Nomination App, it enables content contributors to evaluate their items against the Living Atlas criteria before submitting them for nomination.
The validation process assesses whether an item meets all necessary requirements, including metadata completeness and adherence to best practices. By enforcing these validation rules, the package ensures that only high-quality, well-documented, and correctly formatted content is curated for the ArcGIS Living Atlas of the World.
To learn more about the guidelines and scoring details for each individual validation rule, please refer to the Resources page of the Living Atlas website.
Installation
Install the package using npm:
npm install @esri/living-atlas-content-validatorUsage
Then import and use the validator in your project:
import {
validate,
} from '@esri/living-atlas-content-validator';
/**
* An ArcGIS Online item to validate. This is a mock item for demonstration purposes;
* in a real application, you would retrieve this data from the ArcGIS Online REST API or other sources.
*/
const item = {
id: 'mock-item-id',
owner: 'mock-owner',
title: 'Mock Item Title',
snippet: 'This is a short summary of the item.',
description: 'This is a detailed description of the item.',
type: 'Web Map',
tags: ['tag1', 'tag2'],
// Other properties...
}
/**
* An item owner's user profile. This is a mock user profile for demonstration purposes;
* in a real application, you would retrieve this data from the ArcGIS Online REST API or other sources.
*/
const userProfile = {
fullName: 'mock-owner',
description: 'mocked user profile',
thumbnail: 'thumbnail/avatar.png',
// Other properties...
}
// Validate the item and user profile
const validationResults = validate(item, userProfile);Documentation
For detailed documentation, please refer to the Documentation.
License
COPYRIGHT © 2026 Esri
All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement. You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA
email: [email protected]
