source: Dev/branches/rest-dojo-ui/server/rdfapi/dataset/NamedGraphMem.php @ 303

Last change on this file since 303 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 1.2 KB
Line 
1<?php
2require_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$
12* @author Daniel Westphal <http://www.d-westphal.de>
13*
14* @package      dataset
15* @access       public
16**/
17class 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?>
Note: See TracBrowser for help on using the repository browser.