Skip to content

Enable / implement Quad pattern resolver #9

@agazzarini

Description

@agazzarini
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions