Class DatasetCatalogs
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.DatasetCatalogs
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services for interacting with dataset catalogs.
- Author:
- Manuel Fiorelli
-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, exptManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeDataset
(PluginSpecification connectorSpec, com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, String datasetId) Returns the description of a given dataset provided by the connected catalogsearchDataset
(PluginSpecification connectorSpec, com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, String query, Map<String, List<String>> facets, int page) Searched a dataset in the connected catalog matching the given criteriaMethods inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getOptionalProject, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
-
Constructor Details
-
DatasetCatalogs
public DatasetCatalogs()
-
-
Method Details
-
searchDataset
@STServiceOperation public SearchResultsPage<DatasetSearchResult> searchDataset(PluginSpecification connectorSpec, @Optional @JsonSerialized com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, String query, @Optional(defaultValue="{}") @JsonSerialized Map<String, List<String>> facets, @Optional(defaultValue="1") int page) throws WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, IOExceptionSearched a dataset in the connected catalog matching the given criteria- Parameters:
connectorSpec
-query
-facets
-page
-- Returns:
- Throws:
InvalidConfigurationException
STPropertyAccessException
WrongPropertiesException
NoSuchExtensionException
IllegalArgumentException
IOException
-
describeDataset
@STServiceOperation public DatasetDescription describeDataset(PluginSpecification connectorSpec, @Optional @JsonSerialized com.fasterxml.jackson.databind.node.ObjectNode connectorConfig, String datasetId) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, IOException Returns the description of a given dataset provided by the connected catalog- Parameters:
connectorSpec
-datasetId
-- Returns:
- Throws:
IllegalArgumentException
NoSuchExtensionException
WrongPropertiesException
STPropertyAccessException
InvalidConfigurationException
IOException
-