@Beta public class GreedyDcatFactory extends DcatFactory
for more prudent factory.
DESCRIPTION, ISSUED, MODIFIED, TITLE, URI_FIELD
Constructor and Description |
---|
GreedyDcatFactory()
Creates a factory with default configuration.
|
Modifier and Type | Method and Description |
---|---|
protected String |
extractModified(CkanResource resource)
Looks for 'modified' and then lastModified field.
|
protected List<eu.trentorise.opendata.traceprov.dcat.SkosConcept> |
extractThemes(CkanDataset dataset,
Locale locale,
String catalogUrl)
Searches for themes in 'theme' field, and falls back to groups and then
organizations.
|
extractAccessUrl, extractAccrualPeriodicity, extractByteSize, extractContactPoint, extractDescription, extractDescription, extractDownloadUrl, extractField, extractField, extractFieldAsNonEmptyString, extractFieldAsNonEmptyString, extractFieldAsObject, extractFieldAsString, extractFieldAsString, extractFormat, extractIdentifier, extractIssued, extractIssued, extractKeywords, extractLandingPage, extractLanguages, extractLicense, extractMediaType, extractModified, extractPublisher, extractRights, extractSpatial, extractTemporal, extractTitle, extractTitle, extractUri, extractUri, formatLanguages, formatTimestamp, getLogger, getObjectMapper, isTrimmedEmpty, logCantExtract, logCantFind, logDatasetCantExtract, logDatasetCantFind, logDistribCantExtract, logDistribCantFind, makeDataset, makeDistribution, postProcessDataset, postProcessDistribution, setLogger, setObjectMapper, trim
public GreedyDcatFactory()
protected List<eu.trentorise.opendata.traceprov.dcat.SkosConcept> extractThemes(CkanDataset dataset, Locale locale, String catalogUrl)
extractThemes
in class DcatFactory
locale
- the locale of the theme names. If unknown pass
Locale.ROOT
protected String extractModified(CkanResource resource)
extractModified
in class DcatFactory
Copyright © 2015 Trento Rise. All rights reserved.