Interface ResourceStore

All Known Implementing Classes:
ResourceStoreImpl

public interface ResourceStore
  • Method Details

    • readHash

      static String readHash(RdfHttpEntityFile entity, String hashName)
    • putWithMove

      RdfHttpEntityFile putWithMove(String uri, org.aksw.jena_sparql_api.http.domain.api.RdfEntityInfo metadata, Path file) throws IOException
      Archive the file in the repository and then delete the source TODO This method can be considered mostly as simple convenience function: We may want some more sophisticated API that places a file or stream into the repository once it becomes ready and triggers an action when the archiving has completed - something along the lines of: flowableSourceOfByteSourceOrFile .flatMap(repo.archivingThatProducesASingleWithInfo(byteSourceOrFile)) .subscribe(info -> info.inputFile().delete())
      Parameters:
      uri -
      metadata -
      file -
      Returns:
      Throws:
      IOException
    • getEntityForPath

      RdfHttpEntityFile getEntityForPath(Path absEntityPath)
      Bridge between paths and entities
      Parameters:
      absEntityPath - Absolute path to an entity.
      Returns:
    • getResource

      RdfHttpResourceFile getResource(String uri)
    • allocateEntity

      RdfHttpEntityFile allocateEntity(String uri, org.apache.jena.rdf.model.Resource description)
    • getAbsolutePath

      Path getAbsolutePath()
    • listEntities

      Collection<RdfHttpEntityFile> listEntities(Path basePath)
    • contains

      boolean contains(Path path)
      Test whether the path lies within the store - does not check for existence
      Parameters:
      path -
      Returns:
    • getInfo

      org.apache.jena.rdf.model.Resource getInfo(Path path, String layer)
      Return the metadata associated with a given path
      Parameters:
      path -
      layer - A label to retrieve the metadata from a single source
      Returns:
    • updateInfo

      void updateInfo(Path path, Consumer<? super org.apache.jena.rdf.model.Resource> info)
    • getInfo

      default org.apache.jena.rdf.model.Resource getInfo(Path path)
    • allocateEntity

      RdfHttpEntityFile allocateEntity(Path relPath, org.apache.jena.rdf.model.Resource description)