public class MetadataTool extends java.lang.Object implements MetadataCreator, MetadataRequester, MetadataWrapper
Modifier and Type | Method and Description |
---|---|
void |
addRDFLiteralTriple(java.lang.String subject,
java.lang.String predicate,
java.lang.Object value)
Adds a RDF triple to the description.
|
void |
addRDFTriple(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
Adds a RDF triple to the description.
|
org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl_msx.StructuredData |
generateStructuredData()
The method returns a structuredMetadata object containing the full
description submitted by the user.
|
static MetadataCreator |
newMetadataCreator()
This is the static constructor of the metadata tool that returns a MetadataCreator
|
static MetadataRequester |
newMetadataRequester()
This is the static constructor of the metadata tool that returns a MetadataRequester
|
static MetadataWrapper |
newMetadataWrapper()
This is the static constructor of the metadata tool that returns a MetadataWrapper
|
boolean |
parseRDF(java.io.File rdfFile,
java.lang.String baseURI)
This method enables the parsing of existing rdf/xml files.
|
java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> |
requestMetadata(java.lang.String label,
java.lang.String type,
java.lang.String modelURI)
Returns a list of metadata entities that satisfy the parameters passed by the user.
|
public static MetadataCreator newMetadataCreator()
public static MetadataRequester newMetadataRequester()
public static MetadataWrapper newMetadataWrapper()
public boolean parseRDF(java.io.File rdfFile, java.lang.String baseURI)
MetadataWrapper
parseRDF
in interface MetadataWrapper
rdfFile
- The rdf/xml file to be parsed.baseURI
- The baseURI of the rdf file.public java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> requestMetadata(java.lang.String label, java.lang.String type, java.lang.String modelURI)
MetadataRequester
requestMetadata
in interface MetadataRequester
label
- The request string.type
- The type of the entity.modelURI
- The namespace of the model to search.public void addRDFTriple(java.lang.String subject, java.lang.String predicate, java.lang.String object)
MetadataCreator
addRDFTriple
in interface MetadataCreator
subject
- The subject of the triplepredicate
- The predicate of the tripleobject
- The object of the triplepublic void addRDFLiteralTriple(java.lang.String subject, java.lang.String predicate, java.lang.Object value)
MetadataCreator
addRDFLiteralTriple
in interface MetadataCreator
subject
- The subject of the triplepredicate
- The predicate of the triplevalue
- The value of the propertypublic org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl_msx.StructuredData generateStructuredData()
MetadataCreator
generateStructuredData
in interface MetadataCreator
generateStructuredData
in interface MetadataWrapper