Esempio n. 1
-1
		/// <summary>
		/// Starts the export of sensor data values for a particular node. This call must be followed by a call to <see cref="EndExportNode"/>.
		/// Use <see cref="StartExportTimestamp"/> to export node information pertaining to a given point in time to the Sensor Data TURTLE document.
		/// </summary>
		/// <param name="Turtle">TURTLE Output</param>
		/// <param name="NodeId">Node ID.</param>
		/// <param name="CacheType">Cache Type</param> 
		/// <param name="SourceId">Source ID.</param>
		public static void StartExportNode (TurtleWriter Turtle, string NodeId, string CacheType, string SourceId)
		{
			Turtle.WriteSubjectUri ("l", string.Empty);
			Turtle.WritePredicateUri ("cl", "node");
			Turtle.StartBlankNode ();

			Turtle.WritePredicateUri ("cl", "nodeId");
			Turtle.WriteObjectLiteral (NodeId);

			if (!string.IsNullOrEmpty (CacheType))
			{
				Turtle.WritePredicateUri ("cl", "cacheType");
				Turtle.WriteObjectLiteral (CacheType);
			}

			if (!string.IsNullOrEmpty (SourceId))
			{
				Turtle.WritePredicateUri ("cl", "sourceId");
				Turtle.WriteObjectLiteral (SourceId);
			}
		}