|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTalisStore
public class TalisStore
TalisStore is a Groovy utility class which wraps TalisStoreLoader
and uploads RDF
files to the Talis Platform.
See Using Groovy to Upload RDF files to the Talis Platform
for details on using this script and also on using the config file TalisConfig.groovy
to set the store, user and password.
| Constructor Summary | |
|---|---|
TalisStore()
|
|
| Method Summary | |
|---|---|
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
Object |
invokeMethod(String name,
Object args)
|
static Object |
list()
Lists the RDF files in the current directory. |
static int |
load()
Loads the RDF files in the current directory. |
static int |
load(String fileOrDirectory)
Loads either a specific RDF file or scans the nominated directory and uploads all the RDF files found. |
static int |
load(String store,
String user,
String password)
Loads the RDF files in the current directory. |
static int |
load(String store,
String user,
String password,
String fileOrDirectory)
Loads RDF files by explicitly setting the store, user and password and nominating either a specific RDF file to upload or a directory to scan and upload all the RDF files found. |
static Object |
main(Object args)
Depending on the parameters passed, loads either a specific RDF file or scans the current or nominated directory and uploads all the RDF files found. |
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TalisStore()
| Method Detail |
|---|
public static Object list()
TalisStoreLoader.listDirectory(java.lang.String)public static int load()
TalisStoreLoader.loadDirectory()public static int load(String fileOrDirectory)
fileOrDirectory - Path to either a specific RDF file or a directory containing RDF files
TalisStoreLoader.loadRdfFile(java.io.File),
TalisStoreLoader.loadDirectory()
public static int load(String store,
String user,
String password)
store - Talis store nameuser - Talis store usernamepassword - Talis store password
TalisStoreLoader.loadDirectory()
public static int load(String store,
String user,
String password,
String fileOrDirectory)
store - Talis store nameuser - Talis store usernamepassword - Talis store passwordfileOrDirectory - Path to either a specific RDF file or a directory containing RDF files
TalisStoreLoader.loadRdfFile(java.io.File),
TalisStoreLoader.loadDirectory()public static Object main(Object args)
args - as described aboveTalisStoreLoader.loadRdfFile(java.io.File),
TalisStoreLoader.loadDirectory()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 | |||||||||