Пример #1
0
        private void PrepareRdfQueryParameters()
        {
            try
            {
                _rdfService = new RdfService(RdfPath, LocalRdf);
                IEnumerable <string> stringParameters = _rdfService.GetPossibleRdfArguments();

                IEnumerable <ParameterControl> controls = CreateParametersControl(stringParameters);

                if (controls != null)
                {
                    _panelControl.Controls.AddRange(controls.ToArray());
                }
            }
            catch (Exception ex)
            {
                wizardControl.SelectedPage = wizardPageQuery;
            }
        }
Пример #2
0
        public static void RDFBuild(List <Vacancy> vacancyList)
        {
            var service = new RdfService();

            if (!SkipLoad())
            {
                service.Do(vacancyList);
                Step();
                service.ShowOnlyEnglish();
                Step();
            }
            if (service.Validate())
            {
                Console.WriteLine("Valid");
            }
            else
            {
                Console.WriteLine("Not valid");
            }
        }