public abstract class AnnotationSupport extends CreationProvenanceSupport implements Annotation
GET_CONNECTION, GET_RESOURCE| Constructor and Description |
|---|
AnnotationSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAudience(Audience audience)
Adds a single Audience object to the set of Audiences.
|
void |
addBody(Body body)
Adds a http:www.w3.org/ns/oa#hasBody relationship.
|
void |
addBodyText(String text)
Refers to http://www.w3.org/ns/oa#bodyText
|
void |
addMotivation(Motivation motivation)
Add a single http:www.w3.org/ns/oa#motivatedBy relationship.
|
void |
addTarget(Target target)
Adds a http:www.w3.org/ns/oa#hasTarget relationship.
|
void |
delete() |
String |
getAnnotatedAt()
Deprecated.
|
String |
getGenerated()
Gets the value of the http://purl.org/dc/terms/issued property.
|
String |
getSerializedAt()
Deprecated.
|
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,
String timezoneID)
Deprecated.
|
void |
setAnnotatedAt(String annotatedAt)
Deprecated.
|
void |
setGenerated(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
Sets the value of the http://purl.org/dc/terms/issued property.
|
void |
setGenerated(String generated)
Sets the value of the http://purl.org/dc/terms/issued property.
|
void |
setSerializedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
Deprecated.
|
void |
setSerializedAt(String serializedAt)
Deprecated.
|
addRight, addVia, getCreated, getModified, setCreated, setCreated, setModified, setModifiedgetResource, getResourceAsString, setResource, setResourceAsStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotatedBy, getAudiences, getBodies, getBodyTexts, getGenerator, getMotivatedBy, getSerializedBy, getStyledBy, getTargets, setAnnotatedBy, setAudiences, setBodies, setBodyTexts, setGenerator, setMotivatedBy, setSerializedBy, setStyledBy, setTargetsaddRight, addVia, getCanonical, getCreated, getCreator, getModified, getRights, getVia, setCanonical, setCreated, setCreated, setCreator, setModified, setModified, setRights, setViagetResourceAsString, setResource, setResourceAsStringgetObjectConnection, getResourcepublic void addTarget(Target target)
addTarget in interface Annotationtarget - New http:www.w3.org/ns/oa#hasTarget relationship.public void addBody(Body body)
addBody in interface Annotationbody - New http:www.w3.org/ns/oa#hasBody relationship.public void addMotivation(Motivation motivation)
addMotivation in interface Annotationmotivation - The Motivation to add to this Annotation node.public void addBodyText(String text)
addBodyText in interface Annotationtext - Adds the single text as textBody property.public void addAudience(Audience audience)
addAudience in interface Annotationaudience - The Audience to addpublic String getTriples(org.openrdf.rio.RDFFormat format)
getTriples in interface ResourceObjectgetTriples in class ResourceObjectSupportformat - The format which should be printed.public void delete()
delete in interface ResourceObjectdelete in class ResourceObjectSupportpublic void setGenerated(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
AnnotationsetGenerated 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.timezoneID - The timezone to set.@Deprecated public void setAnnotatedAt(int year, int month, int day, int hours, int minutes, int seconds, String timezoneID)
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.timezoneID - The timezone to set.@Deprecated public void setSerializedAt(int year, int month, int day, int hours, int minutes, int seconds, String timezoneID)
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.timezoneID - The timezone to set.public void setGenerated(String generated)
AnnotationsetGenerated in interface Annotationgenerated - The timestamp value to set for the dcterms:issued property.@Deprecated public void setSerializedAt(String serializedAt)
AnnotationsetSerializedAt in interface AnnotationserializedAt - New value of http:www.w3.org/ns/oa#serializedAt.@Deprecated public void setAnnotatedAt(String annotatedAt)
AnnotationsetAnnotatedAt in interface AnnotationannotatedAt - New value of http:www.w3.org/ns/oa#annotatedAt.public String getGenerated()
AnnotationgetGenerated in interface Annotation@Deprecated public String getSerializedAt()
AnnotationgetSerializedAt in interface Annotation@Deprecated public String getAnnotatedAt()
AnnotationgetAnnotatedAt in interface AnnotationCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.