Class STMetadataRegistryBackendImpl
java.lang.Object
it.uniroma2.art.semanticturkey.mdr.core.impl.MetadataRegistryBackendImpl
it.uniroma2.art.semanticturkey.mdr.bindings.impl.STMetadataRegistryBackendImpl
- All Implemented Interfaces:
STMetadataRegistryBackend
,MetadataRegistryBackend
public class STMetadataRegistryBackendImpl
extends MetadataRegistryBackendImpl
implements STMetadataRegistryBackend
Implementation of
STMetadataRegistryBackend
.-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.mdr.core.impl.MetadataRegistryBackendImpl
catalogFile, DEFAULT_BASEURI, DEFAULT_NS, DEFAULT_PROJECT_NS, mediationFramework, METADATA_REGISTRY_DIRECTORY, METADATA_REGISTRY_FILE, metadataRegistry, registryDirectory
-
Constructor Summary
ConstructorDescriptionSTMetadataRegistryBackendImpl
(File baseDir, it.uniroma2.art.maple.orchestration.MediationFramework mediationFramework, ExtensionPointManager exptManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.IRI
findDatasetForProject
(Project project) Returns metadata about the given project.org.eclipse.rdf4j.model.IRI
findDatasetForProject
(Project project, boolean useDistribution) Returns metadata about the given project.findProjectForDataset
(org.eclipse.rdf4j.model.IRI dataset) Returns the project associated with the given dataset.findProjectForDataset
(org.eclipse.rdf4j.model.IRI dataset, boolean allowSubset) Returns the project associated with the given dataset, optionally allowing the lookup of subsets.getPatternForLocalDataset
(String subjBinding) protected List<org.eclipse.rdf4j.model.Literal>
getProjectTitles
(String projectName) void
registerProject
(Project project) Registers the metadata associated with a project (seeStoredProjectMetadata
).void
unregisterProject
(Project project) Removes the metadata associated with a projectprotected boolean
verifyTargetProjectAccessibility
(String sourceProjectName, String targetProjectName) Methods inherited from class it.uniroma2.art.semanticturkey.mdr.core.impl.MetadataRegistryBackendImpl
addEmbeddedLexicalizationSet, addEmbeddedLinkset, bindingset2datasetmetadata, bindingset2lexicalizationsetmetadata, checkLocallyDefined, checkNotLocallyDefined, computeProjectContext, computeProjectFromContext, connectToAbstractDataset, createConcreteDataset, createConcreteDataset, createDataset, createRepository, deleteCatalogRecord, deleteDescription, deleteEmbeddedLexicalizationSet, deleteTitle, destroy, disconnectFromAbstractDataset, discoverDataset, discoverDatasetMetadata, discoverDatasetMetadataInternal, discoverLexicalizationSets, extractProfile, findDatasetForResource, getCatalogRecordMetadata, getClassPartitions, getComputedLexicalizationModel, getConnection, getDatasetMetadata, getDatasetMetadata, getEmbeddedLexicalizationSets, getEmbeddedLinksets, getSPARQLEndpointLimitations, getUnambiguousDatasetMetadata, initialize, initializeRepository, listConnectedDatasets, listDatasetMetadata, listDatasetsForResource, listRootDatasets, main, removeSPARQLEndpointLimitation, saveToFile, setDereferenciability, setDescription, setSPARQLEndpoint, setSPARQLEndpointLimitation, setTitle, spawnNewAbstractDataset, updateDatasetRecordTimestamp, updateParentDatasetRecordTimestamp
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryBackend
addEmbeddedLexicalizationSet, addEmbeddedLinkset, connectToAbstractDataset, createConcreteDataset, deleteCatalogRecord, deleteDescription, deleteEmbeddedLexicalizationSet, deleteTitle, destroy, disconnectFromAbstractDataset, discoverDataset, discoverDatasetMetadata, discoverLexicalizationSets, extractProfile, findDatasetForResource, getCatalogRecordMetadata, getClassPartitions, getComputedLexicalizationModel, getConnection, getDatasetMetadata, getEmbeddedLexicalizationSets, getEmbeddedLinksets, getSPARQLEndpointLimitations, initialize, listConnectedDatasets, listDatasetsForResource, listRootDatasets, removeSPARQLEndpointLimitation, setDereferenciability, setDescription, setSPARQLEndpoint, setSPARQLEndpointLimitation, setTitle, spawnNewAbstractDataset
-
Constructor Details
-
STMetadataRegistryBackendImpl
public STMetadataRegistryBackendImpl(File baseDir, it.uniroma2.art.maple.orchestration.MediationFramework mediationFramework, ExtensionPointManager exptManager) throws MetadataRegistryCreationException
-
-
Method Details
-
findDatasetForProject
Description copied from interface:STMetadataRegistryBackend
Returns metadata about the given project. If no dataset is found, then the method returnsnull
.- Specified by:
findDatasetForProject
in interfaceSTMetadataRegistryBackend
- Returns:
-
findDatasetForProject
Description copied from interface:STMetadataRegistryBackend
Returns metadata about the given project. If no dataset is found, then the method returnsnull
.- Specified by:
findDatasetForProject
in interfaceSTMetadataRegistryBackend
- Returns:
-
findProjectForDataset
Description copied from interface:STMetadataRegistryBackend
Returns the project associated with the given dataset. If no project is found, then the method returnsnull
. This is a convenience overload forSTMetadataRegistryBackend.findProjectForDataset(IRI, boolean)
with the second parameter set tofalse
.- Specified by:
findProjectForDataset
in interfaceSTMetadataRegistryBackend
- Returns:
-
findProjectForDataset
Description copied from interface:STMetadataRegistryBackend
Returns the project associated with the given dataset, optionally allowing the lookup of subsets. If no project is found, then the method returnsnull
.- Specified by:
findProjectForDataset
in interfaceSTMetadataRegistryBackend
- Returns:
-
getPatternForLocalDataset
- Overrides:
getPatternForLocalDataset
in classMetadataRegistryBackendImpl
-
verifyTargetProjectAccessibility
protected boolean verifyTargetProjectAccessibility(String sourceProjectName, String targetProjectName) - Overrides:
verifyTargetProjectAccessibility
in classMetadataRegistryBackendImpl
-
getProjectTitles
- Overrides:
getProjectTitles
in classMetadataRegistryBackendImpl
-
registerProject
Description copied from interface:STMetadataRegistryBackend
Registers the metadata associated with a project (seeStoredProjectMetadata
). If the project has been already registered, the metadata are replaced.- Specified by:
registerProject
in interfaceSTMetadataRegistryBackend
-
unregisterProject
Description copied from interface:STMetadataRegistryBackend
Removes the metadata associated with a project- Specified by:
unregisterProject
in interfaceSTMetadataRegistryBackend
-