Giter Club home page Giter Club logo

Comments (4)

janslifka avatar janslifka commented on June 26, 2024

Hello @K41eb,

406 Not Acceptable is a response status defined in HTTP Protocol. It indicates that the server cannot produce a response that would match Accept headers in the HTTP request.

Could you provide the HTTP request you're trying to make?

from fairdatapoint.

louis-vinchon avatar louis-vinchon commented on June 26, 2024

I was trying to perform the request described in your documentqtion https://fairdatapoint.readthedocs.io/en/latest/usage/api-usage.html

curl -H "Authorization: Bearer efIobn394nvJJFJ30..." \
    -H "Content-Type: text/turtle" \
    -d @metadata.ttl https://fdp.example.com/dataset

but i had an extra header. This particular issue is fixed now, however I now get the following error:

    data: {
      timestamp: 1646830055192,
      status: 400,
      error: 'Bad Request',
      message: 'Validation failed (no rdf:type was provided)'
    }

from fairdatapoint.

janslifka avatar janslifka commented on June 26, 2024

What exactly is in the metadata.ttl file you're sending to FDP? I've just tried that with the one provided in the documentation page where I only change URI in dct:isPartOf to be an existing catalog and it worked.

from fairdatapoint.

louis-vinchon avatar louis-vinchon commented on June 26, 2024

I was trying things with my own SHACL shapes and turtle files but that was probably not the best approach, sorry for wasting your time.

I am now trying to create a catalog before the dataset, sometimes I get the SHACL validation errors (I can work with these, all is good on that front), and sometimes I get messages such as Not parent uri for the following ttl:

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<> a dcat:Catalog ;
  dct:title "test" ;
  dct:hasVersion "1.0" ;
  dct:publisher [ a foaf:Agent ; foaf:name "Example User" ] .

I'm having trouble idnetifying what the issue is. And the DCAT documentation isn't helping either.
https://www.w3.org/TR/vocab-dcat-2/

Would you mind sharing your valid catalog and dataset files and api calls?

from fairdatapoint.

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.