From an RDF-owner POV, this is calling for trouble.
Resources are dumb, datasources are smart. Put the query into the datasource, not into the resource.