Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sirex opened this issue Nov 14, 2023 · 0 comments · Fixed by #548
Closed

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

sirex opened this issue Nov 14, 2023 · 0 comments · Fixed by #548
Labels
bug Something isn't working

Comments

@sirex
Copy link
Collaborator

sirex commented Nov 14, 2023

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

@sirex sirex added the bug Something isn't working label Nov 14, 2023
@adp-atea adp-atea linked a pull request Nov 16, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant