/// <summary> /// Serializes the connection's configuration /// </summary> /// <param name="context">Configuration Serialization Context</param> public override void SerializeConfiguration(VDS.RDF.Configuration.ConfigurationSerializationContext context) { INode manager = context.NextSubject; context.NextSubject = manager; base.SerializeConfiguration(context); if (this._dbport != VirtuosoManager.DefaultPort) { INode port = ConfigurationLoader.CreateConfigurationNode(context.Graph, ConfigurationLoader.PropertyPort); context.Graph.Assert(new Triple(manager, port, context.Graph.CreateLiteralNode(this._dbport.ToString()))); } }
/// <summary> /// Set the data with a dotNetRDF SparqlResult /// </summary> /// <param name="result"></param> public void Set(VDS.RDF.Query.SparqlResult result) { data = new Dictionary<string,string>(); foreach(string v in result.Variables) data.Add(v, result[v].ToString()); }