Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As Michael says, there are many ways you could go with this. That's because MarkLogic 7 is so flexible - you can express information as triples or as XML (or as JSON or ...) and mix'n'match data models and query languages</p> <p>The first thing to figure out is - what are you trying to achieve? If you just want to get your feet wet with MarkLogic's mix of XML and triples, here's what I'd suggest:</p> <ol> <li><p>ingest your XML documents as above. If you have something text-heavy such as a description of the account or a free-text annotation, so much the better.</p></li> <li><p>Using XQuery or XSLT, add a triple to each document that represents the city e.g. for the sample document you posted, add</p> <p> --this document URI-- unique/uri/Location New York<br> </p></li> <li><p>import triples from the web that map city names to states and zip codes (e.g. from geonames)</p></li> <li><p>now with a mixture of SPARQL and XQuery you can search for e.g. the current balance of every account in some zip code (even though your documents don't contain zip codes).</p></li> </ol> <p>The documentation gives a good description of loading triples from external sources using mlcp.</p> <p>See <a href="http://docs.marklogic.com/guide/semantics/setup" rel="nofollow">http://docs.marklogic.com/guide/semantics/setup</a></p> <p>and for more detail on loading triples see <a href="http://docs.marklogic.com/guide/semantics/loading" rel="nofollow">http://docs.marklogic.com/guide/semantics/loading</a></p> <p>Note too that you can now run either XQuery or SPARQL (or SQL) queries directly from Query Console at <code>http://your-host:8000/qconsole/</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload