|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.model.ImmutableObjectModel
org.eaglei.repository.model.WritableObjectModel
org.eaglei.repository.model.NamedGraph
public class NamedGraph
Named Graph object model, collects metadata about the named graph stored in repo's intenal metadata graph. NG is implemented as a Sesame context, named by the "name" URI. It has these attributes: * name - URI of the context * label - text string to describe graph to users * graph type - enum identifying hte purpose of its contents * provenance metadata * access control (admin metadata)
| Field Summary |
|---|
| Fields inherited from class org.eaglei.repository.model.WritableObjectModel |
|---|
dirty |
| Method Summary | |
|---|---|
int |
compareTo(NamedGraph o)
|
boolean |
equals(java.lang.Object b)
Consider two NGs equal if the names are equal, never mind the metadata. |
static NamedGraph |
find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI name)
Returns a named graph object, or null if this is not a valid named graph OR context. |
static java.util.List<NamedGraph> |
findAll(javax.servlet.http.HttpServletRequest request)
Get an iterable collection of all known named graphs AND Contexts. |
static NamedGraph |
findOrCreate(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI name,
boolean createp)
Returns a named graph object, or null if this is not a valid named graph OR context and createp was false. |
java.lang.String |
getLabel()
Getter for the field label. |
long |
getSize(javax.servlet.http.HttpServletRequest request)
Return the number of non-inferred statements in the named graph. |
NamedGraphType |
getType()
Getter for the field type. |
java.lang.String |
getTypeLabel()
Getter for the field typeLabel. |
org.openrdf.model.URI |
getTypeURI()
Getter for the field type, but returns URI form. |
org.openrdf.model.URI |
getURI()
Getter for the field name. |
int |
hashCode()
|
boolean |
isAnonymousReadable()
Can be read by anonymous user (i.e. |
boolean |
isManaged()
When true, graph has metadata and is managed by repository. |
void |
setLabel(javax.servlet.http.HttpServletRequest request,
java.lang.String nl)
Setter for the field label. |
void |
setType(javax.servlet.http.HttpServletRequest request,
NamedGraphType nt)
Setter for the field type. |
void |
setType(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI nt)
Setter for the field type. |
| Methods inherited from class org.eaglei.repository.model.WritableObjectModel |
|---|
commit, decacheInstance, setDirty, update |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<NamedGraph> findAll(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - a HttpServletRequest object.
Collection object.
javax.servlet.ServletException - if any.
public static NamedGraph find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI name)
throws javax.servlet.ServletException
request - a HttpServletRequest object.name - name of named-graph or context, a URI object.
org.eaglei.repository.NamedGraph object representing named graph, or null if no graph or context exists.
javax.servlet.ServletException - if any problems
public static NamedGraph findOrCreate(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI name,
boolean createp)
throws javax.servlet.ServletException
request - a HttpServletRequest object.name - name of named-graph or context, a URI object.createp - a boolean, true if graph should be created
org.eaglei.repository.NamedGraph object representing named graph, or null if no graph or context exists UNLESS createp is true.
javax.servlet.ServletException - if any problems.public org.openrdf.model.URI getURI()
Getter for the field name.
getURI in class ImmutableObjectModelURI object.public java.lang.String getLabel()
Getter for the field label.
getLabel in class ImmutableObjectModelString object.public NamedGraphType getType()
Getter for the field type.
URI object.public org.openrdf.model.URI getTypeURI()
Getter for the field type, but returns URI form.
URI object.public java.lang.String getTypeLabel()
Getter for the field typeLabel.
String object.public boolean isAnonymousReadable()
public long getSize(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic boolean isManaged()
public void setLabel(javax.servlet.http.HttpServletRequest request,
java.lang.String nl)
throws javax.servlet.ServletException
Setter for the field label.
request - a HttpServletRequest object.nl - a String object.
javax.servlet.ServletException - if any.
public void setType(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI nt)
throws javax.servlet.ServletException
Setter for the field type.
request - a HttpServletRequest object.nt - a org.eaglei.repository.NamedGraph.NamedGraphType object.
javax.servlet.ServletException - if any.
public void setType(javax.servlet.http.HttpServletRequest request,
NamedGraphType nt)
throws javax.servlet.ServletException
Setter for the field type.
request - a HttpServletRequest object.nt - a URI object.
javax.servlet.ServletException - if any.public boolean equals(java.lang.Object b)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(NamedGraph o)
compareTo in interface java.lang.Comparable<NamedGraph>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||