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

Malformed request with missing prefixes #8

Open
Mvwivs opened this issue May 28, 2020 · 0 comments
Open

Malformed request with missing prefixes #8

Mvwivs opened this issue May 28, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@Mvwivs
Copy link

Mvwivs commented May 28, 2020

If client is missing some prefixes needed by schema, malformed response is build, which results in Bad request.

For example ArtifactShapeSchema requires rm and dcterms prefixes and result looks like this:

PREFIX jsld: <http://agentlab.ru/jsld_test#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
SELECT ?eIri0 ?targetClass0 ?title0 ?description0 ?inCreationMenu0 ?defaultIndividNs0 ?defaultFormat0 ?iconReference0 WHERE {
  ?eIri0 rdf:type sh:NodeShape;
    sh:targetClass ?targetClass0.
  OPTIONAL { ?eIri0 <undefinedtitle> ?title0. }
  OPTIONAL { ?eIri0 <undefineddescription> ?description0. }
  OPTIONAL { ?eIri0 <undefinedinCreationMenu> ?inCreationMenu0. }
  OPTIONAL { ?eIri0 <undefineddefaultIndividNs> ?defaultIndividNs0. }
  OPTIONAL { ?eIri0 <undefineddefaultFormat> ?defaultFormat0. }
  OPTIONAL { ?eIri0 <undefinediconReference> ?iconReference0. }
  FILTER(?targetClass0 = jsld:Person)
}

Client probably should receive error earlier, when provider was constructing request

@amivanoff amivanoff added the bug Something isn't working label Apr 2, 2021
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

No branches or pull requests

2 participants