All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.trentorise.opendata.semantics.services.IEkb Maven / Gradle / Ivy

The newest version!
/* 
 * Copyright 2013-2015   Trento Rise   trentorise.eu
 *
 * Licensed 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 eu.trentorise.opendata.semantics.services;

import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.annotation.Nullable;

/**
 * Interface for representing an entity knowledge base. Implementations of this
 * interface must have a public default constructor. Clients are not required to
 * be thread safe.
 *
 * @author David Leoni 
 * @author Ivan Tankoyeu 
 */
public interface IEkb {

    /**
     * Returns the locales supported by the ekb.
     *
     * @return the supported locales.
     */
    List getSupportedLocales();

    /**
     * Gets the default locales used when returning translations by the Ekb
     *
     * @return the default locales
     */
    List getDefaultLocales();

    /**
     * Sets the locales in which strings will be returned during subsequent
     * service api calls, if they are available.
     *
     * @param locales the list of desired locales. If empty, English will be
     * used as default locale.
     */
    void setDefaultLocales(Iterable locales);

    /**
     * Set the client specific properties. Their name will have the prefix given
     * by {@link #getPropertyNamespace()}
     *
     */
    void setProperties(Map properties);

    /**
     * Returns the namespace used for the client properties.
     */
    String getPropertyNamespace();

    /**
     * Gets the service for Natural Language Processing
     *
     * @return the NLP service if supported, null otherwise.
     */
    @Nullable
    INLPService getNLPService();

    /**
     * Gets the knowledge service
     *
     * @return the knowledge service if supported, null otherwise.
     */
    @Nullable
    IKnowledgeService getKnowledgeService();

    /**
     * Gets the service for schema matching
     *
     * @return the schema matching service if supported, null otherwise.
     */
    @Nullable
    ISemanticMatchingService getSemanticMatchingService();

    /**
     * Gets the identity management service
     *
     * @return the identity service if supported, null otherwise.
     */
    @Nullable
    IIdentityService getIdentityService();

    /**
     * Gets the entity type management service
     *
     * @return the entity type service if supported, null otherwise.
     */
    @Nullable
    IEntityTypeService getEntityTypeService();

    /**
     * Gets the entity management service
     *
     * @return the entity service if supported, null otherwise.
     */
    @Nullable
    IEntityService getEntityService();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy