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);
}
}
Aggregations