Wednesday, 15 April 2015

semantics - Searching semantically tagged documents in MarkLogic -


Can someone point me to some simple examples of semantic tagging and MarkLogic ?

I'm quite new in this area, so some examples of initial level will be examples.

When you say "word tags" Can you? Discussion and examples are excellent.

Start by enabling triple index in your database then insert a test doctor. It's just XML, but sem: triple element represents a meaningful fact.

  xdmp: document-insert ('test.xml', & lt; test & gt; & lt; source & gt; ap newswire & lt; / source & gt; & lt; sem : Triple date = "1972-02-21" trust = "100">  

Then query it Example query is too complex to understand that to put variations on that sample document, just go to < Instead of code> test.xml separate URI's I am doing yoga, and see how to find different query words. Without the additional cts query, see only using the SPARQL component, with any SPARQL CTS: Search Try, just CTS: query .

  Exquisite version "1.0-ml"; Import module namespace sem = "http://marklogic.com/semantics" " On /marklogic/semantics.xqy "; Sem: Sparkle ('SELECT? Country WHERE {& lt; http: //example.org/news/Nixon> http: //example.org/wentTo> Country}', (), (), CTS : And -query (CTS: Path-boundary-query ("// sem: triple / @ confidence", "& gt;", 80), CTS: Path-boundary-query ("// sem: triple / @ Date "," & lt; ", xs: date (" 1974-01-01 "), cts: or-query (cts: element-value-query (xs: qn (" source ")," ap Newswire "), CTS: Element-value-query (xs: QName (" source ")," BBC ")))))  

No comments:

Post a Comment