# Epilogue

_From conceptual model to running database_

## [](#_what_you_built)What you built

Starting from a real dataset, you:

*   stated its facts and constraints in plain sentences,
    
*   modeled places, companies, facilities, commodities and trade flows, choosing between alternatives at each step,
    
*   implemented the result directly in TypeQL, including a seven-role relation with an optional role and attributes of its own,
    
*   watched the database enforce the model on queries, on writes, at commit, and on changes to the model itself,
    
*   queried by type, by role, polymorphically and recursively,
    
*   queried and documented the model with the same language,
    
*   and worked around what the schema cannot express.
    

There was no separate logical schema: the ER diagrams and the TypeQL describe the same model, apart from the workarounds in Chapter Nine.

## [](#_where_next)Where next

*   Extend the model with more of the Trase dataset: ports of export, sustainability commitments, or ownership shares as an attribute of `ownership`.
    
*   Model a domain of your own. The [schema modeling guide](../../../guides/schema-modeling/index.md) covers naming, subtyping versus composition, and constraint design.
    
*   Take [TypeDB Academy](../../../academy/index.md) for a systematic course in TypeQL, including [modeling schemas](../../../academy/9-modeling-schemas/index.md).
    
*   Look up any statement or annotation in the [TypeQL reference](../../../typeql-reference/index.md).
    
*   Ask questions in the [TypeDB Discord](https://typedb.com/discord).
    

## [](#_references)References

*   Benedict, J. J., Biddle, H., Gollnow, F., Heilmayr, R., Mueller, C., Ribeiro, V., & Suavet, C. (2024). _Indonesia palm oil supply chain (2018–2022)_ (Version 1.2) \[Data set\]. Trase. [https://doi.org/10.48650/X83N-7M36](https://doi.org/10.48650/X83N-7M36)
    
*   Chen, P. P. (1976). The entity-relationship model: Toward a unified view of data. _ACM Transactions on Database Systems_, 1(1), 9–36.
    
*   Dorn, C., & Pribadi, H. (2024). TypeQL: A type-theoretic & polymorphic query language. _Proceedings of the ACM on Management of Data_, 2(2), 1–27. [https://doi.org/10.1145/3651611](https://doi.org/10.1145/3651611)
    
*   Embley, D. W., Liddle, S. W., & Pastor, O. (2011). Conceptual-model programming: A manifesto. In _Handbook of Conceptual Modeling_. Springer.
    
*   Guizzardi, G. (2005). _Ontological foundations for structural conceptual models_. PhD thesis, University of Twente.
    
*   Halpin, T., & Morgan, T. (2008). _Information modeling and relational databases_ (2nd ed.). Morgan Kaufmann.
    
*   Olivé, A. (2005). Conceptual schema-centric development: A grand challenge for information systems research. In _Advanced Information Systems Engineering (CAiSE 2005)_. Springer.
    
*   Send, J. (2026). Building executable entity-relationship models. _CEUR Workshop Proceedings_, Vol. 4279, 90–93. [https://ceur-ws.org/Vol-4279/Paper-158.pdf](https://ceur-ws.org/Vol-4279/Paper-158.pdf)
    

[Chapter Nine: Limits and patterns](../09-limits-and-patterns/index.md) [Use Cases](../../../use-cases/index.md)

[Edit on GitHub](https://github.com/typedb/typedb-docs/edit/3.x-development/learn-typedb/modules/ROOT/pages/conceptual-modeling/10-epilogue.adoc) Edit this page on GitHub.