What is the difference between triplestores and graph databases?

后端 未结 3 974
醉话见心
醉话见心 2021-01-31 10:20

There are triplestores (semantic databases), and there are general-purpose graph databases.

Both are based on the similar concepts of linking one \"item\" to another via

3条回答
  •  南旧
    南旧 (楼主)
    2021-01-31 10:40

    My 2 cents.

    Neo4j comes under the category of Property Graph. They support directed relations and each relation has only two nodes; the start node and end node. The nodes and relationships can store arbitrary data in the form of key-value pairs. They however can't support 3-ary relations. i.e. You can't have one edge connecting more than two nodes i.e a kind of hyperdege. You can however emulate a 3-ary relations in property graphs by creating join nodes. You can see how to implement this in neo4j here.

    Triplestores have standardized query language in the form of SPARQL but no standard exists yet for querying other graph databases. RDF is the standard for importing/exporting from triplestores.

提交回复
热议问题