public class AddRelationship extends RelationshipsRequest
pid| Constructor and Description |
|---|
AddRelationship(String subject) |
| Modifier and Type | Method and Description |
|---|---|
AddRelationship |
datatype(String datatype)
Deprecated.
|
FedoraResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
AddRelationship |
isLiteral(boolean isLiteral)
Deprecated.
|
AddRelationship |
object(String object)
Add the object of the relationship.
|
AddRelationship |
object(String object,
boolean isLiteral)
Add the object of the relationship as a plain literal.
|
AddRelationship |
object(String object,
String datatype)
Add the object of the relationship as a datatyped literal.
|
AddRelationship |
predicate(String predicate) |
AddRelationship |
subject(String subject)
Deprecated.
use constructor
|
addHeader, addQueryParam, execute, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParampublic AddRelationship(String subject)
public AddRelationship subject(String subject)
null, defaults to the
URI form of the constructor-provided pid, e.g.
info:fedora/demo:1.subject - the subject of the relationshippublic AddRelationship predicate(String predicate)
public AddRelationship object(String object)
Unless otherwise indicated with the now-deprecated
isLiteral(boolean) method, the object will be added as a
resource (i.e. a URI, not as a literal).
object - the object of the relationshippublic AddRelationship object(String object, boolean isLiteral)
object - the object of the relationshipisLiteral - whether or not the object is a literal.public AddRelationship object(String object, String datatype)
object - the object of the relationshipdatatype - The URI of the XML Schema Datatype of the object literal, e.g.
"http://www.w3.org/2001/XMLSchema#dateTime".public AddRelationship isLiteral(boolean isLiteral)
object(String, boolean)isLiteral - indicate whether the object is a literal.public AddRelationship datatype(String datatype)
object(String, String)datatype - the datatype of the literalpublic FedoraResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequestExecute this request using the supplied FedoraClient instance.
execute in class FedoraRequest<RelationshipsRequest>fedora - an instance of FedoraClientFedoraClientException - if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.