Wednesday, April 26, 2017

Create a createLuceneIndex.sh file that works [pt2]:

metadataindex , ontologyindexrelation

Try:


mysql -u root -p

CREATE DATABASE metadataindex;
CREATE DATABASE ontologyindexrelation;

Creating standard index for entities (Classes, properties, instances, literals): type-URI-label
Number of indexes is 1
creating new Conexion for the database index ontology jdbc:mysql://localhost:3306/ontologyindexrelation ************

Exception in thread "main" java.lang.NullPointerException
    at poweraqua.serviceConfig.ServiceConfiguration.readConfiguration(ServiceConfiguration.java:86)
    at poweraqua.serviceConfig.ServiceConfiguration.readConfigurationFile(ServiceConfiguration.java:52)
    at poweraqua.indexingService.creator.IndexingCreator.<init>(IndexingCreator.java:56)
    at poweraqua.indexingService.creator.IndexingCreator.main(IndexingCreator.java:650)

(ServiceConfiguration.java:86)

NodeList repositories = configuration.getElementsByTagName("REPOSITORY");
System.out.println("Number of repositories in xml file is " + repositories.getLength());
for (int i = 0; i < repositories.getLength(); i++)

(ServiceConfiguration.java:52)

public void writeConfigurationFile()
{
createConfigurationFile("service_properties.xml");
}


(IndexingCreator.java:56)

String IndexInformationFolder = indexInformationBean.getIndexFolder();
MultiOntologyManager multiOntologyManager = new MultiOntologyManager(IndexInformationFolder);
IndexServiceConfiguration index = new IndexServiceConfiguration();
index.readConfigurationFile(IndexInformationFolder);
IndexBean indexBean = (IndexBean)index.getIndexList().get(0);




No comments:

Post a Comment