/** * Answer a statement find(s, p, null) with ResResources(ResLiterals) from this model. * If none exist, return null; if several exist, pick one arbitrarily. * * @param object ResResource $subject * @param object ResResource $property * @return object Statement * @access public * @throws phpErrpr */ function getProperty($subject, $property) { $statement = $this->model->findFirstMatchingStatement($this->_resNode2Node($subject), $this->_resNode2Node($property), null); if ($statement === null) { return null; } return new Statement($this->_node2ResNode($statement->getSubject()), $this->_node2ResNode($statement->getPredicate(), true), $this->_node2ResNode($statement->getObject())); }