ODK/Openrosa XForms processor

Hi,

I am new to ODK. I have a requirement to validate sms submissions against a
Openrosa compliant XForm.
I was thinking I could create a XForm instance from the sms message and
submit it to an Openrosa XForms engine.

Would it be possible to use the XForm engine used by ODK Collect for the
same?

Rgds,
Aroj

it's definitely possible, but i think rapidsms already does something
similar. see http://nyaruka.github.com/rapidsms-xforms-builder/.

the alternative is to use the javarosa core library (the xforms engine
we use). https://bitbucket.org/javarosa/javarosa/wiki/Home has the
source.

··· On Sat, Mar 5, 2011 at 16:30, Aroj George wrote: > Hi, > > I am new to ODK. I have a requirement to validate sms submissions against a > Openrosa compliant XForm. > I was thinking I could create a XForm instance from the sms message and > submit it to an Openrosa XForms engine. > > Would it be possible to use the XForm engine used by ODK Collect for the > same? > > Rgds, > Aroj > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks Yaw.

Though at first glance it seems RapidSMS Xform requires you to create the
XForm through their form builder.
I need to investigate more.

I am looking for a solution where you can create a open rosa compliant XForm
through say ODK Build,
upload the same to a server and let the user be able to send manual sms
messages corresponding to that XForm.

Rgds,
Aroj

··· On Sun, Mar 6, 2011 at 6:27 AM, Yaw Anokwa wrote:

it's definitely possible, but i think rapidsms already does something
similar. see http://nyaruka.github.com/rapidsms-xforms-builder/.

the alternative is to use the javarosa core library (the xforms engine
we use). https://bitbucket.org/javarosa/javarosa/wiki/Home has the
source.

On Sat, Mar 5, 2011 at 16:30, Aroj George arojis@gmail.com wrote:

Hi,

I am new to ODK. I have a requirement to validate sms submissions against
a
Openrosa compliant XForm.
I was thinking I could create a XForm instance from the sms message and
submit it to an Openrosa XForms engine.

Would it be possible to use the XForm engine used by ODK Collect for the
same?

Rgds,
Aroj

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Dear Aroj,

I would feel uncomfortable using XForms to define an SMS parser. The
XForm spec doesn't contain much about parsing text. I guess one could
put a regular expression in the constraint attribute of each binding,
and base the SMS parsing off of this field. Given the hacky sack
approach of that solution, I would probably stick with the RapidSMS
XForms approach.

Andrew

··· On Sun, Mar 6, 2011 at 4:18 AM, Aroj George wrote: > Thanks Yaw. > > Though at first glance it seems RapidSMS Xform requires you to create the > XForm through their form builder. > I need to investigate more. > > I am looking for a solution where you can create a open rosa compliant XForm > through say ODK Build, > upload the same to a server and let the user be able to send manual sms > messages corresponding to that XForm. > > Rgds, > Aroj > > > On Sun, Mar 6, 2011 at 6:27 AM, Yaw Anokwa wrote: >> >> it's definitely possible, but i think rapidsms already does something >> similar. see http://nyaruka.github.com/rapidsms-xforms-builder/. >> >> the alternative is to use the javarosa core library (the xforms engine >> we use). https://bitbucket.org/javarosa/javarosa/wiki/Home has the >> source. >> >> On Sat, Mar 5, 2011 at 16:30, Aroj George wrote: >> > Hi, >> > >> > I am new to ODK. I have a requirement to validate sms submissions >> > against a >> > Openrosa compliant XForm. >> > I was thinking I could create a XForm instance from the sms message and >> > submit it to an Openrosa XForms engine. >> > >> > Would it be possible to use the XForm engine used by ODK Collect for the >> > same? >> > >> > Rgds, >> > Aroj >> > >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Andrew,

What Aroj was talking about was the possibility of using of XForms as a base
form abstraction for SMS. The idea being to write an XForm SMS "player" to
receive basic SMS forms.

What we're struggling to figure out and could use the ODK list's expertise
is a better understanding of what functionality the Javarosa library
provides as the documentation is pretty sparse. We'd love to figure out for
example if Javarosa can take a raw xform and convert it into some type of
java object representation of the form that could possible be exported to a
python dict.

Any info on where to look or who to talk about this would be extremely
helpful.

Thanks,

Matt

··· On Sun, Mar 6, 2011 at 7:38 PM, Andrew Marder wrote:

Dear Aroj,

I would feel uncomfortable using XForms to define an SMS parser. The
XForm spec doesn't contain much about parsing text. I guess one could
put a regular expression in the constraint attribute of each binding,
and base the SMS parsing off of this field. Given the hacky sack
approach of that solution, I would probably stick with the RapidSMS
XForms approach.

Andrew

On Sun, Mar 6, 2011 at 4:18 AM, Aroj George arojis@gmail.com wrote:

Thanks Yaw.

Though at first glance it seems RapidSMS Xform requires you to create the
XForm through their form builder.
I need to investigate more.

I am looking for a solution where you can create a open rosa compliant
XForm
through say ODK Build,
upload the same to a server and let the user be able to send manual sms
messages corresponding to that XForm.

Rgds,
Aroj

On Sun, Mar 6, 2011 at 6:27 AM, Yaw Anokwa yanokwa@gmail.com wrote:

it's definitely possible, but i think rapidsms already does something
similar. see http://nyaruka.github.com/rapidsms-xforms-builder/.

the alternative is to use the javarosa core library (the xforms engine
we use). https://bitbucket.org/javarosa/javarosa/wiki/Home has the
source.

On Sat, Mar 5, 2011 at 16:30, Aroj George arojis@gmail.com wrote:

Hi,

I am new to ODK. I have a requirement to validate sms submissions
against a
Openrosa compliant XForm.
I was thinking I could create a XForm instance from the sms message
and
submit it to an Openrosa XForms engine.

Would it be possible to use the XForm engine used by ODK Collect for
the
same?

Rgds,
Aroj

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en