Changeset 29 for php/trunk/classes/rdfa_Projection.php
- Timestamp:
- Jul 13, 2011, 1:33:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
php/trunk/classes/rdfa_Projection.php
r28 r29 49 49 * Creates a Projection instance from a Data instance, reflecting a given subject in the triple data. 50 50 * 51 * \param rdfaData instance of Reader holding the RDF data 52 * \param subject subject of the projection 53 * \param template template array specifying the members to be created from data linked to the subject 51 * \param rdfaData instance of rdfa::Data holding the graph of the subject 52 * \param subject Subject of the projection 53 * \param template Associative array( URI/CURIE => membername) as a template to be applied to the projection object 54 * 55 * \exception Exception The parameter rdfaData is not of object rdfa::Data 54 56 * 55 57 * \note A projection is to be created by the following methods only: … … 97 99 /** 98 100 * Gets properties of the subject of the projection. 99 * Returns a list of properties. 101 * 102 * \retval array List of properties 100 103 */ 101 104 public function getProperties() { … … 106 109 107 110 /** 108 * Gets unique properties of the subject of the projection. 111 * Gets an associative list of unique properties of the projection 112 * with their values. 109 113 * 110 * Ths method returns an associative list of properties => values. 111 * All non-unique properties are NOT returned ! 114 * \retval array Associative list of unqique properties and their values 112 115 * 113 * \note This method is a library specific extension to the RDF API and RDFa API 114 * 116 * \note 117 * - All non-unique properties are \c NOT returned ! 118 * - This method is a library specific extension to the RDF API and RDFa API 115 119 */ 116 120 public function _getUniqueProperties() { … … 122 126 /** 123 127 * Gets the subject of of the subject of the projection. 128 * 129 * \retval string Subject of the property 124 130 */ 125 131 public function getSubject() { … … 132 138 * Gets the first available value of a given property. 133 139 * 134 * \param property property to retrieve the first value of 140 * \param property Property to retrieve the first value of# 141 * \retval string First value of the property 135 142 */ 136 143 … … 144 151 * Gets a list of all available values of a given property. 145 152 * 146 * \param property property to retrieve all values of153 * \param property Property to retrieve all values of 147 154 */ 148 155 … … 150 157 return $this->rdfaData->getValues( $this->subject, $property); 151 158 } // public function getAll 152 159 153 160 // -------------------------------------------------------- 154 161 … … 156 163 * Sets a property value. 157 164 * 158 * \param property property to be added159 * \param value value to be set for the property160 * \param type the type of the value, either 'uri', 'literal' or 'bnode'165 * \param property Property to be added 166 * \param value Value to be set for the property 167 * \param type The type of the value, either 'uri', 'literal' or 'bnode' 161 168 * (case-insensitive). Specifying the first character is sufficient. 162 169 * If not specified, strings starting with 'http://' are taken as a URI, 163 170 * otherwise as a literal 164 * \retval object projection165 * \retval falseinvalid value type specified171 * \retval rdfa::Projection Success 172 * \retval boolean false: invalid value type specified 166 173 * 167 174 * \see rdfa::Data::setValue
Note:
See TracChangeset
for help on using the changeset viewer.