http://franz.com/ns/allegrograph/4.7/mongo/find

Perform MongoDB queries

This magic property integrates SPARQL with MongoDB using triples that link a subject with its MongoDB ID via the http://www.franz.com/hasMongoId predicate. I.e.,

?subject <http://franz.com/ns/allegrograph/4.7/mongo/find> '{JSON query expression}' . 

will perform a MongoDB query for ` ` to return object IDs and then it will use these IDs to link to the desired triple via http://www.franz.com/hasMongoId.

You can also bind the MongoDB ID of the triple found using:

(?subject ?mongoID) <http://franz.com/ns/allegrograph/4.7/mongo/find> 'expression' . 

By default, only the '_id' slot is returned for any matching document. You can use the following form to include a selector specification to choose any additional document fields you would like to return from MongoDB

(?subject ?mongoID) <http://franz.com/ns/allegrograph/4.7/mongo/find> ('expression' 'selector') . 

See the mongo:slotValue magic property definition or SPARQL filter function for documentation on how to fetch these slot values using ?mongoID and bind them to SPARQL variables.

Notes

The following namespace abbreviations are used:

The SPARQL magic properties reference has additional information on using AllegroGraph magic properties and functions.