Difference between revisions of "Triple"

From BITPlan Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
e.g. be represented as:
 
e.g. be represented as:
 
<graphviz format='svg'>
 
<graphviz format='svg'>
  digraph {
+
  digraph dadlovesmum {
 
   rankdir="TB";
 
   rankdir="TB";
 
     "dad" -> "mum" [label="loves"];
 
     "dad" -> "mum" [label="loves"];
Line 33: Line 33:
 
Or in the abstract notation each Triple as:
 
Or in the abstract notation each Triple as:
 
<graphviz format='svg'>
 
<graphviz format='svg'>
  digraph {
+
  digraph triples {
   rankdir="TB";
+
   rankdir="LR";
 
     "subject" -> "object" [label="predicate"];
 
     "subject" -> "object" [label="predicate"];
 
   }
 
   }
 
</graphviz>
 
</graphviz>
 +
= Links =
 +
{{Link|target=The Genesis of WikiData}}
 +
[[Category:frontend]]
 +
[[Category:SiGNaL]]
 +
[[Category:DBIS-VL]]

Latest revision as of 16:27, 16 February 2023

The term "Triple" is being used in Semantic Web Technology. The english wikipedia article on "Triple" describes a triple as The atomic data entity in the Resource Description Framework

Three part structure

A Triple consists of

  1. subject
  2. predicate
  3. object

Examples for triples

Here are some triples:

dad loves mum
kid loves mum
kid loves dad
dad hates sister_in_law
sister_in_law likes mum
kid likes granny

Natural graph representation of triples

Each Triple of subject - predicate - object can be presented as a graph. The above triples would e.g. be represented as:

Or in the abstract notation each Triple as:

Links

The Genesis of WikiData