org.jrdf.util
Class ModelsImpl

java.lang.Object
  extended by org.jrdf.util.ModelsImpl
All Implemented Interfaces:
Models

public class ModelsImpl
extends Object
implements Models


Field Summary
static String JRDF_NAMESPACE
          Default name space for triples.
 
Constructor Summary
ModelsImpl(Graph newGraph)
           
 
Method Summary
 long addGraph(String name)
           
 long getId(Resource resource)
           
 long getId(String graphName)
           
 String getName(Resource resource)
           
 Set<Resource> getResources()
           
 boolean hasGraph(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JRDF_NAMESPACE

public static final String JRDF_NAMESPACE
Default name space for triples.

See Also:
Constant Field Values
Constructor Detail

ModelsImpl

public ModelsImpl(Graph newGraph)
Method Detail

hasGraph

public boolean hasGraph(String name)
Specified by:
hasGraph in interface Models

addGraph

public long addGraph(String name)
Specified by:
addGraph in interface Models

getName

public String getName(Resource resource)
Specified by:
getName in interface Models

getId

public long getId(String graphName)
Specified by:
getId in interface Models

getResources

public Set<Resource> getResources()
Specified by:
getResources in interface Models

getId

public long getId(Resource resource)
Specified by:
getId in interface Models