I am trying my hands on Marklogic Query console. I understood what Document is , Format and Collections and their use. I am unable to understand why property tab is used for? when clicked on it, it shows the property for the particular document. but why do we need properties? whats the use? Please give me a real time scenario.
Appreciate your help
The Properties Tab in Query Console would display the XML document properties fragment for the context document in the database; properties are optional, so nothing will show if there are no properties, and are usually used to store metadata about the associated document, and they share the same URI. Properties can be accessed in XPath using the property::
axis. Properties documents can also stand alone at a URI with no associated document. JSON documents can have properties, too, but they must be stored as XML. Element indexes can be created as well on properties document elements. There is an API on properties that includes xdmp:document-properties
to access properties, xdmp:document-add-properties
to create properties on a document, and xdmp:document-set-properties
which can be used to create standalone properties documents.