All Downloads are FREE. Search and download functionalities are using the official Maven repository.

owl_api.binding.OWLAPIInputInterpreter Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package owl_api.binding;

import java.util.Optional;

import api.definition.ITask;
import api.definition.config.IToolParameters;
import menu.OWLAPIKeywords.Explanation.ContractionStrategyType;
import menu.OWLAPIKeywords.Explanation.EntailmentCheckerType;
import menu.OWLAPIKeywords.Explanation.ExpansionStrategyType;
import menu.OWLAPIKeywords.Explanation.ExplanationProgressMonitorType;
import tools.utils.InputInterpreter;

/**
 * Converts inputs to be passed to the OWL API
 */
public class OWLAPIInputInterpreter extends InputInterpreter {

	/**
	 * 
	 * Converts the algorithm parameters
	 * 
	 * @param task
	 * @return
	 */
	public static OWLAPIAlgorithmParameterConfig translateAlgorithmParametersFor(ITask task) {

		IToolParameters params = task.toolParams();

		OWLAPIAlgorithmParameterConfig result = new OWLAPIAlgorithmParameterConfig(
				Optional.of(EntailmentCheckerType.SATISFIABILITY_ENTAILMENT_CHECKER_FACTORY),
				Optional.of(ExpansionStrategyType.STRUCTURAL_TYPE_PRIORITY_EXPANSION_STRATEGY),
				Optional.of(ContractionStrategyType.DIVIDE_AND_CONQUER_CONTRACTION_STRATEGY),
				Optional.of(ExplanationProgressMonitorType.NULL_EXPLANATION_PROGRESS_MONITOR)
				);

		var properties = params.getProperties();

		for (String propertyName : properties) {

			//TODO
			
		}


		return result;

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy