public class ResourceValue extends Value
If an API base is provided then the JSON representation will include an API parameter
.| Modifier and Type | Field and Description |
|---|---|
protected String |
apiBase |
protected String |
id |
protected String |
label |
protected String |
uri |
| Constructor and Description |
|---|
ResourceValue(com.hp.hpl.jena.rdf.model.Resource r)
Constructor which consults the current values of a resource.
|
ResourceValue(com.hp.hpl.jena.rdf.model.Resource r,
String lang)
Constructor which consults the current values of a resource.
|
ResourceValue(String uri,
String id,
String label)
Raw constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asSPARQL() |
int |
compareTo(Value other) |
String |
getApiBase() |
String |
getId() |
String |
getLabel() |
String |
getLexicalForm() |
String |
getUri() |
void |
setApiBase(String apiBase) |
void |
writeTo(JSFullWriter out) |
protected String uri
protected String id
protected String label
protected String apiBase
public ResourceValue(com.hp.hpl.jena.rdf.model.Resource r)
public ResourceValue(com.hp.hpl.jena.rdf.model.Resource r,
String lang)
public String getUri()
public String getId()
public String getLabel()
public String getLexicalForm()
getLexicalForm in class Valuepublic String getApiBase()
public void setApiBase(String apiBase)
public void writeTo(JSFullWriter out)
writeTo in interface JSONWritablewriteTo in class Valuepublic int compareTo(Value other)
compareTo in interface Comparable<Value>compareTo in class ValueCopyright © 2014. All rights reserved.