/* Vocabulary Class for DB.
 *
 */

package com.hp.hpl.jena.vocabulary;

import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.ResourceFactory;
import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.impl.ErrorHelper;

/**
 * Vocabulary for Database properties.
 * 
 * @author csayers
 * @version $Revision: 1.2 $
 */
public class DB {

    protected static final String uri = "http://jena.hpl.hp.com/2003/04/DB#";

    /** returns the URI for this schema
     * @return the URI for this schema
     */
    public static String getURI() {
          return uri;
    }

	// Database properties
	        static String nSystemGraphName = "SystemGraph";
    public static Resource systemGraphName;
           static String nEngineType = "EngineType";
    public static Property engineType;
           static String nDriverVersion = "DriverVersion";
    public static Property driverVersion;
           static String nFormatDate = "FormatDate";
    public static Property formatDate;
           static String nGraph = "Graph";
    public static Property graph;
           static String nMaxLiteral = "MaxLiteral";
    public static Property maxLiteral;
    
	// Graph properties
		   static String nGraphType = "GraphType";
	public static Property graphType;
		   static String nGraphLSet = "GraphLSet";
	public static Property graphLSet;
		   static String nGraphPrefix = "GraphPrefix";
	public static Property graphPrefix;
    
    // Prefix properties
		   static String nPrefixValue = "PrefixValue";
 	public static Property prefixValue;
   		   static String nPrefixURI = "PrefixURI";
	public static Property prefixURI;
    
	// LSet properties
		   static String nLSetType = "LSetType";
	public static Property lSetType;
		   static String nLSetPSet = "LSetPSet";
	public static Property lSetPSet;
    
	// PSet properties
		   static String nPSetType = "PSetType";
	public static Property pSetType;    
    
    // Added - schemagen does not generate this
           static String nundefined = "undefined" ;
    public static Resource undefined ; 
    

    static {
        try {
            systemGraphName = ResourceFactory.createResource(uri + nSystemGraphName);
            engineType = ResourceFactory.createProperty(uri + nEngineType);
            driverVersion = ResourceFactory.createProperty(uri + nDriverVersion);
            formatDate = ResourceFactory.createProperty(uri + nFormatDate);
            graph = ResourceFactory.createProperty(uri + nGraph);
            maxLiteral = ResourceFactory.createProperty(uri + nMaxLiteral);
            
            graphType = ResourceFactory.createProperty(uri + nGraphType);
			graphLSet = ResourceFactory.createProperty(uri + nGraphLSet);
			graphPrefix = ResourceFactory.createProperty(uri + nGraphPrefix);
            
			prefixValue = ResourceFactory.createProperty(uri + nPrefixValue);
			prefixURI = ResourceFactory.createProperty(uri + nPrefixURI);
            
			lSetType = ResourceFactory.createProperty(uri + nLSetType);
			lSetPSet = ResourceFactory.createProperty(uri + nLSetPSet);
            
			pSetType = ResourceFactory.createProperty(uri + nPSetType);

            undefined = ResourceFactory.createResource(uri + nundefined) ;
        } catch (Exception e) {
            ErrorHelper.logInternalError("RDF", 1, e);
        }
    }
}

@@ -345,17 +345,17 @@
 sion: 1.
-2
+3
  $%0A */%0Ap
@@ -381,16 +381,13 @@
    p
-rotected
+ublic
  sta
@@ -1198,33 +1198,119 @@
 aph properties%0A%09
-%09
+       static String nGraphName = %22GraphName%22;%0A%09public static Property graphName;%0A%09    
    static String
@@ -1755,33 +1755,116 @@
 Set properties%0A%09
-%09
+       static String nLSetName = %22LSetName%22;%0A%09public static Property lSetName;%0A%09    
    static String
@@ -2017,32 +2017,111 @@
 Set properties%0A%09
+   static String nPSetName = %22PSetName%22;%0A%09public static Property pSetName;    %0A
 %09   static Strin
@@ -2837,28 +2837,84 @@
        %0A
-            
+%09%09%09graphName = ResourceFactory.createProperty(uri + nGraphName);%0A%09%09%09
 graphTyp
@@ -3261,16 +3261,79 @@
        %0A
+%09%09%09lSetName = ResourceFactory.createProperty(uri + nLSetName);%0A
 %09%09%09lSetT
@@ -3450,16 +3450,16 @@
 tPSet);%0A
-
         
@@ -3459,24 +3459,87 @@
            %0A
+%09%09%09pSetName = ResourceFactory.createProperty(uri + nPSetName);%0A
 %09%09%09pSetType 

Change naming scheme to use unique URIs in place of user-supplied graph names.