/** * @param $name string, unit name used in ontology and mapping configuration * @param $labels list of strings, unit labels used in template property values */ public function __construct($name, $labels) { parent::__construct($name, OntologyNamespaces::getUri($name, OntologyNamespaces::DBPEDIA_ONTOLOGY_NAMESPACE)); if (!is_array($labels)) { throw new \InvalidArgumentException('labels must be an array'); } $this->labels = $labels; }
/** * @param $name string, dimension name used in ontology and mapping configuration */ public function __construct($name) { parent::__construct($name, OntologyNamespaces::getUri($name, OntologyNamespaces::DBPEDIA_ONTOLOGY_NAMESPACE)); }