Source for file NamedGraphMem.php

Documentation is available at NamedGraphMem.php

  1. <?php
  2. // ----------------------------------------------------------------------------------
  3. // Class: NamedGraphMem
  4. // ----------------------------------------------------------------------------------
  5.  
  6. /**
  7. * NamedGraph implementation that extends a {@link MemModel}
  8. * with a name.
  9. *
  10. @version  $Id: fsource_dataset__datasetNamedGraphMem.php.html,v 1.8 2006/06/26 12:34:12 tgauss Exp $
  11. @author Daniel Westphal <http://www.d-westphal.de>
  12. *
  13. @package     dataset
  14. @access    public
  15. ***/
  16. class NamedGraphMem extends MemModel  
  17. {
  18.     
  19.     /**
  20.     * Name of the NamedGraphMem.
  21.     *
  22.     * @var         string 
  23.     * @access    private
  24.     */
  25.     var $graphName;
  26.     
  27.     
  28.     /**
  29.     * Constructor
  30.     * You have to supply a graph name. You can supply a URI.
  31.     *
  32.     * @param  string 
  33.     * @param  string 
  34.     * @access    public
  35.     */        
  36.     function NamedGraphMem($graphName,$baseURI null)
  37.     {
  38.         $this->setBaseURI($baseURI);
  39.         $this->indexed = INDEX_TYPE;
  40.         $this->setGraphName($graphName);        
  41.     }
  42.     
  43.     /**
  44.     * Sets the graph name.
  45.     *
  46.     * @param  string 
  47.     * @access    public
  48.     */    
  49.     function setGraphName($graphName)
  50.     {
  51.         $this->graphName=$graphName;
  52.     }
  53.     
  54.     /**
  55.     * Returns the graph name.
  56.     *
  57.     * @return string 
  58.     * @access    public
  59.     */
  60.     function getGraphName()
  61.     {
  62.         return $this->graphName;
  63.     }
  64. }
  65. ?>

Documentation generated on Mon, 26 Jun 2006 14:25:42 +0200 by phpDocumentor 1.3.0RC6