Hi Melissa, hej everyone,
thanks a lot for the shout-out! We fondly remember our discussions back at SIPS, where a few of us got together and debated how to approach building a Psych-DS validator, and even started building a prototype. Fast-forward a long trip home and some rainy afternoons, and we (Alexander and Felix) found ourselves with something we think might be workable, and we’d like to present it to you all, with the very warm invitation to take a look, critique our prototype, and of course join forces!
Status quo
Right now, we have a fairly solid validator that works in the browser
as well as in R.
We’ve also begun work on a command-line client (works in
principle, needs better UI), and Alexander has started building a
downloadable stand-alone application based on electron.
All of these work using the same core code and support the following checks:
Do check it out! We have a series of broken test cases for you to try, and we’ve updated the example datasets so that they work with the validator.
For the impatient among you, here’s what it looks like:
Design goals
At SIPS, we had a lively discussion about how to realize the
validator, and how to trade off different goals (this is from our
memory, please feel free to correct us):
At the end of the hackathon, we hadn’t resolved these conflicting
requirements, and while a few of us had started an in-browser
prototype, there wasn’t a broad consensus on how to go forward.
Over the following weeks, however, we discovered that these goals
weren’t quite as incompatible as we had originally thought.
Specifically, we found that we could reuse the JavaScript logic
from a browser-based validator in R thanks to the awesome V8 package, which embeds
Chrome’s JS engine in R, and this is what we’ve done. We also
found that we could express the JSON-LD metadata format using the
JSON
schema standard, for which validators exist for many
different programming languages (not for R though, at least not
natively).
So right now, both the online validator and the R package share
the same validation code, and provide an independent interface on
top of it. In the long run, adding a GUI-based electron app as a
further interface would allow for easy deployment outside of the R
and also remove the need for an internet connection.
Next steps
We’re new to your project, and so the first thing we’d both want to continue is a clear community consensus that this is a useful approach in all of your eyes – we wouldn’t want to push things further without making sure we’re aligned with the project as a whole. Though we would love to continue development with the community, we both can’t afford to continue to build the project single-handedly ad infinitum, so we will also depend on all of your support.
Thankfully, we think there’s lots of ways in which we all can
join together. Here are some:
For those of you who are interested, but uncertain about
programming JS, we would be glad to show you around the code, and
would be thrilled to give an introduction to the programming
language (we hope you’ll find that it isn’t that different from
R). There's also a lot to do in pure R, so for the purists among
you, please don't be deterred :-) .
Ok, that’s it for now! Sorry for the wall of text. We would love to hear your thoughts, and hope to chat with many of you soon. Best,
Alexander & Felix
--
You received this message because you are subscribed to the Google Groups "Psych-Data-Standards" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psych-data-stand...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psych-data-standards/CAF%3DPoJO07yfRUgSfhtBYkqT7cJRpTd1qwRQyNgCkR04S25AyPw%40mail.gmail.com.
Hej Felix, hi everyone,
thanks a lot for your kind message, it was fun working on this, and I'm looking forward to having you on board!
Is the issue tracker at https://github.com/psych-ds/validator-prototype/issues your preferred place for feedback?I can't think of a better one for now (Melissa, can you?), so as far as I'm concerned, please do leave us some issues!
Kind regards, and talk to y'all soon,
-Felix
Hi guys,
you did an impressive job - thanks a lot for that!
It's very helpful that you found a way to implement a common code base for the validator, and I like the solution already a lot.I am happy to contribute, both in R, and with limited knowledge, also in JS.
Playing around a bit with the validator, I also agree with you that this is a good opportunity for a refinement of both the validator and the spec; I started to leave some comments in the spec Google doc.
Is the issue tracker at https://github.com/psych-ds/validator-prototype/issues your preferred place for feedback?
Best,
Felix
To view this discussion on the web visit https://groups.google.com/d/msgid/psych-data-standards/d278c2ea-57ca-7c28-f270-4f6ced7ba61a%40web.de.
To view this discussion on the web visit https://groups.google.com/d/msgid/psych-data-standards/bb6e1277-c299-7436-7079-745eb6ae90df%40web.de.