IPS-LMU / IPS-EMUprot-nodeWSserver

0 stars 1 forks source link

IPS-EMUprot-nodeWSserver.js

Out of funding

Unfortunately, the EMU-SDMS is currently out of funding.

We at the IPS will do what we can to fix bugs, security issues or necessary adjustments to new versions of R; but we cannot currently work on new features or performance improvements.

We would be very glad if funding in academia allowed for more technical staff to maintain software used by the research community.

Quick start (not meant for prod. use!)

JSON validation

This server also implements a simple validation server to validate JSON files used by the new EMU speech database management system

Validate _annot.json files

curl

Validate _annot.json file:

curl -H "Content-Type: applicationjson" --data-binary @msajc003_annot.json http://localhost:17890/_annot

Validate _DBconfig.json file:

curl -H "Content-Type: applicationjson" --data-binary @ae_DBconfig.json http://localhost:17890:17890/_DBconfig

RCurl

library('RCurl')
library('jsonlite')

# validate _annot.json
json_file = '~/Desktop/emuR_demoData/ae_emuDB/0000_ses/msajc003_bndl/msajc003_annot.json'
json_data = fromJSON(paste(readLines(json_file), collapse=""))
headers <- list('Accept' = 'application/json', 'Content-Type' = 'application/json')
postForm("https://webapp2.phonetik.uni-muenchen.de:17890/_annot", .opts=list(postfields=paste(readLines(json_file), collapse=""), httpheader=headers))

# validate _DBconfig.json
json_file = '~/Desktop/emuR_demoData/ae_emuDB/ae_DBconfig.json'
json_data = fromJSON(paste(readLines(json_file), collapse=""))
headers <- list('Accept' = 'application/json', 'Content-Type' = 'application/json')
postForm("https://webapp2.phonetik.uni-muenchen.de:17890/_DBconfig", .opts=list(postfields=paste(readLines(json_file), collapse=""), httpheader=headers))

Main authors

Raphael Winkelmann

Markus Jochim

Affiliations

INSTITUTE OF PHONETICS AND SPEECH PROCESSING

For Maintainers

Be sure to check and update the /vnbdata/emuDBs/README file if any breaking changes / new features are implemented! This will probably not be necessary any more once people start using the manager.