Semantics
Semantics is the meaning or behavior assigned to expressions, symbols, data, or structures under an interpretation.
Data-Oriented Programming in Java
Semantics are the intended meanings that a program expresses through its data and operations.
- How it is used
- Guides data-oriented design toward representations, operations, and boundaries that state domain meaning explicitly.
- How deep it goes
- Develops semantics from implicit fields through validation, domain types, model refactoring, and architectural boundaries.
- Examples
- Uses UUID identifiers, task retries, temperature and curing measurements, checklists, database upserts, and HTTP/JSON ingestion.
- What you can do after
- Evaluate/understand whether a representation, operation, or boundary communicates domain meaning and prevents invalid states.
Read how Data-Oriented Programming in Java explains semantics →
LLMs in Production
Semantics is the study of meaning in language, including the meanings of expressions and their combinations.
- How it is used
- Uses semantics to reason about meaning and its approximation in language models.
- How deep it goes
- Explains usage-based embeddings and their limitations, with a vector analogy and a pragmatic interpretation example.
- Examples
- Illustrates semantic approximation with the king–man+woman Word2Vec analogy and interpretation with “I need food.”
- What you can do after
- Evaluate semantic approximations by considering embedding visualizations and the contextual information a model can access.
Machines that Think
The aspect of language and cognition concerned with meaning and the relationships between expressions, concepts, and what they signify.
- How it is used
- Uses semantics to examine language representation and assess claims of machine understanding.
- How deep it goes
- Explains the syntax–semantics distinction and learned relational structure, while leaving whether such structure constitutes understanding contested.
- Examples
- Uses the Chinese Room, a grammatically correct nonsense sentence, and word-embedding relationships to illustrate competing aspects of meaning.
- What you can do after
- Evaluate claims of machine understanding by distinguishing fluent behavior, learned linguistic relationships, and experiential grounding.
Knowledge Graphs and LLMs in Action
Semantics is the explicit representation of the meaning of data through typed entities and meaningful relationships.
- How it is used
- Makes knowledge-graph meaning explicit so data can support contextual analysis, business decisions, explainability, and reasoning.
- How deep it goes
- Explains typed relationships, taxonomies, ontologies, and pragmatic partial modeling without detailing formal implementation procedures.
- Examples
- Uses Vehicle–Car–Sedan hierarchies, Car–Automobile identity, Car–Bicycle disjointness, and healthcare specialty ontologies.
- What you can do after
- Evaluate graph representations for meaningful relationships, explainability, and extensible domain modeling.
Read how Knowledge Graphs and LLMs in Action explains semantics →
Also covered in
- WordPress Power Toolkit: Harness AI to build next-level websites
- Building User-Friendly DSLs
- Introduction to Generative AI, Second Edition
- Modern C, Third Edition
- The Quick Python Book, Fourth Edition
- Modern C
- Natural Language Processing in Action, Second Edition
What to know first
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- callA call is an invocation that requests execution of a function, routine, command, or tool, optionally supplying arguments.
- interpretabilityInterpretability is the degree to which people can understand a system’s structure, behavior, outputs, or the basis for its decisions.
- literalA literal is a language construct that directly denotes a fixed value or specifies an exact value permitted by a type.
Related concepts
- natural languagepart of · Natural language is a human communication system that develops through social use and is expressed in spoken or written form.
- syntaxcontrasts with · Syntax is the set of rules governing how symbols and constructs may be arranged to form valid expressions or programs in a language.
- embedding layeruses · An embedding layer is a neural-network layer that maps discrete identifiers to learned numerical vector representations.
- type systemcontrasts with · A type system is a set of rules that classifies program values and expressions and constrains their valid uses and operations.
Questions about semantics
What is semantics?
Semantics is the meaning or behavior assigned to expressions, symbols, data, or structures under an interpretation.
Which Manning books explain semantics?
Data-Oriented Programming in Java, LLMs in Production, Machines that Think and Knowledge Graphs and LLMs in Action.
What should I know before learning semantics?
Manning books that teach semantics usually introduce language model, call, interpretability and literal first.
What is the difference between semantics and syntax?
Semantics is the meaning or behavior assigned to expressions, symbols, data, or structures under an interpretation. Syntax is the set of rules governing how symbols and constructs may be arranged to form valid expressions or programs in a language.
What kinds of semantics are there?
Kinds of semantics include deterministic evaluation semantics.
What is semantics part of?
Semantics is part of natural language. Natural language is a human communication system that develops through social use and is expressed in spoken or written form.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



