3using System.Threading.Tasks;
19 private readonly
INode node;
43 await
this.node.GetTypeNameAsync(
Language));
51 if (!
string.IsNullOrEmpty(this.node.Partition))
54 if (!(this.node.Parent is
null))
65 IEnumerable<DisplayableParameters.Parameter> Parameters = await this.node.GetDisplayableParametersAsync(
Language, Caller);
68 if (!(Parameters is
null))
70 foreach (DisplayableParameters.Parameter P in Parameters)
73 Items.
Add(DisplayableParameter);
86 IEnumerable<DisplayableParameters.Message> NodeMessages = await this.node.GetMessagesAsync(Caller);
87 if (!(NodeMessages is
null))
89 foreach (DisplayableParameters.Message M in NodeMessages)
97 if (!
string.IsNullOrEmpty(M.EventId))
107 if (this.node.HasChildren)
116 if (this.node.HasCommands)
118 IEnumerable<ICommand> NodeCommands = await this.node.Commands;
120 if (!(NodeCommands is
null))
122 foreach (
ICommand Command
in NodeCommands)
124 if (!await Command.CanExecuteAsync(Caller))
138 AddOptionalStringLiteral(Result, CommandUriNode,
140 await Command.GetSuccessStringAsync(
Language));
142 AddOptionalStringLiteral(Result, CommandUriNode,
144 await Command.GetFailureStringAsync(
Language));
146 AddOptionalStringLiteral(Result, CommandUriNode,
148 await Command.GetConfirmationStringAsync(
Language));
150 Items.
Add(CommandUriNode);
161 if (this.node.IsReadable &&
this.node is
ISensor)
188 if (this.node.IsControllable &&
this.node is
IActuator Actuator)
203 if (!
string.IsNullOrEmpty(Value))
204 Result.
Add(Subject, PredicateUri, Value);
211 Operations.
Add(Operation);
213 Result.
Add(Operation, Predicate, Graph);
override void Add(ISemanticTriple Triple)
Adds a triple to the cube.
void AddContainer(ISemanticElement Subject, Uri Type, Uri Predicate, params object[] Items)
Adds a linked list of items to the graph.
Set of semantic elements.
static ISemanticElement Encapsulate(object Value)
Encapsulates an object as a semantic element.
Dublin Core Terms Ontology
static readonly Uri updated
http://purl.org/dc/terms/updated
static readonly Uri Bag
URI representing rdf:Bag, an unordered container.
static readonly Uri Seq
URI representing rdf:Seq, an ordered container.
static readonly Uri type
URI representing rdf:type
static readonly Uri label
http://www.w3.org/2000/01/rdf-schema#label
A chunked list is a linked list of chunks of objects of type T .
void Clear()
Clears the collection.
void Add(T Item)
Adds an item to the collection.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
string Code
Language code.
Abstract base class for control parameters.
string Description
Description for parameter.
string Name
Parameter Name
Tokens available in request.
IoT Concentrator Ontology
static readonly Uri body
urn:nf:iot:concentrator:1.0:body
static readonly Uri failure
urn:nf:iot:concentrator:1.0:failure
static readonly Uri commandType
urn:nf:iot:concentrator:1.0:commandType
static readonly Uri messageType
urn:nf:iot:concentrator:1.0:messageType
static readonly Uri read
urn:nf:iot:concentrator:1.0:read
static readonly Uri isControllable
urn:nf:iot:concentrator:1.0:isControllable
static readonly Uri commands
urn:nf:iot:concentrator:1.0:commands
static readonly Uri Command
urn:nf:iot:concentrator:1.0:Command
static readonly Uri logId
urn:nf:iot:concentrator:1.0:logId
static readonly Uri commandId
urn:nf:iot:concentrator:1.0:commandId
static readonly Uri hasCommands
urn:nf:iot:concentrator:1.0:hasCommands
static readonly Uri localId
urn:nf:iot:concentrator:1.0:localId
static readonly Uri messages
urn:nf:iot:concentrator:1.0:messages
static readonly Uri edit
urn:nf:iot:concentrator:1.0:edit
static readonly Uri sourceId
urn:nf:iot:concentrator:1.0:sourceId
static readonly Uri state
urn:nf:iot:concentrator:1.0:state
static readonly Uri Node
urn:nf:iot:concentrator:1.0:Node
static readonly Uri parameterId
urn:nf:iot:concentrator:1.0:parameterId
static readonly Uri childNodes
urn:nf:iot:concentrator:1.0:childNodes
static readonly Uri typeName
urn:nf:iot:concentrator:1.0:typeName
static readonly Uri sortKey
urn:nf:iot:concentrator:1.0:sortKey
static readonly Uri control
urn:nf:iot:concentrator:1.0:control
static readonly Uri nodeState
urn:nf:iot:concentrator:1.0:nodeState
static readonly Uri success
urn:nf:iot:concentrator:1.0:success
static readonly Uri hasChildSources
urn:nf:iot:concentrator:1.0:hasChildSources
static readonly Uri isReadable
urn:nf:iot:concentrator:1.0:isReadable
static readonly Uri operations
urn:nf:iot:concentrator:1.0:operations
static readonly Uri sortCategory
urn:nf:iot:concentrator:1.0:sortCategory
static readonly Uri eventId
urn:nf:iot:concentrator:1.0:eventId
static readonly Uri dispParam
urn:nf:iot:concentrator:1.0:dispParam
static readonly Uri confirmation
urn:nf:iot:concentrator:1.0:confirmation
static readonly Uri partition
urn:nf:iot:concentrator:1.0:partition
static readonly Uri nodeId
urn:nf:iot:concentrator:1.0:nodeId
static readonly Uri parentNode
urn:nf:iot:concentrator:1.0:parentNode
static readonly Uri timestamp
urn:nf:iot:sd:1.0:timestamp
static readonly Uri value
urn:nf:iot:concentrator:1.0:value
Makes harmonized data sources and nodes available as semantic information.
static Uri GetCommandUri(INode Node, ICommand Command)
Gets the Graph URI for a node command.
static Uri GetNodeUri(INode Node)
Gets the Graph URI for a node.
static Uri GetOperationUri(INode Node, string Category, string Action)
Gets the Graph URI for a node operation.
Dynamic graph of a node in a data source on the Neuron.
NodeGraph(INode Node)
Dynamic graph of a node in a data source on the Neuron.
async Task GenerateGraph(InMemorySemanticCube Result, Language Language, RequestOrigin Caller)
Generates the semantic graph.
Interface for semantic nodes.
Interface for actuator nodes.
Interface for nodes that are published through the concentrator interface.
Task< IEnumerable< INode > > ChildNodes
Child nodes. If no child nodes are available, null is returned.
Interface for sensor nodes.
Interface for dynamic graphs.