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

Enable / implement Quad pattern resolver #9

Open
agazzarini opened this issue Jan 22, 2024 · 0 comments
Open

Enable / implement Quad pattern resolver #9

agazzarini opened this issue Jan 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@agazzarini
Copy link
Member

agazzarini commented Jan 22, 2024

  1. Note the "false" hardcoded value passed into the resolver method.
var response =  resolver(false).linkedDataFragment(
                                       ofNullable(subject), ofNullable(predicate),
                                       ofNullable(object), ofNullable(graph), ofNullable(pageNumber));
  1. Add the "graph" variable in the mapping section.
var templateAndMapping = model.createResource()
                .addProperty(HYDRA_TEMPLATE, template(request))
                .addProperty(HYDRA_VARIABLE_REPRESENTATION, HYDRA_EXPLICIT_REPRESENTATION)
                .addProperty(HYDRA_MAPPING,
                        model.createResource()
                                .addProperty(HYDRA_VARIABLE, SUBJECT_PARAMETER_NAME)
                                .addProperty(HYDRA_PROPERTY, RDF.subject))
                .addProperty(HYDRA_MAPPING,
                        model.createResource()
                                .addProperty(HYDRA_VARIABLE, PREDICATE_PARAMETER_NAME)
                                .addProperty(HYDRA_PROPERTY, RDF.predicate))
                .addProperty(HYDRA_MAPPING,
                        model.createResource()
                                .addProperty(HYDRA_VARIABLE, OBJECT_PARAMETER_NAME)
                                .addProperty(HYDRA_PROPERTY, RDF.object));
  1. Add the "graph" parameter in the request template
@agazzarini agazzarini added the enhancement New feature or request label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant