CLAUDE.md
Overview
Structured data validator: extract, parse, and validate JSON-LD, Microdata, and RDFa markup against schema.org vocabulary.
Quick Start
Scripts
| Script |
Purpose |
schema_validator.py |
Extract and validate structured data |
base_client.py |
Shared utilities |
Usage
Supported Formats
| Format |
Detection |
| JSON-LD |
<script type="application/ld+json"> |
| Microdata |
itemscope, itemtype, itemprop |
| RDFa |
vocab, typeof, property |
Validation Levels
1. Syntax Validation
- Valid JSON structure
- Proper nesting
- No syntax errors
2. Schema.org Vocabulary
- Valid @type values
- Known properties
- Correct property types
3. Google Rich Results
- Required properties present
- Recommended properties
- Feature-specific requirements
Schema Types Validated
| Type |
Required Properties |
Rich Result |
| Article |
headline, author, datePublished |
Yes |
| Product |
name, offers |
Yes |
| LocalBusiness |
name, address |
Yes |
| FAQPage |
mainEntity |
Yes |
| Organization |
name, url |
Yes |
| BreadcrumbList |
itemListElement |
Yes |
| WebSite |
name, url |
Sitelinks |
Output
Issue Severity
| Level |
Description |
| Error |
Invalid schema, blocks rich results |
| Warning |
Missing recommended property |
| Info |
Optimization suggestion |
Dependencies