Author: rwesten
Date: Wed Apr 16 07:49:16 2014
New Revision: 1587824

URL: http://svn.apache.org/r1587824
Log:
applied patch for STANBOL-1304 (the patch added a unit test for the repored 
issue); fixed the issue and also fixed the assertion for the created bundle in 
the unit test provided by the patch

Added:
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/java/org/apache/stanbol/entityhub/indexing/core/destination/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtilTest.java
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/dbpediamappings.txt
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexfieldconfig.txt
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexing.properties
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minincoming.properties
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minscore.properties
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/range.properties
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/dbpedia.solrindex.ref
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.core.site.CacheImpl-dbpedia.config
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.site.referencedSite-dbpedia.config
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.yard.solr.impl.SolrYard-dbpedia.config
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/resources/
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/resources/testEntityScore.txt
Modified:
    stanbol/branches/release-0.12/entityhub/indexing/core/pom.xml
    
stanbol/branches/release-0.12/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java

Modified: stanbol/branches/release-0.12/entityhub/indexing/core/pom.xml
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/pom.xml?rev=1587824&r1=1587823&r2=1587824&view=diff
==============================================================================
--- stanbol/branches/release-0.12/entityhub/indexing/core/pom.xml (original)
+++ stanbol/branches/release-0.12/entityhub/indexing/core/pom.xml Wed Apr 16 
07:49:16 2014
@@ -135,8 +135,8 @@
     </dependency>
     <dependency>
       <groupId>biz.aQute</groupId> <!-- used to generate bundles -->
-      <artifactId>bndlib</artifactId>
-      <version>1.43.0</version>
+      <artifactId>bnd</artifactId>
+      <version>1.50.0</version>
     </dependency>    
     <!-- For Testing -->
     <dependency>

Modified: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java?rev=1587824&r1=1587823&r2=1587824&view=diff
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java
 (original)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java
 Wed Apr 16 07:49:16 2014
@@ -255,24 +255,21 @@ public final class OsgiConfigurationUtil
         try {
             builder.addClasspath(new 
File(config.getDestinationFolder(),CONFIG_ROOT));
         } catch (IOException e) {
-            log.warn("Unable to build OSGI Bundle for Indexed Referenced Site 
"+config.getName(),e);
+            log.warn("(builder.addClasspath) Unable to build OSGI Bundle for 
Indexed Referenced Site "+config.getName(),e);
             builder.close();
+            //?? why not throwing an exception here ??
             return;
         }
-        Jar jar;
         try {
-            jar = builder.build();
+            Jar jar = builder.build();
+            jar.write(new File(config.getDistributionFolder(),
+                CONFIG_PACKAGE+config.getName()+"-1.0.0.jar"));
         } catch (Exception e) {
-            log.warn("Unable to build OSGI Bundle for Indexed Referenced Site 
"+config.getName(),e);
+            log.warn("(builder.build) Unable to build OSGI Bundle for Indexed 
Referenced Site "+config.getName(),e);
+            //?? why not throwing an exception here ??
                        return;
                } finally {
                        builder.close();
                }
-        try {
-            jar.write(new File(config.getDistributionFolder(),
-                CONFIG_PACKAGE+config.getName()+"-1.0.0.jar"));
-        } catch (Exception e) {
-            log.warn("Unable to write OSGI Bundle for Indexed Referenced Site 
"+config.getName(),e); 
-        }
     }
 }

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtilTest.java
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtilTest.java?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtilTest.java
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtilTest.java
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,80 @@
+package org.apache.stanbol.entityhub.indexing.core.destination;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URISyntaxException;
+import static org.junit.Assert.*;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.stanbol.entityhub.indexing.core.IndexerFactory;
+import org.apache.stanbol.entityhub.indexing.core.config.IndexingConfig;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class OsgiConfigurationUtilTest {
+       
+       private static final Logger log = 
LoggerFactory.getLogger(OsgiConfigurationUtilTest.class);
+    private static final String CONFIG_ROOT = 
+        FilenameUtils.separatorsToSystem("testOsgiConfiguration/");
+
+    private static IndexerFactory factory;
+    /**
+     * mvn copies the resources in "src/test/resources" to target/test-classes.
+     * This folder is than used as classpath.<p>
+     * "/target/test-files/" does not exist, but is created by the
+     * {@link IndexingConfig}.
+     */
+    private static final String TEST_ROOT = 
+        FilenameUtils.separatorsToSystem("/target/test-files");
+    private static String  userDir;
+    private static String testRoot;
+    /**
+     * The methods resets the "user.dir" system property
+     */
+    @BeforeClass
+    public static void initTestRootFolder(){
+        String baseDir = System.getProperty("basedir");
+        if(baseDir == null){
+            baseDir = System.getProperty("user.dir");
+        }
+        //store the current user.dir
+        userDir = System.getProperty("user.dir");
+        testRoot = baseDir+TEST_ROOT;
+        log.info("ConfigTest Root : "+testRoot);
+        //set the user.dir to the testRoot (needed to test loading of missing
+        //configurations via classpath
+        //store the current user.dir and reset it after the tests
+        System.setProperty("user.dir", testRoot);
+    }
+    
+       @Test
+       public void testOsgiConfigurationGeneration() throws 
URISyntaxException, IOException{
+               String name = CONFIG_ROOT+"bundlebuild";
+               
+               //copy test destination folder to mock-up the destination 
"config" folder creation operation
+               String destConfFolder = name + "/indexing/destination/" + 
"config";
+               File destConfSource = new File( this.getClass().getResource("/" 
+ destConfFolder).toURI());
+               File destConfTarget = new File(testRoot + "/" + destConfFolder);
+               FileUtils.copyDirectory( destConfSource, destConfTarget);
+               
+               File distFolder = new File(testRoot+'/'+name+"/indexing/dist");
+               File bundle = new 
File(distFolder,"org.apache.stanbol.data.site.simple-1.0.0.jar");
+               
+        IndexingConfig config = new IndexingConfig(name,name){};
+        
+        OsgiConfigurationUtil.createBundle(config);
+        
+        assertTrue("Configuration bundle '"+bundle+"' was not created!", 
bundle.isFile());
+        
+        //if choose to get .createBundle throwing exceptions, this test may be 
better :
+//        try{
+//             OsgiConfigurationUtil.createBundle(config);
+//        }catch(Exception npe){
+//             fail("NPE fired when try to build the osgi configuration");
+//        }
+        
+       }
+}

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/dbpediamappings.txt
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/dbpediamappings.txt?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/dbpediamappings.txt
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/dbpediamappings.txt
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,61 @@
+# --- Define the Languages for all fields ---
+| @=null;en;de;fr;it
+
+# --- RDF, RDFS and OWL Mappings ---
+rdfs:label
+rdfs:comment
+rdf:type | d=entityhub:ref
+# used by LOD to link to URIs used to identify the same Entity
+owl:sameAs | d=entityhub:ref
+
+# --- Dublin Core (dc terms and dc elements) ---
+dc:*
+# all DC Elements (one could also define the mappings to the DC Terms 
counterparts here
+dc-elements:*
+
+# --- Spatial Things ---
+geo:lat | d=xsd:double
+geo:long | d=xsd:double
+geo:alt | d=xsd:int;xsd:float
+# one can also copy the valued from the DBpedia properties
+#dbp-prop:latitude | d=xsd:decimal > geo:lat
+#dbp-prop:longitude | d=xsd:decimal > geo:long
+
+# --- Thesaurus (via SKOS) ---
+#SKOS can be used to define hierarchical terminologies
+skos:*
+skos:broader | d=entityhub:ref
+skos:narrower | d=entityhub:ref
+skos:related | d=entityhub:ref
+skos:member | d=entityhub:ref
+skos:subject | d=entityhub:ref
+skos:inScheme | d=entityhub:ref
+skos:hasTopConcept | d=entityhub:ref
+skos:topConceptOf | d=entityhub:ref
+
+# --- Social Networks (via foaf) ---
+#The Friend of a Friend schema often used to describe social relations between 
people
+foaf:* 
+foaf:knows | d=entityhub:ref
+foaf:made | d=entityhub:ref
+foaf:maker | d=entityhub:ref
+foaf:member | d=entityhub:ref
+foaf:homepage | d=xsd:anyURI
+# also use the DBpedia property website for oaf:homepage!
+dbp-prop:website | d=xsd:anyURI > foaf:homepage
+foaf:depiction | d=xsd:anyURI
+# also use the DBpedia thumbnail as oaf:depiction
+dbp-ont:thumbnail | d=xsd:anyURI > foaf:depiction
+foaf:img | d=xsd:anyURI
+foaf:logo | d=xsd:anyURI
+# Documents about the entity
+foaf:page | d=xsd:anyURI
+
+# --- dbpedia specific
+# the "dbp-ont" defines knowledge mapped to the DBPedia ontology
+dbp-ont:*
+# the "DBpedia properties are all key values pairs extracted from the info 
boxes
+# on the right hand side of Wikipedia pages.
+#dbp-prop:*
+# Copy only population for now (one could add additional if necessary)!
+dbp-prop:population | d=xsd:integer
\ No newline at end of file

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexfieldconfig.txt
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexfieldconfig.txt?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexfieldconfig.txt
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexfieldconfig.txt
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,28 @@
+#This is a similar version of the dbPediaMappings.txt but excludes mapping 
rules
+# --- Define the Languages for all fields ---
+| @=null;en;de;fr;it
+
+# --- RDF, RDFS and OWL Mappings ---
+rdfs:label
+rdfs:comment
+rdf:type
+# used by LOD to link to URIs used to identify the same Entity
+owl:sameAs
+
+# --- Other Namespaces to include---
+dc:*
+dc-elements:*
+geo:*
+skos:*
+foaf:* 
+
+# --- dbpedia specific
+# the "dbp-ont" defines knowledge mapped to the DBPedia ontology
+dbp-ont:*
+
+# the "DBpedia properties are all key values pairs extracted from the info 
boxes
+# on the right hand side of Wikipedia pages.
+# uncomment the next line to include all
+#dbp-prop:*
+# Currently only the population is added
+dbp-prop:population
\ No newline at end of file

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexing.properties
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexing.properties?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexing.properties
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/indexing.properties
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,24 @@
+# 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.
+
+name=simple
+description=Simple Configuration
+
+scoreNormalizer=org.apache.stanbol.entityhub.indexing.core.normaliser.RangeNormaliser,config:range;org.apache.stanbol.entityhub.indexing.core.normaliser.NaturalLogNormaliser;org.apache.stanbol.entityhub.indexing.core.normaliser.MinScoreNormalizer,config:minscore
+
+entityIdIterator=org.apache.stanbol.entityhub.indexing.core.source.LineBasedEntityIterator,source:testEntityScore.txt,charset:UTF-8,encodeIds:false
+
+entityProcessor=org.apache.stanbol.entityhub.indexing.core.processor.FiledMapperProcessor,mappings:dbpediamappings.txt
+fieldConfiguration=indexfieldconfig.txt
\ No newline at end of file

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minincoming.properties
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minincoming.properties?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minincoming.properties
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minincoming.properties
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,17 @@
+# 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.
+
+inclusive=true
+min-score=2
\ No newline at end of file

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minscore.properties
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minscore.properties?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minscore.properties
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/minscore.properties
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,17 @@
+# 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.
+
+inclusive=true
+min-score=2
\ No newline at end of file

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/range.properties
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/range.properties?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/range.properties
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/config/range.properties
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,16 @@
+# 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.
+
+upper-bound=10
\ No newline at end of file

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/dbpedia.solrindex.ref
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/dbpedia.solrindex.ref?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/dbpedia.solrindex.ref
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/dbpedia.solrindex.ref
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,5 @@
+#Fri Mar 28 01:53:17 CET 2014
+Name=SolrIndex for dbpedia
+Synchronized=false
+Description=DBpedia.org 
+Index-Archive=dbpedia.solrindex.zip

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.core.site.CacheImpl-dbpedia.config
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.core.site.CacheImpl-dbpedia.config?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.core.site.CacheImpl-dbpedia.config
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.core.site.CacheImpl-dbpedia.config
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,4 @@
+org.apache.stanbol.entityhub.yard.name="dbpedia\ Cache"
+org.apache.stanbol.entityhub.yard.cacheYardId="dbpediaIndex"
+org.apache.stanbol.entityhub.yard.id="dbpediaIndex"
+org.apache.stanbol.entityhub.yard.description="Cache\ for\ the\ dbpedia\ 
Referenced\ Site\ using\ the\ dbpediaIndex."

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.site.referencedSite-dbpedia.config
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.site.referencedSite-dbpedia.config?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.site.referencedSite-dbpedia.config
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.site.referencedSite-dbpedia.config
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,18 @@
+org.apache.stanbol.entityhub.site.attributionUrl="http://wiki.dbpedia.org/About";
+org.apache.stanbol.entityhub.site.cacheId="dbpediaIndex"
+org.apache.stanbol.entityhub.site.name="dbpedia"
+org.apache.stanbol.entityhub.site.dereferencerType="org.apache.stanbol.entityhub.dereferencer.SparqlDereferencer"
+org.apache.stanbol.entityhub.site.defaultMappedEntityState="proposed"
+org.apache.stanbol.entityhub.site.fieldMappings=("#\ 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.","","#\ ---\ Defin
 e\ the\ Languages\ for\ all\ fields\ ---","#\ Uncomment\ to\ restrict\ 
indexing\ to\ a\ specific\ list\ of\ languages,\ otherwise\ all","#\ languages\ 
are\ indexed","#|\ @\=null;en;de;fr;it","","#\ ---\ RDF,\ RDFS\ and\ OWL\ 
Mappings\ ---","rdfs:label\ |\ d\=entityhub:text","rdfs:comment\ |\ 
d\=entityhub:text","rdf:type\ |\ d\=entityhub:ref","rdfs:seeAlso\ |\ 
d\=entityhub:ref","#\ map\ also\ wikiPageRedirects\ to\ 
rdfs:seeAlso","dbp-ont:wikiPageRedirects\ |\ d\=entityhub:ref\ >\ 
rdfs:seeAlso","","#\ used\ by\ LOD\ to\ link\ to\ URIs\ used\ to\ identify\ 
the\ same\ Entity","owl:sameAs\ |\ d\=entityhub:ref","","#\ ---\ Dublin\ Core\ 
(dc\ terms\ and\ dc\ elements)\ ---","dc:*","#\ DC\ terms\ subject\ is\ used\ 
by\ some\ DBpedia\ entities\ to\ store\ the\ Categories","#\ Others\ use\ 
skos:subject.\ Therefore\ ensure\ that\ dc:subjects\ are\ 
references","dc:subject\ |\ d\=entityhub:ref","#\ and\ copy\ the\ values\ to\ 
skos:subject","dc:subject\ |\ d\=entityhub:ref\ >\ skos:subject","dc:m
 odified\ |\ d\=xsd:dateTime","dc:created\ |\ d\=xsd:dateTime","","#\ all\ DC\ 
Elements\ (one\ could\ also\ define\ the\ mappings\ to\ the\ DC\ Terms\ 
counterparts\ here","#\ do\ not\ store\ dc-elements\ properties,\ but\ map\ 
them\ to\ the\ dc\ terms\ 
counterpart","#dc-elements:*","dc-elements:contributor\ >\ 
dc:contributor","dc-elements:coverage\ >\ dc:coverage","dc-elements:creator\ >\ 
dc:creator","dc-elements:date\ |\ d\=xsd:dateTime\ >\ 
dc:date","dc-elements:description\ >\ dc:description","dc-elements:format\ >\ 
dc:format","dc-elements:identifier\ >\ dc:identifier","dc-elements:language\ >\ 
dc:language","dc-elements:publisher\ >\ dc:publisher","dc-elements:relation\ >\ 
dc:relation","dc-elements:rights\ >\ dc:rights","dc-elements:source\ >\ 
dc:source","dc-elements:subject\ |\ d\=entityhub:ref\ >\ dc:subject","#\ copy\ 
subjects\ also\ to\ skos:subject","dc-elements:subject\ |\ d\=entityhub:ref\ >\ 
skos:subject","dc-elements:title\ >\ dc:title","dc-elements:type\ >\ 
dc:type","","#
 \ ---\ Spatial\ Things\ ---","geo:lat\ |\ d\=xsd:double","geo:long\ |\ 
d\=xsd:double","geo:alt\ |\ d\=xsd:int;xsd:float","#\ one\ can\ also\ copy\ 
the\ valued\ from\ the\ DBpedia\ properties","#\ use\ the\ elevation\ if\ 
present","dbp-ont:elevation\ |\ d\=xsd:int\ >\ geo:alt","","#\ ---\ Thesaurus\ 
(via\ SKOS)\ ---","#SKOS\ can\ be\ used\ to\ define\ hierarchical\ 
terminologies","skos:*","skos:broader\ |\ d\=entityhub:ref","skos:narrower\ |\ 
d\=entityhub:ref","skos:related\ |\ d\=entityhub:ref","skos:member\ |\ 
d\=entityhub:ref","skos:subject\ |\ d\=entityhub:ref","skos:inScheme\ |\ 
d\=entityhub:ref","skos:hasTopConcept\ |\ d\=entityhub:ref","skos:topConceptOf\ 
|\ d\=entityhub:ref","","#\ ---\ Social\ Networks\ (via\ foaf)\ ---","#The\ 
Friend\ of\ a\ Friend\ schema\ often\ used\ to\ describe\ social\ relations\ 
between\ people","foaf:*\ ","foaf:knows\ |\ d\=entityhub:ref","foaf:made\ |\ 
d\=entityhub:ref","foaf:maker\ |\ d\=entityhub:ref","foaf:member\ |\ 
d\=entityhub:ref","foaf:home
 page\ |\ d\=xsd:anyURI","foaf:depiction\ |\ d\=xsd:anyURI","#\ also\ use\ the\ 
DBpedia\ thumbnail\ as\ oaf:depiction","dbp-ont:thumbnail\ |\ d\=xsd:anyURI\ >\ 
foaf:depiction","foaf:img\ |\ d\=xsd:anyURI","foaf:logo\ |\ d\=xsd:anyURI","#\ 
Documents\ about\ the\ entity","foaf:page\ |\ d\=xsd:anyURI","","#\ ---\ 
dbpedia\ specific","#\ the\ \"dbp-ont\"\ defines\ knowledge\ mapped\ to\ the\ 
DBPedia\ ontology","dbp-ont:*","dbp-ont:birthDate\ |\ 
d\=xsd:dateTime","dbp-ont:deathDate\ |\ 
d\=xsd:dateTime","dbp-ont:populationTotal\ |\ 
d\=xsd:long","dbp-ont:wikiPageExternalLink\ |\ 
d\=xsd:anyURI","dbp-ont:areaTotal\ |\ d\=xsd:double","","#\ the\ \"DBpedia\ 
properties\ are\ all\ key\ values\ pairs\ extracted\ from\ the\ info\ 
boxes","#\ on\ the\ right\ hand\ side\ of\ Wikipedia\ pages.","#\ Data\ 
Quality\ is\ to\ low\ to\ use\ them\ efficiently","#dbp-prop:*","","#\ Copy\ 
only\ population\ for\ now\ (one\ could\ add\ additional\ if\ necessary)!","#\ 
use\ dbp-ont:populationTotal\ instead","#\ dbp-
 prop:population\ |\ d\=xsd:long","","#Deactivated\ mappings\ based\ on\ 
dbprops","#dbp-prop:latitude\ |\ d\=xsd:double\ >\ 
geo:lat","#dbp-prop:longitude\ |\ d\=xsd:double\ >\ 
geo:long","#dbp-prop:elevation\ |\ d\=xsd:int;xsd:float\ >\ 
geo:alt","#dbp-prop:website\ |\ d\=xsd:anyURI\ >\ foaf:homepage")
+org.apache.stanbol.entityhub.site.licenseName=["Creative\ Commons\ 
Attribution-ShareAlike\ 3.0","GNU\ Free\ Documentation\ License"]
+org.apache.stanbol.entityhub.site.defaultSymbolState="proposed"
+org.apache.stanbol.entityhub.site.searcherType="org.apache.stanbol.entityhub.searcher.VirtuosoSearcher"
+org.apache.stanbol.entityhub.site.defaultExpireDuration=I"0"
+org.apache.stanbol.entityhub.site.cacheStrategy="all"
+org.apache.stanbol.entityhub.site.attribution="DBpedia.org"
+org.apache.stanbol.entityhub.site.accessUri="http://dbpedia.org/sparql/";
+org.apache.stanbol.entityhub.site.id="dbpedia"
+org.apache.stanbol.entityhub.site.entityPrefix=["http://dbpedia.org/resource/","http://dbpedia.org/ontology/";]
+org.apache.stanbol.entityhub.site.licenseUrl=["http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License","http://en.wikipedia.org/wiki/Wikipedia:Text_of_the_GNU_Free_Documentation_License";]
+org.apache.stanbol.entityhub.site.queryUri="http://dbpedia.org/sparql";
+org.apache.stanbol.entityhub.site.description="DBpedia.org\ "

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.yard.solr.impl.SolrYard-dbpedia.config
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.yard.solr.impl.SolrYard-dbpedia.config?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.yard.solr.impl.SolrYard-dbpedia.config
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/destination/config/org/apache/stanbol/data/site/dbpedia/org.apache.stanbol.entityhub.yard.solr.impl.SolrYard-dbpedia.config
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,7 @@
+org.apache.stanbol.entityhub.yard.solr.solrUri="dbpedia"
+org.apache.stanbol.entityhub.yard.name="dbpedia\ Index"
+org.apache.stanbol.entityhub.yard.solr.multiYardIndexLayout=B"false"
+org.apache.stanbol.entityhub.yard.solr.useDefaultConfig=B"false"
+org.apache.stanbol.entityhub.yard.id="dbpediaIndex"
+http://stanbol.apache.org/ontology/entityhub/entityhub#entityRank="http://stanbol.apache.org/ontology/entityhub/entityhub#entityRank";
+org.apache.stanbol.entityhub.yard.description="Full\ local\ index\ for\ the\ 
Referenced\ Site\ \"dbpedia\"."

Added: 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/resources/testEntityScore.txt
URL: 
http://svn.apache.org/viewvc/stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/resources/testEntityScore.txt?rev=1587824&view=auto
==============================================================================
--- 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/resources/testEntityScore.txt
 (added)
+++ 
stanbol/branches/release-0.12/entityhub/indexing/core/src/test/resources/testOsgiConfiguration/bundlebuild/indexing/resources/testEntityScore.txt
 Wed Apr 16 07:49:16 2014
@@ -0,0 +1,3 @@
+http://www.example.org/entity/test     100
+http://www.example.org/entity/test2    10
+http://www.example.org/entity/test3    1
\ No newline at end of file


Reply via email to