/// <summary>
        /// Allows <see cref="schema"/> upgrade after additional analysis of the stored <see cref="entries"/>. This should be called after <see cref="SetEntries(SourceTable)"/>.
        /// </summary>
        /// <param name="analyser">Content analyser to be used</param>
        public void RefineSchema(CellContentAnalysis analyser)
        {
            //  DataTable output = new DataTable("schemaTable");

            foreach (var property in properties.items)
            {
                var propData = entries.GetAllValuesForProperty(property);

                if (propData.Count == 0)
                {
                }
                else
                {
                    RefinedPropertyStats propertyStats = new RefinedPropertyStats();

                    foreach (var data in propData)
                    {
                        CellContentInfo info = analyser.DetermineContentType(data);

                        propertyStats.Assign(info);
                    }

                    propertyStats.Compute();

                    propertyStats.Deploy(property);

                    //  GetColumn(property, output, propertyStats);
                }
            }
        }
Beispiel #2
0
 public void Deploy(ITextRender _output, HtmlNodeValueExtractionSettings _valueExtraction, CellContentAnalysis _sourceContentAnalysis, folderNode _folder)
 {
     output                = _output;
     valueExtraction       = _valueExtraction;
     sourceContentAnalysis = _sourceContentAnalysis;
     folder                = _folder;
     universalMetaTableConstructor.Deploy(sourceContentAnalysis, valueExtraction);
 }
Beispiel #3
0
 public void Deploy(CellContentAnalysis _sourceContentAnalysis, HtmlNodeValueExtractionSettings _ValueExtractionSettings)
 {
     sourceContentAnalysis   = _sourceContentAnalysis;
     ValueExtractionSettings = _ValueExtractionSettings;
 }