Source for file NamedGraphMem.php

Documentation is available at NamedGraphMem.php

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

Documentation generated on Fri, 1 Jun 2007 16:50:03 +0200 by phpDocumentor 1.3.2