public class MetadataConverterPlugin extends Object implements ConverterPlugin
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationService |
configurationService |
static String |
METADATA_MAPPING_PATH_KEY |
static String |
METADATA_PREFIXES_KEY |
static String |
METADATA_SCHEMA_URL_KEY |
| Constructor and Description |
|---|
MetadataConverterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Model |
convert(Context context,
DSpaceObject dso)
Convert the specified DSpaceObject or a part of it into RDF.
|
protected com.hp.hpl.jena.rdf.model.Model |
loadConfiguration() |
void |
setConfigurationService(ConfigurationService configurationService) |
boolean |
supports(int type)
Returns all type of DSpaceObjects that are supported by this plugin.
|
public static final String METADATA_MAPPING_PATH_KEY
public static final String METADATA_SCHEMA_URL_KEY
public static final String METADATA_PREFIXES_KEY
@Autowired(required=true) protected ConfigurationService configurationService
public void setConfigurationService(ConfigurationService configurationService)
setConfigurationService in interface ConverterPluginpublic com.hp.hpl.jena.rdf.model.Model convert(Context context, DSpaceObject dso) throws SQLException, AuthorizeException
ConverterPluginconvert in interface ConverterPlugincontext - Please check the READ permission for the provided context
before converting any data!dso - The DSpaceObject that should be converted.SQLExceptionAuthorizeExceptionpublic boolean supports(int type)
ConverterPluginsupports in interface ConverterPlugintype - Resource type as defined in org.dspace.core.Constants.Constantsprotected com.hp.hpl.jena.rdf.model.Model loadConfiguration()
Copyright © 2017 DuraSpace. All rights reserved.