public Instance getInstance(Properties ontoProperties, OWLOntology ontology, Query query){
List<String> featureList = getFeatures(ontoProperties, ontology, query);
Instance instance = new Instance(featureList.size() + 1);
instance.setDataset(dataset);
for(int i = 0; i < featureList.size(); i ++){
Attribute attr = instance.attribute(i);
if(attr.isNumeric()){
instance.setValue(i, Double.valueOf(featureList.get(i)));
}else{
instance.setValue(i, featureList.get(i));
}