Giter Club home page Giter Club logo

Comments (7)

csarven avatar csarven commented on May 16, 2024

Make sure to expose the following headers where applicable:

Allow
Accept-Post
Accept-Patch
Accept-Put

from linkeddatahub.

namedgraph avatar namedgraph commented on May 16, 2024

Accept-Post is semi-defined in the LDP spec: https://www.w3.org/TR/ldp/#header-accept-post

from linkeddatahub.

namedgraph avatar namedgraph commented on May 16, 2024

Accept-Patch: https://tools.ietf.org/html/rfc5789#section-4.1

from linkeddatahub.

namedgraph avatar namedgraph commented on May 16, 2024

I think the implementation should be:

  • Accept-Post on Container resources (creates new child resource)
  • Accept-Put, Accept-Post, Accept-Patch (SPARQL update) on named graphs

from linkeddatahub.

namedgraph avatar namedgraph commented on May 16, 2024

OPTIONS is supported by Jersey by default:

OPTIONS /demo/city-graph/ HTTP/1.1
Host: linkeddatahub.com:4443
User-Agent: curl/7.47.0
Accept: */*

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Strict-Transport-Security: max-age=31536000;includeSubDomains
Allow: OPTIONS,HEAD,DELETE,POST,GET,PUT
Last-modified: Wed, 19 Dec 2018 00:01:48 CET
Vary: Accept
Content-Type: application/vnd.sun.wadl+xml
Content-Length: 1015
Date: Thu, 20 Dec 2018 20:17:11 GMT

I'll look into the other headers now.

from linkeddatahub.

namedgraph avatar namedgraph commented on May 16, 2024

Looks like this is at implemented for the Graph Store Protocol with direct graph identification:
https://github.com/AtomGraph/LinkedDataHub/blob/master/src/main/java/com/atomgraph/linkeddatahub/resource/graph/Item.java#L106

from linkeddatahub.

namedgraph avatar namedgraph commented on May 16, 2024
pumba@LAPTOP-BL3MCU0O:~$ curl -k https://kgdev.net -X OPTIONS -I
HTTP/1.1 200
Server: nginx/1.21.4
Date: Thu, 17 Feb 2022 21:23:59 GMT
Content-Length: 0
Connection: keep-alive
Allow: GET
Allow: POST
Allow: PUT
Allow: DELETE
Accept-Post: text/html;charset=UTF-8,application/xhtml+xml;charset=UTF-8,application/rdf+xml;charset=UTF-8,application/n-triples;charset=UTF-8,application/rdf+protobuf;charset=UTF-8,application/trix;charset=UTF-8,application/ld+json;charset=UTF-8,x/ld-json-11;charset=UTF-8,text/shaclc;charset=UTF-8,application/rdf+thrift;charset=UTF-8,text/turtle;charset=UTF-8,text/rdf+n3;charset=UTF-8,application/rdf+json;charset=UTF-8
Link: <https://kgdev.net/>; rel=https://www.w3.org/ns/ldt#base
Link: <https://kgdev.net/sparql>; rel=http://www.w3.org/ns/sparql-service-description#endpoint
Link: <https://kgdev.net/admin/model/ontologies/namespace/#>; rel=https://www.w3.org/ns/ldt#ontology

from linkeddatahub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.