allegrograph 和五列 mysql 表有什么区别?

发布于 2024-12-25 06:13:58 字数 116 浏览 0 评论 0原文

Allegrograph 基本上是一个 RDF 三元组(实际上是五个字段)存储。那为什么我们不能创建一个有五列的 MySQL 表并将三元组存储在其中呢? ?

AG相对于这样的MySql表有什么特点呢?

Allegrograph is basically a RDF triple(actually five field) store. Then why can't we create a MySQL table with five columns and store the triples in them. ?

What features does AG have over such MySql table ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

南街九尾狐 2025-01-01 06:13:58

简单地说,它支持 SPARQL

SPARQL w3.org/TR/rdf-sparql-query/" rel="nofollow">SPARQL 是 RDF 的查询语言,它与 SQL 的语义有很大不同,有工具可以将 SPARQL 转换为 SQL 查询,但性能较差往往是非常 贫穷的。另外,SPARQL 规范还有很多功能(特别是内置的函数),这在 MySQL 中没有等效项,因此必须通过存储过程/用户定义的函数进行模仿或在代码中完成。

评估 SPARQL 与评估 SQL 有很大不同,因为 SPARQL 更依赖于大量复杂的联接,SPARQL 存储使用的优化器虽然与 SQL 优化器的工作原理相同,但旨在处理与传统 RDBMS 截然不同的查询类型通常会处理。

一般来说,五列表非常简单,因为每一列都包含一个复杂的项目,该项目有多个部分,并且使用多个表进行存储会更好。此外,与更规范化的表设计相比,单表方法将导致大量存储需求。

如果您关心的只是在 SQL 数据库中保存和加载 RDF 三元组,那么简单的单表方法可能适合您。如果您确实想做一些有用的事情,那么您需要更复杂的 SQL 数据库模式或适当的 RDF 存储(例如 AllegroGraph)

Simply put it supports SPARQL

SPARQL is the query language for RDF and it has quite difference semantics to SQL, there are tools to convert SPARQL into SQL queries but performance is often very poor. Plus there are lots of features of the SPARQL specification (esp the built-in functions) which have no equivalent in MySQL and so would either have to be aped by stored procedures/user defined functions or done in code.

Evaluating SPARQL is quite different to evaluating SQL because SPARQL is far more reliant on lots of complex joins, SPARQL stores use optimizers that while work on the same principles as SQL optimizers but are designed to cope with very different kinds of queries to those a traditional RDBMS would usually handle.

In general a five column table is very naive because each column contains a complex item that has multiple parts to it and would be better stored using multiple tables. Also a single table approach will lead to massive storage requirements over a more normalized table design.

If all you care about is saving and loading RDF triples to/from an SQL database then a naive single table approach may be fine for you. If you actually want to do something useful then you need a more complex SQL database schema or a proper RDF store like AllegroGraph

只为守护你 2025-01-01 06:13:58

AllegroGraph 为符合 ACID 的 RDF 图形数据库设定了行业标准
并针对 OLTP、推理和商业智能应用程序进行了优化
利用语义技术。

因此,如果您决定创建一个五列表来模拟 RDF 图
数据库,你会错过什么?

  • 正如其他响应中所述,您将不会获得 SPARQL (查询
    语义世界的语言)或创建您自己的 SPARQL 的能力
    扩展。
  • mySQL 针对高度规范化的数据库模式进行了优化,而不是单一的
    表大表和每个查询多个自联接。
  • AllegroGraph 支持多种服务器端编程语言
    (Javascript、Prolog、Lisp)都针对此类存储进行了优化。
  • AllegroGraph 支持 RDF 数据、地理扩展、社交网络
    在同一数据集中同时进行分析扩展。
  • AllegroGraph 支持对 RDF 图形数据集 (RDFS++) 进行推理
  • AllegroGraph 支持三级安全性。
  • AllegroGraph 支持 Java 语义库 Jena 和 Sesame,并且
    Python、C#、Clojure、Lisp、Ruby、REST 接口
  • 与任何企业数据库一样,AllegroGraph 还支持在线备份、
    复制、热备份、时间点恢复

AllegroGraph sets the industry standard for ACID compliant RDF graph databases
and is optimized for OLTP, reasoning and business intelligence applications
that utilize semantic technology.

So if you decide to create a single five column table to simulate an RDF graph
database, what will you be missing?

  • As described in the other response, you won't get SPARQL (the query
    language of the semantic world) or the ability to create your own SPARQL
    extensions.
  • mySQL is optimized for highly normalized database schemas, not a single
    table large table and multiple self-joins per query.
  • AllegroGraph supports several server side programming languages
    (Javascript, Prolog, Lisp) that are all optimized for this type of store.
  • AllegroGraph supports RDF data, and Geo extensions, Social Network
    Analysis extension all at the same time in the same data set.
  • AllegroGraph supports reasoning over RDF graph data sets (RDFS++)
  • AllegroGraph supports triple level security.
  • AllegroGraph supports the Java semantic libraries Jena and Sesame, and
    Python, C#, Clojure, Lisp, Ruby, REST interface
  • Like any enterprise database, AllegroGraph also supports online backups,
    replication, warm standby, point-in-time restore
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文