-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Springboot Serialization, Refactored dataset API
- Loading branch information
1 parent
05c8ff9
commit acd333a
Showing
8 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,14 @@ | |
import java.util.Set; | ||
|
||
import org.aksw.gerbil.config.GerbilConfiguration; | ||
import org.aksw.gerbil.dataset.AdapterConfigSerializer; | ||
import org.aksw.gerbil.dataset.check.EntityCheckerManager; | ||
import org.aksw.gerbil.dataset.check.impl.EntityCheckerManagerImpl; | ||
import org.aksw.gerbil.dataset.check.impl.FileBasedCachingEntityCheckerManager; | ||
import org.aksw.gerbil.dataset.check.impl.HttpBasedEntityChecker; | ||
import org.aksw.gerbil.dataset.check.impl.InMemoryCachingEntityCheckerManager; | ||
import org.aksw.gerbil.dataset.check.index.IndexBasedEntityChecker; | ||
import org.aksw.gerbil.datatypes.AbstractAdapterConfiguration; | ||
import org.aksw.gerbil.datatypes.ExperimentType; | ||
import org.aksw.gerbil.evaluate.EvaluatorFactory; | ||
import org.aksw.gerbil.exceptions.GerbilException; | ||
|
@@ -61,6 +63,7 @@ | |
import org.apache.commons.configuration.ConversionException; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.PropertySource; | ||
|
@@ -80,11 +83,11 @@ | |
* <code>org.aksw.gerbil.web.config</code> searching for other | ||
* {@link Configuration}s</li> | ||
* </ul> | ||
* | ||
* | ||
* @author Michael Röder ([email protected]) | ||
* @author Lars Wesemann | ||
* @author Didier Cherix | ||
* | ||
* | ||
*/ | ||
@org.springframework.context.annotation.Configuration | ||
@ComponentScan(basePackages = "org.aksw.gerbil.web.config") | ||
|
@@ -147,6 +150,11 @@ public class RootConfig { | |
return overseer; | ||
} | ||
|
||
@Bean | ||
public Jackson2ObjectMapperBuilderCustomizer jsonCustomizer() { | ||
return builder -> builder.serializers(new AdapterConfigSerializer(AbstractAdapterConfiguration.class)); | ||
} | ||
|
||
public static @Bean SubClassInferencer createSubClassInferencer() { | ||
Model classModel = ModelFactory.createDefaultModel(); | ||
String hierarchyFiles[] = GerbilConfiguration.getInstance() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters