Skip to content

folio-org/lib-linked-data-fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lib-linked-data-fingerprint

Copyright (C) 2024 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Purpose

Fingerprint hash is the unique identifier for a resource in Linked Data Graph. This library provides a function for a fingerprint hash generation.

Compiling

mvn clean install

Using the library

The library can be used as a source of Linked Data resource hash:

import org.folio.ld.dictionary.model.Resource;
import org.folio.ld.fingerprint.service.FingerprintHashService;
import org.springframework.stereotype.Service;

@Service
public class YourService {

  private final FingerprintHashService fingerprintHashService;

  public YourService(FingerprintHashService fingerprintHashService) {
    this.fingerprintHashService = fingerprintHashService;
  }

  public void yourMethod(Resource resource) {
    Long hash = fingerprintHashService.hash(resource);
    // ...
    // ...
  }
}

Dependencies

Download and configuration

The built artifacts for this module are available. See configuration for repository access.

About

A library providing functions to generate fingerprints (hashes) for linked data resources.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy