public abstract class Project<MODELTYPE extends RDFModel> extends AbstractProject
_projectDir
SYSTEM
Modifier and Type | Method and Description |
---|---|
void |
deregisterPlugin(String pluginName)
removes the plugin with name
pluginName from this project. |
static String |
determineBestRenderingEngine(Class<? extends RDFModel> modelType) |
ProjectACL |
getACL() |
String |
getBaseURI() |
String |
getDefaultNamespace() |
ARTResource |
getMetadataGraph(String extensionPathComponent) |
String |
getModelConfigurationID() |
Class<MODELTYPE> |
getModelType() |
String |
getName() |
MODELTYPE |
getOntModel() |
STOntologyManager<MODELTYPE> |
getOntologyManager() |
String |
getOntologyManagerImplID() |
OWLModel |
getOWLModel() |
File |
getProjectStoreDir() |
String |
getProperty(String propName)
returns the value associated to a given property for this project
|
List<String> |
getRegisteredPlugins()
returns the list of registered plugins
|
RenderingEngine |
getRenderingEngine() |
long |
getTimeStamp() |
String |
getType() |
URIGenerator |
getURIGenerator() |
protected abstract void |
loadTriples()
this initializes the
#model field with a newly created OWLModel for this project |
void |
registerPlugin(String pluginName)
Registers the plugin with name
pluginName to this project. |
void |
setBaseURI(String baseURI) |
void |
setDefaultNamespace(String defaultNamespace) |
void |
setName(String name) |
void |
setProperty(String propName,
String propValue) |
String |
toString() |
void |
updateTimeStamp() |
equals, hashCode
protected File infoSTPFile
protected File modelConfigFile
protected STOntologyManager<MODELTYPE extends RDFModel> ontManager
public static final String INFOFILENAME
public static final String MODELCONFIG_FILENAME
public static final String URI_GENERATOR_CONFIG_FILENAME
public static final String RENDERING_ENGINE_CONFIG_FILENAME
public static final String TIMESTAMP_PROP
public static final String PROJECT_NAME_PROP
public static final String MODELCONFIG_ID
public static final String ONTOLOGY_MANAGER_ID_PROP
public static final String BASEURI_PROP
public static final String DEF_NS_PROP
public static final String PROJECT_TYPE
public static final String PROJECT_MODEL_TYPE
public static final String PROJECT_STORE_DIR_NAME
public static final String PLUGINS_PROP
public static final String MANDATORY_PLUGINS_PROP_PREFIX
public static final String URI_GENERATOR_PROP_PREFIX
public static final String URI_GENERATOR_FACTORY_ID_PROP
public static final String URI_GENERATOR_FACTORY_ID_DEFAULT_PROP_VALUE
public static final String URI_GENERATOR_CONFIGURATION_TYPE_PROP
public static final String RENDERING_ENGINE_PROP_PREFIX
public static final String RENDERING_ENGINE_FACTORY_ID_PROP
public static final String RENDERING_ENGINE_FACTORY_ID_DEFAULT_PROP_VALUE
public static final String RENDERING_ENGINE_CONFIGURATION_TYPE_PROP
protected static org.slf4j.Logger logger
public NSPrefixMappings nsPrefixMappingsPersistence
public static String determineBestRenderingEngine(Class<? extends RDFModel> modelType)
protected abstract void loadTriples() throws ModelCreationException
#model
field with a newly created OWLModel
for this projectModelCreationException
public long getTimeStamp()
public String getOntologyManagerImplID() throws ProjectInconsistentException
ProjectInconsistentException
public Class<MODELTYPE> getModelType() throws ProjectInconsistentException
ProjectInconsistentException
public String getModelConfigurationID() throws ProjectInconsistentException
ProjectInconsistentException
public STOntologyManager<MODELTYPE> getOntologyManager()
public String getName()
getName
in interface ProjectConsumer
getName
in class AbstractProject
public String getBaseURI()
public String getDefaultNamespace()
public String getType() throws ProjectInconsistentException
ProjectInconsistentException
public String getProperty(String propName)
propName
- the name of the queried propertypublic void setProperty(String propName, String propValue) throws ProjectUpdateException, ReservedPropertyUpdateException
public void setBaseURI(String baseURI) throws ProjectUpdateException
ProjectUpdateException
public void setName(String name) throws ProjectUpdateException
ProjectUpdateException
public void setDefaultNamespace(String defaultNamespace) throws ProjectUpdateException
ProjectUpdateException
public void updateTimeStamp() throws ProjectUpdateException
ProjectUpdateException
public void registerPlugin(String pluginName) throws DuplicatedResourceException, ProjectUpdateException
pluginName
to this project.pluginName
- DuplicatedResourceException
ProjectUpdateException
public void deregisterPlugin(String pluginName) throws ProjectUpdateException
pluginName
from this project. If the project does not contain
any registered plugin, or if the plugin is not registered among the reigistered ones, than a
ProjectUpdateException
is thrown, with an appropriate messagepluginName
- ProjectUpdateException
public List<String> getRegisteredPlugins()
public MODELTYPE getOntModel()
public OWLModel getOWLModel()
public File getProjectStoreDir()
public ProjectACL getACL()
public URIGenerator getURIGenerator()
public RenderingEngine getRenderingEngine()
public ARTResource getMetadataGraph(String extensionPathComponent)
Copyright © 2016 ART Group, University of Rome, Tor Vergata. All rights reserved.