axiothOntology Hub

了解什么是本体 / 第一部分:基础 · 第 2 课,共 16 课

暂无所选语言的译文,当前显示English内容。

Everything is a three-word sentence

Subject, predicate and object form a triple; triples together form a graph.

Ontologies and their data are written as very simple sentences. "Nabi is a cat." "Minji keeps Nabi." Each sentence has a subject, a predicate and an object, and is called a triple.

Select sentences to add them to the graph

Each sentence becomes one arrow. The same name always lands on the same node.

is aNabiCat

1 triples

Addresses instead of names

Many things are called "Nabi". So each position in a triple holds an IRI, an identifier shaped like a web address. https://example.org/nabi means the same thing wherever it is written. Because that is long, it is shortened with a prefix: ex:nabi.

The object can also be a value instead of another thing. "Nabi"@en is an English string and "3"^^xsd:integer is an integer. These values are called literals.

Triple = (subject IRI, predicate IRI, object IRI or literal). A set of triples is a graph of nodes and arrows. This way of writing data is RDF.

Why a graph and not a table

A table needs its columns decided in advance. In a graph, a new kind of fact is one more arrow. Graphs made in different places join naturally wherever they use the same IRI.

在规范中进一步阅读