1 Components.utils.import("resource://stmodules/SemturkeyHTTPLegacy.jsm");
  2 
  3 EXPORTED_SYMBOLS = [ "SemTurkeyHTTPLegacy", "STRequests"];
  4 
  5 /**
  6  * @class
  7  */
  8 STRequests = function(){};
  9 
 10 /**
 11  * @class
 12  */
 13 STRequests.Administration = function(){};
 14 /**
 15  * @class
 16  */
 17 STRequests.Annotate = function(){};
 18 /**
 19  * @class
 20  */
 21 STRequests.Annotation = function(){};    
 22 
 23 /**
 24  * @class
 25  */
 26 STRequests.RangeAnnotation = function(){};    
 27 
 28 /**
 29  * @class
 30  */
 31 STRequests.Cls = function(){};           
 32 /**
 33  * @class
 34  */
 35 STRequests.Delete = function(){};        
 36 /**
 37  * @class
 38  */
 39 STRequests.Graph = function(){};         
 40 /**
 41  * @class
 42  */
 43 STRequests.Individual = function(){};    
 44 /**
 45  * @class
 46  */
 47 STRequests.InputOutput = function(){};   
 48 /**
 49  * @class
 50  */
 51 STRequests.Metadata = function(){};      
 52 /**
 53  * @class
 54  */
 55 STRequests.ModifyName = function(){};    
 56 /**
 57  * @class
 58  */
 59 STRequests.OntoSearch = function(){};
 60 /**
 61  * @class
 62  */
 63 STRequests.Page = function(){};          
 64 /**
 65  * @class
 66  */
 67 STRequests.Property = function(){};      
 68 /**
 69  * @class
 70  */
 71 STRequests.SPARQL = function(){};
 72 /**
 73  * @class
 74  */
 75 STRequests.SKOS = function(){};
 76 /**
 77  * @class
 78  */
 79 STRequests.SKOSXL = function(){};
 80 /**
 81  * @class
 82  */
 83 STRequests.SKOS_ICV = function(){};
 84 /**
 85  * @class
 86  */
 87 STRequests.Statement = function(){};
 88 /**
 89  * @class
 90  */
 91 STRequests.Synonyms = function(){};      
 92 /**
 93  * @class
 94  */
 95 STRequests.SystemStart = function(){};   
 96 /**
 97  * @class
 98  */
 99 STRequests.ProjectsOLD = function(){};
100 /**
101  * @class
102  */
103 STRequests.Projects = function(){};
104 /**
105  * @class
106  */
107 STRequests.OntManager = function(){};
108 /**
109  * @class
110  */
111 STRequests.Resource = function(){};
112 
113 /**
114  * @class
115  */
116 STRequests.ResourceView = function(){};
117 
118 
119 //systemStart service requests
120 STRequests.SystemStart.serviceName = "systemStart";
121 STRequests.SystemStart.startRequest = "start";
122 STRequests.SystemStart.listTripleStoresRequest = "listTripleStores";
123 
124 //cls service requests
125 STRequests.Cls.serviceName = "cls";
126 STRequests.Cls.addTypeRequest = "addType";
127 STRequests.Cls.removeTypeRequest = "removeType";
128 STRequests.Cls.removeTypeRequest = "removeType";
129 STRequests.Cls.addSuperClsRequest = "addSuperCls";
130 STRequests.Cls.removeSuperClsRequest = "removeSuperCls";
131 STRequests.Cls.getClassTreeRequest = "getClassTree";
132 STRequests.Cls.getClassDescriptionRequest = "getClsDescription";
133 STRequests.Cls.getClassAndInstancesInfoRequest = "getClassAndInstancesInfo";
134 STRequests.Cls.createInstanceRequest = "createInstance";
135 STRequests.Cls.createClassRequest = "createClass";
136 STRequests.Cls.getSubClassesRequest = "getSubClasses";
137 STRequests.Cls.getSuperClassesRequest = "getSuperClasses";
138 STRequests.Cls.getClassesInfoAsRootsForTreeRequest = "getClassesInfoAsRootsForTree";
139 
140 //ModifyName service Request
141 STRequests.ModifyName.serviceName = "modifyName";
142 STRequests.ModifyName.renameRequest = "rename";
143 
144 //property service requests
145 STRequests.Property.serviceName = "property";
146 STRequests.Property.getPropertiesTreeRequest = "getPropertiesTree";
147 STRequests.Property.getObjPropertiesTreeRequest = "getObjPropertiesTree";
148 STRequests.Property.getDatatypePropertiesTreeRequest = "getDatatypePropertiesTree";
149 STRequests.Property.getAnnotationPropertiesTreeRequest = "getAnnotationPropertiesTree";
150 STRequests.Property.removePropertyRequest = "removeProperty";
151 STRequests.Property.addPropertyRequest = "addProperty";
152 STRequests.Property.getRangeClassesTreeRequest = "getRangeClassesTree";
153 STRequests.Property.getPropertyDescriptionRequest = "getPropDescription";
154 STRequests.Property.removePropValueRequest = "removePropValue";
155 STRequests.Property.addExistingPropValueRequest = "addExistingPropValue";
156 STRequests.Property.createAndAddPropValueRequest = "createAndAddPropValue";
157 STRequests.Property.addSuperPropertyRequest = "addSuperProperty";
158 STRequests.Property.removeSuperPropertyRequest = "removeSuperProperty";
159 STRequests.Property.addPropertyDomainRequest = "addPropertyDomain";
160 STRequests.Property.removePropertyDomainRequest = "removePropertyDomain";
161 STRequests.Property.addPropertyRangeRequest = "addPropertyRange";
162 STRequests.Property.removePropertyRangeRequest = "removePropertyRange";
163 STRequests.Property.getDomainRequest = "getDomain";
164 STRequests.Property.getRangeRequest = "getRange";
165 STRequests.Property.parseDataRangeRequest = "parseDataRange";
166 
167 //delete service requests
168 STRequests.Delete.serviceName = "delete";
169 STRequests.Delete.removePropertyRequest = "removeProperty";
170 STRequests.Delete.removeClassRequest = "removeClass";
171 STRequests.Delete.removeInstanceRequest = "removeInstance";
172 
173 //synonym service request
174 STRequests.Synonyms.serviceName = "synonyms";
175 STRequests.Synonyms.addSynonymsRequest ="addSynonym";
176 STRequests.Synonyms.getSynonymsRequest ="getSynonym";
177 
178 //graph service request
179 STRequests.Graph.serviceName = "graph";
180 STRequests.Graph.graphRequest = "graph";
181 STRequests.Graph.partialGraphRequest = "partialGraph";
182 
183 //page service request
184 STRequests.Page.serviceName = "page";
185 STRequests.Page.getBookmarksRequest ="getBookmarks";
186 
187 //annotation service request
188 STRequests.Annotation.serviceName = "annotation";
189 STRequests.Annotation.chkAnnotationsRequest = "chkAnnotations";
190 STRequests.Annotation.chkBookmarksRequest = "chkBookmarks";
191 STRequests.Annotation.getPageAnnotationsRequest = "getPageAnnotations";
192 STRequests.Annotation.createAndAnnotateRequest = "createAndAnnotate";
193 STRequests.Annotation.createFurtherAnnotationRequest = "addAnnotation";
194 STRequests.Annotation.relateAndAnnotateRequest = "relateAndAnnotate";
195 STRequests.Annotation.addAnnotationRequest = "addAnnotation";
196 STRequests.Annotation.bookmarkPageRequest = "bookmarkPage";
197 STRequests.Annotation.getPageTopicsRequest = "getPageTopics";
198 STRequests.Annotation.getBookmarksByTopicRequest = "getBookmarksByTopic";
199 STRequests.Annotation.removeBookmarkRequest = "removeBookmark";
200 STRequests.Annotation.removeAnnotationRequest = "removeAnnotation";
201 STRequests.Annotation.getAnnotatedContentResourcesRequest = "getAnnotatedContentResources";
202 
203 //rangeannotation service request
204 STRequests.RangeAnnotation.serviceName = "rangeannotation";
205 STRequests.RangeAnnotation.chkAnnotationsRequest = "chkAnnotations";
206 STRequests.RangeAnnotation.getPageAnnotationsRequest = "getPageAnnotations";
207 STRequests.RangeAnnotation.addAnnotationRequest = "addAnnotation";
208 STRequests.RangeAnnotation.deleteAnnotationRequest = "deleteAnnotation";
209 STRequests.RangeAnnotation.getAnnotatedContentResourcesRequest = "getAnnotatedContentResources";
210 
211 // individual service request
212 STRequests.Individual.serviceName = "individual";
213 STRequests.Individual.getIndividualDescriptionRequest = "getIndDescription";
214 STRequests.Individual.addTypeRequest = "addType";
215 STRequests.Individual.removeTypeRequest = "removeType";
216 STRequests.Individual.get_directNamedTypesRequest = "getDirectNamedTypes";
217 
218 //metadata service request
219 STRequests.Metadata.serviceName = "metadata";
220 STRequests.Metadata.getOntologyDescriptionRequest = "getOntologyDescription";
221 STRequests.Metadata.getBaseuriRequest = "getBaseuri";
222 STRequests.Metadata.getDefaultNamespaceRequest = "getDefaultNamespace";
223 STRequests.Metadata.getImportsRequest = "getImports";
224 STRequests.Metadata.getNSPrefixMappingsRequest = "getNSPrefixMappings";
225 STRequests.Metadata.setBaseuriDefNamespaceRequest = "setBaseuriDefNamespace";
226 STRequests.Metadata.setDefaultNamespaceRequest = "setDefaultNamespace";
227 STRequests.Metadata.setBaseuriRequest = "setBaseuri";
228 STRequests.Metadata.setNSPrefixMappingRequest = "setNSPrefixMapping";
229 STRequests.Metadata.removeNSPrefixMappingRequest = "removeNSPrefixMapping";
230 STRequests.Metadata.changeNSPrefixMappingRequest = "changeNSPrefixMapping";
231 STRequests.Metadata.removeImportRequest = "removeImport";
232 STRequests.Metadata.addFromWebRequest = "addFromWeb";
233 STRequests.Metadata.addFromWebToMirrorRequest = "addFromWebToMirror";
234 STRequests.Metadata.addFromLocalFileRequest = "addFromLocalFile";
235 STRequests.Metadata.addFromOntologyMirrorRequest = "addFromOntologyMirror";
236 STRequests.Metadata.downloadFromWebToMirrorRequest = "downloadFromWebToMirror";
237 STRequests.Metadata.downloadFromWebRequest = "downloadFromWeb";
238 STRequests.Metadata.getFromLocalFileRequest = "getFromLocalFile";
239 STRequests.Metadata.mirrorOntologyRequest = "mirrorOntology";
240 STRequests.Metadata.getNamedGraphsRequest = "getNamedGraphs";
241 //modifyName service request
242 STRequests.ModifyName.serviceName = "modifyName";
243 STRequests.ModifyName.renameRequest = "rename";
244 
245 //administartion service request
246 STRequests.Administration.serviceName = "administration";
247 STRequests.Administration.getOntologyMirrorRequest = "getOntologyMirror";
248 STRequests.Administration.setAdminLevelRequest = "setAdminLevel";
249 STRequests.Administration.deleteOntMirrorEntryRequest = "deleteOntMirrorEntry";
250 STRequests.Administration.updateOntMirrorEntryRequest = "updateOntMirrorEntry";
251 STRequests.Administration.getVersionRequest = "getVersion";
252 
253 // inputoutput service request
254 STRequests.InputOutput.serviceName = "inputOutput";
255 STRequests.InputOutput.saveRepositoryRequest = "saveRDF";
256 STRequests.InputOutput.loadRepositoryRequest = "loadRDF";
257 STRequests.InputOutput.clearRepositoryRequest = "clearData";
258 
259 // SPARQL service request
260 STRequests.SPARQL.serviceName = "sparql";
261 STRequests.SPARQL.resolveQueryRequest = "resolveQuery";
262 
263 // SKOS service request
264 STRequests.SKOS.serviceName = "skos";
265 // GET REQUESTS
266 STRequests.SKOS.getTopConceptsRequest = "getTopConcepts";
267 STRequests.SKOS.getNarrowerConceptsRequest = "getNarrowerConcepts";
268 STRequests.SKOS.getAllSchemesListRequest = "getAllSchemesList";
269 STRequests.SKOS.getConceptDescriptionRequest = "getConceptDescription";
270 STRequests.SKOS.getConceptSchemeDescriptionRequest = "getConceptSchemeDescription";
271 STRequests.SKOS.getPrefLabelRequest = "getPrefLabel";
272 STRequests.SKOS.getShowRequest = "getShow";
273 // ADD REQUESTS
274 STRequests.SKOS.addBroaderConceptRequest = "addBroaderConcept";
275 STRequests.SKOS.addTopConceptRequest = "addTopConcept";
276 // SET REQUESTS
277 STRequests.SKOS.setPrefLabelRequest = "setPrefLabel";
278 // CREATE REQUESTS
279 STRequests.SKOS.createConceptRequest = "createConcept";
280 STRequests.SKOS.createSchemeRequest = "createScheme";
281 // DELETE REQUESTS
282 STRequests.SKOS.deleteConceptRequest = "deleteConcept";
283 STRequests.SKOS.deleteSchemeRequest = "deleteScheme";
284 // REMOVE REQUESTS
285 STRequests.SKOS.removeBroaderConceptRequest = "removeBroaderConcept";
286 STRequests.SKOS.removeTopConceptRequest = "removeTopConcept";
287 STRequests.SKOS.removePrefLabelRequest = "removePrefLabel";
288 
289 //SKOSXL service request
290 STRequests.SKOSXL.serviceName = "skosxl";
291 // GET REQUESTS
292 STRequests.SKOSXL.getTopConceptsRequest = "getTopConcepts";
293 STRequests.SKOSXL.getNarrowerConceptsRequest = "getNarrowerConcepts";
294 STRequests.SKOSXL.getAllSchemesListRequest = "getAllSchemesList";
295 STRequests.SKOSXL.getConceptDescriptionRequest = "getConceptDescription";
296 STRequests.SKOSXL.getConceptSchemeDescriptionRequest = "getConceptSchemeDescription";
297 STRequests.SKOSXL.getPrefLabelRequest = "getPrefLabel";
298 STRequests.SKOSXL.getShowRequest = "getShow";
299 // ADD REQUESTS
300 STRequests.SKOSXL.addBroaderConceptRequest = "addBroaderConcept";
301 STRequests.SKOSXL.addTopConceptRequest = "addTopConcept";
302 // SET REQUESTS
303 STRequests.SKOSXL.setPrefLabelRequest = "setPrefLabel";
304 // CREATE REQUESTS
305 STRequests.SKOSXL.createConceptRequest = "createConcept";
306 STRequests.SKOSXL.createSchemeRequest = "createScheme";
307 // DELETE REQUESTS
308 STRequests.SKOSXL.deleteConceptRequest = "deleteConcept";
309 STRequests.SKOSXL.deleteSchemeRequest = "deleteScheme";
310 // REMOVE REQUESTS
311 STRequests.SKOSXL.removeBroaderConceptRequest = "removeBroaderConcept";
312 STRequests.SKOSXL.removeTopConceptRequest = "removeTopConcept";
313 STRequests.SKOSXL.removePrefLabelRequest = "removePrefLabel";
314 
315 //SKOS_ICV requests
316 STRequests.SKOS_ICV.serviceName = "SKOS_ICV";
317 STRequests.SKOS_ICV.listDanglingConceptsRequest = "listDanglingConcepts";
318 STRequests.SKOS_ICV.listCyclicConceptsRequest = "listCyclicConcepts";
319 STRequests.SKOS_ICV.listConceptSchemesWithNoTopConceptRequest = "listConceptSchemesWithNoTopConcept";
320 STRequests.SKOS_ICV.listConceptsWithNoSchemeRequest = "listConceptsWithNoScheme";
321 STRequests.SKOS_ICV.listTopConceptsWithBroaderRequest = "listTopConceptsWithBroader";
322 STRequests.SKOS_ICV.listConceptsWithSameSKOSPrefLabelRequest = "listConceptsWithSameSKOSPrefLabel";
323 STRequests.SKOS_ICV.listConceptsWithSameSKOSXLPrefLabelRequest = "listConceptsWithSameSKOSXLPrefLabel";
324 STRequests.SKOS_ICV.listConceptsWithOnlySKOSAltLabelRequest = "listConceptsWithOnlySKOSAltLabel";
325 STRequests.SKOS_ICV.listConceptsWithOnlySKOSXLAltLabelRequest = "listConceptsWithOnlySKOSXLAltLabel";
326 STRequests.SKOS_ICV.listConceptsWithNoLabelRequest = "listConceptsWithNoLabel";
327 STRequests.SKOS_ICV.listConceptSchemesWithNoLabelRequest = "listConceptSchemesWithNoLabel";
328 STRequests.SKOS_ICV.listConceptsWithMultipleSKOSPrefLabelRequest = "listConceptsWithMultipleSKOSPrefLabel";
329 STRequests.SKOS_ICV.listConceptsWithMultipleSKOSXLPrefLabelRequest = "listConceptsWithMultipleSKOSXLPrefLabel";
330 STRequests.SKOS_ICV.listConceptsWithNoLanguageTagSKOSLabelRequest = "listConceptsWithNoLanguageTagSKOSLabel";
331 STRequests.SKOS_ICV.listConceptsWithNoLanguageTagSKOSXLLabelRequest = "listConceptsWithNoLanguageTagSKOSXLLabel";
332 STRequests.SKOS_ICV.listConceptsWithOverlappedSKOSLabelRequest = "listConceptsWithOverlappedSKOSLabel";
333 STRequests.SKOS_ICV.listConceptsWithOverlappedSKOSXLLabelRequest = "listConceptsWithOverlappedSKOSXLLabel";
334 STRequests.SKOS_ICV.listConceptsWithExtraWhitespaceInSKOSLabelRequest = "listConceptsWithExtraWhitespaceInSKOSLabel";
335 STRequests.SKOS_ICV.listConceptsWithExtraWhitespaceInSKOSXLLabelRequest = "listConceptsWithExtraWhitespaceInSKOSXLLabel";
336 
337 //projects service request (OLD VERSION, this it not used anymore, so maybe it could be removed)
338 //STRequests.ProjectsOLD.serviceName = "projects";
339 //STRequests.ProjectsOLD.openProjectRequest = "openProject";
340 //STRequests.ProjectsOLD.repairProjectRequest = "repairProject";
341 //STRequests.ProjectsOLD.newProjectRequest = "newProject";
342 //STRequests.ProjectsOLD.newProjectFromFileRequest = "newProjectFromFile";
343 //STRequests.ProjectsOLD.closeProjectRequest = "closeProject";
344 //STRequests.ProjectsOLD.deleteProjectRequest = "deleteProject";
345 //STRequests.ProjectsOLD.exportProjectRequest = "exportProject";
346 //STRequests.ProjectsOLD.importProjectRequest = "importProject";
347 //STRequests.ProjectsOLD.cloneProjectRequest = "cloneProject";
348 //STRequests.ProjectsOLD.saveProjectAsRequest = "saveProjectAs";
349 //STRequests.ProjectsOLD.saveProjectRequest = "saveProject";
350 //STRequests.ProjectsOLD.listProjectsRequest = "listProjects";
351 //STRequests.ProjectsOLD.getCurrentProjectRequest = "getCurrentProject";
352 //STRequests.ProjectsOLD.getProjectPropertyRequest = "getProjectProperty";
353 //STRequests.ProjectsOLD.setProjectPropertyRequest = "setProjectProperty";
354 //STRequests.ProjectsOLD.isCurrentProjectActiveRequest = "isCurrentProjectActive";
355 
356 //projects service request (NEW VERSION)
357 STRequests.Projects.serviceName = "Projects";	//NEW
358 STRequests.Projects.accessProjectRequest = "accessProject";	//NEW
359 STRequests.Projects.repairProjectRequest = "repairProject";	//NEW
360 STRequests.Projects.createProjectRequest = "createProject";	//NEW
361 STRequests.Projects.newProjectFromFileRequest = "newProjectFromFile";
362 STRequests.Projects.disconnectFromProjectRequest = "disconnectFromProject";	//NEW
363 STRequests.Projects.deleteProjectRequest = "deleteProject"; //NEW
364 STRequests.Projects.exportProjectRequest = "exportProject";	//NEW
365 STRequests.Projects.importProjectRequest = "importProject";	//NEW
366 STRequests.Projects.cloneProjectRequest = "cloneProject";	//NEW
367 STRequests.Projects.saveProjectRequest = "saveProject";	//NEW
368 STRequests.Projects.listProjectsRequest = "listProjects";	//NEW
369 STRequests.Projects.getCurrentProjectRequest = "getCurrentProject";
370 STRequests.Projects.getProjectPropertyRequest = "getProjectProperty";	//NEW
371 STRequests.Projects.setProjectPropertyRequest = "setProjectProperty";	//NEW
372 STRequests.Projects.isCurrentProjectActiveRequest = "isCurrentProjectActive"; // ???
373 
374 
375 //ontManager service request
376 STRequests.OntManager.serviceName = "ontManager";
377 STRequests.OntManager.getOntManagerParametersRequest = "getOntManagerParameters";
378 
379 //OntoSearch service request
380 STRequests.OntoSearch.serviceName = "OntoSearch";
381 STRequests.OntoSearch.searchOntologyRequest = "searchOntology";
382 
383 //Statement service request
384 STRequests.Statement.serviceName = "statement";
385 STRequests.Statement.getStatementsRequest = "getStatements";
386 STRequests.Statement.hasStatementRequest = "hasStatement";
387 
388 //Resource service request
389 STRequests.Resource.serviceName = "resource";
390 STRequests.Resource.getRoleRequest = "getRole";
391 STRequests.Resource.removePropertyValueRequest = "removePropertyValue";
392 
393 //ResourceView service request
394 STRequests.ResourceView.serviceName = "ResourceView";
395 STRequests.ResourceView.getResourceViewRequest = "getResourceView";