I am trying semantic example from http://marklogic.github.com/semantic/#DOCUMENT_FORMAT and http://marklogic.github.com/semantic/function-reference.html
Does anyone have good sample data for this with N-triplets; and example semantic queries (using sem: functions) working on that. I manually created triplets like this. <A> <is friend of> <B> <B> <is friend of> <C> <C> <is friend of> <D> <C> <is friend of> <E> I tried to use following Xquery function: xquery version "1.0-ml"; import module namespace sem="http://marklogic.com/semantic" at "semantic.xqy"; let $m := map:map() sem:transitive-closure( $m, 'A', 3, 'is friend of', true(), "") return $m Output (it simply reflects my input starting node and generations): map:map( <map:map xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:map="http://marklogic.com/xdmp/map"> <map:entry key="A"> <map:value xsi:type="xs:integer">5</map:value> </map:entry> </map:map>) I would like to get few working examples for FOAF(friend of friend) and some joins. Thanks, Mehul. _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
