Class ShowVoc
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.ShowVoc
- All Implemented Interfaces:
NewerNewStyleService
,STService
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
approveDevelopmentContribution
(String projectName, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, String baseURI, PluginSpecification coreRepoSailConfigurerSpecification, String configurationReference, String showvocHostAddress) Approves a development-resource contribution requestvoid
approveMetadataContribution
(String configurationReference) Approves a metadata contribution requestvoid
approveStableContribution
(String projectName, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, String baseURI, RepositoryAccess repositoryAccess, PluginSpecification coreRepoSailConfigurerSpecification, String configurationReference, String showvocHostAddress) Approves a stable-resource contribution requestvoid
dataDump
(jakarta.servlet.http.HttpServletResponse oRes, org.eclipse.rdf4j.rio.RDFFormat format) describeDataset
(String id, String apiBaseURL, String frontendBaseURL) Returns the available configuration in the ContributionStorevoid
Initializes the stuff needed in ShowVoc: - The system role: showvoc-publicvoid
loadDevContributionData
(String token, String projectName, String contributorEmail, org.springframework.web.multipart.MultipartFile inputFile, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance) void
loadStableContributionData
(String token, String projectName, String contributorEmail, org.springframework.web.multipart.MultipartFile inputFile, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance) void
rejectContribution
(String relativeReference) void
setAllowAnonymous
(boolean allow) void
submitContribution
(com.fasterxml.jackson.databind.node.ObjectNode configuration) void
Methods 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
-
Field Details
-
PAGE_SIZE
public static final int PAGE_SIZE- See Also:
-
-
Constructor Details
-
ShowVoc
public ShowVoc()
-
-
Method Details
-
initShowVoc
@PreAuthorize("@auth.isAdmin()") @STServiceOperation(method=POST) public void initShowVoc() throws IOException, RoleCreationExceptionInitializes the stuff needed in ShowVoc: - The system role: showvoc-public -
setAllowAnonymous
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void setAllowAnonymous(boolean allow) throws STPropertyAccessException, STPropertyUpdateException -
testVocbenchConfiguration
@STServiceOperation @PreAuthorize("@auth.isAdmin()") public void testVocbenchConfiguration() throws IOException, STPropertyAccessException, URISyntaxException -
getContributionReferences
@STServiceOperation public Collection<Reference> getContributionReferences() throws NoSuchConfigurationManagerReturns the available configuration in the ContributionStore- Returns:
- the references of the contribution configurations
- Throws:
NoSuchConfigurationManager
-
submitContribution
@STServiceOperation(method=POST) public void submitContribution(com.fasterxml.jackson.databind.node.ObjectNode configuration) throws NoSuchConfigurationManager, IOException, WrongPropertiesException, STPropertyUpdateException, STPropertyAccessException, jakarta.mail.MessagingException, ConfigurationNotFoundException - Parameters:
configuration
- a json object node (key-value) representing the configuration to store- Throws:
NoSuchConfigurationManager
IOException
WrongPropertiesException
STPropertyUpdateException
STPropertyAccessException
jakarta.mail.MessagingException
ConfigurationNotFoundException
-
rejectContribution
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void rejectContribution(String relativeReference) throws NoSuchConfigurationManager, ConfigurationNotFoundException, WrongPropertiesException, IOException, STPropertyAccessException, jakarta.mail.MessagingException - Parameters:
relativeReference
-- Throws:
NoSuchConfigurationManager
ConfigurationNotFoundException
WrongPropertiesException
IOException
STPropertyAccessException
jakarta.mail.MessagingException
-
approveStableContribution
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void approveStableContribution(String projectName, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, String baseURI, RepositoryAccess repositoryAccess, PluginSpecification coreRepoSailConfigurerSpecification, String configurationReference, String showvocHostAddress) throws IOException, RBACException, WrongPropertiesException, ProjectBindingException, ProjectInconsistentException, ClassNotFoundException, ForbiddenProjectAccessException, UnsupportedModelException, ProjectUpdateException, InvalidConfigurationException, InvalidProjectNameException, ProjectAccessException, UnsupportedLexicalizationModelException, ProjectInexistentException, ProjectCreationException, ReservedPropertyUpdateException, DuplicatedResourceException, STPropertyAccessException, ConfigurationNotFoundException, NoSuchConfigurationManager, jakarta.mail.MessagingException, ProjectDeletionException, STPropertyUpdateException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException, UserException Approves a stable-resource contribution request- Parameters:
projectName
-model
-lexicalizationModel
-baseURI
-repositoryAccess
-coreRepoSailConfigurerSpecification
-configurationReference
-showvocHostAddress
-- Throws:
IOException
RBACException
WrongPropertiesException
ProjectBindingException
ProjectInconsistentException
ClassNotFoundException
ForbiddenProjectAccessException
UnsupportedModelException
ProjectUpdateException
InvalidConfigurationException
InvalidProjectNameException
ProjectAccessException
UnsupportedLexicalizationModelException
ProjectInexistentException
ProjectCreationException
ReservedPropertyUpdateException
DuplicatedResourceException
STPropertyAccessException
ConfigurationNotFoundException
NoSuchConfigurationManager
jakarta.mail.MessagingException
ProjectDeletionException
STPropertyUpdateException
it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
UserException
-
approveDevelopmentContribution
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void approveDevelopmentContribution(String projectName, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, String baseURI, PluginSpecification coreRepoSailConfigurerSpecification, String configurationReference, String showvocHostAddress) throws IOException, WrongPropertiesException, STPropertyAccessException, ConfigurationNotFoundException, NoSuchConfigurationManager, URISyntaxException, jakarta.mail.MessagingException Approves a development-resource contribution request- Parameters:
projectName
-model
-lexicalizationModel
-baseURI
-coreRepoSailConfigurerSpecification
-configurationReference
-showvocHostAddress
-- Throws:
IOException
WrongPropertiesException
STPropertyAccessException
ConfigurationNotFoundException
NoSuchConfigurationManager
URISyntaxException
STPropertyUpdateException
jakarta.mail.MessagingException
-
approveMetadataContribution
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAdmin()") public void approveMetadataContribution(String configurationReference) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException, NoSuchConfigurationManager, WrongPropertiesException, ConfigurationNotFoundException, STPropertyAccessException, IOException, jakarta.mail.MessagingException Approves a metadata contribution request- Parameters:
configurationReference
-- Throws:
it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
NoSuchConfigurationManager
WrongPropertiesException
ConfigurationNotFoundException
STPropertyAccessException
IOException
jakarta.mail.MessagingException
-
loadStableContributionData
@STServiceOperation(method=POST) @Write public void loadStableContributionData(String token, String projectName, String contributorEmail, org.springframework.web.multipart.MultipartFile inputFile, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance) throws STPropertyAccessException, IOException, InvalidConfigurationException, WrongPropertiesException, LiftingException, jakarta.mail.MessagingException, ReservedPropertyUpdateException, ProjectUpdateException - Parameters:
token
-projectName
-inputFile
-format
-- Throws:
STPropertyAccessException
IOException
InvalidConfigurationException
WrongPropertiesException
LiftingException
ProjectBindingException
STPropertyUpdateException
jakarta.mail.MessagingException
ReservedPropertyUpdateException
ProjectUpdateException
-
loadDevContributionData
@STServiceOperation(method=POST) public void loadDevContributionData(String token, String projectName, String contributorEmail, org.springframework.web.multipart.MultipartFile inputFile, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance) throws STPropertyAccessException, IOException, URISyntaxException, jakarta.mail.MessagingException - Throws:
STPropertyAccessException
IOException
URISyntaxException
jakarta.mail.MessagingException
-
searchDataset
@STServiceOperation public SearchResultsPage<DatasetSearchResult> searchDataset(String query, @Optional(defaultValue="{}") @JsonSerialized Map<String, List<String>> facets, @Optional(defaultValue="1") int page) throws IOException, InvalidProjectNameException, ProjectInexistentException, ProjectAccessException, PropertyNotFoundException, IllegalStateException, STPropertyAccessException, NoSuchSettingsManager, UserException -
describeDataset
@STServiceOperation @PreAuthorize("@auth.isProjectPublic(#id)") public DatasetDescription describeDataset(String id, @Optional String apiBaseURL, @Optional String frontendBaseURL) throws STPropertyAccessException, NoSuchSettingsManager, PropertyNotFoundException, IllegalArgumentException, IOException -
dataDump
@STServiceOperation @Read @PreAuthorize("@auth.isCtxProjectPublic()") @OmitProduces public void dataDump(jakarta.servlet.http.HttpServletResponse oRes, @Optional(defaultValue="Turtle") org.eclipse.rdf4j.rio.RDFFormat format) throws Exception - Throws:
Exception
-