|
||||||||||
| 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.QueryMacro
public final class QueryMacro
Object Model for query macros, used in the SPARQL Workbench. Query that picks up the macro definitions: SELECT ?l ?t FROM :NG_Query WHERE { ?s a :QueryMacro; rdfs:label ?l; :query ?t } Example macros defined (in n3): :macros rdf:_1 [ a :QueryMacro; rdfs:label "first macro"; :query "text of query macro string here" ]; rdf:_2 [ a :QueryMacro; rdfs:label "second macro"; :query "more macro here, don't forget to escape quotes" ].
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
static QueryMacro |
find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI resource)
Not implemented, no need to get one macro |
static java.util.List<QueryMacro> |
findAll(javax.servlet.http.HttpServletRequest request)
Get all macros |
java.lang.String |
getLabel()
Getter for label |
java.lang.String |
getMacro()
Getter for macro content |
org.openrdf.model.URI |
getURI()
not really implemented |
int |
hashCode()
|
java.lang.String |
toString()
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<QueryMacro> findAll(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - a HttpServletRequest object.
javax.servlet.ServletExceptionpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
public static QueryMacro find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI resource)
request - a HttpServletRequest object.resource - subject of the resource instance, a URI object.
org.eaglei.repository.EditToken object or null if none available.public org.openrdf.model.URI getURI()
getURI in class ImmutableObjectModelpublic java.lang.String getLabel()
Getter for label
getLabel in class ImmutableObjectModelpublic java.lang.String getMacro()
Getter for macro content
public java.lang.String toString()
toString
toString in class java.lang.ObjectString object.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||