Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
OntologyCreateQuery.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
12  use \StructuredDynamics\osf\php\api\framework\CRUDPermission;
13 
81  class OntologyCreateQuery extends \StructuredDynamics\osf\php\api\framework\WebServiceQuery
82  {
91  function __construct($network, $appID, $apiKey, $userID)
92  {
93  // Set the OSF network & credentials to use for this query.
94  $this->setNetwork($network);
95  $this->appID = $appID;
96  $this->apiKey = $apiKey;
97  $this->userID = $userID;
98 
99  // Set default configarations for this web service query
100  $this->setSupportedMimes(array("text/xml",
101  "application/json",
102  "application/rdf+xml",
103  "application/rdf+n3",
104  "application/iron+json",
105  "application/iron+csv"));
106 
107  $this->setMethodPost();
108 
109  $this->mime("resultset");
110 
111  $this->setEndpoint("ontology/create/");
112 
113  // Set default parameters for this query
114  $this->disableAdvancedIndexation();
115  $this->sourceInterface("default");
116  }
117 
136  public function uri($ontologyUri)
137  {
138  $this->params["uri"] = urlencode($ontologyUri);
139 
140  return($this);
141  }
142 
155  public function enableAdvancedIndexation()
156  {
157  $this->params["advancedIndexation"] = "True";
158 
159  return($this);
160  }
161 
172  public function disableAdvancedIndexation()
173  {
174  $this->params["advancedIndexation"] = "False";
175 
176  return($this);
177  }
178 
191  public function enableReasoner()
192  {
193  $this->params["reasoner"] = "True";
194 
195  return($this);
196  }
197 
206  public function disableReasoner()
207  {
208  $this->params["reasoner"] = "False";
209 
210  return($this);
211  }
212  }
213 
215 ?>
enableAdvancedIndexation()
Enable advanced indexation of the ontology.
__construct($network, $appID, $apiKey, $userID)
Constructor.
The Ontology Create service is used to create/import a new OWL ontology into the OSF instance...
disableReasoner()
Disable the reasoner for for indexing the ontology into OSF (the triple store and the full text engin...
enableReasoner()
Enable the reasoner for indexing the ontology into OSF (the triple store and the full text engine) ...
disableAdvancedIndexation()
Disable advanced indexation of the ontology.