Validator
At present, the primary tool for validating MVMD metadata is the Schema.org Validator (https://validator.schema.org/). This guide explains how to use the validator effectively with MVMD metadata.
Note: In the future, MVMD will provide dedicated validation tools that handle namespaced properties, file attachments, and cross-references between files. This guide will be updated when those tools become available.
Using the Schema.org Validator
Step 1: Prepare Your Metadata
Before validation, ensure your metadata:
- Has a properly defined
@context
- Uses valid Schema.org types
- Includes all required properties
- Uses proper JSON-LD formatting
Example of properly formatted metadata:
{
"@context": {
"@vocab": "https://schema.org/",
"gltf": "https://www.khronos.org/gltf/"
},
"@type": "ImageObject",
"name": "Asset Preview",
"description": "Preview image of 3D asset",
"contentUrl": "https://example.com/preview.jpg",
"encodingFormat": "image/jpeg"
}
Step 2: Visit the Validator
- Go to https://validator.schema.org/
- Choose the "Validate" tab
- Select JSON-LD as the format
Step 3: Validate Your Metadata
- Paste your metadata into the validator
- Click "Validate"
- Review the results
- Address any validation errors
Common Validation Issues
1. Missing Required Properties
Error:
{
"@context": "https://schema.org/",
"@type": "ImageObject"
}
Fix:
{
"@context": "https://schema.org/",
"@type": "ImageObject",
"name": "Asset Name",
"contentUrl": "https://example.com/image.jpg"
}
2. Invalid Type Values
Error:
{
"@context": "https://schema.org/",
"@type": "3DAsset",
"name": "Example Asset"
}
Fix:
{
"@context": "https://schema.org/",
"@type": "3DModel",
"name": "Example Asset"
}
3. Incorrect Property Types
Error:
{
"@context": "https://schema.org/",
"@type": "ImageObject",
"name": "Asset Name",
"contentUrl": 12345
}
Fix:
{
"@context": "https://schema.org/",
"@type": "ImageObject",
"name": "Asset Name",
"contentUrl": "https://example.com/image.jpg"
}
Handling Namespaced Properties
The Schema.org validator will ignore properties from other namespaces. For example:
{
"@context": {
"@vocab": "https://schema.org/",
"gltf": "https://www.khronos.org/gltf/"
},
"@type": "3DModel",
"name": "Example Model",
"gltf:asset": {
"version": "2.0"
}
}
The gltf:asset
property will be ignored during validation. This is expected behavior until MVMD's dedicated validation tools are available.
Best Practices
-
Validate Core Properties First
- Start with basic Schema.org properties
- Ensure all required fields are present
- Use correct property types
- Fix any validation errors
-
Document Namespaced Properties
- Keep track of non-Schema.org properties
- Document their requirements
- Plan for future validation
- Follow standard specifications
-
Regular Validation
- Validate during development
- Check after updates
- Monitor for changes
- Keep documentation current
Future MVMD Validation
The upcoming MVMD validation tools will provide:
-
Complete Validation
- Schema.org compliance
- Namespace validation
- File attachment verification
- Cross-reference checking
-
Extended Features
- Profile-specific validation
- Custom rule sets
- Batch validation
- Automated testing
-
Integration Support
- API access
- CI/CD integration
- Development tools
- Validation reports
Next Steps
- Review Metadata Fundamentals
- Check Best Practices
- Explore Profile Requirements