Closed thelesenok closed 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])
Executor(?object) ^ executorAge(?object, ?prop0) ^ swrlb:matches(?prop0, "20.0"^^xsd:customdatatype) -> Executor(Analyst)
Executor(?object) ^ executorAge(?object, ?prop0) ^ swrlb:matches(?prop0, ""^^xsd:customdatatype) -> Executor(Analyst)
(xsd:double[>= "15.0"^^xsd:double] and xsd:double[<= "40.0"^^xsd:double])
Error: invalid datatype name 'xsd:customdatatype'
invalid datatype name 'xsd:customdatatype'
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
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'