Source for file NamedGraphDb.php

Documentation is available at NamedGraphDb.php

  1. <?PHP
  2. // ----------------------------------------------------------------------------------
  3. // Class: NamedGraphDb
  4. // ----------------------------------------------------------------------------------
  5.  
  6. /**
  7. * Persistent NamedGraph implementation that extends a {@link DbModel}.
  8. * The graphName is not stored in the database. As soon as the namedGraph is added
  9. * to a RDF dataset the graphName is saved.
  10. *
  11. * <BR><BR>History:<UL>
  12. * <LI>05-30-2005 : First version of this class.</LI>
  13. *
  14. * @version V0.9.3
  15. * @author Daniel Westphal (http://www.d-westphal.de)
  16. *
  17. * @package dataset
  18. * @access public
  19. ***/
  20. class NamedGraphDb extends DbModel
  21. {
  22.  
  23. /**
  24. * Name of the NamedGraphDb
  25. *
  26. * @var string
  27. * @access private
  28. */
  29. var $graphName;
  30. /**
  31. * Constructor
  32. * Do not call this directly.
  33. * Use the method getModel,getNewModel or putModel of the Class NamedGraphDb instead.
  34. *
  35. * @param ADODBConnection
  36. * @param string
  37. * @param string
  38. * @param string
  39. * @access public
  40. */
  41. function NamedGraphDb(&$dbConnection, $modelURI, $modelID,$graphName, $baseURI=NULL)
  42. {
  43. $this->dbConn =& $dbConnection;
  44. $this->modelURI = $modelURI;
  45. $this->modelID = $modelID;
  46. $this->baseURI = $this->_checkBaseURI($baseURI);
  47. $this->graphName = $graphName;
  48. }
  49. /**
  50. * Sets the graph name.
  51. *
  52. * @param string
  53. * @access public
  54. */
  55. function setGraphName($graphName)
  56. {
  57. $this->graphName=$graphName;
  58. }
  59. /**
  60. * Return the graph name.
  61. *
  62. * @return string
  63. * @access public
  64. */
  65. function getGraphName()
  66. {
  67. return $this->graphName;
  68. }
  69. }
  70. ?>

Documentation generated on Fri, 13 Jan 2006 07:48:42 +0100 by phpDocumentor 1.3.0RC4