InterCore Technologies
● InterCore · Agentic search optimization

Semantic Triples (Subject-Predicate-Object) for Legal Content: Building a Machine-Readable Law Firm

Be the firm AI recommends.

How semantic triples encode law-firm relationships so AI search engines understand and cite your practice accurately.

Get your free AI visibility report →Read the guide
By Scott Wiseman·CEO & Founder, InterCore Technologies·Updated Jul 2026
Quick
answer

How semantic triples encode law-firm relationships so AI search engines understand and cite your practice accurately.

TL;DR — Key takeaways
  • A semantic triple is a statement in the form Subject-Predicate-Object (e.g., 'Scott Wiseman worksFor InterCore'). It represents a single fact about the relationship between two entities. Triples are the atomic unit of structured knowledge; linked together, they form a knowledge graph.
  • Schema.org JSON-LD translates triples into a format LLMs and search engines can parse. A triple 'Attorney hasCredential BarLicense' becomes a JSON-LD property on the Person node: {"hasCredential": {"@type": "EducationalOccupationalCredential", ...}}.
  • For law firms, semantic triples are the bridge between human-readable content and machine-understood meaning. An LLM reading 'Scott Wiseman, Founder of InterCore' must infer the relationship; with a triple, you state it explicitly: Scott worksFor InterCore, worksFor points to a shared @id, and the relationship is machine-verifiable.
  • A complete law-firm knowledge graph includes triples like: Attorney worksFor Firm; Firm hasOfficeLocation Place; Place hasCoordinate coordinates; Attorney hasCredential BarLicense; CaseResult involves CourtHouse; Practice hasJurisdiction State. These relationships are citable and AI-retrievable because they are explicitly structured.
  • Triples are entity-centric, not page-centric. A single attorney (one Person @id) can appear on dozens of pages (bio, practice-area pages, team listing, case results). By linking every mention to the same @id and encoding relationships as triples, you create a unified entity graph. This is how AI engines recognize and cross-link your mentions across the web.
  • The most common mistake: hardcoding relationships into prose and omitting structured triples. A page that says 'John Smith is an attorney at Law Firm LLC handling bankruptcy in California' forces AI to infer three triples from unstructured text. Schema.org triples make all three explicit and machine-verifiable, so no inference is needed.
The complete guide

Read it, chapter by chapter

The full 8-chapter guide for law firms — pick any chapter to read it here.

Chapter 1 of 8

What Is a Semantic Triple, and Why Does Your Law Firm Need Them?

A semantic triple is a simple statement of fact in the form Subject-Predicate-Object (S-P-O). The subject is a thing (an entity), the predicate describes a relationship, and the object is another thing (or a value). Examples: Scott Wiseman (subject) worksFor (predicate) InterCore (object). Or: InterCore (subject) hasOfficeLocation (predicate) San Francisco (object). Each triple expresses one fact.

Triples are the building blocks of the semantic web and knowledge graphs. Linked together, they form a network of entities and relationships that machines can understand and traverse. When you link the triple "Scott worksFor InterCore" with "InterCore hasOfficeLocation San Francisco," you have implicitly stated "Scott works in San Francisco" — the machine can infer this without you saying it explicitly.

For law firms, triples are essential because they transform your website from a collection of pages (which humans read) into a machine-readable knowledge base (which LLMs and search engines parse). An AI search engine like ChatGPT reading your site in plain text might infer that "John Smith is a partner at your firm" from prose, but it might miss nuance or misattribute the relationship if the text is ambiguous. With explicit triples, there is no ambiguity: John Smith's Person node carries a triple worksFor: {"@id": ".../#firm"}, pinned to your firm's unique identifier, and the relationship is machine-verifiable.

Triples vs. Prose
Information StyleRepresentationMachine Readable?Inference Required?
Prose"Sarah Chen is a personal injury attorney at our firm in Los Angeles with 10 years of experience."NoYes (LLM must infer: Chen hasCredential law degree; Chen worksFor firm; firm hasOfficeLocation LA; Chen hasExperience 10 years)
Semantic TriplesChen worksFor Firm; Firm hasOfficeLocation LA; Chen hasOccupation Attorney; CasesPractice PersonalInjuryYesNo (all facts explicit)
JSON-LD (implements triples){"@type": "Person", "name": "Sarah Chen", "worksFor": {"@id": ".../#firm"}, "jobTitle": "Personal Injury Attorney", ...}YesNo

The advantage is clear: machines process triples at scale and with precision. Google, ChatGPT, Claude, and Gemini all index structured triples from JSON-LD to build entity graphs. An LLM answering "Who are the personal injury attorneys in Los Angeles?" searches a knowledge graph built from triples: it finds all Person nodes where hasOccupation=Attorney, knowsAbout=PersonalInjury, and worksFor.hasOfficeLocation=LA. Prose would require the LLM to parse and infer the same information from every page, introducing errors and missing results.

Share
Every search intent, covered

Who, what, why, when, where & how

Applying semantic triples to my practice area pages

How should I structure entity relationships for my practice areas using semantic triples?

Use the Service and OfferCatalog types. Declare Service.provider (firm @id), Service.knowsAbout (related concepts and entities), Service.areaServed (jurisdictions as Place entities). Link each practice-area page to the firm and to jurisdiction pages. Cross-reference related practices via triples so the graph shows "bankruptcy law" relates to "creditor rights" relates to "commercial litigation."
Building a knowledge graph for location pages

What semantic triples should a location page (city/state) include to rank and cite well for law firms?

Declare Place entities for cities and courts. Add triples: Firm.hasOfficeLocation Place; Place.address (postal address); Place.geo (coordinates); Place.hasCourtHouse CourtHouse entities (real courts serving that area). Link Attorney nodes to the office location. Include Place.sameAs (Wikipedia, Wikidata URIs) to enable entity linking. This makes your office location discoverable and citable by jurisdiction.
Connecting attorneys, credentials, and case results

How do I use semantic triples to show that an attorney won a specific case in their practice area?

Create a triple chain: CaseResult.attorney (person @id); Person.hasCredential (bar license); CaseResult.practiceArea (practice entity); CaseResult.resultDescription; CaseResult.award; CaseResult.involvedCourt (court entity). Link all entities by shared @ids so the LLM can traverse: attorney → credentials; attorney → cases → outcomes; attorney → courts. This makes case results citable and verifiable.
Optimizing for AI search engines' entity recognition

How do semantic triples improve AI search engine visibility compared to traditional SEO?

Traditional SEO optimizes pages via links and keywords. Semantic triples optimize entities: a stable Person @id for each attorney accumulates properties and relationships across pages, becoming a recognized entity in the LLM's knowledge graph. Every page mentioning the attorney reinforces the entity; every triple (hasCredential, worksFor, sameAs) makes the entity more complete. An LLM answering "who are the bankruptcy lawyers in San Francisco with 10+ years?" can query the knowledge graph directly instead of parsing prose, making your firm more discoverable and citable.
InterCore · Services

Every guide in this hub

Explore the full cluster — pick any node to open its guide.

7
Services
What clients say

In their words

5.0★★★★★Excellent · 20 reviews on GoogleWrite a review
★★★★★

We tried a lot of vendors, but in less than a year, this law firm marketing agency generated tangible results.

Calyn Settle
Verified Google review · 8 months ago
★★★★★

Within 90 days we were showing up in ChatGPT and Google AI Overviews for our top practice areas. The qualified calls followed.

Managing Partner
Personal Injury firm
★★★★★

They actually understand how the AI platforms work. Our cost per signed case dropped while lead quality went up.

Founding Attorney
Family Law firm
★★★★★

As a solo, I finally compete with the billboard firms — because AI recommends me by name for DUI cases in my city.

Solo Practitioner
Criminal Defense

One verified Google review shown; the remaining quotes are representative. Past results do not guarantee future outcomes.

Scott Wiseman, CEO / Founder, InterCore Technologies · AI-Powered Marketing for Law Firms Since 2002
Scott Wiseman
CEO / Founder, InterCore Technologies · AI-Powered Marketing for Law Firms Since 2002

Scott is a former Google Marketing Director with a background in computer science and business. He helps law firms acquire clients across every search channel — SEO, PPC, and the newer generative and answer-engine categories (GEO and AEO) — improving their visibility both on Google and in the recommendations of AI systems like ChatGPT, Gemini, and Perplexity. A network engineer and software programmer by training, Scott holds a bachelor's in computer science from California State University, Northridge, an MBA from Pepperdine's Graziadio Business School, and an Applied Agentic AI certificate from Harvard Business School. He has guided law firms through every major shift — Yellow Pages to Google Ads to today's AI revolution — pioneering Generative Engine Optimization for attorneys nationwide.

Watch · Short

Why Law Firms Need GEO (Generative Engine Optimization)

100+
law firms served
18:1
avg marketing ROI
2002
law-firm-only since
More on the InterCore channel — @IntercoreAI
Sources & references

Backed by research

Berners-Lee, T., Hendler, J., & Lassila, O. (2001). 'The Semantic Web.' Scientific American, 284(5), 28–37. [Foundational paper on the semantic web and RDF.]
W3C. 'RDF 1.1 Concepts and Abstract Syntax.' W3C Recommendation.W3C. 'JSON-LD 1.1: A JSON-based Serialization for Linked Data.' W3C Recommendation.Schema.org. 'Official Schema.org Vocabulary Documentation.' Community-driven structured data vocabulary.
Allemang, D., & Hendler, J. (2011). 'Semantic Web for the Working Ontologist: Effective Modeling in RDFS and OWL.' (2nd ed., Morgan Kaufmann). [Practical guide to ontologies and semantic modeling.]
Brickley, D., & Miller, L. (2014). 'FOAF (Friend of a Friend) Vocabulary Specification 0.99.' Namespace Document.
Paulheim, H. (2016). 'Knowledge graph refinement: A survey of approaches and evaluation methods.' Semantic Web, 8(3), 489–508. [Survey of knowledge graph construction and validation.]
Ehrlinger, L., & Wöß, W. (2016). 'Towards a Definition of Knowledge Graphs.' SEMANTiCS 2016 Leipzig, Germany.
Kejriwal, M., Szekely, P., & Knoblock, C. A. (2021). 'Markup it up: Embedding semantic markup in web pages for knowledge acquisition.' arXiv preprint arXiv:2104.04265. [How structured data is embedded and extracted from HTML.]
FAQ

Frequently asked questions

Content is human-readable prose; triples are machine-structured facts. Content says "John Smith is a personal injury attorney at our firm." A triple makes three things explicit: John (entity) worksFor Firm (entity); John jobTitle Attorney; John knowsAbout PersonalInjury. Machines can process triples at scale and precision; content requires inference and is prone to errors.

Yes, triples are a general concept. You can encode them in RDF/Turtle, RDF/XML, Microdata, or custom JSON. But schema.org JSON-LD is the standard for web structured data and is natively parsed by Google, Microsoft, and LLM crawlers. For law firms, schema.org is the practical choice.

The highest-value triples are: Attorney worksFor Firm; Attorney hasCredential BarLicense; Attorney sameAs [LinkedIn, Avvo]; Firm areaServed Jurisdiction; Firm knowsAbout PracticeArea. These triples define who you are, what you do, where you operate, and how to verify you externally. Start with these; expand to case results and location triples next.

LLM crawlers extract triples from your JSON-LD and index them into a knowledge graph. When a user queries (e.g., 'personal injury lawyers in SF'), the LLM searches the graph for Attorney nodes where knowsAbout=PersonalInjury, worksFor.hasOfficeLocation=SF. Results are retrieved and ranked by authority. Triples also enable RAG: the graph is consulted to find source URLs and passages to cite.

@id is a unique identifier (usually a URL) for an entity. It is how machines recognize that two mentions of the same thing are actually the same thing. If your attorney Scott appears on five pages but each has a different @id, machines treat him as five different people. A stable, shared @id across all pages merges the information correctly.

No. Changing an @id splits the entity into two in the knowledge graph. LLMs and search engines that have already indexed the old @id will not recognize the new one. The old @id becomes orphaned data. Treat @ids as permanent; plan them carefully before launch and use redirects (301 HTTP redirects on page URLs) if you need to change page locations, but keep @ids stable.

'sameAs' is a predicate that links your entity to external, canonical representations of the same thing (Wikipedia, Wikidata, LinkedIn, Avvo, bar-association profiles). It tells machines 'this is the same entity as the one on that platform.' LLMs use sameAs to merge your data with public entities and validate credentials. Always include sameAs for your firm, attorneys, and practices where external profiles exist.

Use validator.schema.org to check JSON-LD syntax. Use Google's Rich Results Test for eligibility warnings. Visually inspect your graph using a tool like WebVOWL to see all entities and relationships. Manually verify that @ids are consistent across pages, predicates are from schema.org, and every triple has both a defined subject and object. Test with curl: curl -A GPTBot <url> and grep for your entities in the JSON-LD to ensure they are server-rendered.

More guides
What Is an Ontology in SEO?Ontology vs TaxonomyEntity Relationships in Law FirmsBuilding Your Firm's Knowledge GraphTranslating Ontology to Schema.org JSON-LDAuditing a Law Firm Site's Ontology

Ready to be the answer AI recommends?

See exactly how ChatGPT, Google AI and Perplexity rank your firm — a 23-point report in 24 hours. No credit card.

Get my free AI visibility report →Call 213-282-3001