Giter VIP home page Giter VIP logo

socrates's Introduction

Socrates

Socrates is a Java implementation of a survey engine, that enables you to publish surveys and collect data. This package specifies core ideas, and provides a base implementation of those ideas so as to be able to actually do something useful. You'll need a bit more than this though, but other packages should be available for instance for rendering, for defining surveys, etc.

Socrates is mainly based on XForms, so a full survey consists of four parts:

  1. data
  2. model
  3. layout
  4. submission

Data

The data part defines the variables (or: fields) that will hold the collected data. Fields may hold default values.

Model

The model defines properties of the data, like whether a variable must have a value for the data to be valid, or specifying the type of the variable. The following properties may be set:

  • relevant
  • required
  • readonly
  • calculate
  • constraint
  • datatype

All properties except for the datatype can be specified in terms of an (XPath) expression, like:

relevant="true()"
required="foo == 1"

To apply properties to variables, 'binding' is used. This is done through expressions that specify to what variables the properties bind.

Layout

The view part of the survey specifies what it 'looks like', although in theory the survey could also be converted to automated speech...

The layout specifies what kind of control is used to obtain data, so for instance a select form element to present a list of values to the user for the question "What is your favourite color?". A control is bound to the variable using the same bind attribute as for properties.

Submission

Specifies the way the actual data should be handled.

socrates's People

Contributors

huubbouma avatar

Watchers

James Cloos avatar Duco Dokter avatar Wietze Helmantel avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.