Re: [MarkLogic Dev General] short question about result of sem:sparql-values

2018-02-20 Thread Erik Zander
Thank you Geert, Great that was exactly what I was looking for! Maybe the example should be added to the documentation of the function sure would have saved me some time. Regards and thanks again, Erik Från: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.c

Re: [MarkLogic Dev General] short question about result of sem:sparql-values

2018-02-20 Thread Geert Josten
Hi Erik, Correct. The function returns a sequence of sem:binding objects. A sem:binding is a special type of map:map, so you can use map functions on them. Here is a working example that returns concrete values: xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/seman

[MarkLogic Dev General] short question about result of sem:sparql-values

2018-02-20 Thread Erik Zander
Hi, I have what I feel should be a simple question but I yet to understand how it's done. When calling sem:sparql-values how do I get the result? In the documentation it says it's a sequence http://docs.marklogic.com/guide/semantics/semantic-searches - id_90139