Categories are treated as special PATHs to nodes.
类别被视为节点的特殊路径。

There are not true child relationships between category type nodes and the things they categorize. However, these links can be searched using the special ‘member’ QName. (If you try to follow these relationships via the node service this will not work.)
类别类型节点与其分类的对象之间没有真正的子关系。但是,可以使用特殊的“member”QName搜索这些链接。(如果您试图通过节点服务遵循这些关系,这将不起作用。)

Categories themselves can be identified by a path starting with the QName of the aspect derived from ‘cm:classifiable’ that defines them.
类别本身可以通过从定义它们的“cm:classifiable”派生的切面的QName开始的路径来标识。

The following examples use the bootstrap categories. These are all categories in the ‘cm:generalclassifiable’ classification.
以下示例使用引导类别。这些都是“cm:generalclassifiable”分类中的类别。

To find all root categories in the classification:
要查找分类中的所有根类别,请执行以下操作:

PATH:'/cm:generalclassifiable/*'

If you know there is a ‘cm:software Document Classification’ category but you do not know at what level it exists, and you want the direct members:
如果你知道有一个’cm:software Document Classification’类别,但你不知道它存在于什么层次,而你想要获取该类别下的直接节点:

Note: If there are two categories with the same association QName, both will be found.
注意:如果有两个类别具有相同的关联QName,则会找到这两个类别。

PATH:'/cm:generalclassifiable//cm:Software_x0020_Document_x0020_Classification/member'

If you know there is a ‘cm:software Document Classification’ category but you do not know at what level it exists, and you want all members:
如果你知道有一个’cm:software Document Classification’类别,但你不知道它存在于什么层次,而你想要获取该类别下的所有节点:

PATH:'/cm:generalclassifiable//cm:Software_x0020_Document_x0020_Classification//member'

To find direct subclassifications of ‘cm:software Document Classification’ is more complex as you need to find any children that are not members of the category (such as things that are children but have not been categorized):
要查找“cm:software Document Classification”的直接子类,则更为复杂,因为您需要过滤掉不属于类别的任何直接子类(例如属于子类但尚未分类的内容):

+PATH:'/cm:generalclassifiable//cm:Software_x0020_Document_x0020_Classification/*'
-PATH:'/cm:generalclassifiable//cm:Software_x0020_Document_x0020_Classification/member'

To find all subclassifications of ‘cm:software Document Classification’ is more complex as you need to find any children that are not members of the category (such as things that are children but have not been categorized):
要查找“cm:software Document Classification”的所有子类,则更为复杂,因为您需要过滤掉不属于类别的所有子类(例如属于子类但尚未分类的内容):

+PATH:'/cm:generalclassifiable//cm:Software_x0020_Document_x0020_Classification//*'
-PATH:'/cm:generalclassifiable//cm:Software_x0020_Document_x0020_Classification//member'

If you know ‘cm:software Document Classification’ is a root category you could miss the first //.
For example, to find the direct members of the top level category ‘cm:software Document Classification’:
如果您知道“cm:software Document Classification”是根类别,则可以省略第一个//.
例如,要查找顶级类别“cm:software Document Classification”的直接成员:

PATH:'/cm:generalclassifiable/cm:Software_x0020_Document_x0020_Classification/member'
文档更新时间: 2020-02-10 20:57   作者:凌云文档