Ignore:
Timestamp:
Jul 13, 2011, 1:33:27 PM (14 years ago)
Author:
cla
Message:

rdfint

  • all classes: added missing comments on return value
  • Projection::construct and rdfa::SparqlQuery: added missing comment on exceptions
  • Data::parse
    • added note on merge feature
    • added code to return boolean
File:
1 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/classes/rdfa_Projection.php

    r28 r29  
    4949   * Creates a Projection instance from a Data instance, reflecting a given subject in the triple data.
    5050   *
    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
    5456   *
    5557   * \note A projection is to be created by the following methods only:
     
    9799  /**
    98100   * Gets properties of the subject of the projection.
    99    * Returns a list of properties.
     101   *
     102   * \retval array List of properties
    100103   */
    101104  public function getProperties() {
     
    106109
    107110  /**
    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.
    109113   *
    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
    112115   *
    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
    115119   */
    116120  public function _getUniqueProperties() {
     
    122126  /**
    123127   * Gets the subject of of the subject of the projection.
     128   *
     129   * \retval string  Subject of the property
    124130   */
    125131  public function getSubject() {
     
    132138   * Gets the first available value of a given property.
    133139   *
    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
    135142   */
    136143
     
    144151   * Gets a list of all available values of a given property.
    145152   *
    146    * \param property   property to retrieve all values of
     153   * \param property   Property to retrieve all values of
    147154   */
    148155
     
    150157    return $this->rdfaData->getValues( $this->subject, $property);
    151158  } // public function getAll
    152  
     159
    153160  // --------------------------------------------------------
    154161
     
    156163   * Sets a property value.
    157164   *
    158    * \param property  property to be added
    159    * \param value     value to be set for the property
    160    * \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'
    161168   *                  (case-insensitive). Specifying the first character is sufficient.
    162169   *                  If not specified, strings starting with 'http://' are taken as a URI,
    163170   *                  otherwise as a literal
    164    * \retval object projection
    165    * \retval false invalid value type specified
     171   * \retval rdfa::Projection Success
     172   * \retval boolean   false: invalid value type specified
    166173   *
    167174   * \see rdfa::Data::setValue
Note: See TracChangeset for help on using the changeset viewer.