ruby-rdf / rdf-ldp

A suite of LDP software and middleware for RDF.rb & Rack
The Unlicense
13 stars 2 forks source link

Use `RDF::Graph#query` for query use cases #45

Closed no-reply closed 8 years ago

no-reply commented 8 years ago

In some cases, we were iterating through all the statements in a graph. In general #query is more semantically correct and should be faster in specific implementations, avoiding the need to touch any statement that doesn't match the pattern.

This is a minor refactor, possibly improving performance.