Search in sources :

Example 1 with VariableGroup

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

the class VariableGroupOwlBuilder method setVariableGroups.

private void setVariableGroups(VariableGroup variableGroup, OWLNamedIndividual variableGroupIndividual) {
    OWLObjectProperty hasVariableGroup = context.owl.dataFactory.getOWLObjectProperty(op_has_variable_group, context.owl.prefixManager);
    List<VariableGroup> variableGroups = variableGroup.getVariableGroups();
    for (VariableGroup vg : variableGroups) {
        vg.getName().setId(() -> variableGroup.getName().getId().get().replace("." + variableGroup.getName().get(), ".") + vg.getName().get());
        OWLNamedIndividual vgIndividual = this.build(vg);
        OWLAxiom axiom = context.owl.dataFactory.getOWLObjectPropertyAssertionAxiom(hasVariableGroup, variableGroupIndividual, vgIndividual);
        context.axioms.add(axiom);
    }
}
Also used : VariableGroup(com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup) VariableGroup(com.opensimulationplatform.gen.owl.model.OntologyClasses.VariableGroup) OWLNamedIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual) OWLAxiom(org.semanticweb.owlapi.model.OWLAxiom) OWLObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty)

Aggregations

VariableGroup (com.opensimulationplatform.core.model.modeldescription.variablegroup.VariableGroup)1 VariableGroup (com.opensimulationplatform.gen.owl.model.OntologyClasses.VariableGroup)1 OWLAxiom (org.semanticweb.owlapi.model.OWLAxiom)1 OWLNamedIndividual (org.semanticweb.owlapi.model.OWLNamedIndividual)1 OWLObjectProperty (org.semanticweb.owlapi.model.OWLObjectProperty)1