PropertyValue
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/ns/prov#value
  • OTOH, if the OP were a student dealing with an arbitrarily imposed constraint (find a way to do it without recursion), this would be a valid solution.
http://www.w3.org/ns/prov#wasQuotedFrom
  • stackoverflow.com