角色模型_角色模型中的链接事实类型

2024-03-02 06:30

本文主要是介绍角色模型_角色模型中的链接事实类型,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

角色模型

To understand Link Fact Types, let us look at an example of where and how they are used.

要了解链接事实类型,让我们看一个在何处以及如何使用它们的示例。

Imagine the Property Graph Schema below, and where you are creating a conceptual model for a graph database that stores information about parts stored in warehouses for an inventory software solution:

想象一下下面的“属性图模式”,您将在其中为图数据库创建概念模型,该模型数据库存储有关库存软件解决方案的仓库中存储的零件的信息:

Each StockedItem represents a part is stored in a bin in a warehouse. Notice the named edges, is for, is in and is in. A distinguishing feature of property graph schemas is the named edge. So we can speak of the ‘is for’ edge, and the relationship between a StockedItem and the Part it represents as StockedItem is for Part.

每个StockedItem代表一个零件,该零件存储在仓库的垃圾箱中。 请注意,命名的边为for位于 。 属性图模式的一个显着特征是命名边。 因此,我们可以说“是”边缘,并且StockedItem和它表示为StockedItem的零件之间的关系就是Part

We understand what we are talking about if we picture a real world scenario, where a storeman is reaching for a part in a bin in a warehouse.

如果我们了解一个现实世界的场景,即当一名仓库保管员正在伸手去拿仓库中的仓库中的零件时,我们就会明白我们在说什么。

Image for post
Image via 图片由 Dreamstime.comDreamstime.com under license to Victor Morgante. ID 102810076 © Seventyfourimages | Dreamstime.com 授权给Victor Morgante使用 。 ID 102810076©Seventyfourimages | Dreamstime.com

Now examine the Object-Role Model below, also representing the conceptual model of parts in bins in warehouses:

现在检查下面的对象角色模型,该对象角色模型还表示仓库中垃圾箱中零件的概念模型:

Image for post
An Object-Role Model
对象角色模型

Note that, on the face of it, each StockedItem does not have relationships with Fact Type Readings that read, StockedItem is for Part, StockedItem is in Bin and Stocked Item is in Warehouse. We say, “on the face of it”, because in this view of the ORM model we are not showing the Link Fact Types that are implied for each Objectified Fact Type, and where StockedItem is an Objectified Fact Type.

请注意,从表面上看,每个StockedItem与读取的事实类型读数都没有关系, StockedItem用于部件StockedItem在Bin中Stocked Item在Warehouse中 。 我们说“表面上” ,因为在ORM模型的此视图中,我们没有显示每个对象化事实类型隐含的链接事实类型,而StockedItem是对象化事实类型。

Part is in Bin in Warehouse is a Fact Type in ORM, and when objectified, we can think of the fact type/relationship as if it were an ostensible node in our Property Graph Schema.

Part in Warehouse中的Bin是ORM中的事实类型,当被客观化时,我们可以认为事实类型/关系就像它是我们的“属性图模式”中的表面节点。

Let us now look at the implied Link Fact Types for StockedItem in our Object-Role Model. The Link Fact Types are the fact types with a dashed outline:

现在,让我们看看对象角色模型中StockedItem的隐式链接事实类型。 链接事实类型是带有虚线轮廓的事实类型:

Image for post
Object-Role Model with Link Fact Types
具有链接事实类型的对象角色模型

Now we do have Fact Type Readings that read, StockedItem is for Part, StockedItem is in Bin and Stocked Item is in Warehouse.

现在,我们的事实类型读数为: StockedItem用于零件StockedItem位于Bin中Stocked 项目位于Warehouse中

Link Fact Types are as simple as that. For each Objectified-Fact Type there is a set of implied fact types joining to the respective model elements that play roles in the Objectified-Fact Type.

链接事实类型就这么简单。 对于每个“物化事实类型”,都有一组隐含的事实类型,它们连接到在“物化事实类型”中起作用的各个模型元素。

The beauty of Object-Role Modeling, of course, is that once you have created the ORM diagram, you can convert it to a Property Graph Schema or an Entity Relationship Diagram, as below:

当然,对象角色建模的魅力在于,一旦创建了ORM图,就可以将其转换为属性图模式 实体关系图 ,如下所示:

Image for post
An Entity Relationship Diagram
实体关系图

Note how the predicate parts ‘is for’, ‘is in’ and ‘is in’, for their respective relationships carry over to our Entity Relationship Diagram as well.

请注意谓词部分“是为”,“在”和“在”的方式,因为它们各自的关系也会延续到我们的实体关系图中。

As a bonus to Object-Role Modeling, you get to capture the predicated reading ‘Part is in Bin in Warehouse’ also, further adding to the semantics of the conceptual model you are creating.

作为对象角色建模的一项奖励,您还可以捕获谓词“零件在仓库中的仓库中”,这进一步增加了所创建概念模型的语义。

Thank you for reading. I hope this has been helpful in understanding Link Fact Types and the role they play in Object-Role Modeling.

感谢您的阅读。 我希望这有助于理解链接事实类型及其在对象角色建模中的作用。

Picture Credit: ID 102810076 © Seventyfourimages | Dreamstime.com

图片来源:ID 102810076©Seventyfourimages | Dreamstime.com

=======================================

======================================

翻译自: https://towardsdatascience.com/link-fact-types-in-object-role-modeling-3c68c15eec92

角色模型


http://www.taodudu.cc/news/show-8478169.html

相关文章:

  • Technology Strategy Pattern 学习笔记5 -Creating the Strategy-Department Context
  • Day1:【英文时评】太卷了?今年流行“逆向考研”(完结)
  • MATLAB1:运行基础与入门练习
  • EDA设计:最大公约数
  • 2019年 蓝桥杯A组部分题解
  • 人生定律大全
  • esp32 操作DS1307时钟芯片
  • 杀人游戏
  • 行业下滑,工作不稳,Java怎么了?
  • go基础语法结束篇 ——函数与方法
  • 2019年第十届蓝桥杯国赛总结(JavaA组)
  • IDEA中如何读取Apollo配置并实现自动刷新
  • 8.1 问题 D: 【递归入门】n皇后 问题(原始的8皇后问题)
  • 13.无序集合
  • 解决IDEA创建springboot项目时报错:Error:(3,32) java: 无法访问org.springframework.boot.SpringApplication
  • 搜索与回溯:N皇后问题
  • 2019蓝桥杯Java决赛题答案_如何评价2019年第十届蓝桥杯决赛?
  • Day13——滑动窗口最大值前 K 个高频元素(未解决)
  • python中dict里的fromkeys用法
  • FocusNetv2: Imbalanced large and small organ segmentation with adversarial shape constraint for head
  • 观察者模式简谈
  • postgresql中的order by、limit、offset偏移
  • 泛读了一些OAR相关论文
  • 《极简生活》
  • 好文摘抄:极简生活:一来,一去
  • 极简生活|可以慢慢变富的8个习惯
  • 极简生活三条建议,妹子给的
  • 判断某年是否是闰年
  • php哪些年份是闰年,php判断闰年的三种方法
  • 判断某一年是否是闰年
  • 这篇关于角色模型_角色模型中的链接事实类型的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



    http://www.chinasem.cn/article/765213

    相关文章

    Python中Json和其他类型相互转换的实现示例

    《Python中Json和其他类型相互转换的实现示例》本文介绍了在Python中使用json模块实现json数据与dict、object之间的高效转换,包括loads(),load(),dumps()... 项目中经常会用到json格式转为object对象、dict字典格式等。在此做个记录,方便后续用到该方

    python中的显式声明类型参数使用方式

    《python中的显式声明类型参数使用方式》文章探讨了Python3.10+版本中类型注解的使用,指出FastAPI官方示例强调显式声明参数类型,通过|操作符替代Union/Optional,可提升代... 目录背景python函数显式声明的类型汇总基本类型集合类型Optional and Union(py

    MySQL中查询和展示LONGBLOB类型数据的技巧总结

    《MySQL中查询和展示LONGBLOB类型数据的技巧总结》在MySQL中LONGBLOB是一种二进制大对象(BLOB)数据类型,用于存储大量的二进制数据,:本文主要介绍MySQL中查询和展示LO... 目录前言1. 查询 LONGBLOB 数据的大小2. 查询并展示 LONGBLOB 数据2.1 转换为十

    MyBatis的xml中字符串类型判空与非字符串类型判空处理方式(最新整理)

    《MyBatis的xml中字符串类型判空与非字符串类型判空处理方式(最新整理)》本文给大家介绍MyBatis的xml中字符串类型判空与非字符串类型判空处理方式,本文给大家介绍的非常详细,对大家的学习或... 目录完整 Hutool 写法版本对比优化为什么status变成Long?为什么 price 没事?怎

    C#之枚举类型与随机数详解

    《C#之枚举类型与随机数详解》文章讲解了枚举类型的定义与使用方法,包括在main外部声明枚举,用于表示游戏状态和周几状态,枚举值默认从0开始递增,也可手动设置初始值以生成随机数... 目录枚举类型1.定义枚举类型(main外)2.使用生成随机数总结枚举类型1.定义枚举类型(main外)enum 类型名字

    Python lambda函数(匿名函数)、参数类型与递归全解析

    《Pythonlambda函数(匿名函数)、参数类型与递归全解析》本文详解Python中lambda匿名函数、灵活参数类型和递归函数三大进阶特性,分别介绍其定义、应用场景及注意事项,助力编写简洁高效... 目录一、lambda 匿名函数:简洁的单行函数1. lambda 的定义与基本用法2. lambda

    C语言自定义类型之联合和枚举解读

    《C语言自定义类型之联合和枚举解读》联合体共享内存,大小由最大成员决定,遵循对齐规则;枚举类型列举可能值,提升可读性和类型安全性,两者在C语言中用于优化内存和程序效率... 目录一、联合体1.1 联合体类型的声明1.2 联合体的特点1.2.1 特点11.2.2 特点21.2.3 特点31.3 联合体的大小1

    MySQL 索引简介及常见的索引类型有哪些

    《MySQL索引简介及常见的索引类型有哪些》MySQL索引是加速数据检索的特殊结构,用于存储列值与位置信息,常见的索引类型包括:主键索引、唯一索引、普通索引、复合索引、全文索引和空间索引等,本文介绍... 目录什么是 mysql 的索引?常见的索引类型有哪些?总结性回答详细解释1. MySQL 索引的概念2

    Java获取当前时间String类型和Date类型方式

    《Java获取当前时间String类型和Date类型方式》:本文主要介绍Java获取当前时间String类型和Date类型方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,... 目录Java获取当前时间String和Date类型String类型和Date类型输出结果总结Java获取

    SpringBoot改造MCP服务器的详细说明(StreamableHTTP 类型)

    《SpringBoot改造MCP服务器的详细说明(StreamableHTTP类型)》本文介绍了SpringBoot如何实现MCPStreamableHTTP服务器,并且使用CherryStudio... 目录SpringBoot改造MCP服务器(StreamableHTTP)1 项目说明2 使用说明2.1