Overview
Most validators only check JSON-LD. ValidGraph’s multi-format validation detects and validates structured data in all three Schema.org formats: JSON-LD, Microdata, and RDFa. This catches markup that other tools miss and provides a complete picture of a page’s structured data.
How It Works
1. User submits a URL for multi-format validation
2. ValidGraph extracts:
– JSON-LD from blocks
– Microdata from itemscope/itemprop attributes
– RDFa from typeof/property attributes
3. Each format is validated independently
4. Cross-format consistency is checked
5. Combined report shows all structured data on the page
Tier Availability
| Tier | Available |
|——|———–|
| Free | No |
| Pro | Yes |
| Agency | Yes |
| Enterprise | Yes |
API Reference
POST /api/v1/validate-all-formats
Request:
{
"url": "https://example.com/product"
}
Related Features
– URL Validation: Standard JSON-LD-only validation
– Schema Completeness Score: Scoring across all detected formats
Quick Start: Validate All Three Schema Formats
Step 1: Submit URL for multi-format validation
curl -X POST https://api.validgraph.io/wp-json/validgraph/v1/validate-all-formats
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{"data_url": "https://example.com/product"}'
Step 2: Review format breakdown — Response shows separate results for JSON-LD, Microdata, and RDFa
Step 3: Cross-format comparison — Dashboard highlights inconsistencies between formats on the same page
Real-world scenario:
An ecommerce site uses:
– JSON-LD for Product type (in )
– Microdata for Product schema (in product listing HTML)
– RDFa for rating data (in reviews section)
Multi-format validation finds all three independently and checks consistency.
Technical Details
Detection Methods
JSON-LD: Regex extraction of blocks
{"@context": "https://schema.org", "@type": "Product", ...}
Microdata: HTML attribute parsing of itemscope, itemtype, itemprop
Laptop
$999
RDFa: HTML attribute parsing of typeof, property, resource
Laptop
$999
Request/Response
Request:
{
"data_url": "https://example.com/electronics/laptop-pro"
}
Response:
{
"success": true,
"data": {
"url": "https://example.com/electronics/laptop-pro",
"validation_id": "val_multi_ghi789",
"formats_found": {
"json_ld": true,
"microdata": true,
"rdfa": false
},
"format_results": {
"json_ld": {
"schemas_found": 1,
"types": ["Product"],
"score": 88,
"detected_blocks": 1,
"raw_content": "json_ld_abc123.json"
},
"microdata": {
"schemas_found": 1,
"types": ["Product"],
"score": 82,
"detected_scopes": 1,
"raw_content": "microdata_abc123.html"
},
"rdfa": {
"schemas_found": 0,
"types": [],
"score": 0,
"detected_statements": 0
}
},
"cross_format_analysis": {
"consistent_types": ["Product"],
"format_conflicts": [
{
"property": "price",
"json_ld_value": "$999.00",
"microdata_value": "999",
"severity": "low",
"suggestion": "Consider normalizing price format across formats"
}
],
"missing_in_formats": {
"description": ["rdfa"],
"image": ["rdfa"],
"availability": ["microdata"]
}
},
"combined_score": 85,
"errors": [],
"warnings": [
{
"format": "microdata",
"property": "description",
"message": "Missing recommended property"
}
]
}
}
Format-Specific Validation Rules
JSON-LD:
– Validates JSON syntax (returns error if malformed)
– Checks @context presence
– Validates property types against @type
Microdata:
– Validates itemtype URL format
– Checks itemprop names against itemtype properties
– Validates required properties per itemtype
RDFa:
– Validates typeof URL format
– Checks property URIs
– Validates value types (literal vs resource)
Cross-Format Consistency Checks
The validator compares:
1. Schema types: Are the same types represented in all formats?
2. Property values: Do identical properties have consistent values across formats?
3. Completeness: Do all formats represent the same data?
4. Conflicts: Are there contradictory values?
Severity levels: high (different types), medium (different values), low (minor inconsistencies).
References
– JSON-LD Specification: https://json-ld.org/spec/latest/json-ld/
– HTML Microdata Standard: https://html.spec.whatwg.org/multipage/microdata.html
– RDFa Core 1.1 Specification: https://www.w3.org/TR/rdfa-core/
– Schema.org Documentation: https://schema.org/
– Google: Structured Data Formats: https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data