TagGraphWriter

TagGraphWriter bean attributes

A TagGraphWriter 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.tagGraphWriter.mappings.abstract The parent bean.

TagGraphWriter bean properties

The TagGraphWriter 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}taggable

TagGraphWriter bean example

<bean id="samples.tagGraphWriter.mappings" parent="alfresco.rdf.tagGraphWriter.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}taggable" />
    </map>
  </property>
</bean>

Debugging

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

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