Blog

MarkLogic Index Data Types

  • 28 July, 2022
  • By Dave Cassel

MarkLogic offers several types of indexes: Universal, range, triples. These indexes provide fast access to your content and can be configured to work with specific data types. MarkLogic will even do some type conversions for you. Universal Index Let’s insert a couple documents. Note the difference between the updated properties (“T” versus no “T”) and the types […]

Read More


Scoping Queries in the Optic API

  • 28 July, 2022
  • By Dave Cassel

Every now and then I write an Optic query that has parts that look redundant. In the example below, assume the 4V.Sample view has a “keyCode” field and that the JSON docs the view is built from have a “keyProp” property. My goal is to gather some information from a view for a specific set of values. […]

Read More


Binding Multiple Values

  • 28 July, 2022
  • By Dave Cassel
  • 2 Comments

With MarkLogic’s SPARQL queries, we can bind a value to constrain the query. Using this capability, we can gather information about something of interest. But what if I want to query against multiple values? Let’s start with some sample data. ‘use strict’; declareUpdate(); const sem = require(“/MarkLogic/semantics”) const myPred = sem.iri(“myPredicate”); sem.rdfInsert([1, 2, 3, 4, […]

Read More


SPARQL Update with Multiple Targets

  • 28 July, 2022
  • By Dave Cassel

In my last post, I talked about using the bindings parameter of MarkLogic’s sem.sparql function to look for multiple values in a SPARQL query. It turns out that approach doesn’t work for SPARQL Update. I’ll use the same sample data as my previous post: ‘use strict’; declareUpdate(); const sem = require(“/MarkLogic/semantics”) const myPred = sem.iri(“myPredicate”); sem.rdfInsert([1, 2, 3, 4, […]

Read More


cta-bg

Ready to Chat?

Book your 30-minute Technology Clarity Call. I offer a free, no-obligation consultation to learn about your business and explore whether a Fractional CTO engagement is the right fit.