It would be nice if flora had some builtin regex matching methods.
Secondly, it would be nice if these could be used after => and checked by the type checker, like xsd:pattern in OWL2:
Then you can use that class after =>
Make sure you the pcre package is configured when is built XSB. It should be configured automatically if you have the requisite Linux/Mac packages like pcre-dev. (Don't know what it should be on the Mac). On windows this should work out of the box, since the pcre dlls are included.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Then you can use that class after =>
Make sure you the pcre package is configured when is built XSB. It should
be configured automatically if you have the requisite Linux/Mac packages
like pcre-dev. (Don't know what it should be on the Mac). On windows this
should work out of the box, since the pcre dlls are included.
Status: open Milestone: 1.0 Created: Fri Mar 14, 2014 05:07 PM UTC by elenius Last Updated: Fri Mar 14, 2014 05:07 PM UTC Owner: Michael Kifer
It would be nice if flora had some builtin regex matching methods.
Secondly, it would be nice if these could be used after => and checked by
the type checker, like xsd:pattern in OWL2:
XSB has the pcre package, which does pattern matching.
You can define a class like
?elt:Match(?ptrn) :- \isatom(?elt), \isatom(?ptrn), match(?ptrn,?elt,?out,one)@\prolog(pcre), ?out\=[].
Then you can use that class after =>
Make sure you the pcre package is configured when is built XSB. It should be configured automatically if you have the requisite Linux/Mac packages like pcre-dev. (Don't know what it should be on the Mac). On windows this should work out of the box, since the pcre dlls are included.
Super cool!
On Fri, Mar 14, 2014 at 10:39 AM, Michael Kifer kifer@users.sf.net wrote:
Related
Feature requests:
#5So, I guess, this can be closed then.