1

I have a predicate called rdfs: label and I would like to be able to return or merge all object values for this such that my results would look like this:

---------------------------------
       Value
---------------------------------

value 1, value 2, value 3, value 4
Imran Azad
  • 948
  • 1
  • 10
  • 29
  • In reading the answer to the duplicate question, be sure to use `(group_concat(?label, separator=", ") as ?values)` (specifying the separator as `", "`, like [scotthenninger did](http://stackoverflow.com/a/35514023/1281433). – Joshua Taylor Feb 19 '16 at 20:16

1 Answers1

1

Try SPARQL GROUP_CONCAT, e.g.:

SELECT (GROUP_CONCAT(?values; separator=", ") as ?value)
scotthenninger
  • 3,811
  • 1
  • 13
  • 23