Uses of Interface
org.aksw.jena_sparql_api.http.repository.api.RdfHttpEntityFile
Packages that use RdfHttpEntityFile
Package
Description
-
Uses of RdfHttpEntityFile in org.aksw.jena_sparql_api.conjure.entity.engine
Methods in org.aksw.jena_sparql_api.conjure.entity.engine with parameters of type RdfHttpEntityFileModifier and TypeMethodDescriptionstatic OpPlanner.createPlan(RdfHttpEntityFile source, String tgtContentType, List<String> tgtEncodings) Provide a concrete plan that converts the given source file entity to a file in the target with the given content type and encoding 'Concrete' refers to the fact that the file's content hash is taken into account TODO Separate abstract and concrete plans? Abstract plan would be the operator expression that the conversion -
Uses of RdfHttpEntityFile in org.aksw.jena_sparql_api.http.repository.api
Classes in org.aksw.jena_sparql_api.http.repository.api that implement RdfHttpEntityFileMethods in org.aksw.jena_sparql_api.http.repository.api that return RdfHttpEntityFileModifier and TypeMethodDescriptionRdfHttpResourceFile.allocate(org.apache.jena.rdf.model.Resource description) Get or create an entity that matches the given description.ResourceStore.allocateEntity(String uri, org.apache.jena.rdf.model.Resource description) ResourceStore.allocateEntity(Path relPath, org.apache.jena.rdf.model.Resource description) HttpRepository.get(org.apache.http.HttpRequest request, Function<org.apache.http.HttpRequest, Map.Entry<org.apache.http.HttpRequest, org.apache.http.HttpResponse>> httpRequester) HttpResourceRepositoryFromFileSystem.getEntityForPath(Path path) Obtain an entity for the given path The repository may consult several stores to complete this action.ResourceStore.getEntityForPath(Path absEntityPath) Bridge between paths and entitiesResourceStore.putWithMove(String uri, org.aksw.jena_sparql_api.http.domain.api.RdfEntityInfo metadata, Path file) 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())Methods in org.aksw.jena_sparql_api.http.repository.api that return types with arguments of type RdfHttpEntityFileModifier and TypeMethodDescriptionRdfHttpResourceFile.getEntities()ResourceStore.listEntities(Path basePath) Methods in org.aksw.jena_sparql_api.http.repository.api with parameters of type RdfHttpEntityFileModifier and TypeMethodDescriptionstatic StringResourceStore.readHash(RdfHttpEntityFile entity, String hashName) -
Uses of RdfHttpEntityFile in org.aksw.jena_sparql_api.http.repository.impl
Classes in org.aksw.jena_sparql_api.http.repository.impl that implement RdfHttpEntityFileMethods in org.aksw.jena_sparql_api.http.repository.impl that return RdfHttpEntityFileModifier and TypeMethodDescriptionRdfHttpResourceFileImpl.allocate(org.apache.jena.rdf.model.Resource description) ResourceStoreImpl.allocateEntity(String uri, org.apache.jena.rdf.model.Resource description) ResourceStoreImpl.allocateEntity(Path baseRelPath, org.apache.jena.rdf.model.Resource _info) static RdfHttpEntityFileHttpResourceRepositoryFromFileSystemImpl.get(HttpResourceRepositoryFromFileSystem repo, String url, String contentType, List<String> encodings) Convenience method for requesting a resource with given content type and encodingsSHttpResourceRepositoryFromFileSystemImpl.get(org.apache.http.HttpRequest request, Function<org.apache.http.HttpRequest, Map.Entry<org.apache.http.HttpRequest, org.apache.http.HttpResponse>> httpRequester) Lookup an entity First, this method checks if the request can be served from the locally cached entities: It attempts to create a plan that transforms the available entities into a requested one.HttpResourceRepositoryFromFileSystemImpl.getEntityForPath(Path path) ResourceStoreImpl.getEntityForPath(Path absEntityPath) ResourceStoreImpl.putWithMove(String uri, org.aksw.jena_sparql_api.http.domain.api.RdfEntityInfo metadata, Path file) Put a given file into an appropriate place in the repository using a move operationHttpResourceRepositoryFromFileSystemImpl.saveResponse(RdfHttpResourceFile targetResource, org.apache.http.HttpRequest request, org.apache.http.HttpResponse response) Derives the suffix which to append to the base path from the entity's headers.HttpObjectSerializer.serialize(String uri, ResourceStore store, T data) HttpObjectSerializerModel.serialize(String uri, ResourceStore store, org.apache.jena.rdf.model.Model model) Methods in org.aksw.jena_sparql_api.http.repository.impl that return types with arguments of type RdfHttpEntityFileModifier and TypeMethodDescriptionHttpResourceRepositoryFromFileSystemImpl.getEntities(String uri) RdfHttpResourceFileImpl.getEntities()static <T> Map.Entry<RdfHttpEntityFile,T> ResourceStoreImpl.getOrCacheEntity(HttpResourceRepositoryFromFileSystem repo, ResourceStore store, String uri, HttpObjectSerializer<T> serializer, Supplier<T> contentSupplier) Request an RDF model from the repository based on a given uri (or any string)ResourceStoreImpl.listEntities(Path relContentFolder) static Map.Entry<RdfHttpEntityFile,org.apache.jena.rdf.model.Model> ResourceStoreImpl.requestModel(HttpResourceRepositoryFromFileSystem repo, ResourceStore store, String uri, org.apache.jena.riot.RDFFormat preferredOutputFormat, Supplier<org.apache.jena.rdf.model.Model> modelSupplier) Find a model in the given resource repository or create one it in the given store based on the lambda if it does not yet existMethods in org.aksw.jena_sparql_api.http.repository.impl with parameters of type RdfHttpEntityFileModifier and TypeMethodDescriptionstatic voidHttpResourceRepositoryFromFileSystemImpl.computeHashForEntity(RdfHttpEntityFile rdfEntity, Path tmp) Compute a hash (sha256) for the content at path tmp and associate it with the given entity.HttpObjectSerializer.deserialize(RdfHttpEntityFile entity) org.apache.jena.rdf.model.ModelHttpObjectSerializerModel.deserialize(RdfHttpEntityFile entity) booleanHttpResourceRepositoryFromFileSystemImpl.validateEntity(RdfHttpEntityFile entity) Method parameters in org.aksw.jena_sparql_api.http.repository.impl with type arguments of type RdfHttpEntityFileModifier and TypeMethodDescriptionHttpResourceRepositoryFromFileSystemImpl.findBestPlanToServeRequest(org.apache.http.HttpRequest request, Collection<RdfHttpEntityFile> entities, OpExecutor opExecutor)