/** * @since 2.1 * * @return SemanticData */ public function getDependencies() { $semanticData = parent::getDependencies(); $populationProperty = new PopulationProperty(); $areaProperty = new AreaProperty(); $semanticData->addPropertyObjectValue(new DIProperty('_LIST'), new DIBlob($populationProperty->getProperty()->getKey() . ';' . $areaProperty->getProperty()->getKey())); return $semanticData; }
/** * @since 2.1 * * @see https://en.wikipedia.org/wiki/Demographics_of_Paris * * @return DataValue */ public function getPopulationValue() { $populationProperty = new PopulationProperty(); return $this->dataValueFactory->newPropertyObjectValue($populationProperty->getProperty(), '2234105'); }
/** * @since 2.1 * * @see https://en.wikipedia.org/wiki/Berlin * * @return DataValue */ public function getPopulationValue() { $populationProperty = new PopulationProperty(); return $this->dataValueFactory->newDataValueByProperty($populationProperty->getProperty(), '3517424'); }