Creating a SPARQL parameterized query using append/3 predicate
问题 Related to my previous post: How to parameterize a SPARQL query in SWI Prolog? In order to exercise, I was trying to implement a predicate that builds and executes a SPARQL query using only the append/3 predicate (differently from the solution proposed in my old post) but it doesn't work well. This is my predicate: buildQuery(Place, Query, Row) :- % Q1 = 'select COUNT(*) where {?place a dbpedia-owl:Place ; rdfs:label " Q1 = [39, 115, 101, 108, 101, 99, 116, 32, 67, 79, 85, 78, 84, 40, 42, 41,