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
ConstructorsConstructorDescriptionSTMetadataRegistryBackendImpl(File baseDir, it.uniroma2.art.maple.orchestration.MediationFramework mediationFramework, ExtensionPointManager exptManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.IRIfindDatasetForProject(Project project) Returns metadata about the given project.org.eclipse.rdf4j.model.IRIfindDatasetForProject(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) voidregisterProject(Project project) Registers the metadata associated with a project (seeStoredProjectMetadata).voidunregisterProject(Project project) Removes the metadata associated with a projectprotected booleanverifyTargetProjectAccessibility(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, updateParentDatasetRecordTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:STMetadataRegistryBackendReturns metadata about the given project. If no dataset is found, then the method returnsnull.- Specified by:
findDatasetForProjectin interfaceSTMetadataRegistryBackend- Returns:
-
findDatasetForProject
Description copied from interface:STMetadataRegistryBackendReturns metadata about the given project. If no dataset is found, then the method returnsnull.- Specified by:
findDatasetForProjectin interfaceSTMetadataRegistryBackend- Returns:
-
findProjectForDataset
Description copied from interface:STMetadataRegistryBackendReturns 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:
findProjectForDatasetin interfaceSTMetadataRegistryBackend- Returns:
-
findProjectForDataset
Description copied from interface:STMetadataRegistryBackendReturns the project associated with the given dataset, optionally allowing the lookup of subsets. If no project is found, then the method returnsnull.- Specified by:
findProjectForDatasetin interfaceSTMetadataRegistryBackend- Returns:
-
getPatternForLocalDataset
- Overrides:
getPatternForLocalDatasetin classMetadataRegistryBackendImpl
-
verifyTargetProjectAccessibility
protected boolean verifyTargetProjectAccessibility(String sourceProjectName, String targetProjectName) - Overrides:
verifyTargetProjectAccessibilityin classMetadataRegistryBackendImpl
-
getProjectTitles
- Overrides:
getProjectTitlesin classMetadataRegistryBackendImpl
-
registerProject
Description copied from interface:STMetadataRegistryBackendRegisters the metadata associated with a project (seeStoredProjectMetadata). If the project has been already registered, the metadata are replaced.- Specified by:
registerProjectin interfaceSTMetadataRegistryBackend
-
unregisterProject
Description copied from interface:STMetadataRegistryBackendRemoves the metadata associated with a project- Specified by:
unregisterProjectin interfaceSTMetadataRegistryBackend
-