/**
  * Get the [skos_property_name] column value.
  *
  * @return string
  */
 public function getSkosPropertyName()
 {
     if (!$this->skos_property_name && $this->getSkosPropertyId()) {
         $this->skos_property_name = SkosPropertyPeer::retrieveByPK($this->getSkosPropertyId())->getName();
     }
     return $this->skos_property_name;
 }
 /**
  * Get the associated SkosProperty object
  *
  * @param      Connection Optional Connection object.
  * @return     SkosProperty The associated SkosProperty object.
  * @throws     PropelException
  */
 public function getSkosProperty($con = null)
 {
     if ($this->aSkosProperty === null && $this->skos_property_id !== null) {
         // include the related Peer class
         include_once 'lib/model/om/BaseSkosPropertyPeer.php';
         $this->aSkosProperty = SkosPropertyPeer::retrieveByPK($this->skos_property_id, $con);
         /* The following can be used instead of the line above to
         		   guarantee the related object contains a reference
         		   to this object, but this level of coupling
         		   may be undesirable in many circumstances.
         		   As it can lead to a db query with many results that may
         		   never be used.
         		   $obj = SkosPropertyPeer::retrieveByPK($this->skos_property_id, $con);
         		   $obj->addSkosPropertys($this);
         		 */
     }
     return $this->aSkosProperty;
 }
 /**
  * description
  *
  *
  * @param int $conceptId
  * @param int $skosId
  * @param string $language
  * @return ConceptProperty
  */
 public static function lookupProperty($conceptId, $skosId, $language = null)
 {
     $c = new Criteria();
     $c->add(self::CONCEPT_ID, $conceptId);
     $c->add(self::SKOS_PROPERTY_ID, $skosId);
     if (isset($language)) {
         $skosProperty = SkosPropertyPeer::retrieveByPK($skosId);
         if ('resource' != $skosProperty->getObjectType()) {
             $c->add(self::LANGUAGE, $language);
         }
     }
     $results = self::doSelectOne($c);
     return $results;
 }