|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SiteConfiguration
This interface defines the getter as well as the keys used to configure
such properties when parsing an configuration for a Site.
| Field Summary | |
|---|---|
static String |
DEFAULT_EXPIRE_DURATION
Key used for the configuration of the default expiration duration for entities and data for a site |
static String |
DEFAULT_MAPPING_STATE
Key used for the configuration of the default EntityMapping state
(MappingState for a site |
static String |
DEFAULT_SYMBOL_STATE
Key used for the configuration of the default ManagedEntityState for a site |
static String |
DESCRIPTION
The key to be used for the site description |
static String |
ENTITY_PREFIX
Key used for the configuration of prefixes used by Entities managed by this Site |
static String |
ID
The key to be used for the site id |
static String |
NAME
The key to be used for the name of the site |
static String |
SITE_ATTRIBUTION
The attribution for the data provided by this referenced site |
static String |
SITE_ATTRIBUTION_URL
The URL to the attribution for the data provided by this referenced site |
static String |
SITE_FIELD_MAPPINGS
The key used to configure the FieldMappings for a Site. |
static String |
SITE_LICENCE_NAME
The key used to configure the name of License used by a referenced Site |
static String |
SITE_LICENCE_TEXT
The key used to configure the License of a referenced Site |
static String |
SITE_LICENCE_URL
The key used to configure the link to the License used by a referenced Site |
| Method Summary | |
|---|---|
String |
getAttribution()
The name the creator of the Work (representations in case of referenced sites) would like used when attributing re-use. |
String |
getAttributionUrl()
The URL the creator of a Work (representations in case of referenced sites) would like used when attributing re-use. |
Dictionary<String,Object> |
getConfiguration()
The configuration as Dictionary (as used by OSGI) |
long |
getDefaultExpireDuration()
Return the duration in milliseconds or values <= 0 if mappings to entities of this Site do not expire. |
ManagedEntityState |
getDefaultManagedEntityState()
The initial state if a Symbol is created for an entity managed
by this site |
MappingState |
getDefaultMappedEntityState()
The initial state for mappings of entities managed by this site |
String |
getDescription()
Getter for the default short description of this site. |
String[] |
getEntityPrefixes()
Getter for the prefixes of entities managed by this Site |
String[] |
getFieldMappings()
Getter for the field mappings used for this site when importing entities to the Entityhub. |
String |
getId()
Getter for the id of this site. |
License[] |
getLicenses()
Getter for the the License(s) used for the data provided by this site. |
String |
getName()
The preferred name of this site (if not present use the id) |
| Field Detail |
|---|
static final String ID
static final String NAME
static final String DESCRIPTION
static final String SITE_FIELD_MAPPINGS
FieldMapping#parseFieldMapping(String)
static final String ENTITY_PREFIX
static final String DEFAULT_SYMBOL_STATE
ManagedEntityState for a site
static final String DEFAULT_MAPPING_STATE
EntityMapping state
(MappingState for a site
static final String DEFAULT_EXPIRE_DURATION
static final String SITE_LICENCE_NAME
static final String SITE_LICENCE_TEXT
static final String SITE_LICENCE_URL
static final String SITE_ATTRIBUTION
static final String SITE_ATTRIBUTION_URL
| Method Detail |
|---|
String getId()
String getName()
String getDescription()
null if non is definedString[] getFieldMappings()
Note that this field mappings are used in addition to the field mappings
defined by the EntityhubConfiguration.
null if none.String[] getEntityPrefixes()
ManagedEntityState getDefaultManagedEntityState()
Symbol is created for an entity managed
by this site
MappingState getDefaultMappedEntityState()
long getDefaultExpireDuration()
License[] getLicenses()
Licenses are defined by the name (SITE_LICENCE_NAME),
the text (SITE_LICENCE_TEXT) and the url
(SITE_LICENCE_URL) to the page of the license. This three keys
are combined to the License object.
It is recommended to use "cc:license" to link those licenses to the page.
String getAttribution()
null if
none is required by the license.It is recommended to use "cc:attributionName" to represent this in RDF graphs
String getAttributionUrl()
null if
none is required by the license.It is recommended to use "cc:attributionURL" to represent this in RDF graphs
Dictionary<String,Object> getConfiguration()
Dictionary (as used by OSGI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||