Skip to content

MPI-ExperimentGroup/ExperimentDataProcessing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 

Repository files navigation

ExperimentDataProcessing

This respository contains scripts used to process and validate the data collected by Frinex experients.

When committing to this repository, do add comments so others can understand and expand on your work, don't commit server paths, URLs, usernames or passwords. Sensitive data can instead be placed in a properties file or similar outside of the repository and loaded by your scripts.

JSON REST Interface

The Frinex administration system has a REST interface which can be accessed for each experiment via the endpoints: stimulusresponses, tagpairevents, tagevents, participants, groupdata, audiodata, screenviews and timestamps.

The JSON response follows HATEOAS rules and is therefore self documenting. See the "_links" section of the JSON data for further information.

All connections will require authentication via the same credentials as the normal admin pages.

R Example

library(jsonlite)

stimulusresponses <- fromJSON("https://<frinex-url>/<experiment-admin>/stimulusresponses")

paste(stimulusresponses$_embedded$stimulusresponses$stimulusId, ":", stimulusresponses$_embedded$participants$userAgent)

CURL Example

# login and store the requred JSESSIONID in a file called cookies.txt

curl -i -X POST -d username=############### -d password=############### -c cookies.txt https://<frinex-url>/<experiment-admin>/login

# select data from the REST service, authenticated with the required JSESSIONID from the file cookies.txt

curl -i --header "Accept:application/json" -X GET -b cookies.txt https://<frinex-url>/<experiment-admin>/stimulusresponses

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages