Skip to content

Commit

Permalink
Additional concrete roles
Browse files Browse the repository at this point in the history
  • Loading branch information
emays committed Oct 17, 2024
1 parent 381181f commit 4199e03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ private ElkDataHasValue process(ConcreteRole concreteRole) {
Factory f = ontology.getObjectFactory();
ElkDatatype datatype = switch (concreteRole.getValueType()) {
case Decimal -> f.getXsdDecimal();
case Double -> f.getXsdDouble();
case Float -> f.getXsdFloat();
case Integer -> f.getXsdInteger();
case String -> f.getXsdString();
};
ElkLiteral literal = f.getLiteral(concreteRole.getValue(), datatype);
return ontology.getDataHasValue(getIri(concreteRole.getConcreteRoleType()), literal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class ConcreteRole {

public enum ValueType {
Decimal, Integer;
Decimal, Double, Float, Integer, String;
}

private ConcreteRoleType concreteRoleType;
Expand Down

0 comments on commit 4199e03

Please sign in to comment.