public abstract class AnnotationCollectionSupport extends ResourceObjectSupport implements AnnotationCollection
GET_CONNECTION, GET_RESOURCE| Constructor and Description |
|---|
AnnotationCollectionSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String label)
Adds a single value to the currently defined Set for the http://www.w3.org/2000/01/rdf-schema#label relationship.
|
AnnotationPage |
getFirstPage()
Gets the AnnotationPage currently defined at the http://www.w3.org/ns/activitystreams#first relationship.
|
AnnotationPage |
getLastPage()
Gets the AnnotationPage currently defined for the http://www.w3.org/ns/activitystreams#last relationship.
|
int |
getTotal()
Gets the currently defined value for the http://www.w3.org/ns/activitystreams#totalItems relationship.
|
String |
getTriplesExpanded(org.openrdf.rio.RDFFormat format)
Method returns a textual representation of the given AnnotationCollection, containing
.
|
void |
setFirstPage(AnnotationPage firstPage)
Sets the value of the http://www.w3.org/ns/activitystreams#first relationship.
|
void |
setFirstPageCascading(AnnotationPage page) |
void |
setLastPage(AnnotationPage lastPage)
Sets the value for the http://www.w3.org/ns/activitystreams#last relationship.
|
void |
setLastPageCascading(AnnotationPage page) |
delete, getResource, getResourceAsString, getTriples, setResource, setResourceAsStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabels, setLabels, setTotaldelete, getResourceAsString, getTriples, setResource, setResourceAsStringgetObjectConnection, getResourcepublic AnnotationPage getLastPage()
getLastPage in interface AnnotationCollectionpublic void setLastPage(AnnotationPage lastPage)
setLastPage in interface AnnotationCollectionlastPage - The AnnotationPage to set for the http://www.w3.org/ns/activitystreams#last relationship.public void setLastPageCascading(AnnotationPage page)
setLastPageCascading in interface AnnotationCollectionpublic AnnotationPage getFirstPage()
getFirstPage in interface AnnotationCollectionpublic void setFirstPage(AnnotationPage firstPage)
setFirstPage in interface AnnotationCollectionfirstPage - The AnnotationPage to define the http://www.w3.org/ns/activitystreams#first relationship point to.public void setFirstPageCascading(AnnotationPage page)
setFirstPageCascading in interface AnnotationCollectionpublic void addLabel(String label)
addLabel in interface AnnotationCollectionlabel - The single label to add to the currently defined values of the
http://www.w3.org/2000/01/rdf-schema#label relationship.public int getTotal()
getTotal in interface AnnotationCollectionpublic String getTriplesExpanded(org.openrdf.rio.RDFFormat format)
getTriplesExpanded in interface AnnotationCollectionformat - The format which should be printed.Copyright © 2017 Chair of Distributed Information Systems - University of Passau. All rights reserved.