add sparql query to get by parent predicate and type