Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
GetSubPropertiesFunction.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
20  class GetSubPropertiesFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
21  {
22  function __construct()
23  {
24  // Default values
25  $this->getDatatypeProperties();
26  $this->getPropertiesUris();
27  $this->allSubProperties();
28  }
29 
41  public function uri($uri)
42  {
43  $this->params["uri"] = $uri;
44 
45  return($this);
46  }
47 
48 
56  public function getDatatypeProperties()
57  {
58  $this->params["type"] = "dataproperty";
59 
60  return($this);
61  }
62 
70  public function getObjectProperties()
71  {
72  $this->params["type"] = "objectproperty";
73 
74  return($this);
75  }
76 
84  public function getPropertiesUris()
85  {
86  $this->params["mode"] = "uris";
87 
88  return($this);
89  }
90 
98  public function getPropertiesDescriptions()
99  {
100  $this->params["mode"] = "descriptions";
101 
102  return($this);
103  }
104 
112  public function directSubProperties()
113  {
114  $this->params["direct"] = "True";
115 
116  return($this);
117  }
118 
127  public function allSubProperties()
128  {
129  $this->params["direct"] = "False";
130 
131  return($this);
132  }
133  }
134 
136 ?>
getDatatypeProperties()
Get all the Datatype sub-properties of the ontology.
directSubProperties()
Only get the direct sub-properties of the target property.
Get all the sub-properties that have been defined in an ontology.
getPropertiesUris()
Get a list of URIs that refers to the properties described in this ontology.
getObjectProperties()
Get all the Object sub-properties of the ontology.
allSubProperties()
Get all the sub-properties by inference (so, the sub-properties of the sub-properties recursively)...
uri($uri)
URI of the property for which the requester want its sub-properties.
getPropertiesDescriptions()
Get the list of properties description for the classes described in this ontology.