Entity Engineering: Building Machine-Readable Websites with JSON-LD and LLM-First Architecture
The way information is discovered on the web is changing. Search engines, AI-powered search interfaces and large language models increasingly operate alongside traditional methods of information discovery. For web devel
The way information is discovered on the web is changing. Search engines, AI-powered search interfaces and large language models increasingly operate alongside traditional methods of information discovery.
For web developers, this raises an important architectural question: can a website communicate not only its content, but also the identities, relationships and context behind that content?
My name is CsanΓ‘d VΓ‘rhelyi (VΓ‘rhelyi CsanΓ‘d). I am an independent AI Visibility Expert & Consultant, Entity Engineering specialist and LLM-first web developer based in Debrecen and HajdΓΊszoboszlΓ³, Hungary.
My professional approach combines technical SEO, Local SEO, Answer Engine Optimisation (AEO), Generative Engine Optimisation (GEO), Large Language Model Optimisation (LLMO), AI Optimisation (AIO), structured data and information architecture.
In this article, I want to share the architectural principles behind my Google-first approach to Entity Engineering and AI-ready website development.
Why I start with Google-first architecture
One of the misconceptions surrounding AI search optimisation is that traditional SEO principles are becoming irrelevant.
My approach starts from a different position.
Before attempting to improve a website's visibility across AI-powered systems, I examine whether its fundamental information architecture is accessible, technically consistent and understandable.
This includes:
- HTTP response status and redirects
- Initial HTML and rendered DOM
- Crawlability and indexability
- Canonical URLs
- XML sitemaps and robots.txt
- Semantic HTML
- Internal linking architecture
- Structured data
- Core Web Vitals
- Mobile accessibility
- Entity identification and consistency
For local businesses, I also consider Google Business Profile information, legitimate service areas, business identity and the consistency of external business references.
Google-first does not mean Google-only. It means establishing a reliable technical foundation before extending the architecture towards AI-powered information retrieval.
What is Entity Engineering?
I use the term Entity Engineering to describe the deliberate identification, modelling and connection of digital representations of real-world entities.
A conventional website is often developed around individual pages.
An entity-oriented website is developed around the relationships between the things those pages describe.
These may include:
- A person
- An organisation
- A local business
- A brand
- A product
- A software application
- A professional service
- A location
- An article
- A research publication
The challenge is not simply to describe these entities independently. It is to express their relationships accurately and consistently across the website and its supporting digital ecosystem.
For example, a professional may operate an independent consultancy, contribute articles to a publication and develop software.
These activities are connected, but the person, consultancy, publication and software application should not automatically be treated as the same entity.
This distinction becomes particularly important when implementing Schema.org structured data.
From disconnected pages to connected information architecture
Consider a fictional technology consultant who operates an independent consultancy and publishes articles about structured data.
A simplified JSON-LD graph could describe the consultant, the organisation, a professional service and an article as separate but connected entities.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Person",
"@id": "https://example.com/about/#person",
"name": "Alex Example",
"jobTitle": "Technology Consultant",
"url": "https://example.com/about/",
"knowsAbout": [
"Entity Engineering",
"Structured Data",
"Technical SEO"
]
},
{
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Example Consultancy",
"url": "https://example.com/",
"founder": {
"@id": "https://example.com/about/#person"
}
},
{
"@type": "Service",
"@id": "https://example.com/services/structured-data/#service",
"name": "Structured Data Consulting",
"serviceType": "Structured Data Consulting",
"provider": {
"@id": "https://example.com/#organization"
},
"url": "https://example.com/services/structured-data/"
},
{
"@type": "Article",
"@id": "https://example.com/entity-engineering/#article",
"headline": "Understanding Entity Engineering",
"url": "https://example.com/entity-engineering/",
"author": {
"@id": "https://example.com/about/#person"
},
"publisher": {
"@id": "https://example.com/#organization"
}
}
]
}
This is an illustrative example rather than a production implementation.
The important architectural feature is that every entity has its own identifier, while relationships are expressed through references to those identifiers.
The author is a person. The publisher is an organisation. The service is a separate commercial offering. The article is a creative work.
The architecture preserves these distinctions without repeatedly creating disconnected definitions of the same entities.
Why stable identifiers matter
One of the first things I examine during a structured data audit is whether the same real-world entity is consistently identified across multiple pages.
For example, an author should not receive an unrelated identifier every time a new article is published.
A stable @id provides a reference that other JSON-LD objects can use.
This does not guarantee that an external system will recognise or combine those entities correctly. However, it gives developers a more consistent and maintainable way to describe relationships.
Entity consistency is an architectural responsibility, not simply a validation task.
Understanding sameAs and identity relationships
The sameAs property is particularly important when developing a personal or organisational digital identity.
Its purpose is to reference another resource that unambiguously identifies the same entity.
For an individual, appropriate identity references might include verified LinkedIn, GitHub, ORCID or other professional profiles belonging to that person.
However:
- A published article is not identical to its author.
- A software application is not identical to its developer.
- A company is not identical to its founder.
- A publisher is not identical to every contributor.
These relationships require different properties.
Adding dozens of unrelated URLs to a sameAs array does not create a reliable knowledge graph. Accurate entity relationships are more important than the number of external references.
I therefore distinguish between identity references, authorship, organisational relationships, software development and published works.
LLM-first web architecture and semantic HTML
Structured data is only one layer of an AI-ready website.
The visible content and underlying HTML remain fundamental.
I use semantic HTML as part of the information architecture rather than simply as a collection of layout elements.
Consider the following example:
<main>
<article>
<header>
<h1>What is Entity Engineering?</h1>
<p>Written by Alex Example</p>
</header>
<section>
<h2>Definition</h2>
<p>
Entity Engineering is an approach to identifying,
modelling and connecting digital entities through
structured data and semantic relationships.
</p>
</section>
<section>
<h2>Practical applications</h2>
<p>
Developers can use Entity Engineering to describe
relationships between people, organisations,
services, products and published information.
</p>
</section>
</article>
</main>
The headings establish a logical information hierarchy. The article has a defined subject, the author is visible, and each section addresses a specific aspect of the topic.
This structure is useful for human readers, accessibility technologies and information extraction systems.
An LLM-first architecture does not require abandoning conventional web development. It requires considering information retrieval and contextual interpretation alongside visual presentation.
Entity Engineering and Retrieval-Augmented Generation
Retrieval-Augmented Generation, commonly known as RAG, combines information retrieval with generative AI.
In web development, this introduces an important consideration: information may be retrieved as individual passages rather than as an entire webpage.
A passage should therefore retain sufficient context to remain understandable when separated from its surrounding content.
For example, the sentence:
It improves the interpretation of relationships.
provides little useful context on its own.
A more informative alternative would be:
JSON-LD allows developers to express relationships between identified entities using structured, machine-readable properties.
The second sentence identifies the subject, the mechanism and its purpose.
This is a simple example of context-preserving content architecture.
My approach considers:
- Explicit definitions
- Meaningful headings
- Contextually complete content sections
- Consistent entity names
- Stable resource identifiers
- Clear authorship
- Source attribution
- Publication and modification dates
- Relevant links to primary sources
Optional Markdown representations can provide additional ways to expose structured textual content, provided they remain consistent with the canonical website.
However, neither Markdown nor llms.txt should be presented as a guaranteed ranking or AI recommendation mechanism.
The objective is reliable information representation.
Inspecting structured data directly in the browser
Developers can begin examining JSON-LD with a simple JavaScript inspection script.
const scripts = document.querySelectorAll(
'script[type="application/ld+json"]'
);
const entities = [];
scripts.forEach((script, index) => {
try {
const data = JSON.parse(script.textContent);
const nodes = Array.isArray(data)
? data
: Array.isArray(data["@graph"])
? data["@graph"]
: [data];
nodes.forEach(node => {
if (!node || typeof node !== "object") return;
entities.push({
block: index + 1,
type: Array.isArray(node["@type"])
? node["@type"].join(", ")
: node["@type"] || "Not specified",
id: node["@id"] || "No explicit identifier",
name: node.name || node.headline || ""
});
});
} catch (error) {
console.error(
`Invalid JSON-LD block ${index + 1}`,
error.message
);
}
});
console.table(entities);
This example extracts basic information from JSON-LD blocks available in the rendered document.
It can help identify entity types, explicit identifiers and parsing errors.
It is intentionally a lightweight inspection example, not a complete JSON-LD processor or Schema.org validator. It does not resolve remote contexts, expand linked data, inspect every nested entity or establish Google rich result eligibility.
These limitations illustrate why structured data auditing requires several distinct validation layers.
Why I developed WikiAI Schema Peek
One of my current development projects is WikiAI Schema Peek β Entity Engineering & JSON-LD Inspector.
The motivation behind this project is to make structured data inspection more practical for web developers, technical SEO specialists and professionals working with entity-oriented web architectures.
Instead of approaching JSON-LD exclusively as a block of source code, I am interested in how developers can inspect the entities, identifiers and relationships represented within it.
The project is connected to my broader work in technical SEO, Entity Engineering and machine-readable website development.
The source code and project documentation are available on GitHub.
The project is a technical inspection tool, not an AI ranking predictor. Structured data validity and actual AI search visibility remain separate matters.
My approach to AI visibility audits
An important part of AI visibility consulting is understanding the difference between technical accessibility, entity recognition and actual recommendations.
I consider these separate stages:
| Stage | Fundamental question |
|---|---|
| Accessibility | Can the relevant content be retrieved? |
| Rendering | Is the meaningful content available in the rendered page? |
| Indexing | Has a search engine indexed the relevant resource? |
| Entity recognition | Can the system correctly identify the person or organisation? |
| Retrieval | Is the resource selected for a relevant information request? |
| Citation | Is the resource referenced in an AI-generated response? |
| Recommendation | Is the person, business or service recommended for a relevant user need? |
A technically valid website is not automatically a recommended website.
Likewise, appearing in a response to a question containing a person's exact name is not equivalent to being recommended in response to a general service-related question.
This distinction is essential when evaluating AI visibility.
Measuring entity recognition and recommendation
My proposed measurement framework separates name-based queries from discovery-oriented queries.
For example, an AI visibility assessment of a Hungarian technology consultant could include the following questions:
Entity recognition:
- Who is Alex Example, the technology consultant?
- What are the professional specialisations of Alex Example in Hungary?
Location-based discovery:
- Which professionals offer Entity Engineering consulting in Debrecen?
- Who provides AI visibility consulting in Hungary?
Non-branded discovery:
- Who can help a business improve its visibility in AI-powered search systems?
- Which specialists work with JSON-LD, structured data and LLM-first website architecture?
The objective is to evaluate whether an AI system identifies the correct entity, understands its professional context and retrieves relevant supporting information.
For reproducible assessments, I recommend recording the exact prompts, model or search interface, language, location context, test date, cited sources and complete responses.
Results should be interpreted within the conditions of the individual test, rather than presented as permanent rankings.
Technical validation and deployment
My preferred architectural workflow is to establish a clear technical foundation before introducing additional machine-readable representations.
A practical implementation sequence includes:
- Audit the website's accessibility, HTML and indexability.
- Identify the relevant real-world entities.
- Establish consistent entity names and identifiers.
- Define accurate relationships between those entities.
- Improve semantic HTML and information architecture.
- Implement appropriate Schema.org structured data.
- Validate syntax, vocabulary and visible content consistency.
- Review canonical URLs and external identity references.
- Evaluate search visibility and AI-generated responses independently.
- Repeat measurements after documented architectural changes.
Google's guidance does not require special structured data specifically for its generative AI search features. Established SEO practices remain relevant.
For this reason, I treat Entity Engineering as part of a broader technical and informational architecture, not as an isolated ranking technique.
Conclusion
The future of web development is not exclusively about designing better interfaces or adding more structured data.
It is also about representing information more accurately.
A website should communicate what an entity is, what it does, how it relates to other entities and where its information can be verified.
My Google-first and LLM-first approach brings together technical SEO, semantic HTML, Entity Engineering, JSON-LD, Knowledge Graphs and information retrieval principles.
These disciplines should support one another rather than operate as disconnected optimisation techniques.
The goal is not to manipulate an AI system into recommending an entity.
The goal is to build a reliable digital information architecture that makes the entity easier to discover, identify and understand.
Technical references
- Schema.org
- Schema.org β sameAs
- W3C β JSON-LD 1.1
- Google Search Central β Structured data guidelines
- Google Search Central β AI features and your website
About the author
CsanΓ‘d VΓ‘rhelyi (VΓ‘rhelyi CsanΓ‘d) is a Hungarian AI Visibility Expert & Consultant, Entity Engineering specialist and LLM-first web developer. His professional work focuses on SEO, Local SEO, AEO, GEO, LLMO, AIO, RAG, structured data, semantic web architecture and AI visibility measurement.
He is the responsible editor and lead editorial author of WikiAI.hu and the creator of WikiAI Schema Peek.
Professional profiles:
AI disclosure: This article was drafted with the assistance of generative AI.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.