Package org.dspace.rdf.conversion
Class StaticDSOConverterPlugin
java.lang.Object
org.dspace.rdf.conversion.StaticDSOConverterPlugin
- All Implemented Interfaces:
ConverterPlugin
- Author:
- Pascal-Nicolas Becker (dspace -at- pascal -hyphen- becker -dot- de)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConfigurationServicestatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.Modelconvert(Context context, DSpaceObject dso) Convert the specified DSpaceObject or a part of it into RDF.protected org.apache.jena.rdf.model.ModelvoidsetConfigurationService(ConfigurationService configurationService) booleansupports(int type) Returns all type of DSpaceObjects that are supported by this plugin.
-
Field Details
-
CONSTANT_DATA_FILENAME_KEY_PREFIX
- See Also:
-
CONSTANT_DATA_GENERAL_KEY_SUFFIX
- See Also:
-
configurationService
-
-
Constructor Details
-
StaticDSOConverterPlugin
public StaticDSOConverterPlugin()
-
-
Method Details
-
setConfigurationService
- Specified by:
setConfigurationServicein interfaceConverterPlugin
-
convert
public org.apache.jena.rdf.model.Model convert(Context context, DSpaceObject dso) throws SQLException Description copied from interface:ConverterPluginConvert the specified DSpaceObject or a part of it into RDF.- Specified by:
convertin interfaceConverterPlugin- Parameters:
context- Please check the READ permission for the provided context before converting any data!dso- The DSpaceObject that should be converted.- Returns:
- A Jena Model containing the generated RDF.
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
readFile
-
supports
public boolean supports(int type) Description copied from interface:ConverterPluginReturns all type of DSpaceObjects that are supported by this plugin.- Specified by:
supportsin interfaceConverterPlugin- Parameters:
type- Resource type as defined in org.dspace.core.Constants.- Returns:
- A boolean whether the requested type is supported by this plugin.
- See Also:
-