SQL_SERVER, 'db_name' => DATA_BASE, 'db_user' => USER_NAME, 'db_pwd' => USER_PASS ); $this->config = array_merge($default_config, $this->config); $this->config['ns'] = $this->ns; $this->store = ARC2::getStore($this->config); if (!$this->store->isSetUp()) { $this->store->setUp(); } } public function get_properties($uri){ $resource = ARC2::getResource(array("ns" => $this->ns)); $resource->setStore($this->store); $resource->setURI($uri); $properties = $resource->getProps(); return $properties; } public function get_property($uri, $property_uri){ $resource = ARC2::getResource(array("ns" => $this->ns)); $resource->setStore($this->store); $resource->setURI($uri); $property = $resource->getProps($property_uri); return $property; } public function add_ns($prefix, $uri) { parent::add_ns($prefix, $uri); $this->config['ns'] = $this->ns; } }