Structured Person Entity Data Modeling and Knowledge Graph Practices

    This article presents a practical approach to managing person entity data for content platforms, encyclopedia-style products, and film and TV information systems. It covers atomic attribute schema design, entity disambiguation and alignment, timeline modeling for works and roles, and engineering practices for storage, incremental updates, retrieval, and quality monitoring. Readers will learn how to turn unstructured person descriptions into standardized, linkable data that supports search, aggregation, recommendation, and knowledge graph applications.

    1. Background: Why Person Entity Data Is Hard to Manage

    In content platforms, encyclopedia-style products, and film and TV information systems, person entity data management is a typical problem that is easy to underestimate. An actor’s profile is often scattered across multiple sources: basic information (name, gender, nationality, birthplace, birth date), physical characteristics (height), astrological attributes (zodiac sign), professional history (films and TV series with years), aliases (foreign names, abbreviations), and more. This information has several notable characteristics:

    1. Multi-source heterogeneity: Information about the same person comes from different data sources with different formats, field names, and granularity. For example, a birthplace may be recorded as “Phoenix, Arizona, United States” or split into three fields: “country: US, state: Arizona, city: Phoenix.”
    2. Naming ambiguity: A person may have a legal name, a foreign name, and abbreviated aliases (such as Jean Claude Leuyer and JC Leuyer). Different sources may use different names, making entity alignment difficult.
    3. Dynamic updates: Work lists are continuously appended over time. For example, an actor may appear in a series in 2004 and have films released between 2015 and 2025. The data must support incremental updates and time-based sorting.

    If this information is stored directly as plain text, upper-layer capabilities such as retrieval, aggregation, and recommendation cannot be built effectively. Therefore, the first step is to establish a standardized structured model.

    2. Entity Attribute Modeling: From Text to Fields

    Using a typical person profile as an example, we can abstract the following field design:

    1. {
    2. "entity_type": "person",
    3. "name_zh": "让·克劳德·卢耶",
    4. "name_en": "Jean Claude Leuyer",
    5. "aliases": ["JC Leuyer"],
    6. "gender": "male",
    7. "nationality": "US",
    8. "birth_place": {
    9. "country": "US",
    10. "state": "Arizona",
    11. "city": "Phoenix"
    12. },
    13. "birth_date": "1970-11-30",
    14. "height_cm": 191,
    15. "zodiac": "sagittarius",
    16. "occupations": ["actor"]
    17. }

    Several practical principles are worth following during modeling:

    • Atomicity: A location should not be stored as a single string. Instead, it should be split into country, state or province, and city levels so that aggregation can be performed at any level (for example, “count actors born in the United States”).
    • Standardized codes: Use ISO country codes for nationality and ISO 8601 format for dates (such as 1970-11-30), avoiding multiple coexisting formats such as “November 30, 1970” and “11/30/1970.”
    • Convergence of enumerable fields: Define controlled vocabularies for fields such as gender, occupation, and zodiac sign to prevent dirty data caused by free text.
    • Alias lists: Aliases should not be a single field but an array, with an inverted index built during retrieval so that the same entity can be matched by any name.

    3. Entity Disambiguation and Alignment

    The core challenge of multi-source data fusion is determining whether two records refer to the same person. Common strategies include:

    1. Exact matching first: The combination of legal name and birth date is unique in most scenarios and can serve as a strong matching key.
    2. Similarity as a fallback: For name spelling differences (such as abbreviations and transliteration differences), string similarity can be calculated (edit distance, pinyin or transliteration normalization), combined with weighted auxiliary features such as birthplace and occupation.
    3. Human review queue: Candidate pairs whose confidence falls in the middle range enter a manual review process. Review results are written back to the training set to continuously improve the automatic matching model.

    A simplified matching score example:

    1. def match_score(a, b):
    2. score = 0
    3. if a["birth_date"] == b["birth_date"]:
    4. score += 0.5
    5. score += 0.3 * name_similarity(a["name_en"], b["name_en"])
    6. if a["birth_place"]["country"] == b["birth_place"]["country"]:
    7. score += 0.2
    8. return score # > 0.9 auto-merge, 0.6–0.9 manual review

    4. Timeline Modeling for Work History

    The relationship between a person and a work is a typical “entity–relationship–entity” structure. An acted_in relationship can be established between an actor and a film or TV series, carrying attributes such as release year and work type:

    1. {
    2. "subject": "person:1001",
    3. "predicate": "acted_in",
    4. "object": "work:2015_a",
    5. "properties": { "year": 2015, "role_type": "film" }
    6. }

    Once work history is organized as a timeline, capabilities such as filtering by year, counting output by decade, and querying works in which two people appeared together (relationship path queries) can be naturally supported. This kind of graph structure is a typical application of knowledge graphs: people, works, and companies (producers can be anonymized into a neutral category) serve as nodes, while acting, directing, and writing serve as edges, forming a queryable and inferable semantic network.

    5. Engineering Implementation Recommendations

    1. Layered storage: Store structured attributes in a relational database or document database; store relationship networks in a graph database; store raw crawled text in object storage for archiving, traceability, and recomputation.
    2. Incremental updates and versioning: Work lists are continuously appended. Retain change history for entities (for example, through timestamped versions or event logs) to support rollback and auditing.
    3. Retrieval optimization: Build multi-field full-text indexes on names (including aliases); build filter indexes on birth date, nationality, and other fields to support combined queries.
    4. Quality monitoring: Configure metrics such as field completeness, format validity, and entity conflict count, and connect them to alerts so that intervention can occur when data quality declines.

    6. Conclusion

    The essence of person entity data management is to transform unstructured descriptive text into atomic, standardized, and linkable structured data, and then organize it through entity alignment and graphs to support upper-layer applications such as retrieval, aggregation, and recommendation. By mastering key steps including attribute modeling, disambiguation and alignment, timeline relationship modeling, and layered storage, you can build a reliable and evolvable person profile management system. The same approach also applies to other entity types such as organizations, locations, and events.