public final class ODCSService extends Object
Constructor and Description |
---|
ODCSService(String serviceLocation)
Create new instance of Input Webservice java client.
|
Modifier and Type | Method and Description |
---|---|
void |
insert(String user,
String password,
Metadata metadata,
File payloadFile,
String payloadFileEncoding)
Insert data to ODCleanStore through the Input Webservice.
|
void |
insert(String user,
String password,
Metadata metadata,
String payload)
Insert data to ODCleanStore through the Input Webservice.
|
public ODCSService(String serviceLocation) throws MalformedURLException
serviceLocation
- location of the Input Webservice to send data to as a nURINullPointerException
- serviceLocation URL is nullMalformedURLException
- serviceLocation URL format errorpublic void insert(String user, String password, Metadata metadata, String payload) throws InsertException
user
- usernamepassword
- user passwordmetadata
- metadata associated with the inserted datapayload
- the actual data to be inserted serialized as RDF/XML or TurtleInsertException
- Exception returned from server or clientpublic void insert(String user, String password, Metadata metadata, File payloadFile, String payloadFileEncoding) throws InsertException, FileNotFoundException, UnsupportedEncodingException
user
- usernamepassword
- user passwordmetadata
- metadata associated with the inserted datapayloadFile
- file with the data to be inserted in RDF/XML or Turtle formatpayloadFileEncoding
- encoding of payloadFile (e.g. UTF-8)InsertException
- Exception returned from server or clientFileNotFoundException
- payload file not foundUnsupportedEncodingException
- payload file encoding not supportedCopyright © 2013. All Rights Reserved.