Setting up an Ontop SPARQL endpoint with Ontop CLI

27 views
Skip to first unread message

Alberto Soki

unread,
Feb 26, 2023, 2:20:57 AM2/26/23
to ontop4obda
https://ontop-vkg.org/tutorial/endpoint/endpoint-cli.html

Dear, i am getting error when starting the Ontop Endpoint.  The error is in the attached file. Grateful.

ontopError.pdf

Benjamin Cogrel

unread,
Feb 27, 2023, 11:58:20 AM2/27/23
to Alberto Soki, ontop4obda
Hi Alberto,

Here is your exception: it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property
file: input\university-complete.properties

If you are using the Docker image, you need to use slashes (/) not anti-slashes (\) as directory separators, because the Docker image is running on Linux.

Best,
Benjamin

On Sun, Feb 26, 2023 at 8:21 AM Alberto Soki <alberto...@gmail.com> wrote:
https://ontop-vkg.org/tutorial/endpoint/endpoint-cli.html

Dear, i am getting error when starting the Ontop Endpoint.  The error is in the attached file. Grateful.

--
Please follow our guidelines on how to report a bug https://ontop-vkg.org/community/contributing/bug-report
---
You received this message because you are subscribed to the Google Groups "ontop4obda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ontop4obda+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ontop4obda/e6ad41f9-3bc5-4e10-a170-5b51c7ba555en%40googlegroups.com.

Alberto Soki

unread,
Feb 28, 2023, 4:57:13 AM2/28/23
to Benjamin Cogrel, ontop4obda
Dear Benjamin, I'm not using Docker image I'm using Ontop CLI.
If this was the exception then I am failing step 4 of the documentation.

image.png

But this endpoint/ directory where do I find it? on the h2 interface?

image.png

Alternatively I can include the files as follows in windows:

image.png

In my case, I'm doing it like this:


ontop endpoint ^
    --ontology=input/https://ontop-vkg.org/tutorial/endpoint/file/university-complete.ttl ^
    --mapping=input/C:/Users/albertosoki/Downloads/file/university-complete.obd ^
    --properties=input/C:/Users/albertosoki/Downloads/file/university-complete.properties ^
    --cors-allowed-origins=http://yasgui.org 

But this way I'm having error: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties

This is the return:

06:44:07.938 |-INFO  in i.u.i.o.e.OntopEndpointApplication - Starting OntopEndpointApplication v5.0.1 using Java 11.0.16.1 on DESKTOP-0RRQFQQ with PID 6472 (C:\$ONTOP_CLI_DIR\lib\ontop-endpoint-5.0.1.jar started by albertosoki in C:\$ONTOP_CLI_DIR)
06:44:07.943 |-INFO  in i.u.i.o.e.OntopEndpointApplication - No active profile set, falling back to 1 default profile: "default"
06:44:09.598 |-INFO  in o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8080 (http)
06:44:09.610 |-INFO  in o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
06:44:09.610 |-INFO  in o.a.catalina.core.StandardService - Starting service [Tomcat]
06:44:09.611 |-INFO  in o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.71]
06:44:09.759 |-INFO  in o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
06:44:09.759 |-INFO  in o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1757 ms
06:44:09.998 |-WARN  in o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sparqlQueryController' defined in URL [jar:file:/C:/$ONTOP_CLI_DIR/lib/ontop-endpoint-5.0.1.jar!/it/unibz/inf/ontop/endpoint/controllers/SparqlQueryController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'setupVirtualRepository' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Unsatisfied dependency expressed through method 'setupVirtualRepository' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
06:44:10.004 |-INFO  in o.a.catalina.core.StandardService - Stopping service [Tomcat]
06:44:10.025 |-INFO  in o.s.b.a.l.ConditionEvaluationReportLoggingListener -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
06:44:10.049 |-ERROR in o.s.boot.SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sparqlQueryController' defined in URL [jar:file:/C:/$ONTOP_CLI_DIR/lib/ontop-endpoint-5.0.1.jar!/it/unibz/inf/ontop/endpoint/controllers/SparqlQueryController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'setupVirtualRepository' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Unsatisfied dependency expressed through method 'setupVirtualRepository' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
        at it.unibz.inf.ontop.endpoint.OntopEndpointApplication.main(OntopEndpointApplication.java:20)
        at it.unibz.inf.ontop.cli.OntopEndpoint.run(OntopEndpoint.java:133)
        at it.unibz.inf.ontop.cli.Ontop.main(Ontop.java:18)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'setupVirtualRepository' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Unsatisfied dependency expressed through method 'setupVirtualRepository' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 21 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 35 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
        ... 49 common frames omitted
Caused by: it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at it.unibz.inf.ontop.injection.impl.OntopModelConfigurationImpl.extractProperties(OntopModelConfigurationImpl.java:247)
        at it.unibz.inf.ontop.injection.impl.OntopModelConfigurationImpl$DefaultOntopModelBuilderFragment.propertyFile(OntopModelConfigurationImpl.java:176)
        at it.unibz.inf.ontop.injection.impl.OntopModelConfigurationImpl$DefaultOntopModelBuilderFragment.propertyFile(OntopModelConfigurationImpl.java:171)
        at it.unibz.inf.ontop.injection.impl.OntopKGQueryConfigurationImpl$OntopKGQueryBuilderMixin.propertyFile(OntopKGQueryConfigurationImpl.java:102)
        at it.unibz.inf.ontop.injection.impl.OntopSQLOWLAPIConfigurationImpl$BuilderImpl.propertyFile(OntopSQLOWLAPIConfigurationImpl.java:107)
        at it.unibz.inf.ontop.injection.impl.OntopKGQueryConfigurationImpl$OntopKGQueryBuilderMixin.propertyFile(OntopKGQueryConfigurationImpl.java:59)
        at it.unibz.inf.ontop.endpoint.beans.OntopVirtualRepositoryBean.setupOntopConfiguration(OntopVirtualRepositoryBean.java:31)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
        ... 50 common frames omitted
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sparqlQueryController' defined in URL [jar:file:/C:/$ONTOP_CLI_DIR/lib/ontop-endpoint-5.0.1.jar!/it/unibz/inf/ontop/endpoint/controllers/SparqlQueryController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'setupVirtualRepository' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Unsatisfied dependency expressed through method 'setupVirtualRepository' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
        at it.unibz.inf.ontop.endpoint.OntopEndpointApplication.main(OntopEndpointApplication.java:20)
        at it.unibz.inf.ontop.cli.OntopEndpoint.run(OntopEndpoint.java:133)
        at it.unibz.inf.ontop.cli.Ontop.main(Ontop.java:18)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'setupVirtualRepository' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Unsatisfied dependency expressed through method 'setupVirtualRepository' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 21 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupOntopConfiguration' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 35 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.injection.OntopSystemConfiguration]: Factory method 'setupOntopConfiguration' threw exception; nested exception is it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
        ... 49 more
Caused by: it.unibz.inf.ontop.exception.InvalidOntopConfigurationException: Cannot reach the property file: input\C:\Users\albertosoki\Downloads\file\university-complete.properties
        at it.unibz.inf.ontop.injection.impl.OntopModelConfigurationImpl.extractProperties(OntopModelConfigurationImpl.java:247)
        at it.unibz.inf.ontop.injection.impl.OntopModelConfigurationImpl$DefaultOntopModelBuilderFragment.propertyFile(OntopModelConfigurationImpl.java:176)
        at it.unibz.inf.ontop.injection.impl.OntopModelConfigurationImpl$DefaultOntopModelBuilderFragment.propertyFile(OntopModelConfigurationImpl.java:171)
        at it.unibz.inf.ontop.injection.impl.OntopKGQueryConfigurationImpl$OntopKGQueryBuilderMixin.propertyFile(OntopKGQueryConfigurationImpl.java:102)
        at it.unibz.inf.ontop.injection.impl.OntopSQLOWLAPIConfigurationImpl$BuilderImpl.propertyFile(OntopSQLOWLAPIConfigurationImpl.java:107)
        at it.unibz.inf.ontop.injection.impl.OntopKGQueryConfigurationImpl$OntopKGQueryBuilderMixin.propertyFile(OntopKGQueryConfigurationImpl.java:59)
        at it.unibz.inf.ontop.endpoint.beans.OntopVirtualRepositoryBean.setupOntopConfiguration(OntopVirtualRepositoryBean.java:31)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
        ... 50 more
Exception in thread "main" java.lang.AssertionError
        at it.unibz.inf.ontop.cli.Ontop.main(Ontop.java:30)

C:\$ONTOP_CLI_DIR>



































Benjamin Cogrel

unread,
Mar 9, 2023, 2:10:27 PM3/9/23
to Alberto Soki, ontop4obda
Hi Alberto,

Sorry for the late reply. 

Please check the file paths you pass as parameters. They should be local paths, not HTTP URLs.
If they are absolute, they should not start with input/. Instead they should look more like C:/Users/albertosoki/Downloads/file/university-complete.obda

Best,
Benjamin

Alberto Soki

unread,
Mar 17, 2023, 5:56:14 AM3/17/23
to Benjamin Cogrel, ontop4obda
Thanks Benjamin, I removed the input/ and it worked.
Reply all
Reply to author
Forward
0 new messages