[Pellet-users] Pattern data range restriction does not appear to work on xsd:string
Evren Sirin
evren at clarkparsia.com
Wed Mar 26 00:30:44 UTC 2008
On 3/25/08 7:10 PM, Arthur Peters wrote:
> I am playing with pattern restrictions and I found that they do not work on
> string property. When I ask the reasoner to do anything with such a
> restriction I get the following warning logged:
>
> WARN [main] (PelletVisitor.java:851) - Unrecognized base datatype string
>
> I have attached a small program that shows this behavior.
>
> A little investigation shows that in
> PelletVisitor.visit(OWLDataRangeRestriction
> node) nothing useful happens unless "baseDatatype instanceof XSDAtomicType"
> and the class that is used for strings (XSDString) does not implement that
> interface. This seems a bit odd to me.
>
There is currently no support for pattern restrictions in Pellet neither
for strings nor numeric types. Restrictions on some other facets
(length, minLength, maxLength) are not supported either. So we mainly
support restrictions on [min|max][Inclusive|Exclusive] facets for
numeric and date/time types (plus enumeration of any datatype using
owl:DataRange construct). (Un)supported features are not well-documented
in the Pellet distribution but as part of OWL WG's datatype
implementation report [1] we wrote down a detailed description of
supported features in [2].
> Thanks for all of your work on pellet. It's a great library.
>
Thanks,
Evren
[1] http://www.w3.org/2007/OWL/wiki/Unary_DT_Implementation
[2] http://spreadsheets.google.com/pub?key=pTmcCXR-dV6RpTEPxB0O-DQ
> -Arthur
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
More information about the Pellet-users
mailing list