[OTDev] Jaqpot3
Nina Jeliazkova jeliazkova.nina at gmail.comWed Apr 13 08:27:10 CEST 2011
- Previous message: [OTDev] Jaqpot3
- Next message: [OTDev] web application vs web services - how do you understand the difference?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Pantelis, I've noticed NTUA models don't return dc:title in the model representation. This is used in ToxPredict to show a short name of the model. Would it be possible to assign one, or perhaps let the user/creator update the title? Best regards, Nina On 12 April 2011 19:07, chung <chvng at mail.ntua.gr> wrote: > Hi Vedrin, All, > > The latest version of jaqpot3 is up and running at > http://opentox.ntua.gr:8080/ . I'll provide here some cURL requests > which Vedrin could use to update smokeping: > > 0. First acquire a token > export jaqpot_username=guest > export jaqpot_pass=guest > export token=`curl -X POST -k > 'https://opensso.in-silico.ch:443/auth/authenticate?uri=service=openldap' > -d username=$jaqpot_username -d password=$jaqpot_pass`; > token=`echo $token | cut -c10-80` > > > 1. List the 1000 first bibtex entries > curl -H Accept:text/uri-list > 'http://opentox.ntua.gr:8080/bibtex?max=1000' -H subjectid:$token > > 2. List all models > curl -H Accept:text/uri-list http://opentox.ntua.gr:8080/model -H > subjectid:$token > > 3. List all tasks > curl -H Accept:text/uri-list http://opentox.ntua.gr:8080/task -H > subjectid:$token > > 4. Get the RDF representation of a task: > curl -H Accept:application/rdf+xml > http://opentox.ntua.gr:8080/task/048aa8d1-3592-4095-bf9a-d5342e538ba9 -H > subjectid:$token > > 5. Get the RDF representation of a model: > curl -X GET > http://opentox.ntua.gr:8080/model/092ba2bc-e7d8-4eda-8259-3789065e1d57 > -H subjectid:$token > > 6. Train a model (requires authentication): > curl -X POST -d > dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54 -d > prediction_feature=http://apps.ideaconsult.net:8080/ambit2/feature/22202 > http://opentox.ntua.gr:8080/algorithm/mlr -H Accept:text/uri-list -H > subjectid:$token > curl -X POST -d > dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54 -d > prediction_feature=http://apps.ideaconsult.net:8080/ambit2/feature/22202 > http://opentox.ntua.gr:8080/algorithm/svm -H Accept:text/uri-list -H > subjectid:$token > curl -X POST -d > dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54 -d > prediction_feature=http://apps.ideaconsult.net:8080/ambit2/feature/22202 > http://opentox.ntua.gr:8080/algorithm/fastRbfNn -H Accept:text/uri-list > -H subjectid:$token > curl -X POST -d > dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54 -d > prediction_feature=http://apps.ideaconsult.net:8080/ambit2/feature/22202 > http://opentox.ntua.gr:8080/algorithm/scaling -H Accept:text/uri-list -H > subjectid:$token > > 7. Use a model for prediction: > > export > svmModel= > http://opentox.ntua.gr:8080/model/d488d65f-322d-4af4-b847-1ed6c2dc05be > curl -X POST -H subjectid:$token -d > "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54?max=10" > $svmModel -H Accept:text/uri-list > > export > fastRbfNnModel= > http://opentox.ntua.gr:8080/model/1d34aaa8-2b8c-4c0b-a95a-8a439fcfcce1 > curl -X POST -H subjectid:$token -d > "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54?max=10" > $fastRbfNnModel -H Accept:text/uri-list > > export > mlrModel= > http://opentox.ntua.gr:8080/model/d8572c7e-b453-485e-99bd-ed3772a5463b > curl -X POST -H subjectid:$token -d > "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/54?max=10" > $mlrModel -H Accept:text/uri-list > > > 8. Create a bibliographic reference > curl -X POST -d "author=John Smith" -d "title=Title" -d "address=10, > Some Street" -d > "crossref= > http://opentox.ntua.gr:8080/bibtex/faca253c-37fa-42e1-8d04-0a2239f84c8f" > -d "annotation=some annotation" -d bibtype=Article -d "pages=1455-1489" -d > "abstract=summary" -d year=2011 -d volume=10 -d number=6 -d "journal=Intern. > Journal of Something" -d "series=xyz" -d "url= > http://someserver.com/reference/1" -d chapter=10 -d "keywords=QSAR,web > services" -d edition=first -d "isbn=89-9-4325-123-43-34" -d "issn=0-0-0-0" > http://opentox.ntua.gr:8080/bibtex -H subjectid:$token -H > Accept:text/uri-list > > > 9. You can now access the plain text representation of the bibtex entry > you created: > > curl > ' > http://opentox.ntua.gr:8080/bibtex/160fa0cb-d749-4d21-a66c-eac54d5cffc4?accept=text/plain' > -H subjectid:$token > > 10. Some statistics regarding the database are available in XML at > http://opentox.ntua.gr:8080/dbstats > > Best regards, > Pantelis > _______________________________________________ > Development mailing list > Development at opentox.org > http://www.opentox.org/mailman/listinfo/development >
- Previous message: [OTDev] Jaqpot3
- Next message: [OTDev] web application vs web services - how do you understand the difference?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list