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