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