Esempio n. 1
0
		/// <summary>
		/// Starts exporting Sensor Data TURTLE. This call must be followed by a call to <see cref="EndExportTurtle"/>.
		/// Use <see cref="StartExportNode"/> to export node information to the Sensor Data TURTLE document.
		/// </summary>
		/// <param name="Output">TURTLE will be output here.</param>
		/// <param name="Request">HTTP Request resulting in the generation of the TURTLE document.</param>
		public static void StartExportTurtle (TurtleWriter Output, HttpServerRequest Request)
		{
			string HostUrl = GetHostUrl (Request);
			Output.WritePrefix ("l", HostUrl);
			Output.WritePrefix ("cl", "http://clayster.com/sw/");
			//Output.WritePrefix ("clu", "http://clayster.com/sw/u/");
		}
Esempio n. 2
0
		/// <summary>
		/// Starts exporting Sensor Data TURTLE. This call must be followed by a call to <see cref="EndExportTurtle"/>.
		/// Use <see cref="StartExportNode"/> to export node information to the Sensor Data TURTLE document.
		/// </summary>
		/// <returns>TURTLE Writer, used for the export.</returns>
		/// <param name="Output">TURTLE will be output here.</param>
		/// <param name="Request">HTTP Request resulting in the generation of the TURTLE document.</param>
		public static TurtleWriter StartExportTurtle (StringBuilder Output, HttpServerRequest Request)
		{
			string HostUrl = GetHostUrl (Request);
			TurtleWriter Turtle = new TurtleWriter (Output);
			Turtle.WritePrefix ("l", HostUrl);
			Turtle.WritePrefix ("cl", "http://clayster.com/sw/");
			//Turtle.WritePrefix ("clu", "http://clayster.com/sw/u/");
			return Turtle;
		}