Marklogic: Query Data

From Glitchdata
Jump to navigation Jump to search


Javascript

SPARQL embedded in Javascript query.


const sem = require('/MarkLogic/semantics.xqy');
      
sem.sparql(
  'SELECT ?person WHERE { ?person <http://example.org/marklogic/predicate/livesIn> "London" }'
);

SPARQL

SELECT ?person WHERE { ?person <http://example.org/marklogic/predicate/livesIn> "London" }

Links