public class ResourceObject extends Object implements RDFObject
GET_CONNECTION, GET_RESOURCE| Constructor and Description |
|---|
ResourceObject()
Default constructor
|
ResourceObject(String resource)
Constructor also setting the resource, which is supported by the corresponding String.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNTriples() |
ObjectConnection |
getObjectConnection()
The current
ObjectConnection this object is attached to. |
org.openrdf.model.Resource |
getResource()
Gets Unique identifier for the instance.
|
String |
getResourceAsString()
Gets new identifier for this instance as String.
|
void |
setResource(org.openrdf.model.Resource resource)
Sets new Unique identifier for the instance.
|
void |
setResourceAsString(String resourceAsString)
Sets new Unique identifier for the instance by a given String.
|
public ResourceObject()
public ResourceObject(String resource)
resource - String representation of the resource to set.public ObjectConnection getObjectConnection()
ObjectConnection this object is attached to. Will be implemented by the proxy object.getObjectConnection in interface RDFObjectpublic org.openrdf.model.Resource getResource()
getResource in interface RDFObjectpublic void setResource(org.openrdf.model.Resource resource)
resource - New value of Unique identifier for the instance..public void setResourceAsString(String resourceAsString)
resourceAsString - Textual representation of the new value of Unique identifier for the instance.public String getResourceAsString()
public String getNTriples()
Copyright © 2015 Chair of Distributed Information Systems - University of Passau. All rights reserved.