1 Components.utils.import("resource://stmodules/STRequests.jsm"); 2 Components.utils.import("resource://stmodules/Logger.jsm"); 3 4 Components.utils.import("resource://stmodules/Context.jsm"); 5 6 EXPORTED_SYMBOLS = ["STRequests"]; 7 8 var service = STRequests.OntManager; 9 var serviceName = service.serviceName; 10 11 12 /** 13 * returns all the parameters (and theirs value) associated to all the configurations 14 * of the triple store <code>ontMgrID</code> 15 * 16 * @member STRequests.OntManager 17 * @param ontMgrID 18 * @return 19 */ 20 function getOntManagerParameters(ontMgrID){ 21 var ontMgrID = "ontMgrID="+ontMgrID; 22 var contextAsArray = this.context.getContextValuesForHTTPGetAsArray(); 23 return SemTurkeyHTTPLegacy.GET(serviceName, service.getOntManagerParametersRequest,ontMgrID, contextAsArray); 24 } 25 26 //OntManager SERVICE INITIALIZATION 27 //this return an implementation for Project with a specified context 28 service.prototype.getAPI = function(specifiedContext){ 29 var newObj = new service(); 30 newObj.context = specifiedContext; 31 return newObj; 32 } 33 service.prototype.getOntManagerParameters = getOntManagerParameters; 34 service.prototype.context = new Context(); // set the default context 35 service.constructor = service; 36 service.__proto__ = service.prototype;