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