extends XRepository with document-specific functionality.
This subclass of XRepository provides some methods which
only make sense for repositories that are attached to a document.
For example, the methods allow for manipulating in-content metadata,
which is stored as RDFa.
update the RDFa statement(s) that correspond to an ODF element in the
repository.
This method will do the following steps:
Remove all previously set RDFa statements for the Object parameter
from the repository
If the RDFaContent parameter is the empty string,
for every Predicate in the given list of Predicates,
add the following RDF statement to an unspecified named graph:
If the RDFaContent parameter is not the empty string,
for every Predicate in the given list of Predicates,
add the following RDF statement to an unspecified named graph:
RDFa statements are handled specially because they are not logically
part of any named graph in the repository.
Also, they have rather unusual semantics;
just using XNamedGraph::addStatement would be
ambiguous:
if the object is a XMetadatable, do we insert
the object itself (URI) or its literal content (RDFa)?
Parameter Subject
the subject of the RDF triple(s).
Parameter Predicates
the predicates of the RDF triple(s).
Parameter Object
the object of the RDF triple(s) is the text content of this
parameter.
Parameter RDFaContent
the rdfa:content attribute (may be the empty
string).
Parameter RDFaDatatype
the rdfa:datatype attribute (may be NULL)
Throws
com::sun::star::lang::IllegalArgumentException
if any parameter is NULL, Predicates is empty,
or Object is of a type that can not have RDFa metadata attached.
Throws
RepositoryException
if an error occurs when accessing the repository.