Skip to content

How does eager_load_object_triples account for a graph?  #51

@pmackay

Description

@pmackay

I've been trying to get eager_load_object_triples to work and finding it returned nothing initially. However when I edited this:

    else
      construct_query = "CONSTRUCT { ?o ?obj_pred ?obj_label } WHERE { <#{self.uri.to_s}> ?p ?o . ?o ?obj_pred ?obj_label }"
    end

to include a GRAPH clause in the WHERE referencing the graph the triples were stored in, it worked.

I'm sure I'm missing something very obvious here, any tips much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions