项目作者: uvdsl

项目描述 :
Linked Data Hasher
高级语言: Java
项目地址: git://github.com/uvdsl/ldh.git
创建时间: 2019-10-29T21:22:58Z
项目社区:https://github.com/uvdsl/ldh

开源协议:

下载


LDH - Linked Data Hasher

This is just a quick and dirty RESTful-Server to hash Linked Data.
Currently, it only talkes turtle.
The hasher is available at ‘/hasher’.
For documentation and testing, Swagger is in place at ‘/swagger’.

Request

Request-Headers (baseURI is your document’s uri):

  1. Accept: "text/turtle"
  2. Content-Type: "text/turtle"
  3. baseURI: "http://exampleInput.org/"

Request-Body is the rdf content in trutle format.

Response: 200 OK

You get something back like:

  1. <baseURI> <http://www.w3.org/2000/10/swap/crypto#md5> '0xHASH'^^<http://www.w3.org/2001/XMLSchema#hexBinary> .

Response: 4XX - Client Error

When you get a 4XX error, you may have forgotten the baseURI-header or your turtle-syntax is messed up. If the server can’t parse what you feed it, you will get a 400 Bad Request. You can see what went wrong in the message body.

Response: 5XX - Server Error

Unlikely, but nonetheless: If the server goes wild while hashing, a 500 Internal Server Error is given back. You can see what went wrong in the message body.

#

Publish Docker image to GitHub Package Registry (GPR)/badge.svg)