Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DatabaseTriple.cs
4
6{
10 [CollectionName("GraphStoreTriples")]
11 [TypeName(TypeNameSerialization.None)]
12 [Index("GraphKey", "S", "P", "O")]
13 [Index("GraphKey", "S", "O", "P")]
14 [Index("GraphKey", "P", "S", "O")]
15 [Index("GraphKey", "O", "S", "P")]
16 [Index("GraphKey", "P", "O", "S")]
17 [Index("GraphKey", "O", "P", "S")]
19 {
24 {
25 }
26
30 [ObjectId]
31 public string ObjectId { get; set; }
32
36 public long GraphKey { get; set; }
37
41 public SemanticElement S { get; set; }
42
46 public SemanticElement P { get; set; }
47
51 public SemanticElement O { get; set; }
52
56 public ISemanticElement Subject => this.S;
57
62
66 public ISemanticElement Object => this.O;
67
73 public ISemanticElement this[int Index]
74 {
75 get
76 {
77 switch (Index)
78 {
79 case 0: return this.S;
80 case 1: return this.P;
81 case 2: return this.O;
82 default: return null;
83 }
84 }
85 }
86 }
87}
Abstract base class for semantic elements.
Contains a reference to a graph in the graph store.
DatabaseTriple()
Contains a reference to a graph in the graph store.
Interface for semantic nodes.
Interface for semantic triples.
TypeNameSerialization
How the type name should be serialized.