source: Dev/branches/jQueryUI/server/rdfapi/dataset/NamedGraphMem.php @ 249

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

This one's for Subversion, because it's so close...

First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.

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.