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