Class MAPLE
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.MAPLE
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides access to the capabilities of MAPLE
(Mapping Architecture based on Linguistic Evidences).
- 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 TypeMethodDescriptionDetermines whether LIME metadata for the current project are available (via the settings managerProjectMetadataStore
)protected org.apache.commons.lang3.tuple.Pair<org.eclipse.rdf4j.model.IRI,
org.eclipse.rdf4j.model.Model> protected org.apache.commons.lang3.tuple.Pair<org.eclipse.rdf4j.model.IRI,
org.eclipse.rdf4j.model.Model> getProjectMetadata
(Project project) it.uniroma2.art.maple.scenario.AlignmentScenario
profileMatchingProblem
(org.eclipse.rdf4j.model.IRI sourceDataset, org.eclipse.rdf4j.model.IRI targetDataset, it.uniroma2.art.maple.orchestration.ProfilerOptions options) Profiles a matching problem between two datasets described in the metadata registry.it.uniroma2.art.maple.scenario.AlignmentScenario
profileMatchingProblemBetweenProjects
(Project leftDataset, Project rightDataset, it.uniroma2.art.maple.orchestration.ProfilerOptions options) Profiles a matching problem between two datasets associated with local projects.void
Profiles the current project and stores its LIME metadata (as a settings using theProjectMetadataStore
).it.uniroma2.art.maple.scenario.SingleResourceMatchingProblem
profileSingleResourceMatchProblem
(org.eclipse.rdf4j.model.IRI sourceResource, ResourcePosition targetPosition) Profiles the problem of matching the provided resource in the current project against the provided resource position (i.e. another local project or remote dataset).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
-
MAPLE
public MAPLE()
-
-
Method Details
-
profileProject
@STServiceOperation(method=POST) @Read public void profileProject() throws it.uniroma2.art.lime.profiler.ProfilerException, NoSuchSettingsManager, IllegalStateException, STPropertyAccessException, STPropertyUpdateException, URISyntaxExceptionProfiles the current project and stores its LIME metadata (as a settings using theProjectMetadataStore
).- Throws:
it.uniroma2.art.lime.profiler.ProfilerException
NoSuchSettingsManager
IllegalStateException
STPropertyAccessException
STPropertyUpdateException
URISyntaxException
-
checkProjectMetadataAvailability
@STServiceOperation public Boolean checkProjectMetadataAvailability() throws NoSuchSettingsManager, IllegalStateException, STPropertyAccessExceptionDetermines whether LIME metadata for the current project are available (via the settings managerProjectMetadataStore
)- Returns:
- Throws:
NoSuchSettingsManager
STPropertyAccessException
IllegalStateException
-
profileMatchingProblem
@STServiceOperation public it.uniroma2.art.maple.scenario.AlignmentScenario profileMatchingProblem(org.eclipse.rdf4j.model.IRI sourceDataset, org.eclipse.rdf4j.model.IRI targetDataset, @JsonSerialized @Optional(defaultValue="{}") it.uniroma2.art.maple.orchestration.ProfilerOptions options) throws it.uniroma2.art.maple.orchestration.ProfilingException Profiles a matching problem between two datasets described in the metadata registry.- Parameters:
sourceDataset
-targetDataset
-options
-- Returns:
- Throws:
it.uniroma2.art.maple.orchestration.ProfilingException
-
profileMatchingProblemBetweenProjects
@STServiceOperation public it.uniroma2.art.maple.scenario.AlignmentScenario profileMatchingProblemBetweenProjects(Project leftDataset, Project rightDataset, @JsonSerialized @Optional(defaultValue="{}") it.uniroma2.art.maple.orchestration.ProfilerOptions options) throws it.uniroma2.art.maple.orchestration.ProfilingException Profiles a matching problem between two datasets associated with local projects.- Parameters:
leftDataset
-rightDataset
-- Returns:
- Throws:
it.uniroma2.art.maple.orchestration.ProfilingException
-
profileSingleResourceMatchProblem
@STServiceOperation @Read public it.uniroma2.art.maple.scenario.SingleResourceMatchingProblem profileSingleResourceMatchProblem(org.eclipse.rdf4j.model.IRI sourceResource, ResourcePosition targetPosition) throws it.uniroma2.art.maple.orchestration.AssessmentException, org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.repository.RepositoryException, org.eclipse.rdf4j.rio.UnsupportedRDFormatException, IllegalStateException, IllegalArgumentException, IOException, STPropertyAccessException, NoSuchSettingsManager, ForbiddenProjectAccessException, InvalidConfigurationException, it.uniroma2.art.maple.orchestration.ProfilingException Profiles the problem of matching the provided resource in the current project against the provided resource position (i.e. another local project or remote dataset).- Parameters:
sourceResource
-targetPosition
-- Returns:
- Throws:
it.uniroma2.art.maple.orchestration.AssessmentException
IllegalArgumentException
org.eclipse.rdf4j.repository.RepositoryException
it.uniroma2.art.maple.orchestration.ProfilingException
ForbiddenProjectAccessException
org.eclipse.rdf4j.rio.RDFParseException
org.eclipse.rdf4j.rio.UnsupportedRDFormatException
IllegalStateException
IOException
STPropertyAccessException
NoSuchSettingsManager
InvalidConfigurationException
-
getDatasetDistributionDescriptionFromResourcePosition
protected org.apache.commons.lang3.tuple.Pair<org.eclipse.rdf4j.model.IRI,org.eclipse.rdf4j.model.Model> getDatasetDistributionDescriptionFromResourcePosition(ResourcePosition targetPosition) throws org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.rio.UnsupportedRDFormatException, IOException, IllegalStateException, STPropertyAccessException, NoSuchSettingsManager, ForbiddenProjectAccessException, InvalidConfigurationException, org.eclipse.rdf4j.repository.RepositoryException, IllegalArgumentException - Throws:
org.eclipse.rdf4j.rio.RDFParseException
org.eclipse.rdf4j.rio.UnsupportedRDFormatException
IOException
IllegalStateException
STPropertyAccessException
NoSuchSettingsManager
ForbiddenProjectAccessException
InvalidConfigurationException
org.eclipse.rdf4j.repository.RepositoryException
IllegalArgumentException
-
getProjectMetadata
protected org.apache.commons.lang3.tuple.Pair<org.eclipse.rdf4j.model.IRI,org.eclipse.rdf4j.model.Model> getProjectMetadata(Project project) throws org.eclipse.rdf4j.rio.RDFParseException, org.eclipse.rdf4j.rio.UnsupportedRDFormatException, IOException, IllegalStateException, STPropertyAccessException, NoSuchSettingsManager, ForbiddenProjectAccessException, InvalidConfigurationException - Throws:
org.eclipse.rdf4j.rio.RDFParseException
org.eclipse.rdf4j.rio.UnsupportedRDFormatException
IOException
IllegalStateException
STPropertyAccessException
NoSuchSettingsManager
ForbiddenProjectAccessException
InvalidConfigurationException
-