Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
OntologyDeleteQuery.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
12  use \StructuredDynamics\osf\php\api\framework\CRUDPermission;
13 
84  class OntologyDeleteQuery extends \StructuredDynamics\osf\php\api\framework\WebServiceQuery
85  {
94  function __construct($network, $appID, $apiKey, $userID)
95  {
96  // Set the OSF network & credentials to use for this query.
97  $this->setNetwork($network);
98  $this->appID = $appID;
99  $this->apiKey = $apiKey;
100  $this->userID = $userID;
101 
102  // Set default configarations for this web service query
103  $this->setSupportedMimes(array("text/xml",
104  "application/json",
105  "application/rdf+xml",
106  "application/rdf+n3",
107  "application/iron+json",
108  "application/iron+csv"));
109 
110  $this->setMethodPost();
111 
112  $this->mime("resultset");
113 
114  $this->setEndpoint("ontology/delete/");
115 
116  // Set default parameters for this query
117  $this->sourceInterface("default");
118  }
119 
136  public function ontology($ontologyUri)
137  {
138  $this->params["ontology"] = urlencode($ontologyUri);
139 
140  return($this);
141  }
142 
150  public function deleteOntology()
151  {
152  $this->params["function"] = "deleteOntology";
153 
154  return($this);
155  }
156 
166  public function deleteClass(&$function)
167  {
168  if(get_class($function) == 'StructuredDynamics\osf\php\api\ws\ontology\delete\DeleteClassFunction')
169  {
170  $this->params["function"] = "deleteClass";
171 
172  $this->params["parameters"] = $function->getParameters();
173  }
174 
175  return($this);
176  }
177 
187  public function deleteProperty(&$function)
188  {
189  if(get_class($function) == 'StructuredDynamics\osf\php\api\ws\ontology\delete\DeletePropertyFunction')
190  {
191  $this->params["function"] = "deleteProperty";
192 
193  $this->params["parameters"] = $function->getParameters();
194  }
195 
196  return($this);
197  }
198 
208  public function deleteNamedIndividual(&$function)
209  {
210  if(get_class($function) == 'StructuredDynamics\osf\php\api\ws\ontology\delete\DeleteNamedIndividualFunction')
211  {
212  $this->params["function"] = "deleteNamedIndividual";
213 
214  $this->params["parameters"] = $function->getParameters();
215  }
216 
217  return($this);
218  }
219  }
220 
229  class DeleteClassFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
230  {
240  public function uri($uri)
241  {
242  $this->params["uri"] = $uri;
243  }
244  }
245 
254  class DeletePropertyFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
255  {
265  public function uri($uri)
266  {
267  $this->params["uri"] = $uri;
268  }
269  }
270 
279  class DeleteNamedIndividualFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
280  {
290  public function uri($uri)
291  {
292  $this->params["uri"] = $uri;
293  }
294  }
295 
297 ?>
deleteProperty(&$function)
Delete a property from an ontology on the system.
uri($uri)
Specifies the URI of the property to delete from the ontology.
Class used to define the parameters to use send a "deleteNamedIndividual" call to the Ontology: Delet...
uri($uri)
Specifies the URI of the class to delete from the ontology.
ontology($ontologyUri)
URI of the ontology; the URI of an Ontology dataset is the URL used to import that ontology in the sy...
Class used to define the parameters to use send a "deleteProperty" call to the Ontology: Delete web s...
deleteNamedIndividual(&$function)
Delete a named individual from an ontology on the system.
The Ontology Delete service is used to delete an OWL ontology existing in the OSF instance...
uri($uri)
Specifies the URI of the named individual to delete from the ontology.
__construct($network, $appID, $apiKey, $userID)
Constructor.
Class used to define the parameters to use send a "deleteClass" call to the Ontology: Delete web serv...
deleteClass(&$function)
Delete a class from an ontology on the system.