1 function getProfileId()
3 return document.profile.elements[0].value;
8 return document.uwoboURL.elements[0].value;
11 function getGetterURL()
13 return document.getterURL.elements[0].value;
16 function getProofCheckerURL()
18 return document.proofcheckerURL.elements[0].value;
21 function getSearchEngineURL()
23 return document.searchengineURL.elements[0].value;
26 function getDrawGraphURL()
28 return document.draw_graphURL.elements[0].value;
31 function getURISetQueueURL()
33 return document.uri_set_queueURL.elements[0].value;
36 function getRdflyURL()
38 return document.rdflyURL.elements[0].value;
41 function getInterfaceURL()
43 return document.interfaceURL.elements[0].value;
46 function getUNICODEvsSYMBOL()
48 if (document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].checked)
54 function getNaturalLanguage()
56 if (document.naturalLanguage.elements[0].checked)
62 function getMaxGraphSize()
64 return document.maxGraphSize.elements[0].value;
67 function getUpdateURL()
69 return '¶m.processorURL=' + escape(getUwoboURL()) +
70 '¶m.getterURL=' + escape(getGetterURL()) +
71 '¶m.uri_set_queueURL=' + escape(getURISetQueueURL()) +
72 '¶m.draw_graphURL=' + escape(getDrawGraphURL()) +
73 '¶m.proofcheckerURL=' + escape(getProofCheckerURL()) +
74 '¶m.searchengineURL=' + escape(getSearchEngineURL()) +
75 '¶m.rdflyURL=' + escape(getRdflyURL()) +
76 '¶m.interfaceURL=' + escape(getInterfaceURL()) +
77 '¶m.naturalLanguage=' + escape(getNaturalLanguage()) +
78 '¶m.uri_set_size=' + escape(getMaxGraphSize()) +
79 '¶m.UNICODEvsSYMBOL=' + escape(getUNICODEvsSYMBOL());
82 function selectUwoboURL(ss)
84 if (ss.selectedIndex == 0) {
85 document.uwoboURL.elements[0].value = "";
87 document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58080/";
91 function selectGetterURL(ss)
93 if (ss.selectedIndex == 0) {
94 document.getterURL.elements[0].value = "";
96 document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58081/";
100 function selectProofCheckerURL(ss)
102 if (ss.selectedIndex == 0) {
103 document.proofcheckerURL.elements[0].value = "";
105 document.proofcheckerURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58084/";
109 function selectSearchEngineURL(ss)
111 if (ss.selectedIndex == 0) {
112 document.searchengineURL.elements[0].value = "";
114 document.searchengineURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58085/";
118 function selectDrawGraphURL(ss)
120 if (ss.selectedIndex == 0) {
121 document.draw_graphURL.elements[0].value = "";
123 document.draw_graphURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58083/";
127 function selectURISetQueueURL(ss)
129 if (ss.selectedIndex == 0) {
130 document.uri_set_queueURL.elements[0].value = "";
132 document.uri_set_queueURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58082/";
136 function selectRdflyURL(ss)
138 if (ss.selectedIndex == 0) {
139 document.rdflyURL.elements[0].value = "";
141 document.rdflyURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58086/";
145 function selectInterfaceURL(ss)
147 if (ss.selectedIndex == 0) {
148 document.interfaceURL.elements[0].value = "";
150 document.interfaceURL.elements[0].value = "http://helm.cs.unibo.it/helm";
154 function selectProfile(ss, interfaceURL)
156 location = getUwoboURL() +
157 'apply?keys=SPK¶m.processorURL=' + escape(getUwoboURL()) +
158 '¶m.profile=' + escape(ss.options[ss.selectedIndex].value) +
159 '&xmluri=' + escape(interfaceURL + 'html/configuration.html');
162 function saveProfile(origProfileId)
164 var profileId = getProfileId();
167 var options = document.profileList.elements[0];
168 for (i = 0; i < options.length; i++)
169 if (profileId == options[i].value) exists = true;
171 if (confirm('Update the profile \'' + profileId + '\'?'))
172 location = getUwoboURL() + 'setparams?id=' + profileId + getUpdateURL();
174 if (confirm('Create a new profile \'' + profileId + '\' with the current settings?'))
175 location = getUwoboURL() + 'createprofile?id=' + profileId + '&orig=' + origProfileId + getUpdateURL();