ODK Validate as web service?

Hi,

I'm looking into developing an ODK web app (in PHP). I'd like to be
able to import javarosa/ODK XML forms and would need to validate these
somehow. I believe there is no XML Schema (.xsd file) for the 'subset-
with-additions' of XForms that javarosa is using, which is too bad.
I'm wondering whether is possible to deploy ODK Validate as a web
service and use this service in my app. Has ODK Validate ever been
deployed as a web service? (If not, would this be hard?)

Thanks in advance!
Martijn

Martijn,

Validate is basically the Javarosa core library wrapped with a few
lines of code. Most of the Java ODK-compatible servers (ODK Aggregate,
CommcareHQ, etc) validate in that way.

XLS2XForm and the Python/JSON ODK-compatible tools also validate, but
I have no idea how they do it. https://github.com/dimagi/formtranslate
might give you some insight.

A third option is for you to lead the charge and create an .xsd. This
could also be something that others could use...

Yaw

··· On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt wrote: > Hi, > > I'm looking into developing an ODK web app (in PHP). I'd like to be > able to import javarosa/ODK XML forms and would need to validate these > somehow. I believe there is no XML Schema (.xsd file) for the 'subset- > with-additions' of XForms that javarosa is using, which is too bad. > I'm wondering whether is possible to deploy ODK Validate as a web > service and use this service in my app. Has ODK Validate ever been > deployed as a web service? (If not, would this be hard?) > > Thanks in advance! > Martijn > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Martijn,

Validate is basically the Javarosa core library wrapped with a few
lines of code. Most of the Java ODK-compatible servers (ODK Aggregate,
CommcareHQ, etc) validate in that way.

XLS2XForm and the Python/JSON ODK-compatible tools also validate, but
I have no idea how they do it. https://github.com/dimagi/formtranslate
might give you some insight.

Yep, this is basically what you want I think. Working demo of the API:
https://www.commcarehq.org/formtranslate/

Cory

··· 2012/1/31 Yaw Anokwa :

A third option is for you to lead the charge and create an .xsd. This
could also be something that others could use...

Yaw

On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt mrijdt@gmail.com wrote:

Hi,

I'm looking into developing an ODK web app (in PHP). I'd like to be
able to import javarosa/ODK XML forms and would need to validate these
somehow. I believe there is no XML Schema (.xsd file) for the 'subset-
with-additions' of XForms that javarosa is using, which is too bad.
I'm wondering whether is possible to deploy ODK Validate as a web
service and use this service in my app. Has ODK Validate ever been
deployed as a web service? (If not, would this be hard?)

Thanks in advance!
Martijn

--
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

Dear Yaw and Cory,

Thanks a lot for your replies and pointing me in the direction of
formtranslate. I think this could indeed work for me, at least as a
temporary solution (and would push me to learn a bit of Django and
Python). I agree that creating (and sharing) an .xsd would be the best
approach to follow, but don't think I'll have that much time...

I love this ODK project! I'll let you know if anything comes of my
endeavors to provide an alternative non-android offline-capable web-
based ODK-compatible data collection solution (a bit of info:
http://blog.aidwebsolutions.com/an-introduction-to-rapaide/).

Cheers,
Martijn

··· On Feb 1, 3:30 am, Cory Zue wrote: > 2012/1/31 Yaw Anokwa : > > > Martijn, > > > Validate is basically the Javarosa core library wrapped with a few > > lines of code. Most of the Java ODK-compatible servers (ODK Aggregate, > > CommcareHQ, etc) validate in that way. > > > XLS2XForm and the Python/JSON ODK-compatible tools also validate, but > > I have no idea how they do it.https://github.com/dimagi/formtranslate > > might give you some insight. > > Yep, this is basically what you want I think. Working demo of the API:https://www.commcarehq.org/formtranslate/ > > Cory > > > > > > > > > > > A third option is for you to lead the charge and create an .xsd. This > > could also be something that others could use... > > > Yaw > > > On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt wrote: > >> Hi, > > >> I'm looking into developing an ODK web app (in PHP). I'd like to be > >> able to import javarosa/ODK XML forms and would need to validate these > >> somehow. I believe there is no XML Schema (.xsd file) for the 'subset- > >> with-additions' of XForms that javarosa is using, which is too bad. > >> I'm wondering whether is possible to deploy ODK Validate as a web > >> service and use this service in my app. Has ODK Validate ever been > >> deployed as a web service? (If not, would this be hard?) > > >> Thanks in advance! > >> Martijn > > >> -- > >> 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

Martin,

This looks really cool. Dimagi has built an awesome web based xform
player called webforms which is worth checking out.

Matt

··· On Feb 1, 2012 5:57 PM, "Martijn van de Rijdt" wrote:

Dear Yaw and Cory,

Thanks a lot for your replies and pointing me in the direction of
formtranslate. I think this could indeed work for me, at least as a
temporary solution (and would push me to learn a bit of Django and
Python). I agree that creating (and sharing) an .xsd would be the best
approach to follow, but don't think I'll have that much time...

I love this ODK project! I'll let you know if anything comes of my
endeavors to provide an alternative non-android offline-capable web-
based ODK-compatible data collection solution (a bit of info:
http://blog.aidwebsolutions.com/an-introduction-to-rapaide/).

Cheers,
Martijn

On Feb 1, 3:30 am, Cory Zue c...@dimagi.com wrote:

2012/1/31 Yaw Anokwa yano...@gmail.com:

Martijn,

Validate is basically the Javarosa core library wrapped with a few
lines of code. Most of the Java ODK-compatible servers (ODK Aggregate,
CommcareHQ, etc) validate in that way.

XLS2XForm and the Python/JSON ODK-compatible tools also validate, but
I have no idea how they do it.https://github.com/dimagi/formtranslate
might give you some insight.

Yep, this is basically what you want I think. Working demo of the API:
https://www.commcarehq.org/formtranslate/

Cory

A third option is for you to lead the charge and create an .xsd. This
could also be something that others could use...

Yaw

On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt mri...@gmail.com wrote:

Hi,

I'm looking into developing an ODK web app (in PHP). I'd like to be
able to import javarosa/ODK XML forms and would need to validate these
somehow. I believe there is no XML Schema (.xsd file) for the 'subset-
with-additions' of XForms that javarosa is using, which is too bad.
I'm wondering whether is possible to deploy ODK Validate as a web
service and use this service in my app. Has ODK Validate ever been
deployed as a web service? (If not, would this be hard?)

Thanks in advance!
Martijn

--
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

Thanks Matt,

That sounds like something I definitely have to check out. I found it
on github.

Are you perhaps aware of any live instance of this player (to play
with)?

Cheers,
Martijn

··· On Feb 1, 8:00 am, Matt Berg wrote: > Martin, > > This looks really cool. Dimagi has built an awesome web based xform > player called webforms which is worth checking out. > > Matt > On Feb 1, 2012 5:57 PM, "Martijn van de Rijdt" wrote: > > > > > > > > > Dear Yaw and Cory, > > > Thanks a lot for your replies and pointing me in the direction of > > formtranslate. I think this could indeed work for me, at least as a > > temporary solution (and would push me to learn a bit of Django and > > Python). I agree that creating (and sharing) an .xsd would be the best > > approach to follow, but don't think I'll have that much time... > > > I love this ODK project! I'll let you know if anything comes of my > > endeavors to provide an alternative non-android offline-capable web- > > based ODK-compatible data collection solution (a bit of info: > >http://blog.aidwebsolutions.com/an-introduction-to-rapaide/). > > > Cheers, > > Martijn > > > On Feb 1, 3:30 am, Cory Zue wrote: > > > 2012/1/31 Yaw Anokwa : > > > > > Martijn, > > > > > Validate is basically the Javarosa core library wrapped with a few > > > > lines of code. Most of the Java ODK-compatible servers (ODK Aggregate, > > > > CommcareHQ, etc) validate in that way. > > > > > XLS2XForm and the Python/JSON ODK-compatible tools also validate, but > > > > I have no idea how they do it.https://github.com/dimagi/formtranslate > > > > might give you some insight. > > > > Yep, this is basically what you want I think. Working demo of the API: > >https://www.commcarehq.org/formtranslate/ > > > > Cory > > > > > A third option is for you to lead the charge and create an .xsd. This > > > > could also be something that others could use... > > > > > Yaw > > > > > On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt wrote: > > > >> Hi, > > > > >> I'm looking into developing an ODK web app (in PHP). I'd like to be > > > >> able to import javarosa/ODK XML forms and would need to validate these > > > >> somehow. I believe there is no XML Schema (.xsd file) for the 'subset- > > > >> with-additions' of XForms that javarosa is using, which is too bad. > > > >> I'm wondering whether is possible to deploy ODK Validate as a web > > > >> service and use this service in my app. Has ODK Validate ever been > > > >> deployed as a web service? (If not, would this be hard?) > > > > >> Thanks in advance! > > > >> Martijn > > > > >> -- > > > >> 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

Never mind, found it! (http://xforms.dimagi.com/)

··· On Feb 1, 2:34 pm, Martijn van de Rijdt wrote: > Thanks Matt, > > That sounds like something I definitely have to check out. I found it > on github. > > Are you perhaps aware of any live instance of this player (to play > with)? > > Cheers, > Martijn > > On Feb 1, 8:00 am, Matt Berg wrote: > > > > > > > > > Martin, > > > This looks really cool. Dimagi has built an awesome web based xform > > player called webforms which is worth checking out. > > > Matt > > On Feb 1, 2012 5:57 PM, "Martijn van de Rijdt" wrote: > > > > Dear Yaw and Cory, > > > > Thanks a lot for your replies and pointing me in the direction of > > > formtranslate. I think this could indeed work for me, at least as a > > > temporary solution (and would push me to learn a bit of Django and > > > Python). I agree that creating (and sharing) an .xsd would be the best > > > approach to follow, but don't think I'll have that much time... > > > > I love this ODK project! I'll let you know if anything comes of my > > > endeavors to provide an alternative non-android offline-capable web- > > > based ODK-compatible data collection solution (a bit of info: > > >http://blog.aidwebsolutions.com/an-introduction-to-rapaide/). > > > > Cheers, > > > Martijn > > > > On Feb 1, 3:30 am, Cory Zue wrote: > > > > 2012/1/31 Yaw Anokwa : > > > > > > Martijn, > > > > > > Validate is basically the Javarosa core library wrapped with a few > > > > > lines of code. Most of the Java ODK-compatible servers (ODK Aggregate, > > > > > CommcareHQ, etc) validate in that way. > > > > > > XLS2XForm and the Python/JSON ODK-compatible tools also validate, but > > > > > I have no idea how they do it.https://github.com/dimagi/formtranslate > > > > > might give you some insight. > > > > > Yep, this is basically what you want I think. Working demo of the API: > > >https://www.commcarehq.org/formtranslate/ > > > > > Cory > > > > > > A third option is for you to lead the charge and create an .xsd. This > > > > > could also be something that others could use... > > > > > > Yaw > > > > > > On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt wrote: > > > > >> Hi, > > > > > >> I'm looking into developing an ODK web app (in PHP). I'd like to be > > > > >> able to import javarosa/ODK XML forms and would need to validate these > > > > >> somehow. I believe there is no XML Schema (.xsd file) for the 'subset- > > > > >> with-additions' of XForms that javarosa is using, which is too bad. > > > > >> I'm wondering whether is possible to deploy ODK Validate as a web > > > > >> service and use this service in my app. Has ODK Validate ever been > > > > >> deployed as a web service? (If not, would this be hard?) > > > > > >> Thanks in advance! > > > > >> Martijn > > > > > >> -- > > > > >> 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

Never mind, found it! (http://xforms.dimagi.com/)

Actually that's the form builder. The player tools are here (pardon
the clutter of forms on this page):
https://www.commcarehq.org/webforms/

A good example is the IMCI protocol:

Touch: https://www.commcarehq.org/webforms/enter/22
Web: https://www.commcarehq.org/webforms/enterall/22

Cory

··· 2012/2/1 Martijn van de Rijdt :

On Feb 1, 2:34 pm, Martijn van de Rijdt mri...@gmail.com wrote:

Thanks Matt,

That sounds like something I definitely have to check out. I found it
on github.

Are you perhaps aware of any live instance of this player (to play
with)?

Cheers,
Martijn

On Feb 1, 8:00 am, Matt Berg mlb...@gmail.com wrote:

Martin,

This looks really cool. Dimagi has built an awesome web based xform
player called webforms which is worth checking out.

Matt
On Feb 1, 2012 5:57 PM, "Martijn van de Rijdt" mri...@gmail.com wrote:

Dear Yaw and Cory,

Thanks a lot for your replies and pointing me in the direction of
formtranslate. I think this could indeed work for me, at least as a
temporary solution (and would push me to learn a bit of Django and
Python). I agree that creating (and sharing) an .xsd would be the best
approach to follow, but don't think I'll have that much time...

I love this ODK project! I'll let you know if anything comes of my
endeavors to provide an alternative non-android offline-capable web-
based ODK-compatible data collection solution (a bit of info:
http://blog.aidwebsolutions.com/an-introduction-to-rapaide/).

Cheers,
Martijn

On Feb 1, 3:30 am, Cory Zue c...@dimagi.com wrote:

2012/1/31 Yaw Anokwa yano...@gmail.com:

Martijn,

Validate is basically the Javarosa core library wrapped with a few
lines of code. Most of the Java ODK-compatible servers (ODK Aggregate,
CommcareHQ, etc) validate in that way.

XLS2XForm and the Python/JSON ODK-compatible tools also validate, but
I have no idea how they do it.https://github.com/dimagi/formtranslate
might give you some insight.

Yep, this is basically what you want I think. Working demo of the API:
https://www.commcarehq.org/formtranslate/

Cory

A third option is for you to lead the charge and create an .xsd. This
could also be something that others could use...

Yaw

On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt mri...@gmail.com wrote:

Hi,

I'm looking into developing an ODK web app (in PHP). I'd like to be
able to import javarosa/ODK XML forms and would need to validate these
somehow. I believe there is no XML Schema (.xsd file) for the 'subset-
with-additions' of XForms that javarosa is using, which is too bad.
I'm wondering whether is possible to deploy ODK Validate as a web
service and use this service in my app. Has ODK Validate ever been
deployed as a web service? (If not, would this be hard?)

Thanks in advance!
Martijn

--
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

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

Yeah, I noticed I was wrong. Great stuff! Thanks!

··· On Feb 1, 4:35 pm, Cory Zue wrote: > 2012/2/1 Martijn van de Rijdt : > > > Never mind, found it! (http://xforms.dimagi.com/) > > Actually that's the form builder. The player tools are here (pardon > the clutter of forms on this page):https://www.commcarehq.org/webforms/ > > A good example is the IMCI protocol: > > Touch:https://www.commcarehq.org/webforms/enter/22 > Web:https://www.commcarehq.org/webforms/enterall/22 > > Cory > > > > > > > > > > > On Feb 1, 2:34 pm, Martijn van de Rijdt wrote: > >> Thanks Matt, > > >> That sounds like something I definitely have to check out. I found it > >> on github. > > >> Are you perhaps aware of any live instance of this player (to play > >> with)? > > >> Cheers, > >> Martijn > > >> On Feb 1, 8:00 am, Matt Berg wrote: > > >> > Martin, > > >> > This looks really cool. Dimagi has built an awesome web based xform > >> > player called webforms which is worth checking out. > > >> > Matt > >> > On Feb 1, 2012 5:57 PM, "Martijn van de Rijdt" wrote: > > >> > > Dear Yaw and Cory, > > >> > > Thanks a lot for your replies and pointing me in the direction of > >> > > formtranslate. I think this could indeed work for me, at least as a > >> > > temporary solution (and would push me to learn a bit of Django and > >> > > Python). I agree that creating (and sharing) an .xsd would be the best > >> > > approach to follow, but don't think I'll have that much time... > > >> > > I love this ODK project! I'll let you know if anything comes of my > >> > > endeavors to provide an alternative non-android offline-capable web- > >> > > based ODK-compatible data collection solution (a bit of info: > >> > >http://blog.aidwebsolutions.com/an-introduction-to-rapaide/). > > >> > > Cheers, > >> > > Martijn > > >> > > On Feb 1, 3:30 am, Cory Zue wrote: > >> > > > 2012/1/31 Yaw Anokwa : > > >> > > > > Martijn, > > >> > > > > Validate is basically the Javarosa core library wrapped with a few > >> > > > > lines of code. Most of the Java ODK-compatible servers (ODK Aggregate, > >> > > > > CommcareHQ, etc) validate in that way. > > >> > > > > XLS2XForm and the Python/JSON ODK-compatible tools also validate, but > >> > > > > I have no idea how they do it.https://github.com/dimagi/formtranslate > >> > > > > might give you some insight. > > >> > > > Yep, this is basically what you want I think. Working demo of the API: > >> > >https://www.commcarehq.org/formtranslate/ > > >> > > > Cory > > >> > > > > A third option is for you to lead the charge and create an .xsd. This > >> > > > > could also be something that others could use... > > >> > > > > Yaw > > >> > > > > On Tue, Jan 31, 2012 at 16:25, Martijn van de Rijdt wrote: > >> > > > >> Hi, > > >> > > > >> I'm looking into developing an ODK web app (in PHP). I'd like to be > >> > > > >> able to import javarosa/ODK XML forms and would need to validate these > >> > > > >> somehow. I believe there is no XML Schema (.xsd file) for the 'subset- > >> > > > >> with-additions' of XForms that javarosa is using, which is too bad. > >> > > > >> I'm wondering whether is possible to deploy ODK Validate as a web > >> > > > >> service and use this service in my app. Has ODK Validate ever been > >> > > > >> deployed as a web service? (If not, would this be hard?) > > >> > > > >> Thanks in advance! > >> > > > >> Martijn > > >> > > > >> -- > >> > > > >> 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 > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en