Powered by Zoomin Software. For more details please contactZoomin

Semaphore 5.13 Publisher

MarkLogic Writer Processor

  • Last Updated: November 20, 2026
  • 2 minute read
    • Semaphore
    • Version 5.13
    • Documentation

This functionality is only available in Semaphore 5.6.1 and forward

If you want to push the Model as a set of triples to a Marklogic backend, this can be done using the MarkLogic Writer.

This is configured as follows:

<bean class="com.smartlogic.publisher.marklogic.MarklogicWriter">
    <!-- Required property: Marklogic database hostname. -->
    <property name="host" value="localhost"/>
&lt;!-- Optional marklogic database port - if not specified defaults to 8000.
&lt;property name=&quot;port&quot; value=&quot;8000&quot;/&gt;
--&gt;

&lt;!-- Database name within marklogic - required if port is 8000, otherwise optional and if not specified defaults to the documents database.
&lt;property name=&quot;database&quot; value=&quot;DatabaseName&quot;/&gt;
--&gt;

&lt;!-- Required property: An object that specifies the way of connecting to the marklogic database --&gt;
&lt;property name=&quot;securityContext&quot; ref=&quot;authContext&quot;/&gt;

&lt;!-- This optional property specifies the name of the model that should be uploaded to the marklogic database
     If not specified defaults to the ${model.name} value.
&lt;property name=&quot;modelName&quot; value=&quot;${model.name}&quot;/&gt;
--&gt;

&lt;!-- Optional property that specifies the graphURI of the named graph that the model will be uploaded to in marklogic database
     If not specified defaults to the model name.
&lt;property name=&quot;graphURI&quot; value=&quot;${model.name}&quot;/&gt;
--&gt;

&lt;!-- Optional property that says whether to upload also the .tch model
     If not specified defaults to false
&lt;property name=&quot;includeTch&quot; value=&quot;true&quot;/&gt;
--&gt;

&lt;!-- If marklogic database requires connection through ssl set this to true
&lt;property name=&quot;useSSL&quot; value=&quot;true&quot;/&gt;
--&gt;

&lt;!-- Specify this if you want to use different from system default keystore
     Only needed when useSSL is true
&lt;property name=&quot;sslKeyStoreLocation&quot; value=&quot;path/to/the/keystore/file&quot;/&gt;
--&gt;

&lt;!-- Use this property if the keystore from sslKeyStoreLocation requires password
     Only needed when useSSL is true
&lt;property name=&quot;sslKeyStorePassword&quot; value=&quot;password&quot;/&gt;
--&gt;

&lt;!-- Type of SSL hostname verifier
     Only needed when useSSL is true
&lt;property name=&quot;sslHostnameVerifier&quot;&gt;
    &lt;bean id=&quot;com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier.ANY&quot; class=&quot;org.springframework.beans.factory.config.FieldRetrievingFactoryBean&quot; /&gt;--&gt;
    &lt;!-- Alternative values
    &lt;bean id=&quot;com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier.COMMON&quot; class=&quot;org.springframework.beans.factory.config.FieldRetrievingFactoryBean&quot; /&gt;
    &lt;bean id=&quot;com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier.STRICT&quot; class=&quot;org.springframework.beans.factory.config.FieldRetrievingFactoryBean&quot; /&gt;
    --&gt;
&lt;!--&lt;/property&gt;--&gt;

</bean>

The authentication details are provided in a separate bean - which can be in a file outside the Publisher configuration directory

<!-- Marklogic authentication context that uses username and password -->
<bean id="authContext" class="com.marklogic.client.DatabaseClientFactory.DigestAuthContext">
    <constructor-arg value="admin"/>
    <constructor-arg value="admin"/>
</bean>
Alert