|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom._3kbo.talis.TalisStoreLoader
public class TalisStoreLoader
TalisStoreLoader is a Groovy utility class for uploading RDF files to the Talis Platform See Using Groovy to Upload RDF files to the Talis Platform for details.
| Constructor Summary | |
|---|---|
TalisStoreLoader()
|
|
TalisStoreLoader(String store,
String user,
String password)
|
|
| Method Summary | |
|---|---|
Object |
encodeRDF(Object data)
|
static String |
getAPPLICATION_RDF()
|
static String |
getCONFIGURATION_FILE()
|
String |
getMetaboxPath()
|
groovy.lang.MetaClass |
getMetaClass()
|
String |
getPassword()
|
Object |
getProperty(String name)
|
String |
getStore()
|
static String |
getTALIS_DEV_HOST()
|
static String |
getTALIS_PASSWORD()
|
static String |
getTALIS_STORE_NAME()
|
static String |
getTALIS_USER()
|
groovyx.net.http.RESTClient |
getTalis()
|
String |
getUser()
|
void |
init()
|
Object |
invokeMethod(String name,
Object args)
|
int |
listDirectory(String directory)
List *.rdf files in the specified directory |
int |
loadDirectory()
Load only *.rdf files from the current directory |
int |
loadDirectory(File directory)
Load only *.rdf files from the specified directory |
int |
loadDirectory(String directory)
Load only *.rdf files from the specified directory |
int |
loadRdfFile(File file)
Load an rdf file |
static Object |
main(Object args)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setPassword(String value)
|
void |
setProperty(String name,
Object value)
|
void |
setStore(String value)
|
void |
setTalis(groovyx.net.http.RESTClient value)
|
void |
setUser(String value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TalisStoreLoader()
public TalisStoreLoader(String store,
String user,
String password)
| Method Detail |
|---|
public static final String getTALIS_DEV_HOST()
public static final String getAPPLICATION_RDF()
public static final String getCONFIGURATION_FILE()
public static final String getTALIS_STORE_NAME()
public static final String getTALIS_USER()
public static final String getTALIS_PASSWORD()
public groovyx.net.http.RESTClient getTalis()
public void setTalis(groovyx.net.http.RESTClient value)
public String getStore()
public void setStore(String value)
public String getUser()
public void setUser(String value)
public String getPassword()
public void setPassword(String value)
public Object encodeRDF(Object data)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getMetaboxPath()
public String toString()
toString in class Objectpublic void init()
public int loadRdfFile(File file)
file - The RDF file to upload
public int loadDirectory()
public int loadDirectory(String directory)
directory - Path to the directory to scoan for RDF files to upload
public int loadDirectory(File directory)
directory - The directory to scoan for RDF files to upload
public int listDirectory(String directory)
directory - Path to the directory to scoan for RDF files to uploadpublic static Object main(Object args)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||