java - What is a Node and a Property in content repository? -
i reading content repositories , reading jcr specification , documentation found on apache jackrabbit. however, still don't understand going store in node's , properties.
i know actual data goes in properties. don't understand "semantic", how intended used. explain node , property?
what role have?
a way think jcr content model "fractal filesystem on steroids".
you can start organizing content in macro tree, , see various content items micro trees own structures, independent of general content tree structure.
in team's projects use macro tree structure that's similar of unix system, folders /content, /var, /etc, /tmp etc. provide familiar , clear structure.
then, node might web page, subfolders images, comments, content , properties title, description, tags. storing actual content ordered set of nodes in content folder under page node makes sense, each of these content sub-nodes plays specific role in content, article header, article body, main image etc.
the actual text content stored in string properties of content sub-nodes, , general metadata might properties of metadata sub-node.
considering jcr tree (somewhat) fractal structure helps in opinion, need switch between macro , micro views of content tree (including nested micro views) verify each of these structures clear , works use cases. in model nodes used organize content, , properties store actual content.
http://wiki.apache.org/jackrabbit/davidsmodel provides recommendations jcr content model design.
Comments
Post a Comment