Interface STMetadataRegistryBackend

All Superinterfaces:
MetadataRegistryBackend
All Known Implementing Classes:
STMetadataRegistryBackendImpl

public interface STMetadataRegistryBackend extends MetadataRegistryBackend
A binding of MetadataRegistryBackend to Semantic Turkey.
  • 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

      @Transactional Optional<org.eclipse.rdf4j.model.IRI> findDeployedVoidDataset(Project project)
    • findDeployedDataset

      @Transactional Optional<org.eclipse.rdf4j.model.IRI> findDeployedDataset(Project project)
    • findDeployedDataset

      @Transactional Optional<org.eclipse.rdf4j.model.IRI> findDeployedDataset(Project project, String shard)
    • findDatasetRealizationForDistribution

      @Transactional Optional<org.eclipse.rdf4j.model.IRI> findDatasetRealizationForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution)
    • findDeployedDatasetVersion

      @Transactional Optional<org.eclipse.rdf4j.model.IRI> findDeployedDatasetVersion(Project project, String shard)
    • 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
      Throws:
      NoSuchSettingsManager
      STPropertyAccessException
    • findDatasetAbstractionForProject

      @Transactional org.eclipse.rdf4j.model.IRI findDatasetAbstractionForProject(Project project)
    • 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

      @Transactional Optional<DatasetVersion> getCurrentVersionForProject(Project project)
      Returns the current version of the dataset hosted by the given project. If the project does not host the current version, then null is 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

      @Transactional Project findProjectForDistribution(org.eclipse.rdf4j.model.IRI datasetDistribution)
      Returns the project associated with the given dataset distribution. If no project is found, then the method returns null. This is a convenience overload for findProjectForDistribution(IRI, boolean) with the second parameter set to false.
      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 returns null.
      Parameters:
      datasetDistribution -
      Returns:
    • deleteProject

      @Transactional Collection<String> deleteProject(String projectName)
      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

      PluginSpecification guessRepositoryImplConfiguration(Project project)
    • bulkSetMainShardsAsNonEditable

      @Transactional void bulkSetMainShardsAsNonEditable() throws ProjectAccessException
      Bulk change all main shards as non-editable
      Throws:
      MetadataRegistryException
      ProjectAccessException