protegeproject / swrlapi

Java API for working with the SWRL rule and SQWRL query languages
Other
99 stars 40 forks source link

Custom datatype support #46

Closed thelesenok closed 6 years ago

thelesenok commented 6 years ago

I can not create SWRL rule with custom datatype.

For example: Rule: Executor(?object) ^ executorAge(?object, ?prop0) ^ swrlb:matches(?prop0, "20.0"^^xsd:customdatatype) -> Executor(Analyst) Rule: Executor(?object) ^ executorAge(?object, ?prop0) ^ swrlb:matches(?prop0, ""^^xsd:customdatatype) -> Executor(Analyst) Datatype: name: xsd:customdatatype datatype definition: (xsd:double[>= "15.0"^^xsd:double] and xsd:double[<= "40.0"^^xsd:double])

Error: invalid datatype name 'xsd:customdatatype' 2018-05-17 23 07 30

cedaradmin commented 6 years ago

Sorry - missed this question. Unfortunately, only the types supported by the OWLAPI are handled:

http://owlcs.github.io/owlapi/apidocs_5/org/semanticweb/owlapi/vocab/XSDVocabulary.html