use of com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_Voltage_3 in project osp-validator by open-simulation-platform.
the class VE_Voltage_3 method getInvalidObjects.
@Override
protected List<Voltage> getInvalidObjects() {
OWLClass validationErrorClass = context.owl.dataFactory.getOWLClass(VE_Voltage_3, context.owl.prefixManager);
Set<OWLNamedIndividual> invalidIndividuals = context.invalidIndividuals.get(validationErrorClass);
return invalidIndividuals.stream().map(individual -> (Voltage) context.variableGroups.get(individual)).collect(Collectors.toList());
}
Also used :
Voltage(com.opensimulationplatform.core.model.modeldescription.variablegroup.voltage.Voltage)
List(java.util.List)
VE_Voltage_3(com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_Voltage_3)
OWLNamedIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual)
Set(java.util.Set)
ValidationError(com.opensimulationplatform.core.validation.ValidationError)
Collectors(java.util.stream.Collectors)
OWLClass(org.semanticweb.owlapi.model.OWLClass)
Voltage(com.opensimulationplatform.core.model.modeldescription.variablegroup.voltage.Voltage)
OWLNamedIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual)
OWLClass(org.semanticweb.owlapi.model.OWLClass)