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.
I've been trying to get
eager_load_object_triplesto work and finding it returned nothing initially. However when I edited this:to include a
GRAPHclause in theWHEREreferencing the graph the triples were stored in, it worked.I'm sure I'm missing something very obvious here, any tips much appreciated.