manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rh...@apache.org
Subject svn commit: r1729775 [2/2] - in /manifoldcf/branches/CONNECTORS-1181/connectors: ./ stanbol/ stanbol/connector/ stanbol/connector/src/ stanbol/connector/src/main/ stanbol/connector/src/main/java/ stanbol/connector/src/main/java/org/ stanbol/connector/s...
Date Thu, 11 Feb 2016 08:49:42 GMT
Added: manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/editSpecification_FieldMapping.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/editSpecification_FieldMapping.html?rev=1729775&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/editSpecification_FieldMapping.html
(added)
+++ manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/editSpecification_FieldMapping.html
Thu Feb 11 08:49:41 2016
@@ -0,0 +1,336 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+#if($TABNAME == $ResourceBundle.getString('StanbolEnhancer.FieldMappingTabName') &&
${SEQNUM} == ${SELECTEDNUM})
+
+<table class="displaytable">
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+   <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.ServerFieldName'))</nobr></td>
+    <td class="value">
+  		<input type="text" name="s${SEQNUM}_stanbol_url" size="128" value="$Encoder.attributeEscape($STANBOL_SERVER)"/>
+  	</td>
+  </tr>
+  
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+   <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.EnhancementChainName'))</nobr></td>
+    <td class="value">
+  		<input type="text" name="s${SEQNUM}_stanbol_chain" size="128" value="$Encoder.attributeEscape($STANBOL_CHAIN)"/>
+  	</td>
+  </tr>
+  
+  <!--added for field mappings  -->
+    <tr><td class="separator" colspan="2"><hr/></td></tr>
+    <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.FieldMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.MetadataFieldName'))</nobr></td>
+        </tr>
+
+  #set($fieldcounter = 0)
+  #foreach($fieldmapping in $FIELDMAPPINGS)
+    #set($fieldcounterdisplay = $fieldcounter + 1)
+    #if(($fieldcounter % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <a name="s${SEQNUM}_fieldmapping_$fieldcounter">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Delete'))"

+              		alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.DeleteFieldMapping'))$fieldcounterdisplay"
onclick='javascript:s${SEQNUM}_deleteFieldMapping("$fieldcounter");'/>
+              <input type="hidden" name="s${SEQNUM}_fieldmapping_op_$fieldcounter" value="Continue"/>
+              <input type="hidden" name="s${SEQNUM}_fieldmapping_source_$fieldcounter"
value="$Encoder.attributeEscape($fieldmapping.get('SOURCE'))"/>
+            </a>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($fieldmapping.get('SOURCE'))</nobr>
+          </td>
+        </tr>
+    #set($fieldcounter = $fieldcounter + 1)
+  #end
+  
+  #if($fieldcounter == 0)
+        <tr class="formrow"><td class="formmessage" colspan="3">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+  #end
+      
+        <tr class="formrow"><td class="formseparator" colspan="3"><hr/></td></tr>
+        <tr class="formrow">
+          <td class="formcolumncell">
+            <a name="fieldmapping">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Add'))"
+               alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.AddFieldMapping'))"
onclick="javascript:s${SEQNUM}_addFieldMapping();"/>
+            </a>
+            <input type="hidden" name="s${SEQNUM}_fieldmapping_count" value="$fieldcounter"/>
+            <input type="hidden" name="s${SEQNUM}_fieldmapping_op" value="Continue"/>
+          </td>
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_fieldmapping_source"
value=""/></nobr>
+          </td>
+        </tr>
+      </table>
+    </td>
+  </tr> 
+  
+  
+   <tr><td class="separator" colspan="2"><hr/></td></tr>
+   <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDPathPrefixMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDpathPrefix'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDpathPrefixURI'))</nobr></td>
+        </tr>
+
+  #set($prefixcounter = 0)
+  #foreach($prefixmapping in $PREFIXMAPPINGS)
+    #set($prefixcounterdisplay = $prefixcounter + 1)
+    #if(($prefixcounter % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <a name="s${SEQNUM}_prefixmapping_$prefixcounter">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Delete'))"

+              	alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.DeleteFieldMapping'))$prefixcounterdisplay"onclick='javascript:s${SEQNUM}_deletePrefixMapping("$prefixcounter");'/>
+              <input type="hidden" name="s${SEQNUM}_prefixmapping_op_$prefixcounter" value="Continue"/>
+              <input type="hidden" name="s${SEQNUM}_prefixmapping_source_$prefixcounter"value="$Encoder.attributeEscape($prefixmapping.get('SOURCE'))"/>
+              <input type="hidden" name="s${SEQNUM}_prefixmapping_target_$prefixcounter"value="$Encoder.attributeEscape($prefixmapping.get('TARGET'))"/>
+            </a>
+          </td>
+
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($prefixmapping.get('SOURCE'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($prefixmapping.get('TARGET'))</nobr>
+          </td>
+        </tr>
+    #set($prefixcounter = $prefixcounter + 1)
+  #end
+
+  #if($prefixcounter == 0)
+        <tr class="formrow"><td class="formmessage"colspan="3">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+  #end
+        <tr class="formrow"><td class="formseparator" colspan="3"><hr/></td></tr>
+        <tr class="formrow">
+          <td class="formcolumncell">
+            <a name="prefixmapping">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Add'))"

+              	alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.AddPrefixMapping'))"onclick="javascript:s${SEQNUM}_addPrefixMapping();"/>
+            </a>
+            <input type="hidden" name="s${SEQNUM}_prefixmapping_count" value="$prefixcounter"/>
+            <input type="hidden" name="s${SEQNUM}_prefixmapping_op" value="Continue"/>
+          </td>
+
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_prefixmapping_source"
value=""/></nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_prefixmapping_target"
value=""/></nobr>
+          </td>
+        </tr>
+      </table>
+    </td>
+  </tr> 
+
+
+  <!-- LDPath field mappings -->
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+   <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDPathFieldMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDpathField'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDpathFieldURI'))</nobr></td>
+        </tr>
+  #set($ldpathfieldcounter = 0)
+  #foreach($ldpathfieldmapping in $LDPATHFIELDMAPPINGS)
+    #set($ldpathfieldcounterdisplay = $ldpathfieldcounter + 1)
+    #if(($ldpathfieldcounter % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <a name="s${SEQNUM}_ldpathfieldmapping_$ldpathfieldcounter">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Delete'))"

+              	alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.DeleteFieldMapping'))$ldpathfieldcounterdisplay"onclick='javascript:s${SEQNUM}_deleteLdpathFieldMapping("$ldpathfieldcounter");'/>
+              <input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_op_$ldpathfieldcounter"
value="Continue"/>
+              <input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_source_$ldpathfieldcounter"value="$Encoder.attributeEscape($ldpathfieldmapping.get('SOURCE'))"/>
+              <input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_target_$ldpathfieldcounter"value="$Encoder.attributeEscape($ldpathfieldmapping.get('TARGET'))"/>
+            </a>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($ldpathfieldmapping.get('SOURCE'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($ldpathfieldmapping.get('TARGET'))</nobr>
+          </td>
+        </tr>
+    #set($ldpathfieldcounter = $ldpathfieldcounter + 1)
+  #end
+  #if($ldpathfieldcounter == 0)
+        <tr class="formrow"><td class="formmessage"colspan="3">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+  #end
+
+        <tr class="formrow"><td class="formseparator" colspan="3"><hr/></td></tr>
+        <tr class="formrow">
+          <td class="formcolumncell">
+            <a name="ldpathfieldmapping">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Add'))"
+              	 alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.AddLDpathFieldMapping'))"onclick="javascript:s${SEQNUM}_addLdpathFieldMapping();"/>
+            </a>
+            <input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_count" value="$ldpathfieldcounter"/>
+            <input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_op" value="Continue"/>
+          </td>
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_ldpathfieldmapping_source"
value=""/></nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_ldpathfieldmapping_target"
value=""/></nobr>
+          </td>
+        </tr>
+      </table>
+    </td>
+  </tr> 
+
+
+<!--Field mappings for the repository document -->
+    <tr><td class="separator" colspan="2"><hr/></td></tr>
+    <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.DocumentFieldMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.EntityFieldName'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.DestinationFieldName'))</nobr></td>
+        </tr>
+
+  #set($docfieldcounter = 0)
+  #foreach($docfieldmapping in $DOCMAPPINGS)
+    #set($docfieldcounterdisplay = $docfieldcounter + 1)
+    #if(($docfieldcounter % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <a name="s${SEQNUM}_docfieldmapping_$docfieldcounter">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Delete'))"
+               alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.DeleteFieldMapping'))$docfieldcounterdisplay"onclick='javascript:s${SEQNUM}_deleteDocumentFieldMapping("$docfieldcounter");'/>
+              <input type="hidden" name="s${SEQNUM}_docfieldmapping_op_$docfieldcounter"
value="Continue"/>
+              <input type="hidden" name="s${SEQNUM}_docfieldmapping_source_$docfieldcounter"value="$Encoder.attributeEscape($docfieldmapping.get('SOURCE'))"/>
+              <input type="hidden" name="s${SEQNUM}_docfieldmapping_target_$docfieldcounter"value="$Encoder.attributeEscape($docfieldmapping.get('TARGET'))"/>
+            </a>
+          </td>
+
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($docfieldmapping.get('SOURCE'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($docfieldmapping.get('TARGET'))</nobr>
+          </td>
+        </tr>
+    #set($docfieldcounter = $docfieldcounter + 1)
+  #end
+
+  #if($docfieldcounter == 0)
+        <tr class="formrow"><td class="formmessage"colspan="3">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+  #end
+
+        <tr class="formrow"><td class="formseparator" colspan="3"><hr/></td></tr>
+        <tr class="formrow">
+          <td class="formcolumncell">
+            <a name="docfieldmapping">
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.Add'))"
+               alt="$Encoder.attributeEscape($ResourceBundle.getString('StanbolEnhancer.AddFieldMapping'))"onclick="javascript:s${SEQNUM}_addDocumentFieldMapping();"/>
+            </a>
+            <input type="hidden" name="s${SEQNUM}_docfieldmapping_count" value="$docfieldcounter"/>
+            <input type="hidden" name="s${SEQNUM}_docfieldmapping_op" value="Continue"/>
+          </td>
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_docfieldmapping_source"
value=""/></nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr><input type="text" size="15" name="s${SEQNUM}_docfieldmapping_target"
value=""/></nobr>
+          </td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr> 
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.KeepAllMetadata'))</nobr></td>
+    <td class="value">
+  #if($KEEPALLMETADATA == 'true')
+       <input type="checkbox" checked="true" name="s${SEQNUM}_keepallmetadata" value="true"/>
+  #else
+       <input type="checkbox" name="s${SEQNUM}_keepallmetadata" value="true"/>
+  #end
+    </td>
+  </tr>
+</table>
+
+#else
+ #set($fieldcounter = 0)
+  #foreach($fieldmapping in $FIELDMAPPINGS)
+<input type="hidden" name="s${SEQNUM}_fieldmapping_source_$fieldcounter" value="$Encoder.attributeEscape($fieldmapping.get('SOURCE'))"/>
+    #set($fieldcounter = $fieldcounter + 1)
+  #end
+ 
+<!--prefix mappings-->
+ #set($prefixcounter = 0)
+  #foreach($prefixmapping in $PREFIXMAPPINGS)
+<input type="hidden" name="s${SEQNUM}_prefixmapping_source_$prefixcounter"value="$Encoder.attributeEscape($prefixmapping.get('SOURCE'))"/>
+<input type="hidden" name="s${SEQNUM}_prefixmapping_target_$prefixcounter"value="$Encoder.attributeEscape($prefixmapping.get('TARGET'))"/>
+    #set($prefixcounter = $prefixcounter + 1)
+  #end
+<input type="hidden" name="s${SEQNUM}_prefixmapping_count" value="$prefixcounter"/>

+
+<!--LDPath mappings-->
+ #set($ldpathfieldcounter = 0)
+  #foreach($ldpathfieldmapping in $LDPATHFIELDMAPPINGS)
+<input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_source_$ldpathfieldcounter"value="$Encoder.attributeEscape($ldpathfieldmapping.get('SOURCE'))"/>
+<input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_target_$ldpathfieldcounter"value="$Encoder.attributeEscape($ldpathfieldmapping.get('TARGET'))"/>
+    #set($ldpathfieldcounter = $ldpathfieldcounter + 1)
+  #end
+<input type="hidden" name="s${SEQNUM}_ldpathfieldmapping_count" value="$ldpathfieldcounter"/>

+
+<!--Doc field mappings-->
+ #set($docfieldcounter = 0)
+  #foreach($docfieldmapping in $DOCMAPPINGS)
+<input type="hidden" name="s${SEQNUM}_docfieldmapping_source_$docfieldcounter"value="$Encoder.attributeEscape($docfieldmapping.get('SOURCE'))"/>
+<input type="hidden" name="s${SEQNUM}_docfieldmapping_target_$docfieldcounter"value="$Encoder.attributeEscape($docfieldmapping.get('TARGET'))"/>
+    #set($docfieldcounter = $docfieldcounter + 1)
+  #end
+<input type="hidden" name="s${SEQNUM}_docfieldmapping_count" value="$docfieldcounter"/>
+<input type="hidden" name="s${SEQNUM}_keepallmetadata" value="$Encoder.bodyEscape($KEEPALLMETADATA)"/>

+<input type="hidden" name="s${SEQNUM}_fieldmapping_count" value="$fieldcounter"/> 

+<input type="hidden" name="s${SEQNUM}_stanbol_url" value="$Encoder.bodyEscape($STANBOL_SERVER)"/>
+<input type="hidden" name="s${SEQNUM}_stanbol_chain" value="$Encoder.bodyEscape($STANBOL_CHAIN)"/>
+#end
\ No newline at end of file

Added: manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/viewSpecification.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/viewSpecification.html?rev=1729775&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/viewSpecification.html
(added)
+++ manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/stanbol/viewSpecification.html
Thu Feb 11 08:49:41 2016
@@ -0,0 +1,130 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<table class="displaytable">
+   <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.ServerFieldName'))</nobr></td>
+    <td class="value"><nobr>$Encoder.attributeEscape($STANBOL_SERVER)</nobr></td>
+  </tr>
+  
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+   <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.EnhancementChainName'))</nobr></td>
+    <td class="value"><nobr>$Encoder.attributeEscape($STANBOL_CHAIN)</nobr></td>
+  </tr>
+    
+  <tr><td class="separator" colspan="2"><hr/></td></tr>  
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.FieldMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.MetadataFieldName'))</nobr></td>
+        </tr>
+#set($fieldcounter = 0)
+#foreach($fieldmapping in $FIELDMAPPINGS)
+  #if(($fieldcounter % 2) == 0)
+        <tr class="evenformrow">
+  #else
+        <tr class="oddformrow">
+  #end
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($fieldmapping.get('SOURCE'))</nobr>
+          </td>
+        </tr>
+  #set($fieldcounter = $fieldcounter + 1)
+#end
+#if($fieldcounter == 0)
+        <tr class="formrow"><td class="formmessage" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+#end
+      </table>
+    </td>
+  </tr>
+   
+ <!--LDPath prefix mappings --> 
+  <tr><td class="separator" colspan="2"><hr/></td></tr>  
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDPathPrefixMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDpathPrefix'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.LDpathFieldURI'))</nobr></td>
+        </tr>
+#set($prefixcounter = 0)
+#foreach($prefixmapping in $PREFIXMAPPINGS)
+  #if(($prefixcounter % 2) == 0)
+        <tr class="evenformrow">
+  #else
+        <tr class="oddformrow">
+  #end
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($prefixmapping.get('SOURCE'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($prefixmapping.get('TARGET'))</nobr>
+          </td>
+        </tr>
+  #set($prefixcounter = $prefixcounter + 1)
+#end
+#if($prefixcounter == 0)
+        <tr class="formrow"><td class="formmessage"colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+#end
+      </table>
+    </td>
+  </tr> 
+
+   <!--Final Field mappings --> 
+  <tr><td class="separator" colspan="2"><hr/></td></tr>  
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.DocumentFieldMappings'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.EntityFieldName'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.DestinationFieldName'))</nobr></td>
+        </tr>
+#set($doccounter = 0)
+#foreach($docmapping in $DOCMAPPINGS)
+  #if(($doccounter % 2) == 0)
+        <tr class="evenformrow">
+  #else
+        <tr class="oddformrow">
+  #end
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($docmapping.get('SOURCE'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($docmapping.get('TARGET'))</nobr>
+          </td>
+        </tr>
+  #set($doccounter = $doccounter + 1)
+#end
+#if($doccounter == 0)
+        <tr class="formrow"><td class="formmessage"colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.NoFieldMappingSpecified'))</td></tr>
+#end
+      </table>
+    </td>
+  </tr> 
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('StanbolEnhancer.KeepAllMetadata'))</nobr></td>
+    <td class="value"><nobr>$Encoder.bodyEscape($KEEPALLMETADATA)</nobr></td>
+  </tr>
+    
+</table>

Added: manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/pom.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/pom.xml?rev=1729775&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/pom.xml (added)
+++ manifoldcf/branches/CONNECTORS-1181/connectors/stanbol/pom.xml Thu Feb 11 08:49:41 2016
@@ -0,0 +1,300 @@
+<!--
+    Sensefy
+   
+    Copyright (c) Zaizi Limited, All rights reserved.
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 3.0 of the License, or (at your option) any later version.
+   
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+    Lesser General Public License for more details.
+   
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <parent>
+    <groupId>org.apache.manifoldcf</groupId>
+    <artifactId>mcf-connectors</artifactId>
+    <version>2.4-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+	
+	<artifactId>mcf-stanbol-connector</artifactId>
+	<name>Stanbol Transformation Connector</name>
+
+	<build>
+		<defaultGoal>integration-test</defaultGoal>
+		<sourceDirectory>${basedir}/connector/src/main/java</sourceDirectory>
+		<testSourceDirectory>${basedir}/connector/src/test/java</testSourceDirectory>
+		<resources>
+			<resource>
+				<directory>${basedir}/connector/src/main/native2ascii</directory>
+				<includes>
+					<include>**/*.properties</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>${basedir}/connector/src/main/resources</directory>
+				<includes>
+					<include>**/*.html</include>
+					<include>**/*.js</include>
+				</includes>
+			</resource>
+		</resources>
+		<testResources>
+			<testResource>
+				<directory>${basedir}/connector/src/test/resources</directory>
+			</testResource>
+		</testResources>
+
+		<plugins>
+
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>native2ascii-maven-plugin</artifactId>
+				<version>1.0-beta-1</version>
+				<configuration>
+					<workDir>target/classes</workDir>
+				</configuration>
+				<executions>
+					<execution>
+						<id>native2ascii-utf8</id>
+						<goals>
+							<goal>native2ascii</goal>
+						</goals>
+						<configuration>
+							<encoding>UTF8</encoding>
+							<includes>
+								<include>**/*.properties</include>
+							</includes>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+
+			<!-- Test plugin configuration -->
+			<plugin>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-war</id>
+						<phase>generate-resources</phase>
+						<goals>
+							<goal>copy</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>target/dependency</outputDirectory>
+							<artifactItems>
+								<artifactItem>
+									<groupId>org.apache.manifoldcf</groupId>
+									<artifactId>mcf-api-service</artifactId>
+									<version>${project.version}</version>
+									<type>war</type>
+									<overWrite>false</overWrite>
+									<destFileName>mcf-api-service.war</destFileName>
+								</artifactItem>
+								<artifactItem>
+									<groupId>org.apache.manifoldcf</groupId>
+									<artifactId>mcf-authority-service</artifactId>
+									<version>${project.version}</version>
+									<type>war</type>
+									<overWrite>false</overWrite>
+									<destFileName>mcf-authority-service.war</destFileName>
+								</artifactItem>
+								<artifactItem>
+									<groupId>org.apache.manifoldcf</groupId>
+									<artifactId>mcf-crawler-ui</artifactId>
+									<version>${project.version}</version>
+									<type>war</type>
+									<overWrite>false</overWrite>
+									<destFileName>mcf-crawler-ui.war</destFileName>
+								</artifactItem>
+							</artifactItems>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+
+
+			<plugin>
+				<artifactId>maven-assembly-plugin</artifactId>
+				<configuration>
+					<descriptorRefs>
+						<descriptorRef>jar-with-dependencies</descriptorRef>
+					</descriptorRefs>
+				</configuration>
+				<executions>
+					<execution>
+						<id>make-assembly</id>
+						<!-- this is used for inheritance merges -->
+						<phase>package</phase>
+						<!-- bind to the packaging phase -->
+						<goals>
+							<goal>single</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+					<excludes>
+						<exclude>**/*Postgresql*.java</exclude>
+						<exclude>**/*MySQL*.java</exclude>
+					</excludes>
+					<forkMode>always</forkMode>
+					<workingDirectory>target/test-output</workingDirectory>
+				</configuration>
+			</plugin>
+
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-failsafe-plugin</artifactId>
+				<version>2.12.3</version>
+				<configuration>
+					<skipTests>${skipITs}</skipTests>
+					<systemPropertyVariables>
+						<crawlerWarPath>../dependency/mcf-crawler-ui.war</crawlerWarPath>
+						<authorityserviceWarPath>../dependency/mcf-authority-service.war</authorityserviceWarPath>
+						<apiWarPath>../dependency/mcf-api-service.war</apiWarPath>
+					</systemPropertyVariables>
+					<excludes>
+						<exclude>**/*Postgresql*.java</exclude>
+						<exclude>**/*MySQL*.java</exclude>
+					</excludes>
+					<forkMode>always</forkMode>
+					<workingDirectory>target/test-output</workingDirectory>
+				</configuration>
+				<executions>
+					<execution>
+						<id>integration-test</id>
+						<goals>
+							<goal>integration-test</goal>
+						</goals>
+					</execution>
+					<execution>
+						<id>verify</id>
+						<goals>
+							<goal>verify</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+
+		</plugins>
+				<pluginManagement>
+			<plugins>
+				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has
no influence on the Maven build itself.-->
+				<plugin>
+					<groupId>org.eclipse.m2e</groupId>
+					<artifactId>lifecycle-mapping</artifactId>
+					<version>1.0.0</version>
+					<configuration>
+						<lifecycleMappingMetadata>
+							<pluginExecutions>
+								<pluginExecution>
+									<pluginExecutionFilter>
+										<groupId>
+											org.codehaus.mojo
+										</groupId>
+										<artifactId>
+											native2ascii-maven-plugin
+										</artifactId>
+										<versionRange>
+											[1.0-beta-1,)
+										</versionRange>
+										<goals>
+											<goal>native2ascii</goal>
+										</goals>
+									</pluginExecutionFilter>
+									<action>
+										<ignore></ignore>
+									</action>
+								</pluginExecution>
+							</pluginExecutions>
+						</lifecycleMappingMetadata>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+	</build>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>client</artifactId>
+			<version>1.3-jaxrs-1.1</version>
+			<exclusions>
+				<exclusion>
+		          <artifactId>solr-solrj</artifactId>
+		          <groupId>org.apache.solr</groupId>
+		        </exclusion>
+	        </exclusions>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.manifoldcf</groupId>
+			<artifactId>mcf-core</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.manifoldcf</groupId>
+			<artifactId>mcf-agents</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.manifoldcf</groupId>
+			<artifactId>mcf-ui-core</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+	      <groupId>org.apache.manifoldcf</groupId>
+	      <artifactId>mcf-connector-common</artifactId>
+	      <version>${project.version}</version>
+	    </dependency>
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpclient</artifactId>
+			<version>4.2.1</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpcore</artifactId>
+			<!--version>${httpcomponent.httpclient.version}</version -->
+			<version>4.2.1</version>
+		</dependency>
+		<!--custom dependencies -->
+		<dependency>
+			<groupId>com.google.guava</groupId>
+			<artifactId>guava</artifactId>
+			<version>16.0.1</version>
+		</dependency>
+		
+		<dependency>
+			<groupId>org.openrdf.sesame</groupId>
+			<artifactId>sesame-model</artifactId>
+			<version>2.8.6</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-validator</groupId>
+			<artifactId>commons-validator</artifactId>
+			<version>1.4.0</version>
+		</dependency>
+	    
+
+		<!-- Testing dependencies -->
+
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>${junit.version}</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+</project>



Mime
View raw message