Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
GetSuperClassesFunction.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
20  class GetSuperClassesFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
21  {
22  function __construct()
23  {
24  // Default values
25  $this->getClassesUris();
26  $this->directSuperClasses();
27  }
28 
40  public function uri($uri)
41  {
42  $this->params["uri"] = $uri;
43 
44  return($this);
45  }
46 
54  public function getClassesUris()
55  {
56  $this->params["mode"] = "uris";
57 
58  return($this);
59  }
60 
68  public function getClassesDescriptions()
69  {
70  $this->params["mode"] = "descriptions";
71 
72  return($this);
73  }
74 
82  public function directSuperClasses()
83  {
84  $this->params["direct"] = "True";
85 
86  return($this);
87  }
88 
97  public function allSuperClasses()
98  {
99  $this->params["direct"] = "False";
100 
101  return($this);
102  }
103  }
104 
106 ?>
Class used to define the parameters to use send a "getSuperClasses" call to the Ontology: Read web se...
getClassesUris()
Get a list of URIs that refers to the super-classes described in this ontology.
uri($uri)
URI of the class for which the requester want its super-classes.
allSuperClasses()
Get all the super-classes by inference (so, the sub-classes of the super-classes recursively).
directSuperClasses()
Only get the direct super-classes of the target class.
getClassesDescriptions()
Get the list of classes description for the super-classes described in this ontology.