atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

Can't get all namespace data in RDF/XML format #543

Closed sirex closed 7 months ago

sirex commented 7 months ago

I have a following manifest:

d | r | b | m | property | type    | ref      | level | access
example                  |         |          |       |
  |   |   | Country      |         | id       | 4     |
  |   |   |   | id       | integer |          | 4     | protected
  |   |   |   | name     | string  |          | 4     | open
  |   |   | City         |         | id       | 4     |
  |   |   |   | id       | integer |          | 4     | protected
  |   |   |   | name     | string  |          | 4     | open
  |   |   |   | country  | ref     | Country  | 4     | open

When I run:

http GET /example/:all?format(rdf)

I get following error:

HTTP/1.1 500 Internal Server Error

{
    "errors": [
        {
            "code": "NotImplementedError",
            "message": "Could not find signature for render: <Context, Request, Namespace, Rdf>"
        }
    ]
}
Traceback (most recent call last):
  File "spinta/api.py", line 269, in homepage
    return await create_http_response(context, params, request)
  File "spinta/utils/response.py", line 166, in create_http_response
    return await commands.getall(
  File "spinta/types/namespace.py", line 198, in getall
    return render(context, request, ns, params, rows, action=action)
  File "spinta/renderer.py", line 23, in render
    return commands.render(
  File "multipledispatch/dispatcher.py", line 273, in __call__
    raise NotImplementedError(
NotImplementedError: Could not find signature for render: <Context, Request, Namespace, Rdf>

/:all parameter runs through all models recursively and returns all data in a requested format.

Related