public static void SetStringProperty(this OntologyResource resource, string propertyName, string value) { resource.SetProperty(propertyName, value != null ? resource.Graph.CreateLiteralNode(value) : null); }
public static void SetIntProperty(this OntologyResource resource, string propertyName, int?value) { resource.SetProperty(propertyName, value.HasValue ? resource.Graph.CreateLiteralNode(value.ToString()) : null); }