Search in sources :

Example 1 with VE_LinearAcceleration_2

use of com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_LinearAcceleration_2 in project osp-validator by open-simulation-platform.

the class VE_LinearAcceleration_2 method getInvalidObjects.

@Override
protected List<LinearAcceleration> getInvalidObjects() {
    OWLClass validationErrorClass = context.owl.dataFactory.getOWLClass(VE_LinearAcceleration_2, context.owl.prefixManager);
    Set<OWLNamedIndividual> invalidIndividuals = context.invalidIndividuals.get(validationErrorClass);
    return invalidIndividuals.stream().map(individual -> (LinearAcceleration) context.variableGroups.get(individual)).collect(Collectors.toList());
}
Also used : List(java.util.List) OWLNamedIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual) LinearAcceleration(com.opensimulationplatform.core.model.modeldescription.variablegroup.linearacceleration.LinearAcceleration) Set(java.util.Set) VE_LinearAcceleration_2(com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_LinearAcceleration_2) 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) LinearAcceleration(com.opensimulationplatform.core.model.modeldescription.variablegroup.linearacceleration.LinearAcceleration)

Aggregations

LinearAcceleration (com.opensimulationplatform.core.model.modeldescription.variablegroup.linearacceleration.LinearAcceleration)1 ValidationError (com.opensimulationplatform.core.validation.ValidationError)1 VE_LinearAcceleration_2 (com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_LinearAcceleration_2)1 List (java.util.List)1 Set (java.util.Set)1 Collectors (java.util.stream.Collectors)1 OWLClass (org.semanticweb.owlapi.model.OWLClass)1 OWLNamedIndividual (org.semanticweb.owlapi.model.OWLNamedIndividual)1