简体   繁体   English

基于图的数据库如何是非关系型的?

[英]How is Graph based database non relational?

I was going through definition of Graph based database and found that it has entities having relationship with each other.我正在查看基于图形的数据库的定义,发现它具有相互关联的实体。 Now, I am a bit confused that why Graph based database falls into category of Non-relational database whereas it has relation among entities.现在,我有点困惑,为什么基于图的数据库属于非关系型数据库,而它在实体之间存在关系。

Thanks in advance.提前致谢。

I think your confusion is probably because you think "relational" means "relationships."我认为您的困惑可能是因为您认为“关系”意味着“关系”。 It seems most developers these days believe this.现在似乎大多数开发人员都相信这一点。

In SQL, we commonly call entities "tables" but in the original computer science that described relational databases, they were called "relations" after the term from mathematics.在 SQL 中,我们通常将实体称为“表”,但在描述关系数据库的原始计算机科学中,它们在数学术语后被称为“关系”。 In short, a table has a heading, which has a finite number of named columns, and it has a set of rows, where each row has the same columns as the heading.简而言之,一个表有一个标题,它有有限数量的命名列,它有一组行,其中每一行都有与标题相同的列。 This is a relation, and its analogy is to a table, not a relation ship between tables.这是一个关系,它的比喻是一个表,而不是表之间的关系的船

The relational model includes an algebra of operations you can do on relations, and each operation yields a new relation.关系模型包括您可以对关系进行的运算代数,并且每个运算都会产生一个新关系。 These include selection, projection, rename, join, and set operations like union/intersect/difference.这些包括选择、投影、重命名、连接和设置操作,如并集/相交/差异。

It also defines a set of criteria for modeling data in a set of relations, such that you avoid update anomalies, ie you won't have data disagree with other data in the same database.它还为一组关系中的数据建模定义了一组标准,这样您就可以避免更新异常,即您不会有数据与同一数据库中的其他数据不一致。 These are rules of normalization.这些是规范化的规则。

Graph databases don't necessarily represent relations, and they don't necessarily support relational operations in the same way.图数据库不一定表示关系,也不一定以相同的方式支持关系操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM