Search in sources :

Example 36 with OWLClass

use of org.semanticweb.owlapi.model.OWLClass in project osp-validator by open-simulation-platform.

the class VE_HydraulicQuasiPort_1 method getInvalidObjects.

@Override
protected List<HydraulicQuasiPort> getInvalidObjects() {
    OWLClass validationErrorClass = context.owl.dataFactory.getOWLClass(VE_HydraulicQuasiPort_1, context.owl.prefixManager);
    Set<OWLNamedIndividual> invalidIndividuals = context.invalidIndividuals.get(validationErrorClass);
    return invalidIndividuals.stream().map(individual -> (HydraulicQuasiPort) context.variableGroups.get(individual)).collect(Collectors.toList());
}
Also used : List(java.util.List) OWLNamedIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual) Set(java.util.Set) HydraulicQuasiPort(com.opensimulationplatform.core.model.modeldescription.variablegroup.hydraulicquasiport.HydraulicQuasiPort) ValidationError(com.opensimulationplatform.core.validation.ValidationError) VE_HydraulicQuasiPort_1(com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_HydraulicQuasiPort_1) Collectors(java.util.stream.Collectors) OWLClass(org.semanticweb.owlapi.model.OWLClass) OWLNamedIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual) OWLClass(org.semanticweb.owlapi.model.OWLClass) HydraulicQuasiPort(com.opensimulationplatform.core.model.modeldescription.variablegroup.hydraulicquasiport.HydraulicQuasiPort)

Example 37 with OWLClass

use of org.semanticweb.owlapi.model.OWLClass 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)

Example 38 with OWLClass

use of org.semanticweb.owlapi.model.OWLClass in project osp-validator by open-simulation-platform.

the class VE_LinearAcceleration_3 method getInvalidObjects.

@Override
protected List<LinearAcceleration> getInvalidObjects() {
    OWLClass validationErrorClass = context.owl.dataFactory.getOWLClass(VE_LinearAcceleration_3, 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) VE_LinearAcceleration_3(com.opensimulationplatform.gen.owl.model.OntologyClasses.VE_LinearAcceleration_3) 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) OWLClass(org.semanticweb.owlapi.model.OWLClass) LinearAcceleration(com.opensimulationplatform.core.model.modeldescription.variablegroup.linearacceleration.LinearAcceleration)

Example 39 with OWLClass

use of org.semanticweb.owlapi.model.OWLClass 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)

Example 40 with OWLClass

use of org.semanticweb.owlapi.model.OWLClass 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)

Aggregations

OWLClass (org.semanticweb.owlapi.model.OWLClass)150 OWLNamedIndividual (org.semanticweb.owlapi.model.OWLNamedIndividual)85 Set (java.util.Set)62 Collectors (java.util.stream.Collectors)61 List (java.util.List)58 ValidationError (com.opensimulationplatform.core.validation.ValidationError)53 OWLOntology (org.semanticweb.owlapi.model.OWLOntology)24 OWLOntologyManager (org.semanticweb.owlapi.model.OWLOntologyManager)19 OWLDataFactory (org.semanticweb.owlapi.model.OWLDataFactory)17 IRI (org.semanticweb.owlapi.model.IRI)16 OWLOntologyCreationException (org.semanticweb.owlapi.model.OWLOntologyCreationException)16 OWLAxiom (org.semanticweb.owlapi.model.OWLAxiom)13 HashSet (java.util.HashSet)12 OWLObjectProperty (org.semanticweb.owlapi.model.OWLObjectProperty)12 OWLAnnotation (org.semanticweb.owlapi.model.OWLAnnotation)11 OWLAnnotationProperty (org.semanticweb.owlapi.model.OWLAnnotationProperty)10 OWLDataProperty (org.semanticweb.owlapi.model.OWLDataProperty)10 Test (org.junit.Test)9 ArrayList (java.util.ArrayList)8 Logger (org.slf4j.Logger)8