Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 * 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
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* See the License for the specific language governing permissions and
* limitations under the License.
package org.apache.stanbol.enhancer.engines.dbpspotlight;
Defines Properties used for the configuration of the different Engines
public interface Constants {
	String PARAM_URL_KEY = "dbpedia.spotlight.url";
	String PARAM_SPOTTER = "dbpedia.spotlight.spotter";
	String PARAM_DISAMBIGUATOR = "dbpedia.spotlight.disambiguator";
	String PARAM_RESTRICTION = "dbpedia.spotlight.types";
	String PARAM_SPARQL = "dbpedia.spotlight.sparql";
	String PARAM_SUPPORT = "";
	String PARAM_CONFIDENCE = "dbpedia.spotlight.confidence";
Cab be used to set both connection AND read timeout for Http requests to the configured DBpedia Spotlight services.
Supported by all DBpedia Spotlight Engines.
	String PARAM_CONNECTION_TIMEOUT = "dbpedia.spotlight.connection.timeout";

The namespace used by DBpedia Spotlight specific properties
	 * Definition of some Spotlight specific properties added to
	 * fise:EntityAnnotations created by this Engine
			 + "contextualScore");
			 + "percentageOfSecondRank");
			 + "support");
			 + "priorScore");
			 + "finalScore");
			 + "similarityScore");
	Charset UTF8 = Charset.forName("UTF-8");
This contains the only MIME type directly supported by this enhancement engine.
	String TEXT_PLAIN_MIMETYPE = "text/plain";
This contains a list of languages supported by DBpedia Spotlight. If the metadata doesn't contain a value for the language as the value of the property the content can't be processed.
	Set<StringSUPPORTED_LANGUAGES = Collections
			.unmodifiableSet(new HashSet<String>(Arrays.asList("en")));

Set containing the only supported mime type TEXT_PLAIN_MIMETYPE
	Set<StringSUPPORTED_MIMTYPES = Collections
New to GrepCode? Check out our FAQ X