protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
1.01k stars 231 forks source link

restriction on data property #1224

Open mafshari64 opened 3 months ago

mafshari64 commented 3 months ago

I created a data property (laser_propagation_direction) and want to add only two options either 0.0 or 1.0. I was found on Google (https://stackoverflow.com/questions/35348064/data-range-expression-for-an-enumeration-in-prot%c3%a9g%c3%a9) to do something like that: 1- opened range for data property (laser_propagation_direction) and selected float and In the "Data range expression" field, typed the following:

{0.0, 1.0} but then I see this error:

ERROR 13:06:37 No instantiation found for java.util.function.Supplier arg0

I checked Java setup looks correct based on the outputs. The JAVA_HOME environment variable is set to the correct directory, and the java command is found in the expected location. This suggests that my Java installation is correctly configured.

`P:>java -version openjdk version "21.0.3" 2024-04-16 LTS OpenJDK Runtime Environment Corretto-21.0.3.9.1 (build 21.0.3+9-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.3.9.1 (build 21.0.3+9-LTS, mixed mode, sharing)

P:>echo %JAVA_HOME% C:\Program Files\Amazon Corretto\jdk21.0.3_9

P:>where java C:\Program Files\Amazon Corretto\jdk21.0.3_9\bin\java.exe `

Why still see the error? I appreciate any suggestions.

Thanks in advance,