You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2013/03/20 08:38:08 UTC

svn commit: r1458668 - in /stanbol/trunk/enhancement-engines/textannotationnewmodel: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/stanbol/ src/main/java/org/apache/stanbol/enhancer/ src/main/jav...

Author: rwesten
Date: Wed Mar 20 07:38:07 2013
New Revision: 1458668

URL: http://svn.apache.org/r1458668
Log:
STANBOL-953: EnhancementEngine that converts fise:TextAnnotations present in the metadata of a ContentItem to the new TextAnnotation model as defined by STANBOL-987. This means that fise:selection-prefix and fise:selection-suffix properties are added to all fise:TextAnnotations that define fise:start and fise:end values.

Added:
    stanbol/trunk/enhancement-engines/textannotationnewmodel/   (with props)
    stanbol/trunk/enhancement-engines/textannotationnewmodel/pom.xml
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationsNewModelEngine.java
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/metatype/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/metatype/metatype.properties
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/MockComponentContext.java
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationNewModelEngineTest.java
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/resources/
    stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/resources/enhancement-results.rdf

Propchange: stanbol/trunk/enhancement-engines/textannotationnewmodel/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Mar 20 07:38:07 2013
@@ -0,0 +1,7 @@
+.project
+
+.classpath
+
+.settings
+
+target

Added: stanbol/trunk/enhancement-engines/textannotationnewmodel/pom.xml
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/textannotationnewmodel/pom.xml?rev=1458668&view=auto
==============================================================================
--- stanbol/trunk/enhancement-engines/textannotationnewmodel/pom.xml (added)
+++ stanbol/trunk/enhancement-engines/textannotationnewmodel/pom.xml Wed Mar 20 07:38:07 2013
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<project
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.stanbol</groupId>
+    <artifactId>apache-stanbol-enhancement-engines</artifactId>
+    <version>0.10.1-SNAPSHOT</version>
+    <relativePath>..</relativePath>
+  </parent>
+	<packaging>bundle</packaging>
+	<artifactId>org.apache.stanbol.enhancer.engines.textannotationnewmodel</artifactId>
+  <name>Apache Stanbol Enhancement Engine : TextAnnotation new Model Conterter</name>
+	<description>
+    Post processing Engine that converts fise:TextAnnotation to the model as
+    descibed by STANBOL-087. This means that it add fise:selection-prefix and
+    fise:selection-suffix values for all TextAnnotations.
+    This Engine allows EnhancementEngines that do not support those properties
+    to be used in usecases where those properties are required.
+  </description>
+  <scm>
+    <connection>
+      scm:svn:http://svn.apache.org/repos/asf/stanbol/trunk/enhancement-engines/textannotationnewmodel/
+    </connection>
+    <developerConnection>
+      scm:svn:https://svn.apache.org/repos/asf/stanbol/trunk/enhancement-engines/textannotationnewmodel/
+    </developerConnection>
+    <url>http://stanbol.apache.org/</url>
+  </scm>
+
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<extensions>true</extensions>
+				<configuration>
+					<instructions>
+						<Private-Package>
+							org.apache.stanbol.enhancer.engines.textannotationnewmodel.*;version=${project.version}
+						</Private-Package>
+						<Import-Package>
+							org.apache.stanbol.enhancer.servicesapi; provide:=true,
+							org.apache.stanbol.enhancer.servicesapi.impl; provide:=true,
+							*
+						</Import-Package>
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-scr-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.enhancer.servicesapi</artifactId>
+			<version>0.11.0-SNAPSHOT</version>
+		</dependency>
+		<!-- for tests -->
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.enhancer.test</artifactId>
+			<version>0.11.0-SNAPSHOT</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.enhancer.core</artifactId>
+			<version>0.11.0-SNAPSHOT</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<scope>test</scope>
+		</dependency>
+		<dependency><!-- for loading test Enhancements -->
+			<groupId>org.apache.clerezza</groupId>
+			<artifactId>rdf.jena.parser</artifactId>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-simple</artifactId>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+</project>

Added: stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationsNewModelEngine.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationsNewModelEngine.java?rev=1458668&view=auto
==============================================================================
--- stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationsNewModelEngine.java (added)
+++ stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationsNewModelEngine.java Wed Mar 20 07:38:07 2013
@@ -0,0 +1,218 @@
+/*
+ * 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.
+ */
+package org.apache.stanbol.enhancer.engines.textannotationnewmodel.impl;
+
+import static org.apache.stanbol.enhancer.servicesapi.helper.ContentItemHelper.getBlob;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.Properties.ENHANCER_END;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.Properties.ENHANCER_SELECTION_PREFIX;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.Properties.ENHANCER_SELECTION_SUFFIX;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.Properties.ENHANCER_START;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.Properties.RDF_TYPE;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.TechnicalClasses.ENHANCER_TEXTANNOTATION;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+
+import org.apache.clerezza.rdf.core.Language;
+import org.apache.clerezza.rdf.core.Literal;
+import org.apache.clerezza.rdf.core.LiteralFactory;
+import org.apache.clerezza.rdf.core.MGraph;
+import org.apache.clerezza.rdf.core.NonLiteral;
+import org.apache.clerezza.rdf.core.Triple;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.impl.PlainLiteralImpl;
+import org.apache.clerezza.rdf.core.impl.TripleImpl;
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.ConfigurationPolicy;
+import org.apache.felix.scr.annotations.Properties;
+import org.apache.felix.scr.annotations.Property;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.stanbol.enhancer.servicesapi.Blob;
+import org.apache.stanbol.enhancer.servicesapi.ContentItem;
+import org.apache.stanbol.enhancer.servicesapi.EngineException;
+import org.apache.stanbol.enhancer.servicesapi.EnhancementEngine;
+import org.apache.stanbol.enhancer.servicesapi.ServiceProperties;
+import org.apache.stanbol.enhancer.servicesapi.helper.ContentItemHelper;
+import org.apache.stanbol.enhancer.servicesapi.helper.EnhancementEngineHelper;
+import org.apache.stanbol.enhancer.servicesapi.impl.AbstractEnhancementEngine;
+import org.osgi.framework.Constants;
+import org.osgi.service.cm.ConfigurationException;
+import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+@Component(policy = ConfigurationPolicy.OPTIONAL, metatype = true, immediate = true)
+@Service
+@Properties(value = {
+        @Property(name = EnhancementEngine.PROPERTY_NAME, value="text-annotation-new-model"),
+        @Property(name = TextAnnotationsNewModelEngine.PROPERTY_PREFIX_SUFFIX_SIZE, 
+                intValue=TextAnnotationsNewModelEngine.DEFAULT_PREFIX_SUFFIX_SIZE),
+        @Property(name = Constants.SERVICE_RANKING, intValue=0)
+})
+public class TextAnnotationsNewModelEngine extends AbstractEnhancementEngine<RuntimeException,RuntimeException>
+        implements EnhancementEngine, ServiceProperties {
+
+    private final Logger log = LoggerFactory.getLogger(TextAnnotationsNewModelEngine.class);
+
+    public static final String PROPERTY_PREFIX_SUFFIX_SIZE = "enhancer.engines.textannotationnewmodel.prefixSuffixSize";
+    public static final int DEFAULT_PREFIX_SUFFIX_SIZE = EnhancementEngineHelper.DEFAULT_PREFIX_SUFFIX_LENGTH;
+    
+    // the order in which this engine is executed.
+    public static final Integer ENGINE_ORDER = ServiceProperties.ORDERING_POST_PROCESSING - 20;
+
+    private static final Set<String> supportedMimeTypes = Collections.singleton("text/plain");
+    
+    private LiteralFactory lf = LiteralFactory.getInstance();
+    
+    private int prefixSuffixSize;
+    
+    /**
+     * Get the service properties (basically the engine order).
+     */
+    @Override
+    public Map<String,Object> getServiceProperties() {
+        return Collections.unmodifiableMap(Collections.singletonMap(ENHANCEMENT_ENGINE_ORDERING,
+            (Object) ENGINE_ORDER));
+    }
+
+    /**
+     * States whether can enhance the provided ContentItem.
+     */
+    @Override
+    public int canEnhance(ContentItem contentItem) throws EngineException {
+        if(getBlob(contentItem, supportedMimeTypes) != null){
+            return ENHANCE_ASYNC;
+        } else {
+            return CANNOT_ENHANCE;
+        }
+    }
+
+    /**
+     * Computes the enhancements on the provided ContentItem.
+     */
+    @Override
+    public void computeEnhancements(ContentItem contentItem) throws EngineException {
+        Entry<UriRef,Blob> textBlob = getBlob(contentItem, supportedMimeTypes);
+        if(textBlob == null){
+            return;
+        }
+        String language = EnhancementEngineHelper.getLanguage(contentItem);
+        Language lang = language == null ? null : new Language(language);
+        String text;
+        try {
+             text = ContentItemHelper.getText(textBlob.getValue());
+        } catch (IOException e) {
+            throw new EngineException(this, contentItem, "Unable to read Plain Text Blob", e);
+        }
+        Map<NonLiteral,Literal[]> prefixSuffixMap = new HashMap<NonLiteral,Literal[]>();
+        MGraph metadata = contentItem.getMetadata();
+        //extract all the necessary information within a read lock
+        contentItem.getLock().readLock().lock();
+        try {
+            Iterator<Triple> it = metadata.filter(null, RDF_TYPE, ENHANCER_TEXTANNOTATION);
+            while(it.hasNext()){
+                NonLiteral ta = it.next().getSubject();
+                boolean hasPrefix = metadata.filter(ta, ENHANCER_SELECTION_PREFIX, null).hasNext();
+                boolean hasSuffix = metadata.filter(ta, ENHANCER_SELECTION_SUFFIX, null).hasNext();
+                if(hasPrefix && hasSuffix){
+                    continue; //this TextAnnotation already uses the new model
+                }
+                Integer start;
+                if(!hasPrefix){
+                    start = EnhancementEngineHelper.get(metadata, ta, ENHANCER_START, Integer.class, lf);
+                    if(start == null){
+                        log.debug("unable to add fise:selection-prefix to TextAnnotation {} "
+                            + "because fise:start is not present",ta);
+                    }
+                } else {
+                    start = null;
+                }
+                Integer  end;
+                if(!hasSuffix){
+                    end = EnhancementEngineHelper.get(metadata, ta, ENHANCER_END, Integer.class, lf);
+                    if(end == null){
+                        log.debug("unable to add fise:selection-suffix to TextAnnotation {} "
+                            + "because fise:end is not present",ta);
+                    }
+                } else {
+                    end = null;
+                }
+                if(end != null || start != null){
+                    prefixSuffixMap.put(ta, new Literal[]{
+                            start == null ? null : new PlainLiteralImpl(text.substring(
+                                Math.max(0,start-prefixSuffixSize), start), lang),
+                            end == null ? null : new PlainLiteralImpl(text.substring(
+                                end,Math.min(text.length(), end+prefixSuffixSize)),lang)
+                    });
+                }
+            }
+        } finally {
+            contentItem.getLock().readLock().unlock();
+        }
+        //finally write the prefix/suffix triples within a write lock
+        if(!prefixSuffixMap.isEmpty()){
+            contentItem.getLock().writeLock().lock();
+            try {
+                for(Entry<NonLiteral,Literal[]> entry : prefixSuffixMap.entrySet()){
+                    if(entry.getValue()[0] != null){
+                        metadata.add(new TripleImpl(entry.getKey(), 
+                            ENHANCER_SELECTION_PREFIX, entry.getValue()[0]));
+                    } //else prefix already present
+                    if(entry.getValue()[1] != null){
+                        metadata.add(new TripleImpl(entry.getKey(), 
+                            ENHANCER_SELECTION_SUFFIX, entry.getValue()[1]));
+                    } //else suffix already present
+                }
+            } finally {
+                contentItem.getLock().writeLock().unlock();
+            }
+        }
+    }
+
+    @Override
+    protected void activate(ComponentContext ctx) throws ConfigurationException, RuntimeException {
+        super.activate(ctx);
+        Object value = ctx.getProperties().get(PROPERTY_PREFIX_SUFFIX_SIZE);
+        if(value instanceof Number){
+            prefixSuffixSize = ((Number)value).intValue();
+        } else if (value != null){
+            try {
+                prefixSuffixSize = Integer.parseInt(value.toString());
+            } catch (NumberFormatException e) {
+                throw new ConfigurationException(PROPERTY_PREFIX_SUFFIX_SIZE, "The value MUST be an Integer", e);
+            }
+        } else {
+            prefixSuffixSize = DEFAULT_PREFIX_SUFFIX_SIZE;
+        }
+        if(prefixSuffixSize < EnhancementEngineHelper.MIN_PREFIX_SUFFIX_SIZE){
+            throw new ConfigurationException(PROPERTY_PREFIX_SUFFIX_SIZE, 
+                "The prefixSuffixSize MUST BE >= " + EnhancementEngineHelper.MIN_PREFIX_SUFFIX_SIZE);
+        }
+    }
+
+    @Override
+    protected void deactivate(ComponentContext ctx) throws RuntimeException {
+        prefixSuffixSize = 0;
+        super.deactivate(ctx);
+    }
+}

Added: stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/metatype/metatype.properties
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/metatype/metatype.properties?rev=1458668&view=auto
==============================================================================
--- stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/metatype/metatype.properties (added)
+++ stanbol/trunk/enhancement-engines/textannotationnewmodel/src/main/resources/OSGI-INF/metatype/metatype.properties Wed Mar 20 07:38:07 2013
@@ -0,0 +1,4 @@
+stanbol.enhancer.engine.name=textAnnotationsModel
+
+stanbol.enhancer.engine.name.name=Name
+stanbol.enhancer.engine.name.description=The name of the enhancement engine as used in the RESTful interface '/engine/<name>'

Added: stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/MockComponentContext.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/MockComponentContext.java?rev=1458668&view=auto
==============================================================================
--- stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/MockComponentContext.java (added)
+++ stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/MockComponentContext.java Wed Mar 20 07:38:07 2013
@@ -0,0 +1,205 @@
+/*
+ * 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.
+ */
+package org.apache.stanbol.enhancer.engines.textannotationnewmodel.impl;
+
+import java.io.File;
+import java.io.InputStream;
+import java.util.Dictionary;
+import java.util.Hashtable;
+
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.BundleException;
+import org.osgi.framework.BundleListener;
+import org.osgi.framework.Filter;
+import org.osgi.framework.FrameworkListener;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.service.component.ComponentContext;
+import org.osgi.service.component.ComponentInstance;
+
+public class MockComponentContext implements ComponentContext {
+
+    protected final Dictionary<String, Object> properties;
+    protected final BundleContext bundleContext = new MockBundleContext();
+
+    public MockComponentContext() {
+        properties = new Hashtable<String, Object>();
+    }
+
+    public MockComponentContext(Dictionary<String, Object> properties) {
+        this.properties = properties;
+    }
+
+    public void disableComponent(String name) {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public void enableComponent(String name) {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public BundleContext getBundleContext() {
+        return bundleContext;
+    }
+
+    public ComponentInstance getComponentInstance() {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public Dictionary<String, Object> getProperties() {
+        return properties;
+    }
+
+    public ServiceReference getServiceReference() {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public Bundle getUsingBundle() {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public Object locateService(String name) {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public Object locateService(String name, ServiceReference reference) {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    public Object[] locateServices(String name) {
+        throw new UnsupportedOperationException("Mock implementation");
+    }
+
+    private static final class MockBundleContext implements BundleContext {
+        /**
+         * Used by the Engine to read System properties
+         */
+        @Override
+        public String getProperty(String key) {
+            return System.getProperty(key);
+        }
+
+        @Override
+        public Bundle getBundle() {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public Bundle installBundle(String location) throws BundleException {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public Bundle installBundle(String location, InputStream input) throws BundleException {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public Bundle getBundle(long id) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public Bundle[] getBundles() {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void addServiceListener(ServiceListener listener, String filter) throws InvalidSyntaxException {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void addServiceListener(ServiceListener listener) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void removeServiceListener(ServiceListener listener) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void addBundleListener(BundleListener listener) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void removeBundleListener(BundleListener listener) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void addFrameworkListener(FrameworkListener listener) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public void removeFrameworkListener(FrameworkListener listener) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public ServiceRegistration registerService(String clazz, Object service, Dictionary properties) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public ServiceReference[] getServiceReferences(String clazz, String filter) throws InvalidSyntaxException {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public ServiceReference[] getAllServiceReferences(String clazz, String filter) throws InvalidSyntaxException {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public ServiceReference getServiceReference(String clazz) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public Object getService(ServiceReference reference) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public boolean ungetService(ServiceReference reference) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public File getDataFile(String filename) {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+
+        @Override
+        public Filter createFilter(String filter) throws InvalidSyntaxException {
+            throw new UnsupportedOperationException("Mock implementation");
+        }
+        
+    }
+}

Added: stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationNewModelEngineTest.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationNewModelEngineTest.java?rev=1458668&view=auto
==============================================================================
--- stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationNewModelEngineTest.java (added)
+++ stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/java/org/apache/stanbol/enhancer/engines/textannotationnewmodel/impl/TextAnnotationNewModelEngineTest.java Wed Mar 20 07:38:07 2013
@@ -0,0 +1,124 @@
+package org.apache.stanbol.enhancer.engines.textannotationnewmodel.impl;
+
+import static org.apache.stanbol.enhancer.servicesapi.rdf.Properties.RDF_TYPE;
+import static org.apache.stanbol.enhancer.servicesapi.rdf.TechnicalClasses.ENHANCER_TEXTANNOTATION;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Collections;
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Hashtable;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.apache.clerezza.rdf.core.MGraph;
+import org.apache.clerezza.rdf.core.NonLiteral;
+import org.apache.clerezza.rdf.core.PlainLiteral;
+import org.apache.clerezza.rdf.core.Triple;
+import org.apache.clerezza.rdf.core.TypedLiteral;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.serializedform.SupportedFormat;
+import org.apache.clerezza.rdf.jena.parser.JenaParserProvider;
+import org.apache.stanbol.commons.indexedgraph.IndexedMGraph;
+import org.apache.stanbol.enhancer.contentitem.inmemory.InMemoryContentItemFactory;
+import org.apache.stanbol.enhancer.servicesapi.ContentItem;
+import org.apache.stanbol.enhancer.servicesapi.ContentItemFactory;
+import org.apache.stanbol.enhancer.servicesapi.EngineException;
+import org.apache.stanbol.enhancer.servicesapi.EnhancementEngine;
+import org.apache.stanbol.enhancer.servicesapi.helper.EnhancementEngineHelper;
+import org.apache.stanbol.enhancer.servicesapi.impl.StringSource;
+import org.apache.stanbol.enhancer.servicesapi.rdf.Properties;
+import org.apache.stanbol.enhancer.servicesapi.rdf.TechnicalClasses;
+import org.apache.stanbol.enhancer.test.helper.EnhancementStructureHelper;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.osgi.service.cm.ConfigurationException;
+import org.osgi.service.component.ComponentContext;
+
+import org.apache.clerezza.rdf.core.Resource;
+
+public class TextAnnotationNewModelEngineTest {
+    
+    public static final String SINGLE_SENTENCE = "Dr Patrick Marshall (1869 - November 1950) was a"
+            + " geologist who lived in New Zealand and worked at the University of Otago.";
+    private static final String TEST_ENHANCEMENTS = "enhancement-results.rdf";
+    
+    private static final JenaParserProvider rdfParser = new JenaParserProvider();
+    private static MGraph origEnhancements;
+    private static UriRef ciUri;
+    
+    private ContentItem contentItem;
+    
+    private static TextAnnotationsNewModelEngine engine;
+    
+    private final ContentItemFactory ciFactory = InMemoryContentItemFactory.getInstance();
+    private static ComponentContext ctx;
+    
+    @BeforeClass
+    public static void init() throws IOException, ConfigurationException {
+        InputStream in = TextAnnotationNewModelEngineTest.class.getClassLoader().getResourceAsStream(TEST_ENHANCEMENTS);
+        Assert.assertNotNull("Unable to load reaource '"+TEST_ENHANCEMENTS+"' via Classpath",in);
+        origEnhancements = new IndexedMGraph();
+        rdfParser.parse(origEnhancements, in, SupportedFormat.RDF_XML, null);
+        Assert.assertFalse(origEnhancements.isEmpty());
+        //parse the ID of the ContentItem form the enhancements
+        Iterator<Triple> it = origEnhancements.filter(null, Properties.ENHANCER_EXTRACTED_FROM, null);
+        Assert.assertTrue(it.hasNext());
+        Resource id = it.next().getObject();
+        Assert.assertTrue(id instanceof UriRef);
+        ciUri = (UriRef)id;
+        //validate that the enhancements in the file are valid
+        EnhancementStructureHelper.validateAllTextAnnotations(
+            origEnhancements, SINGLE_SENTENCE, null,
+            false); //those do not yet contain fise:selection-prefix/suffix values
+
+        //init the engine
+        engine = new TextAnnotationsNewModelEngine();
+        Dictionary<String,Object> config = new Hashtable<String,Object>();
+        config.put(EnhancementEngine.PROPERTY_NAME, "test-engine");
+        config.put(TextAnnotationsNewModelEngine.PROPERTY_PREFIX_SUFFIX_SIZE, Integer.valueOf(10));
+        ctx = new MockComponentContext(config);
+        engine.activate(ctx);
+    }
+    
+    @Before
+    public void initTest() throws IOException {
+        contentItem = ciFactory.createContentItem(ciUri, 
+            new StringSource(SINGLE_SENTENCE), new IndexedMGraph(origEnhancements));
+    }
+    
+    @Test
+    public void testTextAnnotationNewModel() throws EngineException {
+        Assert.assertEquals(EnhancementEngine.ENHANCE_ASYNC, engine.canEnhance(contentItem));
+        engine.computeEnhancements(contentItem);
+        //validate
+        MGraph g = contentItem.getMetadata();
+        Iterator<Triple> it = g.filter(null, RDF_TYPE, ENHANCER_TEXTANNOTATION);
+        Assert.assertTrue(it.hasNext());
+        while(it.hasNext()){
+            NonLiteral ta = it.next().getSubject();
+            Assert.assertTrue(ta instanceof UriRef);
+            Map<UriRef,Resource> expected = new HashMap<UriRef,Resource>();
+            expected.put(Properties.ENHANCER_EXTRACTED_FROM, contentItem.getUri());
+            EnhancementStructureHelper.validateTextAnnotation(g, (UriRef)ta, SINGLE_SENTENCE, expected,true);
+        }
+        
+    }
+    
+    
+    @After
+    public void afterTest(){
+        contentItem = null;
+    }
+    
+    @AfterClass
+    public static void cleanup(){
+        engine.deactivate(ctx);
+    }
+}

Added: stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/resources/enhancement-results.rdf
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/resources/enhancement-results.rdf?rev=1458668&view=auto
==============================================================================
--- stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/resources/enhancement-results.rdf (added)
+++ stanbol/trunk/enhancement-engines/textannotationnewmodel/src/test/resources/enhancement-results.rdf Wed Mar 20 07:38:07 2013
@@ -0,0 +1,302 @@
+<rdf:RDF
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:j.0="http://stanbol.apache.org/ontology/entityhub/query#"
+    xmlns:j.1="http://xmlns.com/foaf/0.1/"
+    xmlns:owl="http://www.w3.org/2002/07/owl#"
+    xmlns:j.3="http://stanbol.apache.org/ontology/entityhub/entityhub#"
+    xmlns:j.2="http://purl.org/dc/terms/"
+    xmlns:j.4="http://www.opengis.net/gml/"
+    xmlns:j.6="http://schema.org/"
+    xmlns:j.5="http://dbpedia.org/ontology/"
+    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+    xmlns:j.8="http://www.w3.org/2003/01/geo/wgs84_pos#"
+    xmlns:j.7="http://fise.iks-project.eu/ontology/" > 
+  <rdf:Description rdf:about="urn:enhancement-5d9544a8-8c1a-1c4c-04d6-b44ca36dd739">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.0</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Organisation"/>
+    <j.7:entity-type rdf:resource="http://schema.org/CollegeOrUniversity"/>
+    <j.7:entity-type rdf:resource="http://schema.org/EducationalOrganization"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/EducationalInstitution"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/University"/>
+    <j.7:entity-type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Agent"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Organization"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">University of Otago</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.935Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/University_of_Otago"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-d8823eed-7d8c-01c6-258d-97d8e03f3f02"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="http://dbpedia.org/resource/New_Zealand">
+    <rdfs:label xml:lang="ru">Новая Зеландия</rdfs:label>
+    <rdfs:label xml:lang="he">ניו זילנד</rdfs:label>
+    <rdfs:label xml:lang="ar">نيوزيلندا</rdfs:label>
+    <rdfs:label xml:lang="nl">Nieuw-Zeeland</rdfs:label>
+    <rdfs:label xml:lang="fr">Nouvelle-Zélande</rdfs:label>
+    <rdfs:label xml:lang="it">Nuova Zelanda</rdfs:label>
+    <rdfs:label xml:lang="de">Neuseeland</rdfs:label>
+    <rdfs:label xml:lang="pt">Nova Zelândia</rdfs:label>
+    <rdfs:label xml:lang="da">New Zealand</rdfs:label>
+    <rdfs:label xml:lang="en">New Zealand</rdfs:label>
+    <rdfs:label xml:lang="es">Nueva Zelanda</rdfs:label>
+    <rdfs:label xml:lang="zh">新西兰</rdfs:label>
+    <rdfs:label xml:lang="sv">Nya Zeeland</rdfs:label>
+    <rdfs:label xml:lang="ja">ニュージーランド</rdfs:label>
+    <rdfs:label xml:lang="tr">Yeni Zelanda</rdfs:label>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Country"/>
+    <rdf:type rdf:resource="http://schema.org/Country"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/PopulatedPlace"/>
+    <rdf:type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <rdf:type rdf:resource="http://schema.org/Event"/>
+    <rdf:type rdf:resource="http://schema.org/Place"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Event"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Place"/>
+    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/3/32/Flag_of_Maori.png"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_New_Zealand.svg"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Flag_of_Maori.png/200px-Flag_of_Maori.png"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Flag_of_New_Zealand.svg/200px-Flag_of_New_Zealand.svg.png"/>
+    <j.8:lat rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-41.283333</j.8:lat>
+    <j.8:lat rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-42.0</j.8:lat>
+    <j.0:score rdf:datatype="http://www.w3.org/2001/XMLSchema#float">16.44498</j.0:score>
+    <j.8:long rdf:datatype="http://www.w3.org/2001/XMLSchema#double">174.0</j.8:long>
+    <j.8:long rdf:datatype="http://www.w3.org/2001/XMLSchema#double">174.45</j.8:long>
+    <rdfs:comment xml:lang="en">New Zealand is an island country located in the southwestern Pacific Ocean. The country geographically comprises two main landmasses ‒ that of the North and South Islands ‒ as well as numerous smaller islands. New Zealand is situated some 1,500 kilometres (900 mi) east of Australia across the Tasman Sea and roughly 1,000 kilometres (600 mi) south of the Pacific island nations of New Caledonia, Fiji, and Tonga.</rdfs:comment>
+    <rdfs:comment xml:lang="he">ניו זילנד היא מדינת איים בדרום-מערב האוקיינוס השקט המורכבת משני איים גדולים הנקראים האי הצפוני והאי הדרומי, וכן מספר איים קטנים יותר. ניו זילנד ידועה כמדינה מבודדת - היא רחוקה כ-2,000 קילומטרים מאוסטרליה, כשביניהן חוצץ ים טסמן. שכנותיה הקרובות ביותר מצפון הן קלדוניה החדשה, פיג'י וטו×
  ×’×”. בניו זילנד חיים כארבעה מיליון תושבים על שטח של 268,680 קמ"ר. שפתה הרשמית בפועל היא אנגלית. המתיישבים הראשונים בה היו המאורים, אנשים ממוצא פולינזי כהה-עור.</rdfs:comment>
+    <rdfs:comment xml:lang="ja">ニュージーランド(英語: New Zealand)は、南西太平洋のポリネシアに位置する立憲君主制国家。島国であり、2つの主要な島と、多くの小さな島々からなる。北西に2,000km離れてオーストラリア大陸と対する。南方の南極大陸とは2,600km離れている。北はトンガ、ニューカレドニア、フィジーがある。イギリス連邦加盟国であり、英連邦王国の一国である。</rdfs:comment>
+    <rdfs:comment xml:lang="zh">紐西蘭(英语:New Zealand),舊譯鳥施仑;毛利語音譯「奧特亞羅瓦」(Aotearoa,意為「長白雲之鄉」)、又譯纽西兰,位於太平洋西南部,是個島嶼國家,相距澳大利亞約1,600海里。紐西蘭兩大島嶼以庫克海峽分隔,南岛鄰近南極洲,北島與斐濟及湯加相望。紐西蘭人自稱 Kiwi。</rdfs:comment>
+    <rdfs:comment xml:lang="da">New Zealand er en stat beliggende i Stillehavet på den sydlige halvkugle, opkaldt efter den nederlandske provins Zeeland. Polynesiske nybyggere ankom til New Zealand omkring 1280 og etablerede den maorianske kultur. Det Maorianske navn "Aotearoa" bliver oversat med "Land of the long white cloud" ("Den lange hvide skys land"). Dette navn blev givet pga. den lange hvide sky polyneserne så i horisonten ved NZ, da de nærmede sig.</rdfs:comment>
+    <rdfs:comment xml:lang="ru">Но́вая Зела́ндия — государство в юго-западной части Тихого океана, расположенное на двух крупных островах и большом количестве (приблизительно 700) прилегающих более мелких островов. Столица страны — город Веллингтон. Население Новой Зеландии составляет около 4 377 000 человек.
  Государство построено на принципах конституционной монархии и парламентской демократии и входит в число развитых стран мира.</rdfs:comment>
+    <rdfs:comment xml:lang="de">Neuseeland ist ein geographisch isolierter Inselstaat im südlichen Pazifik. Er besteht aus einer Nord- und einer Südinsel sowie zahlreichen kleineren Inseln. Die nächstgelegenen Staaten befinden sich im Westen mit Australien (die Westküsten der beiden Hauptinseln Neuseelands sind zwischen 1530 km und rund 2100 km von der Ostküste Australiens und Tasmaniens entfernt), im Norden mit den Inselstaaten Neukaledonien, Tonga, Fidschi und als Kontinent die Antarktis im Süden.</rdfs:comment>
+    <rdfs:comment xml:lang="tr">Yeni Zelanda, Güney Büyük Okyanus'da bir ada ülkesidir. Güney Yarımkürede, Okyanusya'daki Güney Pasifik adaları arasında, Avustralya'nın yaklaşık 1.200 mil (2.000 km) güney doğusunda yer almaktadır. Başlıca iki büyük (North Island ve South Island) ve birçok küçük adadan oluşur. Yeni Zelanda'nın başkenti Wellington'dur. Üzeri kar kaplı dağ manzaraları ile bilinen bir ülkedir. En büyük ve en kozmopolit şehri Auckland'dır.</rdfs:comment>
+    <rdfs:comment xml:lang="pt">Nova Zelândia é um país insular no sudoeste do Oceano Pacífico formado por duas massas de terra principais e por numerosas ilhas menores, sendo as mais notáveis as ilhas Stewart e Chatham. O nome indígena na língua maori para a Nova Zelândia é Aotearoa, normalmente traduzido como "A Terra da Grande Nuvem Branca". Os domínios da Nova Zelândia também incluem as Ilhas Cook e Niue (que se auto-governam mas em associação livre); Tokelau; e a Dependência de Ross.</rdfs:comment>
+    <rdfs:comment xml:lang="nl">Nieuw-Zeeland is een land in het zuidwesten van de Grote Oceaan. Het bestaat uit twee grote eilanden en een aantal kleinere eilanden. Nieuw-Zeeland is een constitutionele monarchie, lid van het Gemenebest van Naties (het vroegere Britse Gemenebest). Daarmee is Elizabeth II het staatshoofd. Zij wordt vertegenwoordigd door een gouverneur-generaal.</rdfs:comment>
+    <rdfs:comment xml:lang="es">Nueva Zelanda o Nueva Zelandia es un país insular de Oceanía que se localiza en el suroeste del Océano Pacífico formado por dos grandes islas: la Isla Norte y la Isla Sur, junto a otras islas menores, destacándose entre ellas la Isla Stewart y las Islas Chatham. El Reino de Nueva Zelanda también incluye a las Islas Cook y Niue (Estados autónomos en libre asociación); Tokelau y la Dependencia Ross (reclamación territorial en la Antártida).</rdfs:comment>
+    <rdfs:comment xml:lang="it">La Nuova Zelanda è uno stato insulare dell'Oceania, posto nell'oceano Pacifico meridionale. Lo Stato è formato da due isole principali, l'Isola del Nord e l'Isola del Sud, e da numerose isole minori come l'isola di Stewart e le isole Chatham. Il mar di Tasman la separa dall'Australia, situata circa 2000 km a nord-ovest. Aotearoa è l'antico nome dato dal popolo Maori all'odierna terra della Nuova Zelanda.</rdfs:comment>
+    <rdfs:comment xml:lang="fr">La Nouvelle-Zélande, en anglais New Zealand, en maori de Nouvelle-Zélande Aotearoa, est un pays de l'Océanie, au sud-ouest de l'océan Pacifique, constitué de deux îles principales, et de nombreuses îles beaucoup plus petites, notamment l'île Stewart et les îles Chatham. Située à environ 2 000 km de l'Australie dont elle est séparée par la mer de Tasman, la Nouvelle-Zélande est très isolée géographiquement.</rdfs:comment>
+    <rdfs:comment xml:lang="sv">Nya Zeeland är en östat i sydvästra Stilla havet som består av två landmassor och ett flertal mindre öar. Landet ligger cirka 1500 km öster om Australien över Tasmanska havet och ungefär 1000 km söder om Stillahavsöarna Nya Kaledonien, Fiji och Tonga. På grund av sin avlägsenhet var det en av de sista länderna som beboddes av människor.</rdfs:comment>
+    <rdfs:comment xml:lang="ar">نيوزيلندا هي دولة جزيرة في جنوب غرب المحيط الهادئ وتتألّف من جزيرتين، وعدد من الجزر الصغيرة، أبرزها جزيرة ستيوارت/راكيورا وجزر تشاتام. الاسم الأصلي لنيوزيلندا بلغة الماوري هو أوتياروا والتي تعني أرض السحابة البيضاء الطويلة. تضم نيوزيلندا أيضاً جزر كوك ونييوي (ذاتية الحكم وÙ�
 �كن بارتباط حر) وتوكلو وتابعية روس (مطالب نيوزيلندا الإقليمية في القارة القطبية الجنوبية).</rdfs:comment>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-93c701ad-fb39-5d29-a621-a57453b07017">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1.0</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Country"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Country"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/PopulatedPlace"/>
+    <j.7:entity-type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Event"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Place"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Event"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Place"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">New Zealand</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.935Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/New_Zealand"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-74a4ccbb-ce95-daa2-5671-7c3b971566fe"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-61277559-c6f0-d556-1f74-1499e03d70b5">
+    <j.2:type rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/>
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.9999989650767324</j.7:confidence>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation"/>
+    <j.2:language>en</j.2:language>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.903Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine</j.2:creator>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-dfe51867-7c57-df31-0954-cdff8ffdc365">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1.0</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Country"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Country"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/PopulatedPlace"/>
+    <j.7:entity-type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Event"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Place"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Event"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Place"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">New Zealand</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.936Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/New_Zealand"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-74a4ccbb-ce95-daa2-5671-7c3b971566fe"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-f14319a5-cd21-8d17-b903-1e8ccd73ed21">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1.0</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Organisation"/>
+    <j.7:entity-type rdf:resource="http://schema.org/CollegeOrUniversity"/>
+    <j.7:entity-type rdf:resource="http://schema.org/EducationalOrganization"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/EducationalInstitution"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/University"/>
+    <j.7:entity-type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Agent"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Organization"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">University of Otago</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.934Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/University_of_Otago"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-d8823eed-7d8c-01c6-258d-97d8e03f3f02"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-74a4ccbb-ce95-daa2-5671-7c3b971566fe">
+    <j.7:selection-context xml:lang="en">Dr Patrick Marshall (1869 - November 1950) was a geologist who lived in New Zealand and worked at the University of Otago.</j.7:selection-context>
+    <j.2:type rdf:resource="http://dbpedia.org/ontology/Place"/>
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.9791822129956814</j.7:confidence>
+    <j.7:selected-text xml:lang="en">New Zealand</j.7:selected-text>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation"/>
+    <j.7:end rdf:datatype="http://www.w3.org/2001/XMLSchema#int">83</j.7:end>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.923Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.2:creator>
+    <j.7:start rdf:datatype="http://www.w3.org/2001/XMLSchema#int">72</j.7:start>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-d8823eed-7d8c-01c6-258d-97d8e03f3f02">
+    <j.7:selection-context xml:lang="en">Dr Patrick Marshall (1869 - November 1950) was a geologist who lived in New Zealand and worked at the University of Otago.</j.7:selection-context>
+    <j.2:type rdf:resource="http://dbpedia.org/ontology/Organisation"/>
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.6517408806512694</j.7:confidence>
+    <j.7:selected-text xml:lang="en">University of Otago</j.7:selected-text>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation"/>
+    <j.7:end rdf:datatype="http://www.w3.org/2001/XMLSchema#int">121</j.7:end>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.921Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.2:creator>
+    <j.7:start rdf:datatype="http://www.w3.org/2001/XMLSchema#int">102</j.7:start>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-0d612d54-23a0-0c12-8cb2-47321344ef98">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.8711110814412437</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Organisation"/>
+    <j.7:entity-type rdf:resource="http://schema.org/CollegeOrUniversity"/>
+    <j.7:entity-type rdf:resource="http://schema.org/EducationalOrganization"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/EducationalInstitution"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/University"/>
+    <j.7:entity-type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Agent"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Organization"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">University of Otago</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.935Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/University_of_Otago"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-d8823eed-7d8c-01c6-258d-97d8e03f3f02"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-a9246668-0f6e-b1b6-047c-9647ce6c5945">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1.0</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Scientist"/>
+    <j.7:entity-type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Person"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Person"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Agent"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">Patrick Marshall</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.934Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/Patrick_Marshall"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-7d05d077-fe16-4f5f-6811-4f162bc44045"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="http://dbpedia.org/resource/Patrick_Marshall">
+    <rdfs:label xml:lang="en">Patrick Marshall</rdfs:label>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Scientist"/>
+    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
+    <rdf:type rdf:resource="http://schema.org/Person"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Person"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Agent"/>
+    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Patrick_Marshall.jpg/200px-Patrick_Marshall.jpg"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/a/a6/Patrick_Marshall.jpg"/>
+    <j.0:score rdf:datatype="http://www.w3.org/2001/XMLSchema#float">5.9039745</j.0:score>
+    <rdfs:comment xml:lang="en">Patrick Marshall (1869 – November 1950) was a geologist who lived in New Zealand. For over forty years he was an outstanding figure among New Zealand scientists, and was well known to geologists in many lands as a versatile and productive investigator. His research was also devoted to zoology. He first used the term "andesite line" in 1912.</rdfs:comment>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-41acdaed-7e24-d571-cf9e-a493c51fc416">
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1.0</j.7:confidence>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Country"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Country"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/PopulatedPlace"/>
+    <j.7:entity-type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Event"/>
+    <j.7:entity-type rdf:resource="http://schema.org/Place"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Event"/>
+    <j.7:entity-type rdf:resource="http://dbpedia.org/ontology/Place"/>
+    <j.7:entity-type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <j.7:entity-label xml:lang="en">New Zealand</j.7:entity-label>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.936Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine</j.2:creator>
+    <j.7:entity-reference rdf:resource="http://dbpedia.org/resource/New_Zealand"/>
+    <j.3:site>dbpedia</j.3:site>
+    <j.2:relation rdf:resource="urn:enhancement-74a4ccbb-ce95-daa2-5671-7c3b971566fe"/>
+  </rdf:Description>
+  <rdf:Description rdf:about="http://dbpedia.org/resource/University_of_Otago">
+    <rdfs:label xml:lang="ja">オタゴ大学</rdfs:label>
+    <rdfs:label xml:lang="pt">Universidade de Otago</rdfs:label>
+    <rdfs:label xml:lang="en">University of Otago</rdfs:label>
+    <rdfs:label xml:lang="zh">奥塔哥大学</rdfs:label>
+    <rdfs:label xml:lang="de">Universität von Otago</rdfs:label>
+    <rdfs:label xml:lang="fr">Université d'Otago</rdfs:label>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Organisation"/>
+    <rdf:type rdf:resource="http://schema.org/CollegeOrUniversity"/>
+    <rdf:type rdf:resource="http://schema.org/EducationalOrganization"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/EducationalInstitution"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/University"/>
+    <rdf:type rdf:resource="http://www.opengis.net/gml/_Feature"/>
+    <rdf:type rdf:resource="http://dbpedia.org/ontology/Agent"/>
+    <rdf:type rdf:resource="http://schema.org/Organization"/>
+    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/6/62/University_of_Otago_Coat_of_Arms.png"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/6/62/University_of_Otago_Coat_of_Arms.png/200px-University_of_Otago_Coat_of_Arms.png"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/a/a9/University_of_Otago.jpg"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/9/9b/Otago_sh.png"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Otago_sh.png/200px-Otago_sh.png"/>
+    <j.1:depiction rdf:resource="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/University_of_Otago.jpg/200px-University_of_Otago.jpg"/>
+    <j.8:lat rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-45.865555</j.8:lat>
+    <j.0:score rdf:datatype="http://www.w3.org/2001/XMLSchema#float">14.382699</j.0:score>
+    <j.8:long rdf:datatype="http://www.w3.org/2001/XMLSchema#double">170.51389</j.8:long>
+    <rdfs:comment xml:lang="ja">オタゴ大学(—だいがく、英語: University of Otago 、マオリ語: Te Whare Wānanga o Otāgo)は、ニュージーランド南島ダニーデンに所在する大学。</rdfs:comment>
+    <rdfs:comment xml:lang="de">Die University of Otago, (Te Whare Wananga o Otago in maori) ist die älteste Universität Neuseelands und befindet sich in Dunedin, der Hauptstadt der Region Otago. Ihr Wahlspruch: "sapere aude" ziert das Wappen und Symbol der Universität.</rdfs:comment>
+    <rdfs:comment xml:lang="zh">奥塔哥大学,位于新西兰南岛的但尼丁市。成立于1869年,是新西兰最古老的大学。奥塔哥大学被评为2007年新西兰最好的大学。奥塔哥大学有全新西兰第一所医学院和唯一的牙医学校,是南岛的医学研究中心,也是第一个将试管婴儿付诸实际的医学中心。</rdfs:comment>
+    <rdfs:comment xml:lang="en">The University of Otago (Māori: 'Te Whare Wānanga o Otāgo') in Dunedin is New Zealand's oldest university. It had over 22,000 students enrolled during 2010. The university has New Zealand's highest average research quality and in New Zealand is second only to the University of Auckland in the number of A rated academic researchers it employs. It topped the New Zealand Performance Based Research Fund evaluation in 2006.</rdfs:comment>
+    <rdfs:comment xml:lang="fr">L'université d'Otago (en anglais University of Otago, en maori Te Whare Wānanga o Otāgo) est la plus ancienne université de Nouvelle-Zélande. Située à Dunedin, sur l'île du Sud, elle accueille plus de étudiants. L'université est connue à travers le pays pour son style de vie étudiante unique et plus particulièrement sa culture de colocation avec des étudiants partageant des maisons à l'apparence "semi-délabrée" ayant chacune un nom et une vie domestique propre.</rdfs:comment>
+    <rdfs:comment xml:lang="pt">A Universidade de Otago em Dunedin é a universidade da Nova Zelândia com mais de 20.000 estudantes inscritos durante o ano de 2006. Foi fundada em 1869 por um comitê que incluía Thomas Burns. A universidade possui a maior qualidade média de pesquisa da Nova Zelândia e é a segunda universidade que emprega mais pesquisadores acadêmicos de nota "A" do país, ficando logo atrás da Universidade de Auckland.</rdfs:comment>
+  </rdf:Description>
+  <rdf:Description rdf:about="urn:enhancement-7d05d077-fe16-4f5f-6811-4f162bc44045">
+    <j.7:selection-context xml:lang="en">Dr Patrick Marshall (1869 - November 1950) was a geologist who lived in New Zealand and worked at the University of Otago.</j.7:selection-context>
+    <j.2:type rdf:resource="http://dbpedia.org/ontology/Person"/>
+    <j.7:extracted-from rdf:resource="urn:content-item-sha1-fff85e4522cb26954c406ae21d6bdfef7c0c4514"/>
+    <j.7:confidence rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.9774153085983628</j.7:confidence>
+    <j.7:selected-text xml:lang="en">Patrick Marshall</j.7:selected-text>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
+    <rdf:type rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation"/>
+    <j.7:end rdf:datatype="http://www.w3.org/2001/XMLSchema#int">19</j.7:end>
+    <j.2:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-18T14:37:10.920Z</j.2:created>
+    <j.2:creator rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine</j.2:creator>
+    <j.7:start rdf:datatype="http://www.w3.org/2001/XMLSchema#int">3</j.7:start>
+  </rdf:Description>
+</rdf:RDF>
\ No newline at end of file