Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
GetEquivalentPropertiesFunction.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
20  class GetEquivalentPropertiesFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
21  {
22  function __construct()
23  {
24  // Default values
25  $this->getDatatypeProperties();
26  $this->getPropertiesUris();
27  }
28 
40  public function uri($uri)
41  {
42  $this->params["uri"] = $uri;
43 
44  return($this);
45  }
46 
54  public function getDatatypeProperties()
55  {
56  $this->params["type"] = "dataproperty";
57 
58  return($this);
59  }
60 
68  public function getObjectProperties()
69  {
70  $this->params["type"] = "objectproperty";
71 
72  return($this);
73  }
74 
82  public function getPropertiesUris()
83  {
84  $this->params["mode"] = "uris";
85 
86  return($this);
87  }
88 
96  public function getPropertiesDescriptions()
97  {
98  $this->params["mode"] = "descriptions";
99 
100  return($this);
101  }
102  }
103 
105 ?>
getPropertiesDescriptions()
Get the list of properties description for the classes described in this ontology.
uri($uri)
URI of the property for which the requester want its equivalent-properties.
getDatatypeProperties()
Get all the Datatype equivalent-properties of the ontology.
getPropertiesUris()
Get a list of URIs that refers to the properties described in this ontology.
Get all the equivalent-properties that have been defined in an ontology.