Make #query_pattern protected.
Update RDF dependencies.