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