Person Data Modeling and Knowledge Graph Construction: A Practical Guide to Building a Person-Centric Knowledge Base

    This article walks through a general method for building a person-centric knowledge graph from unstructured text, using a profile of "Elaine" as a running example. It covers the full pipeline—data ingestion, information extraction, entity normalization, relationship and event modeling, storage and querying, and governance—along with practical JSON schemas for entities, relations, and events, SQL examples for timeline queries, and guidance on disambiguation, conflict handling, data quality checks, and privacy compliance. It is useful for anyone working on profile retrieval, family-relationship graphs, event timelines, content-review support, or question-answering knowledge bases, and it is product-agnostic so the techniques apply across platforms.

    1. Background and Problem Definition

    In person-profile text, source information usually appears as natural-language narrative. A person’s name, family relationships, marital status, birth events, professional background, place of residence, and the time of public reporting are often mixed together in a single description. If you rely only on manual reading, the information is human-readable but hard for a system to search, link, verify, and keep up to date. Using the “Elaine” example from the title, this kind of person information can be abstracted into a typical data-modeling problem: how to extract person entities, relationship entities, event entities, temporal evidence, and source descriptions from unstructured text, and assemble them into a knowledge network with consistent structure, clear semantics, and room to grow.

    The core of this problem is not simply turning text into a table, but organizing scattered information into computable units of knowledge. For example, “one person has a spousal relationship with another person” is more than a single field; it also involves the relationship direction, when the relationship was established, its source, and whether it is still valid. Likewise, “a person experienced a birth event at a certain point in time” is more than a date; it also involves event type, participants, an event description, and public reporting evidence. Only by breaking these elements apart and modeling them separately can a system support advanced queries, relationship reasoning, timeline display, and compliance review.

    This article centers on person data modeling and knowledge graph practice, discussing a general method for extracting person knowledge and constructing a knowledge graph. The method does not depend on any specific commercial product and applies to scenarios such as encyclopedia-style data governance, person-profile retrieval, family-relationship graphs, event timelines, content-review assistance, and knowledge foundations for intelligent question answering.

    2. Overall Design Approach

    Building a person knowledge graph can be divided into six layers: data ingestion, information extraction, entity normalization, relationship and event modeling, storage and querying, and governance and service.

    2.1 Data Ingestion Layer

    The data ingestion layer is responsible for converting raw text, announcements, encyclopedia entries, reference tables, interview transcripts, and similar inputs into documents ready for processing. The key here is not to simply store the original text, but to preserve the evidence chain. Every extraction result should be traceable to the original paragraph, so that later review, correction, version updates, and compliance checks can tell where the information came from.

    2.2 Information Extraction Layer

    The extraction layer must identify persons, relatives, times, locations, occupations, events, and other elements from text. Common methods include rule templates, dictionary matching, named entity recognition, relation classification, and event extraction. In real projects, rules and statistical models are typically combined. Rules handle high-certainty expressions such as clear statements like “spouse,” “daughter,” “married,” or “born in.” Models handle complex sentence structures, coreference, and vague descriptions.

    2.3 Entity Normalization and Disambiguation

    In text, the same entity may appear under several names. Formal names, aliases, abbreviations, nicknames, pronouns, and media titles may all refer to the same person. The task of entity normalization is to merge these different expressions under one unique identifier. For a person graph, the quality of entity disambiguation directly determines whether the relationship network is reliable. If two people are wrongly merged, all subsequent relationships are contaminated; if the same person is split into multiple nodes, the profile becomes incomplete.

    2.4 Relationship and Event Modeling

    A person graph cannot model only person-to-person relationships; it must also model event relationships. A relationship is a relatively stable state, such as spouse, parent, child, occupation, or residence. An event is a behavior or a state change with a temporal characteristic, such as birth, marriage, childbirth, taking office, relocation, or public appearance. Modeling relationships and events separately makes the time dimension clearer and avoids static expressions such as “relationship forever.”

    2.5 Storage and Querying Layer

    The storage layer usually combines graph storage, a search index, and object storage. Graph storage suits expressing multi-hop relationships among persons, relatives, and events; a search index suits fast recall by name, alias, keyword, and time range; object storage suits keeping original documents, image metadata, and audit logs. The query layer provides business-facing capabilities such as person details, relationship paths, timelines, similar persons, and event aggregation.

    2.6 Governance and Service Layer

    The governance layer handles data quality, version management, access control, audit trails, and manual review. The service layer exposes unified interfaces for applications, supporting search, graph browsing, question-answering assistance, content recommendation, and risk control. Without a governance layer, a knowledge graph easily spins out of control as data grows; without a service layer, the graph stays inside a database and cannot deliver business value.

    3. Person Entity Modeling

    The person entity is the core node of the graph. At minimum, a usable person entity should contain a unique identifier, name, entity type, aliases, public roles, and sensitive flags. Here is a structured example:

    1. {
    2. "entity_id": "person_001",
    3. "name": "Elaine",
    4. "type": "Person",
    5. "aliases": [],
    6. "roles": [
    7. "public_person",
    8. "family_member"
    9. ],
    10. "sensitive_flags": [],
    11. "source_refs": [
    12. "doc_001"
    13. ]
    14. }

    Here, entity_id is a globally unique identifier and cannot rely on the name itself, because names can change and different people may share the same name. aliases stores alternate names to support retrieval and entity normalization. roles describes the person’s general role in the business, such as public figure, family member, or practitioner. sensitive_flags marks sensitive fields such as date of birth, family relationships, or private events. source_refs preserves source-document references to keep the data traceable.

    A person entity should also support versioning. For example, when a person’s public professional background changes or a new alias is added, the change should not directly overwrite historical data; the change record should be preserved. This makes it possible to answer questions such as “when was a piece of information added,” “which source did it come from,” and “when was it corrected.”

    4. Relationship Extraction and Modeling

    The most common relationships in a person graph include spouse, parent, child, occupation, residence, affiliated organization, and public activity. Different relationships have different business meanings, so they cannot all be handled with a single generic related_to field.

    Take the spousal relationship as an example. It needs to express at least both parties, the relationship type, the valid start time, the valid end time, the relationship status, and the evidence source. An example:

    1. {
    2. "relation_id": "rel_001",
    3. "from": "person_001",
    4. "to": "person_002",
    5. "type": "spouse",
    6. "direction": "bidirectional",
    7. "valid_from": "2010",
    8. "valid_to": null,
    9. "status": "active",
    10. "source_refs": [
    11. "doc_002"
    12. ]
    13. }

    In this structure, from and to represent the two ends of the relationship; type represents the relationship type; direction indicates whether the relationship is directional; valid_from and valid_to represent the valid time of the relationship; status indicates whether the relationship is currently valid; and source_refs records the source.

    Parent-child relationships usually require more caution. Parent and child relationships are often derived from events, such as “birth event,” “birth registration,” or “family-member description.” If the text only states that “someone has a daughter,” the system can establish a “has a child” relationship, but whether it can create a specific, directed link depends on the strength of the evidence. When evidence is insufficient, the relationship should be marked as a candidate or pending-review relationship rather than written directly into the formal graph.

    Relationship extraction should also handle negation, uncertainty, and hearsay expressions. Statements such as “unconfirmed,” “rumored,” “allegedly,” and “not verified” should not be treated as settled facts. In engineering practice, relationship status can be divided into confirmed, candidate, questionable, negated, and expired. This both preserves information and avoids misjudgment.

    5. Event Extraction and Timeline Modeling

    The difference between an event and a relationship is that an event emphasizes temporality and process. Original person profiles often contain information such as “what happened at a certain point in time” or “what happened during a certain phase.” Marriage registration, childbirth, joining a company, leaving a company, public appearances, and changes of residence can all be modeled as events.

    An event model typically includes an event identifier, event type, subject, object, time, location, participant roles, evidence source, and status. An example:

    1. {
    2. "event_id": "event_001",
    3. "type": "FamilyBirth",
    4. "subject": "person_001",
    5. "object": "person_003",
    6. "time": {
    7. "date": "2012-08-15",
    8. "precision": "day"
    9. },
    10. "participants": [
    11. {
    12. "entity_id": "person_001",
    13. "role": "parent"
    14. },
    15. {
    16. "entity_id": "person_003",
    17. "role": "child"
    18. }
    19. ],
    20. "source_refs": [
    21. "doc_003"
    22. ],
    23. "status": "confirmed"
    24. }

    This event represents a birth event that a family member experienced on a given date, producing a new child node. precision expresses time granularity. Many texts provide only a year with no month or day; some provide only a month and year with no specific day. If a complete date is forcibly required, a great deal of real information is lost. Time modeling must therefore support the coexistence of coarse-grained and fine-grained data.

    A timeline service can be built on the event table. For example, given a person identifier, the system can return all of that person’s events in chronological order:

    1. SELECT event_type, event_time, object, role
    2. FROM events
    3. WHERE subject = person_001
    4. ORDER BY event_time ASC

    At the implementation level, events can further be written into a graph structure, forming a “person—participates-in—event—time” path. This supports not only point queries but also associative queries, such as which related persons existed at a given point in time, whether two people share a common event, and whether family relationships changed during a given period.

    6. Entity Disambiguation and Conflict Handling

    The most common quality problem in a person knowledge graph is not “missing data” but “data that all appears present yet conflicts with itself.” For example, the same person may be assigned different occupational descriptions across different texts; the same relationship may be marked with different statuses across different materials; the same event may appear with different times across different sources. The system must be designed with a conflict-detection mechanism.

    6.1 Unique Identifiers Take Priority

    Every relationship and event must be attached to a unique entity identifier. Names, aliases, and text fragments can only serve as retrieval entry points, not as the final basis for linking. This avoids mis-linking relationships because of duplicate names.

    6.2 Evidence Strength Grading

    Not all sources are equivalent. Official records, publications from authoritative institutions, self-confirmation, media accounts, and user submissions carry different evidential strength. Each piece of information can be assigned an evidence level, such as high confidence, medium confidence, low confidence, or to-be-verified. Low-confidence information can be stored, but it should not directly influence final display or external service.

    6.3 Conflict Merge Strategy

    When two attributes conflict, they should not simply be overwritten. A combined strategy of “latest evidence first, highest confidence first, and manual adjudication first” can be adopted. For critical relationships such as marriage, parentage, or major identity changes, a manual review process is recommended. The system produces candidate results automatically, and after human confirmation, writes them into the formal graph.

    6.4 Version Traceability

    Every change should preserve the content before and after it. When a dispute arises, this makes it possible to trace when a piece of information appeared, when it was modified, and who confirmed it. Version traceability is also an important foundation for auditing and compliance.

    7. Storage and Query Design

    A person knowledge graph usually needs to support three types of queries at once: point queries, relationship queries, and aggregate queries.

    A point query means returning a person’s details given a person name or alias. For example, when a user inputs “Elaine,” the system needs to find the corresponding entity and return its basic information, a relationship summary, and an event timeline.

    A relationship query means viewing a person’s spouse, children, parents, occupation, residence, and so on. The graph structure has a clear advantage here, because relationship queries are often multi-hop. Examples include “the children of someone’s spouse,” “the birthplace of someone’s spouse,” and “the relationship between someone’s child and that child’s parents.”

    An aggregate query means performing statistics and aggregation across dimensions such as type, time, region, and relationship strength. Examples include changes in family members during a given period, the count of a certain type of event, or the distribution of a certain type of relationship.

    At the storage layer, the following general combination can be used:

    1. Graph storage: stores the connections among persons, relationships, and events.
    2. Search index: stores retrieval fields such as names, aliases, tags, time, and source.
    3. Object storage: stores original text, attachments, images, scans, and audit logs.
    4. Cache layer: stores high-frequency query results, such as person homepages, relationship summaries, and timelines.
    5. Message queue: decouples asynchronous tasks such as extraction, review, index updates, and version synchronization.

    In query design, avoid piling all complex business logic into the frontend. A more reasonable approach is to provide a unified query service where the backend calls different storage systems according to the scenario. For example, a person-homepage aggregate query can simultaneously read relationships from graph storage, aliases from the index service, the timeline from the event service, and source materials from object storage.

    8. Data Quality and Validation Rules

    A person knowledge graph needs to run continuously, so quality validation must be built in. Common validation rules include:

    8.1 Entity Integrity Validation

    A person node must contain a unique identifier, a name, and a type. Both ends of a relationship must point to valid entities. The subject and object of an event must be explicit. Data missing key fields should enter a completion queue.

    8.2 Time Reasonableness Validation

    For example, a valid end time cannot be earlier than a valid start time; an event time cannot be later than the currently recordable time; and if the text provides only a year, it should not be forcibly filled in with fabricated month and day. The purpose of time validation is to prevent logical contradictions, not to fabricate information out of nothing.

    8.3 Relationship Symmetry Validation

    Some relationships are symmetric, such as the spousal relationship. If A and B are spouses, this should normally also express that B and A are spouses. If some relationships are transitive—for example, parent-child relationships may be used in certain business scenarios to derive grandparent-grandchild relationships—the rule boundaries also need to be made explicit.

    8.4 Source Traceability Validation

    Every piece of formal data should be associated with at least one source. Data without a source can enter the candidate pool but should not be displayed externally directly. A source reference should be able to locate the original document or paragraph, not just store a vague description.

    8.5 Sensitive Field Validation

    For information involving personal privacy, such as date of birth, family relationships, and place of residence, the system should control the visible scope according to access policies. Sensitive fields should not enter the public search interface by default.

    9. Privacy, Compliance, and Access Control

    Person-profile data inherently involves personal information and family relationships, so privacy protection must be considered from the start of the design. Even if the data comes from public text, you cannot assume that every derived field can be used without restriction.

    9.1 Principle of Minimum Necessity

    Extract only the fields the business genuinely needs. For highly sensitive details unrelated to retrieval and relationship analysis, avoid bringing them into the core graph. For example, a public-figure profile can retain name, public roles, and public events, but should not casually collect family details unrelated to the business.

    9.2 Grading and Classification

    Data can be divided into public data, internal data, and restricted data. Public data can be served externally; internal data is used for operational analysis; restricted data requires approval for access. Each category should have clear usage boundaries.

    9.3 Masking and Redaction

    At the presentation layer, sensitive fields can be masked. For example, show only the birth year rather than the full date, and show only the relationship type rather than the specific address. The backend can keep the necessary fields, but the frontend interface should return redacted results.

    9.4 Auditing and Authorization

    All sensitive queries, modifications, and exports should be recorded in audit logs. High-privilege operations require secondary confirmation and approval. For bulk exports, quotas, intended purposes, and validity periods should be set to prevent data misuse.

    10. Engineering Implementation and Monitoring

    A person knowledge graph system that runs sustainably cannot be just a one-off extraction script; it needs an engineered process.

    10.1 Data Pipeline

    After raw text enters the system, it should go through steps such as cleaning, extraction, validation, storage, indexing, and publishing. Each step should support failure retry and status feedback. Data that fails extraction or is low in quality should go to manual review rather than being discarded outright.

    10.2 Version Management

    A knowledge graph is not a static database; it changes as information is updated. It is recommended to manage the ontology structure, extraction rules, entity versions, relationship versions, and event versions separately. Each release should be able to roll back.

    10.3 Monitoring Metrics

    You can monitor metrics such as the number of extracted entities, the number of relationship candidates, the number of conflicts, the manual-review pass rate, index-update latency, and query failure rate. These monitoring metrics are not for pursuing fictional performance figures but for surfacing data-quality and system-stability problems.

    10.4 Human-in-the-Loop Closure

    No matter how intelligent automatic extraction becomes, it cannot fully replace human judgment. Person data involves complex contexts, especially family relationships, identity changes, and sensitive events, which need human confirmation all the more. A reasonable design is: machines generate candidates, and humans make the final decisions.

    11. Typical Application Scenarios

    Once a person knowledge graph is built, it can support a variety of applications.

    11.1 Person-Profile Retrieval

    A user inputs a name, alias, or fuzzy description, and the system returns basic person information, a relationship summary, an event timeline, and source evidence. Compared with traditional keyword search, graph retrieval better understands entity relationships.

    11.2 Relationship Path Analysis

    The system can display the relationship path between two people, such as spouse, parent, child, or a shared event. For scenarios such as content review, public-opinion analysis, and family-relationship verification, relationship paths offer high value.

    11.3 Timeline Narrative

    Person events can be organized into a timeline to help readers understand a person’s experiences. The timeline supports both coarse-grained and fine-grained time, able to show key years as well as precise-date events.

    11.4 Question-Answering Assistance

    When a user asks “when did a person experience a certain type of event,” “who are a person’s family members,” or “do two people have a certain relationship,” the system can return structured answers based on the graph rather than just a passage of original text. Compared with pure text retrieval, graph answers are more stable and easier to explain in terms of their sources.

    11.5 Content-Production Assistance

    In scenarios such as editing, review, and knowledge organization, the graph can provide entity validation and relationship validation. For example, whether an event already has another record, whether a person has multiple versions, and whether a description lacks a source.

    12. Summary

    Starting from a person text such as “Elaine,” a scattered biographical description can be transformed into a computable person knowledge graph. The key is not to simply extract a few nouns, but to establish a complete modeling method: unique identifiers solve the entity-identification problem; attribute structures solve the person-description problem; relationship structures solve the person-association problem; event structures solve the time-change problem; source and version information solve the traceability problem; and quality and permissions solve the compliance problem.

    A truly valuable person knowledge graph is not about piling up information, but about making information searchable, explainable, verifiable, and maintainable. Once you lay solid foundations across the layers of entities, relationships, events, time, sources, and permissions, you can continuously extend a unified model to handle person profiles, family relationships, career histories, or public-activity data.