跳到主要内容

RDF

triplestore vs graph

<http://example.org/person/1> :hasName "Bob".
<http://example.org/person/1> foaf:knows <http://example.org/person/2>.
<http://example.org/person/2> :hasName "Susan".
(a:Person {name: "Bob"})-[:KNOWS]->(b:Person {name: "Susan"})

Notes

  • rdf 是图数据模型
    • 规范化的描述信息的语义和含义
    • 表示元数据
  • rdf 模型 组成
    • eva 模型
    • triple 三元素
      • subject - entity - 实体
      • predicate - attribute - 属性
      • object - value - 值
    • 每个 triple 都有一个唯一标示符 - uri
    • 表述图中的链接
  • rdfs - rdf schema
    • adds
      • 资源、literal、class、datatype 概念
      • 关系 - subClassOf、subPropertyOf、domain、range
    • 提供定义
      • classes 、 properties
      • hierachies of classes and properties
    • 包含 entailment rules - 基于现有信息推算