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<http://docs.marklogic.com/guide/semantics/semantic-searches#id_90139> 
but that is as I understand it a sequence of sem:binding
Output of xdmp:describe

sem:binding(<json:object xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:json="http://marklogic.com/xdmp/json";><json:entry 
key="notEmpty"><json:value xsi:type="sem:iri" xmlns:...</json:object>)

Raw Output

[{"notEmpty":"<http://www.example.org/entity/Q9235>","label":"\"Friedrich 
Hegel\"@sv"}]

In this case I just want to get the value Friedrich Hegel.
Doing sem:sparql-values($sparql,$bindings)/label doesn't work as it says not a 
node

Any pointers on how I should go about would be welcome.

Regards
Erik

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to