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