Interface STMetadataRegistryBackend
- All Superinterfaces:
MetadataRegistryBackend
- All Known Implementing Classes:
STMetadataRegistryBackendImpl
A binding of
MetadataRegistryBackend to Semantic Turkey.-
Field Summary
Fields inherited from interface it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryBackend
SHORT_NAME_PATTERN -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeploymentAsLocalDataset(org.eclipse.rdf4j.model.IRI dataset, ProjectShardLocator locator, DeploymentActivity activity) voidBulk change all main shards as non-editabledeleteProject(String projectName) Deletes all metadata related to a given projectdeleteProjectVersion(String projectName, String versionId, boolean deleteOnlyShard) Deletes all metadata related to a given project versionorg.eclipse.rdf4j.model.IRIfindDatasetAbstractionForProject(Project project) Optional<org.eclipse.rdf4j.model.IRI>findDatasetRealizationForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution) Optional<org.eclipse.rdf4j.model.IRI>findDeployedDataset(Project project) Optional<org.eclipse.rdf4j.model.IRI>findDeployedDataset(Project project, String shard) Optional<org.eclipse.rdf4j.model.IRI>findDeployedDatasetVersion(Project project, String shard) org.eclipse.rdf4j.model.IRIfindDeployedDistributionForProject(Project project, String shard) Returns the dataset distribution deployed onto the provided project shard.Optional<org.eclipse.rdf4j.model.IRI>findDeployedVoidDataset(Project project) findProjectForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution) Returns the project associated with the given dataset distribution.findProjectForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution, boolean allowSubset) Returns the project associated with the given dataset distribution, optionally allowing the lookup of subsets.org.eclipse.rdf4j.model.IRIgetCurrentVersionForProject(Project project) Returns the current version of the dataset hosted by the givenproject.getDatasetCatalogConnector(String extensionId, String catalogId) getDatasetRealizationsForProject(Project project, boolean excludeMutable) Returns all dataset realizations deployed into a projectgetLocalDeploymentLocation(String datasetAbstractionShortName, String version) getLocalDeploymentLocationForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution, boolean allowSubset) getProjectsForDatasetAbstraction(org.eclipse.rdf4j.model.IRI datasetAbstraction) guessRepositoryImplConfiguration(Project project) booleanisLocallyDeployedVersion(org.eclipse.rdf4j.model.IRI datasetVersion) voidvoidsetAsCurrentVersion(org.eclipse.rdf4j.model.IRI dataset) voidsetColocatedST(org.eclipse.rdf4j.model.IRI dataService) Returns the colocated data serviceMethods inherited from interface it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryBackend
addChangesetDistributionFile, addChangesetDistributionIfMissing, addConcreteDataset, addDeployment, addDeploymentForDistribution, addDistribution, addEmbeddedLexicalizationSet, addIdentifierToDatasetAbstraction, addLinksetDistribution, addSparqlEndpoint, checkShortNameExists, computeMainGraph, computeStatsGraph, computeSysGraph, createChangeset, createChangesetVersion, createDatasetArchetype, createDatasetRealization, createLODRealization, deleteCatalogRecord, deleteChangesetDistribution, deleteChangesetDistributionFile, deleteDatasetAbstraction, deleteDatasetDistribution, deleteDeploymentForDistribution, deleteEmbeddedLexicalizationSet, deleteLinksetDistributionFile, discoverDataset, discoverDatasetMetadata, discoverLexicalizationSets, encodeShortName, evaluateQuery, exportDatasetAbstractionMetadata, exportDatasetVersionMetadata, extractDistributionProfile, filterRootDatasets, findCoreDatasetForResource, findCurrentVersionForResource, findLODDatasetForResource, findMasterDatasetForResource, findOtherVersionsForResource, getAbstractionForDataset, getBaseURI, getCatalogRecord, getChangeset, getChangesetVersion, getClassPartitions, getColocatedDataService, getComputedLexicalizationModel, getDatasetAbstractions, getDatasetChangesetDistributionFiles, getDatasetDistributions, getDatasetMetadata2, getDatasetVersion, getDatasetVersionForDistribution, getDatasetVersions, getDefaultNamespace, getDistributionMetadata, getEmbeddedLexicalizationSets, getEmbeddedLinksets, getLinksetDistributionFiles, getRepositoryConnection, getSPARQLEndpointLimitations, importDatasetAbstractionMetadata, importDatasetVersionMetadata, listConnectedDatasets, listRootDatasets, mergeRootDatasets, removeSPARQLEndpointLimitation, setDatasetRealizationVersion, setDereferenciability, setSPARQLEndpointLimitation
-
Method Details
-
addDeploymentAsLocalDataset
@Transactional void addDeploymentAsLocalDataset(org.eclipse.rdf4j.model.IRI dataset, ProjectShardLocator locator, DeploymentActivity activity) throws MetadataRegistryException - Throws:
MetadataRegistryException
-
getProjectsForDatasetAbstraction
@Transactional ProjectSummary getProjectsForDatasetAbstraction(org.eclipse.rdf4j.model.IRI datasetAbstraction) -
findDeployedVoidDataset
-
findDeployedDataset
-
findDeployedDataset
-
findDatasetRealizationForDistribution
@Transactional Optional<org.eclipse.rdf4j.model.IRI> findDatasetRealizationForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution) -
findDeployedDatasetVersion
-
getColocatedST
org.eclipse.rdf4j.model.IRI getColocatedST() -
setColocatedST
void setColocatedST(org.eclipse.rdf4j.model.IRI dataService) Returns the colocated data service -
getDatasetCatalogConnector
@Transactional STDatasetCatalogConnector getDatasetCatalogConnector(String extensionId, String catalogId) throws MetadataRegistryException - Throws:
MetadataRegistryException
-
getLocalDeploymentLocation
@Transactional ProjectShardLocator getLocalDeploymentLocation(String datasetAbstractionShortName, String version) throws MetadataRegistryException - Throws:
MetadataRegistryException
-
getLocalDeploymentLocationForDistribution
@Transactional ProjectShardLocator getLocalDeploymentLocationForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution, boolean allowSubset) throws MetadataRegistryException - Throws:
MetadataRegistryException
-
reindexDatasetCatalogConnectors
@Transactional void reindexDatasetCatalogConnectors() throws NoSuchSettingsManager, STPropertyAccessException -
findDatasetAbstractionForProject
-
findDeployedDistributionForProject
@Transactional org.eclipse.rdf4j.model.IRI findDeployedDistributionForProject(Project project, String shard) Returns the dataset distribution deployed onto the provided project shard.- Parameters:
project-shard-- Returns:
-
getCurrentVersionForProject
Returns the current version of the dataset hosted by the givenproject. If the project does not host the current version, thennullis returned. -
getDatasetRealizationsForProject
@Transactional List<DatasetVersion> getDatasetRealizationsForProject(Project project, boolean excludeMutable) Returns all dataset realizations deployed into a project- Parameters:
project-excludeMutable-- Returns:
-
setAsCurrentVersion
@Transactional void setAsCurrentVersion(org.eclipse.rdf4j.model.IRI dataset) throws MetadataRegistryException - Throws:
MetadataRegistryException
-
isLocallyDeployedVersion
@Transactional boolean isLocallyDeployedVersion(org.eclipse.rdf4j.model.IRI datasetVersion) -
findProjectForDistribution
Returns the project associated with the given dataset distribution. If no project is found, then the method returnsnull. This is a convenience overload forfindProjectForDistribution(IRI, boolean)with the second parameter set tofalse.- Parameters:
datasetDistribution-- Returns:
-
findProjectForDistribution
@Transactional Project findProjectForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution, boolean allowSubset) Returns the project associated with the given dataset distribution, optionally allowing the lookup of subsets. If no project is found, then the method returnsnull.- Parameters:
datasetDistribution-- Returns:
-
deleteProject
Deletes all metadata related to a given project- Parameters:
projectName-- Returns:
- the urls of the files to remove
-
deleteProjectVersion
@Transactional Set<String> deleteProjectVersion(String projectName, String versionId, boolean deleteOnlyShard) Deletes all metadata related to a given project version- Parameters:
projectName-versionId-- Returns:
-
guessRepositoryImplConfiguration
-
bulkSetMainShardsAsNonEditable
Bulk change all main shards as non-editable
-