CategoryGraphWriter

CategoryGraphWriter bean attributes

A CategoryGraphWriter is created using a Spring bean with the following attributes:

Attribute Value Description
id User-defined A unique ID for the bean.
parent alfresco.rdf.categoryGraphWriter.mappings.abstract The parent bean.

CategoryGraphWriter bean properties

The CategoryGraphWriter bean takes the following properties:

Property Type Mandatory Description
mappings Map <QName,QName> Required Map defining how predicates should be mapped to Alfresco properties. Use a fully-qualified name with Clark notation as the key of the entry.
Important: Use the following QName for the Alfresco property: {http://www.alfresco.org/model/content/1.0}categories

CategoryGraphWriter bean example

<bean id="samples.categoryGraphWriter.mappings" parent="alfresco.rdf.categoryGraphWriter.mappings.abstract">
  <property name="mappings">
    <map>
      <entry key="{http://www.componize.com/model/samples/troubleshooting/1.0/}tsResponseRoleLabel" value="{http://www.alfresco.org/model/content/1.0}categories" />
    </map>
  </property>
</bean>

Debugging

To debug your CategoryGraphWriter, add the following entry to your log4j.properties file:

com.componize.alfresco.repo.rdf.CategoryGraphWriter=trace