Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IoTSensorData.cs
1using System;
4
6{
10 public class IoTSensorData : IOntology
11 {
16 {
17 }
18
22 public string OntologyNamespace => Namespace;
23
27 public string OntologyPrefix => "sd";
28
32 public bool ShowByDefault => true;
33
39 public Grade Supports(string Uri)
40 {
41 return Uri.StartsWith(Namespace) ? Grade.Ok : Grade.NotAtAll;
42 }
43
47 public const string Namespace = "urn:nf:iot:sd:1.0:";
48
52 public const string UnitNamespace = Namespace + "unit:";
53
57 public static readonly Uri timestamp = new Uri(Namespace + "timestamp");
58
62 public static readonly Uri timestamps = new Uri(Namespace + "timestamps");
63
67 public static readonly Uri fields = new Uri(Namespace + "fields");
68
72 public static readonly Uri errors = new Uri(Namespace + "errros");
73
77 public static readonly Uri qos = new Uri(Namespace + "qos");
78
82 public static readonly Uri fieldType = new Uri(Namespace + "fieldType");
83
87 public static readonly Uri value = new Uri(Namespace + "value");
88
89 }
90}
string OntologyPrefix
Well-known ontology prefix.
static readonly Uri fieldType
urn:nf:iot:sd:1.0:fieldType
static readonly Uri timestamp
urn:nf:iot:sd:1.0:timestamp
static readonly Uri timestamps
urn:nf:iot:sd:1.0:timestamps
static readonly Uri value
urn:nf:iot:concentrator:1.0:value
static readonly Uri errors
urn:nf:iot:sd:1.0:errros
static readonly Uri qos
urn:nf:iot:sd:1.0:qos
static readonly Uri fields
urn:nf:iot:sd:1.0:fields
bool ShowByDefault
If the ontology should be shown by default in query interfaces.
Grade Supports(string Uri)
If the interface understands objects such as Uri .
const string Namespace
urn:nf:iot:sd:1.0:
const string UnitNamespace
urn:nf:iot:sd:1.0:unit:
Interface for semantic ontologies.
Definition: IOntology.cs:9
Grade
Grade enumeration
Definition: Grade.cs:7