DoctypePredicateMapping

DoctypePredicateMapping bean attributes

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

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

DoctypePredicateMapping bean properties

The DoctypePredicateMapping bean takes the following properties:

Property Type Mandatory Description
documentTypeFilter DocumentTypeFilter Required A Document Type filter to define the valid DOCTYPEs.
predicate QName Required QName identifying a predicate. Use a fully-qualified name with Clark notation as the key of the entry.
predicates Collection <QName> Optional Collection of QNames identifying predicates.

DoctypePredicateMapping bean example

<bean id="xhtml.xlink.interceptor" parent="xlink.rdf.interceptor.link.abstract">
  <property name="xmlSchemaFilter" ref="samples.dtd.xhtml" />
  <property name="linkDefinitions">
    <list>
      <ref bean="xhtml.linkDefinition.href" />
      <ref bean="xhtml.linkDefinition.img" />
    </list>
  </property>
</bean>

Debugging

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

log4j.logger.com.componize.rdf.pipeline.xml.DoctypeExtractorFactory=debug