public abstract class AnnotationSupport extends ResourceObjectSupport implements Annotation
GET_CONNECTION, GET_RESOURCE| Constructor and Description |
|---|
AnnotationSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(Target target)
Adds a http:www.w3.org/ns/oa#hasTarget relationship.
|
void |
delete() |
Set<Target> |
getTarget()
Gets http:www.w3.org/ns/oa#hasTarget relationships.
|
String |
getTriples(org.openrdf.rio.RDFFormat format)
Method returns a textual representation of the given Annotation, containing
its Body, Target and possible Selection, in a supported serialisation format.
|
void |
setAnnotatedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds)
Sets http:www.w3.org/ns/oa#annotatedAt according to the format year-month-dayThours:minutes:secondsZ, e.g.
|
void |
setSerializedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds)
Sets http:www.w3.org/ns/oa#serializedAt according to the format year-month-dayThours:minutes:secondsZ, e.g.
|
void |
setTarget(Set<Target> target)
Sets http:www.w3.org/ns/oa#hasTarget.
|
getResource, getResourceAsString, setResource, setResourceAsStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotatedAt, getAnnotatedBy, getBody, getMotivatedBy, getSerializedAt, getSerializedBy, setAnnotatedAt, setAnnotatedBy, setBody, setMotivatedBy, setSerializedAt, setSerializedBygetResourceAsString, setResource, setResourceAsStringgetObjectConnection, getResourcepublic void addTarget(Target target)
AnnotationaddTarget in interface Annotationtarget - New http:www.w3.org/ns/oa#hasTarget relationship.public Set<Target> getTarget()
AnnotationgetTarget in interface Annotationpublic void setTarget(Set<Target> target)
AnnotationsetTarget in interface Annotationtarget - New value of http:www.w3.org/ns/oa#hasTarget.public String getTriples(org.openrdf.rio.RDFFormat format)
getTriples in interface ResourceObjectgetTriples in class ResourceObjectSupportformat - The format which should be printed.public void setSerializedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds)
AnnotationsetSerializedAt in interface Annotationyear - The year to set.month - The month to set.day - The day to set.hours - The hours to set.minutes - The minutes to set.seconds - The seconds to set.public void setAnnotatedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds)
AnnotationsetAnnotatedAt in interface Annotationyear - The year to set.month - The month to set.day - The day to set.hours - The hours to set.minutes - The minutes to set.seconds - The seconds to set.public void delete()
delete in interface ResourceObjectdelete in class ResourceObjectSupportCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.