Representation of a Item. More...
#include <Item.hpp>
Public Member Functions | |
virtual std::shared_ptr< Part > | createPart (const mico::persistence::model::URI &extractorID)=0 |
Create a new content part with a random URI and return a handle. More... | |
virtual std::shared_ptr< Part > | getPart (const mico::persistence::model::URI &uri)=0 |
Return a handle to the ContentPart with the given URI, or null in case the content item does not have this content part. More... | |
virtual std::list < std::shared_ptr< Part > > | getParts ()=0 |
Return a list over all content parts contained in this item. More... | |
virtual jnipp::Ref < jnipp::java::lang::Object > & | createObject (const jnipp::Ref< jnipp::Class > &clazz)=0 |
Create a new jnipp Object of the desired class. | |
virtual jnipp::Ref < jnipp::java::lang::Object > & | createObjectNoCommit (jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection > con, const jnipp::Ref< jnipp::Class > &clazz)=0 |
Create a new jnipp Object of the desired class using the connection. More... | |
virtual jnipp::Ref < jnipp::java::lang::Object > & | findObject (const mico::persistence::model::URI &uri, const jnipp::Ref< jnipp::Class > &clazz)=0 |
Retrieve an existing jnipp Object of the desired class. | |
virtual std::string | getSerializedAt ()=0 |
Representation of a Item.
A Item is a collection of ContentParts, e.g. an HTML page together with its embedded images. ContentParts can be either original content or created during analysis. For compatibility with the Linked Data platform, its RDF type is ldp:BasicContainer
|
pure virtual |
Create a new jnipp Object of the desired class using the connection.
Notice that this method does not commit the transaction.
Implemented in mico::persistence::model::ItemAnno4cpp.
|
pure virtual |
Create a new content part with a random URI and return a handle.
The handle can then be used for updating the content and metadata of the content part.
extractorID | The id of the extractor which creates the current part |
Implemented in mico::persistence::model::ItemAnno4cpp.
|
pure virtual |
Return a handle to the ContentPart with the given URI, or null in case the content item does not have this content part.
uri | the URI of the content part to return |
Implemented in mico::persistence::model::ItemAnno4cpp.
|
pure virtual |
Return a list over all content parts contained in this item.
Implemented in mico::persistence::model::ItemAnno4cpp.