Class OntManager
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.OntManager
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services for manipulating the ontology mirror.
- Author:
- Armando Stellato, Manuel Fiorelli
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, exptManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteOntologyMirrorEntry
(String baseURI, String cacheFileName) Deletes an entry (and its associated physical file) from the Ontology MirrorReturns the mirrored ontologies.void
updateOntologyMirrorEntry
(OntManager.UpdateType updateType, String baseURI, String mirrorFileName, String alternativeURL, org.springframework.web.multipart.MultipartFile inputFile) Updates an entry (and its associated physical file) from the Ontology Mirror.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
-
Constructor Details
-
OntManager
public OntManager()
-
-
Method Details
-
getOntologyMirror
Returns the mirrored ontologies.- Returns:
-
deleteOntologyMirrorEntry
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'sys(ontologyMirror)\', \'D\')") public void deleteOntologyMirrorEntry(String baseURI, String cacheFileName) Deletes an entry (and its associated physical file) from the Ontology Mirror- Parameters:
baseURI
-cacheFileName
-
-
updateOntologyMirrorEntry
@STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'sys(ontologyMirror)\', \'CU\')") public void updateOntologyMirrorEntry(OntManager.UpdateType updateType, String baseURI, String mirrorFileName, @Optional String alternativeURL, @Optional org.springframework.web.multipart.MultipartFile inputFile) throws IOException Updates an entry (and its associated physical file) from the Ontology Mirror. The entry can be updated in three different ways (determined by the parameterupdateType
, differentiating in the source of the updated ontology:updateFromBaseURI
: the source is retrieved from the suppliedbaseURI
updateFromAlternativeURL
: the source is retrieved from the address hold by the parameteralternativeURL
updateFromFile
: the source has been supplied in the request body (and mapped to the parameterinputFile
)
- Parameters:
baseURI
-cacheFileName
-- Throws:
IOException
-