Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DatabaseTriple.cs
1
using
Waher.Content.Semantic
;
2
using
Waher.Content.Semantic.Model
;
3
using
Waher.Persistence.Attributes
;
4
5
namespace
Waher.Script.Persistence.SPARQL.Sources
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"
)]
18
public
class
DatabaseTriple
:
ISemanticTriple
19
{
23
public
DatabaseTriple
()
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
61
public
ISemanticElement
Predicate
=> this.
P
;
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
}
Waher.Content.Semantic.Model.SemanticElement
Abstract base class for semantic elements.
Definition:
SemanticElement.cs:15
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple
Contains a reference to a graph in the graph store.
Definition:
DatabaseTriple.cs:19
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.Subject
ISemanticElement Subject
Subject element
Definition:
DatabaseTriple.cs:56
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.O
SemanticElement O
Object element
Definition:
DatabaseTriple.cs:51
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.S
SemanticElement S
Subject element
Definition:
DatabaseTriple.cs:41
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.Object
ISemanticElement Object
Object element
Definition:
DatabaseTriple.cs:66
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.DatabaseTriple
DatabaseTriple()
Contains a reference to a graph in the graph store.
Definition:
DatabaseTriple.cs:23
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.Predicate
ISemanticElement Predicate
Predicate element
Definition:
DatabaseTriple.cs:61
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.GraphKey
long GraphKey
Graph key
Definition:
DatabaseTriple.cs:36
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.P
SemanticElement P
Predicate element
Definition:
DatabaseTriple.cs:46
Waher.Script.Persistence.SPARQL.Sources.DatabaseTriple.ObjectId
string ObjectId
Object ID
Definition:
DatabaseTriple.cs:31
Waher.Content.Semantic.ISemanticElement
Interface for semantic nodes.
Definition:
ISemanticElement.cs:10
Waher.Content.Semantic.ISemanticTriple
Interface for semantic triples.
Definition:
ISemanticTriple.cs:7
Waher.Content.Semantic.Model
Definition:
BlankNode.cs:2
Waher.Content.Semantic
Definition:
BNode.cs:9
Waher.Persistence.Attributes
Definition:
ArchivingTimeAttribute.cs:4
Waher.Persistence.Attributes.TypeNameSerialization
TypeNameSerialization
How the type name should be serialized.
Definition:
TypeNameAttribute.cs:9
Waher.Script.Persistence.SPARQL.Sources
Definition:
DatabaseTriple.cs:6
IoTGateway
Script
Waher.Script.Persistence
SPARQL
Sources
DatabaseTriple.cs
Generated by
1.9.5