-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evictor.Builder expected in the config object? #52
Comments
Can you provide a small example to reproduce the problrm?
13 мая 2018 г. 14:34 пользователь "naditina" <[email protected]>
написал:
Hi,
I'm trying out a 2 weeks old snapshot version of ELK. When I try to load a
reasoner with any ontology, I get a null pointer because an Evictor.Builder
object is expected in the config object.
at org.semanticweb.elk.reasoner.tracing.TraceState.(TraceState.java:184)
Setting a String value in the ReasonerConfiguration object does not help
because the value is expected to be of type Evictor.Builder.
How can I resolve the problem?
Thanks
Nadeschda
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#52>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
.
|
Hi,
here is my code to load ELK:
final ReasonerConfiguration innerConfig = new ReasonerConfiguration();
innerConfig.setParameter(ReasonerConfiguration.INCREMENTAL_MODE_ALLOWED,"true");
//innerConfig.setParameter(ReasonerConfiguration.TRACING_EVICTOR," ");
innerConfig.setParameter(ReasonerConfiguration.NUM_OF_WORKING_THREADS,
"16");
final OWLReasonerConfiguration config = new ElkReasonerConfiguration(new
SimpleConfiguration(),
innerConfig);
new ElkReasonerFactory().createReasoner(o, config);
snapshot was taken on the 15th of April.
Stacktrace:
Exception in thread "main" java.lang.NullPointerException
at
org.semanticweb.elk.reasoner.tracing.TraceState.<init>(TraceState.java:184)
at
org.semanticweb.elk.reasoner.stages.AbstractReasonerState.<init>(AbstractReasonerState.java:219)
at org.semanticweb.elk.reasoner.Reasoner.<init>(Reasoner.java:109)
at
org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(ReasonerFactory.java:107)
at
org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(ReasonerFactory.java:99)
at
org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(ReasonerFactory.java:92)
at org.semanticweb.elk.owlapi.ElkReasoner.<init>(ElkReasoner.java:197)
at
org.semanticweb.elk.owlapi.ElkReasonerFactory.createElkReasoner(ElkReasonerFactory.java:102)
at
org.semanticweb.elk.owlapi.ElkReasonerFactory.createReasoner(ElkReasonerFactory.java:82)
at
protegeviewminimiser.CyclicViewSimplifier.getReasoner(CyclicViewSimplifier.java:366)
...
Nadeschda
…On 13 May 2018 at 14:39, Yevgeny Kazakov ***@***.***> wrote:
Can you provide a small example to reproduce the problrm?
13 мая 2018 г. 14:34 пользователь "naditina" ***@***.***>
написал:
Hi,
I'm trying out a 2 weeks old snapshot version of ELK. When I try to load a
reasoner with any ontology, I get a null pointer because an Evictor.Builder
object is expected in the config object.
at org.semanticweb.elk.reasoner.tracing.TraceState.(TraceState.java:184)
Setting a String value in the ReasonerConfiguration object does not help
because the value is expected to be of type Evictor.Builder.
How can I resolve the problem?
Thanks
Nadeschda
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#52>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/
ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHfS4wu6QacxtDdFrqK7IpGfBpYavuDSks5tyCl3gaJpZM4T8yFI>
.
|
What happens if you fo not change any configurations?
вс, 13 мая 2018, 14:43 naditina <[email protected]>:
… Hi,
here is my code to load ELK:
final ReasonerConfiguration innerConfig = new ReasonerConfiguration();
innerConfig.setParameter(ReasonerConfiguration.INCREMENTAL_MODE_ALLOWED,"true");
//innerConfig.setParameter(ReasonerConfiguration.TRACING_EVICTOR," ");
innerConfig.setParameter(ReasonerConfiguration.NUM_OF_WORKING_THREADS,
"16");
final OWLReasonerConfiguration config = new ElkReasonerConfiguration(new
SimpleConfiguration(),
innerConfig);
new ElkReasonerFactory().createReasoner(o, config);
snapshot was taken on the 15th of April.
Stacktrace:
Exception in thread "main" java.lang.NullPointerException
at
org.semanticweb.elk.reasoner.tracing.TraceState.<init>(TraceState.java:184)
at
org.semanticweb.elk.reasoner.stages.AbstractReasonerState.<init>(AbstractReasonerState.java:219)
at org.semanticweb.elk.reasoner.Reasoner.<init>(Reasoner.java:109)
at
org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(ReasonerFactory.java:107)
at
org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(ReasonerFactory.java:99)
at
org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(ReasonerFactory.java:92)
at org.semanticweb.elk.owlapi.ElkReasoner.<init>(ElkReasoner.java:197)
at
org.semanticweb.elk.owlapi.ElkReasonerFactory.createElkReasoner(ElkReasonerFactory.java:102)
at
org.semanticweb.elk.owlapi.ElkReasonerFactory.createReasoner(ElkReasonerFactory.java:82)
at
protegeviewminimiser.CyclicViewSimplifier.getReasoner(CyclicViewSimplifier.java:366)
...
Nadeschda
On 13 May 2018 at 14:39, Yevgeny Kazakov ***@***.***> wrote:
> Can you provide a small example to reproduce the problrm?
>
> 13 мая 2018 г. 14:34 пользователь "naditina" ***@***.***>
> написал:
>
> Hi,
>
> I'm trying out a 2 weeks old snapshot version of ELK. When I try to load
a
> reasoner with any ontology, I get a null pointer because an
Evictor.Builder
> object is expected in the config object.
>
> at org.semanticweb.elk.reasoner.tracing.TraceState.(TraceState.java:184)
>
> Setting a String value in the ReasonerConfiguration object does not help
> because the value is expected to be of type Evictor.Builder.
>
> How can I resolve the problem?
>
> Thanks
> Nadeschda
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#52>, or mute the
> thread
> <https://github.com/notifications/unsubscribe-auth/
> ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
> .
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#52 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AHfS4wu6QacxtDdFrqK7IpGfBpYavuDSks5tyCl3gaJpZM4T8yFI
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACCoyR0GLMXmL6e8h1-_Rg4ShP1da8Ctks5tyCqAgaJpZM4T8yFI>
.
|
new ElkReasonerConfiguration(new SimpleConfiguration()); works fine. As
soon as I pass it a ReasonerConfiguration object, it stops working.
…On 13 May 2018 at 15:04, Yevgeny Kazakov ***@***.***> wrote:
What happens if you fo not change any configurations?
вс, 13 мая 2018, 14:43 naditina ***@***.***>:
> Hi,
>
> here is my code to load ELK:
>
> final ReasonerConfiguration innerConfig = new ReasonerConfiguration();
>
> innerConfig.setParameter(ReasonerConfiguration.
INCREMENTAL_MODE_ALLOWED,"true");
> //innerConfig.setParameter(ReasonerConfiguration.TRACING_EVICTOR," ");
> innerConfig.setParameter(ReasonerConfiguration.NUM_OF_WORKING_THREADS,
> "16");
> final OWLReasonerConfiguration config = new ElkReasonerConfiguration(new
> SimpleConfiguration(),
> innerConfig);
> new ElkReasonerFactory().createReasoner(o, config);
>
>
> snapshot was taken on the 15th of April.
>
> Stacktrace:
>
> Exception in thread "main" java.lang.NullPointerException
> at
> org.semanticweb.elk.reasoner.tracing.TraceState.<init>(
TraceState.java:184)
> at
>
> org.semanticweb.elk.reasoner.stages.AbstractReasonerState.<
init>(AbstractReasonerState.java:219)
> at org.semanticweb.elk.reasoner.Reasoner.<init>(Reasoner.java:109)
> at
>
> org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
ReasonerFactory.java:107)
> at
>
> org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
ReasonerFactory.java:99)
> at
>
> org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
ReasonerFactory.java:92)
> at org.semanticweb.elk.owlapi.ElkReasoner.<init>(ElkReasoner.java:197)
> at
>
> org.semanticweb.elk.owlapi.ElkReasonerFactory.createElkReasoner(
ElkReasonerFactory.java:102)
> at
>
> org.semanticweb.elk.owlapi.ElkReasonerFactory.createReasoner(
ElkReasonerFactory.java:82)
> at
>
> protegeviewminimiser.CyclicViewSimplifier.getReasoner(
CyclicViewSimplifier.java:366)
> ...
>
> Nadeschda
>
> On 13 May 2018 at 14:39, Yevgeny Kazakov ***@***.***>
wrote:
>
> > Can you provide a small example to reproduce the problrm?
> >
> > 13 мая 2018 г. 14:34 пользователь "naditina" ***@***.***
>
> > написал:
> >
> > Hi,
> >
> > I'm trying out a 2 weeks old snapshot version of ELK. When I try to
load
> a
> > reasoner with any ontology, I get a null pointer because an
> Evictor.Builder
> > object is expected in the config object.
> >
> > at org.semanticweb.elk.reasoner.tracing.TraceState.(
TraceState.java:184)
> >
> > Setting a String value in the ReasonerConfiguration object does not
help
> > because the value is expected to be of type Evictor.Builder.
> >
> > How can I resolve the problem?
> >
> > Thanks
> > Nadeschda
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub
> > <#52>, or mute
the
> > thread
> > <https://github.com/notifications/unsubscribe-auth/
> > ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
> > .
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <
> #52 (comment)-
388623927
> >,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/
AHfS4wu6QacxtDdFrqK7IpGfBpYavuDSks5tyCl3gaJpZM4T8yFI
> >
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#52 (comment)-
388624226>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ACCoyR0GLMXmL6e8h1-_
Rg4ShP1da8Ctks5tyCqAgaJpZM4T8yFI>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHfS42-cjqljpSjvxQ9zFI0ztDBjA6f-ks5tyC9FgaJpZM4T8yFI>
.
|
Is there any particular problem you whant to solve? Why do you need a
custom configurations?
I think most of ELK settings can be changed using java properties. Ser here
for example:
https://github.com/liveontologies/elk-reasoner/blob/master/elk-cli/src/test/resources/elk.properties
вс, 13 мая 2018, 15:13 naditina <[email protected]>:
… new ElkReasonerConfiguration(new SimpleConfiguration()); works fine. As
soon as I pass it a ReasonerConfiguration object, it stops working.
On 13 May 2018 at 15:04, Yevgeny Kazakov ***@***.***> wrote:
> What happens if you fo not change any configurations?
>
> вс, 13 мая 2018, 14:43 naditina ***@***.***>:
>
>
> > Hi,
> >
> > here is my code to load ELK:
> >
> > final ReasonerConfiguration innerConfig = new ReasonerConfiguration();
> >
> > innerConfig.setParameter(ReasonerConfiguration.
> INCREMENTAL_MODE_ALLOWED,"true");
> > //innerConfig.setParameter(ReasonerConfiguration.TRACING_EVICTOR," ");
> > innerConfig.setParameter(ReasonerConfiguration.NUM_OF_WORKING_THREADS,
> > "16");
> > final OWLReasonerConfiguration config = new
ElkReasonerConfiguration(new
> > SimpleConfiguration(),
> > innerConfig);
> > new ElkReasonerFactory().createReasoner(o, config);
> >
> >
> > snapshot was taken on the 15th of April.
> >
> > Stacktrace:
> >
> > Exception in thread "main" java.lang.NullPointerException
> > at
> > org.semanticweb.elk.reasoner.tracing.TraceState.<init>(
> TraceState.java:184)
> > at
> >
> > org.semanticweb.elk.reasoner.stages.AbstractReasonerState.<
> init>(AbstractReasonerState.java:219)
> > at org.semanticweb.elk.reasoner.Reasoner.<init>(Reasoner.java:109)
> > at
> >
> > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> ReasonerFactory.java:107)
> > at
> >
> > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> ReasonerFactory.java:99)
> > at
> >
> > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> ReasonerFactory.java:92)
> > at org.semanticweb.elk.owlapi.ElkReasoner.<init>(ElkReasoner.java:197)
> > at
> >
> > org.semanticweb.elk.owlapi.ElkReasonerFactory.createElkReasoner(
> ElkReasonerFactory.java:102)
> > at
> >
> > org.semanticweb.elk.owlapi.ElkReasonerFactory.createReasoner(
> ElkReasonerFactory.java:82)
> > at
> >
> > protegeviewminimiser.CyclicViewSimplifier.getReasoner(
> CyclicViewSimplifier.java:366)
> > ...
> >
> > Nadeschda
> >
> > On 13 May 2018 at 14:39, Yevgeny Kazakov ***@***.***>
> wrote:
> >
> > > Can you provide a small example to reproduce the problrm?
> > >
> > > 13 мая 2018 г. 14:34 пользователь "naditina" <
***@***.***
> >
> > > написал:
> > >
> > > Hi,
> > >
> > > I'm trying out a 2 weeks old snapshot version of ELK. When I try to
> load
> > a
> > > reasoner with any ontology, I get a null pointer because an
> > Evictor.Builder
> > > object is expected in the config object.
> > >
> > > at org.semanticweb.elk.reasoner.tracing.TraceState.(
> TraceState.java:184)
> > >
> > > Setting a String value in the ReasonerConfiguration object does not
> help
> > > because the value is expected to be of type Evictor.Builder.
> > >
> > > How can I resolve the problem?
> > >
> > > Thanks
> > > Nadeschda
> > >
> > > —
> > > You are receiving this because you are subscribed to this thread.
> > > Reply to this email directly, view it on GitHub
> > > <#52>, or mute
> the
> > > thread
> > > <https://github.com/notifications/unsubscribe-auth/
> > > ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
> > > .
> > >
> > > —
> > > You are receiving this because you authored the thread.
> > > Reply to this email directly, view it on GitHub
> > > <
> > #52 (comment)-
> 388623927
> > >,
> > > or mute the thread
> > > <
> > https://github.com/notifications/unsubscribe-auth/
> AHfS4wu6QacxtDdFrqK7IpGfBpYavuDSks5tyCl3gaJpZM4T8yFI
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <
#52 (comment)-
> 388624226>,
> > or mute the thread
> > <
https://github.com/notifications/unsubscribe-auth/ACCoyR0GLMXmL6e8h1-_
> Rg4ShP1da8Ctks5tyCqAgaJpZM4T8yFI>
>
> > .
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#52 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AHfS42-cjqljpSjvxQ9zFI0ztDBjA6f-ks5tyC9FgaJpZM4T8yFI
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACCoydb9plsVP6faBLd3eaz2kCVm1dJhks5tyDFvgaJpZM4T8yFI>
.
|
I'm using in via the OWL API in a java program. If I put a properties file
in the project folder in my workspace, will ELK load it?
…On 13 May 2018 at 15:29, Yevgeny Kazakov ***@***.***> wrote:
Is there any particular problem you whant to solve? Why do you need a
custom configurations?
I think most of ELK settings can be changed using java properties. Ser here
for example:
https://github.com/liveontologies/elk-reasoner/
blob/master/elk-cli/src/test/resources/elk.properties
вс, 13 мая 2018, 15:13 naditina ***@***.***>:
> new ElkReasonerConfiguration(new SimpleConfiguration()); works fine. As
> soon as I pass it a ReasonerConfiguration object, it stops working.
>
>
> On 13 May 2018 at 15:04, Yevgeny Kazakov ***@***.***>
wrote:
>
> > What happens if you fo not change any configurations?
> >
> > вс, 13 мая 2018, 14:43 naditina ***@***.***>:
> >
> >
> > > Hi,
> > >
> > > here is my code to load ELK:
> > >
> > > final ReasonerConfiguration innerConfig = new
ReasonerConfiguration();
> > >
> > > innerConfig.setParameter(ReasonerConfiguration.
> > INCREMENTAL_MODE_ALLOWED,"true");
> > > //innerConfig.setParameter(ReasonerConfiguration.TRACING_EVICTOR,"
");
> > > innerConfig.setParameter(ReasonerConfiguration.NUM_OF_
WORKING_THREADS,
> > > "16");
> > > final OWLReasonerConfiguration config = new
> ElkReasonerConfiguration(new
> > > SimpleConfiguration(),
> > > innerConfig);
> > > new ElkReasonerFactory().createReasoner(o, config);
> > >
> > >
> > > snapshot was taken on the 15th of April.
> > >
> > > Stacktrace:
> > >
> > > Exception in thread "main" java.lang.NullPointerException
> > > at
> > > org.semanticweb.elk.reasoner.tracing.TraceState.<init>(
> > TraceState.java:184)
> > > at
> > >
> > > org.semanticweb.elk.reasoner.stages.AbstractReasonerState.<
> > init>(AbstractReasonerState.java:219)
> > > at org.semanticweb.elk.reasoner.Reasoner.<init>(Reasoner.java:109)
> > > at
> > >
> > > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> > ReasonerFactory.java:107)
> > > at
> > >
> > > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> > ReasonerFactory.java:99)
> > > at
> > >
> > > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> > ReasonerFactory.java:92)
> > > at org.semanticweb.elk.owlapi.ElkReasoner.<init>(
ElkReasoner.java:197)
> > > at
> > >
> > > org.semanticweb.elk.owlapi.ElkReasonerFactory.createElkReasoner(
> > ElkReasonerFactory.java:102)
> > > at
> > >
> > > org.semanticweb.elk.owlapi.ElkReasonerFactory.createReasoner(
> > ElkReasonerFactory.java:82)
> > > at
> > >
> > > protegeviewminimiser.CyclicViewSimplifier.getReasoner(
> > CyclicViewSimplifier.java:366)
> > > ...
> > >
> > > Nadeschda
> > >
> > > On 13 May 2018 at 14:39, Yevgeny Kazakov ***@***.***>
> > wrote:
> > >
> > > > Can you provide a small example to reproduce the problrm?
> > > >
> > > > 13 мая 2018 г. 14:34 пользователь "naditina" <
> ***@***.***
> > >
> > > > написал:
> > > >
> > > > Hi,
> > > >
> > > > I'm trying out a 2 weeks old snapshot version of ELK. When I try to
> > load
> > > a
> > > > reasoner with any ontology, I get a null pointer because an
> > > Evictor.Builder
> > > > object is expected in the config object.
> > > >
> > > > at org.semanticweb.elk.reasoner.tracing.TraceState.(
> > TraceState.java:184)
> > > >
> > > > Setting a String value in the ReasonerConfiguration object does not
> > help
> > > > because the value is expected to be of type Evictor.Builder.
> > > >
> > > > How can I resolve the problem?
> > > >
> > > > Thanks
> > > > Nadeschda
> > > >
> > > > —
> > > > You are receiving this because you are subscribed to this thread.
> > > > Reply to this email directly, view it on GitHub
> > > > <#52>, or
mute
> > the
> > > > thread
> > > > <https://github.com/notifications/unsubscribe-auth/
> > > > ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
> > > > .
> > > >
> > > > —
> > > > You are receiving this because you authored the thread.
> > > > Reply to this email directly, view it on GitHub
> > > > <
> > > https://github.com/liveontologies/elk-reasoner/
issues/52#issuecomment-
> > 388623927
> > > >,
> > > > or mute the thread
> > > > <
> > > https://github.com/notifications/unsubscribe-auth/
> > AHfS4wu6QacxtDdFrqK7IpGfBpYavuDSks5tyCl3gaJpZM4T8yFI
> > > >
> > > > .
> > > >
> > >
> > > —
> > > You are receiving this because you commented.
> > > Reply to this email directly, view it on GitHub
> > > <
> #52 (comment)-
> > 388624226>,
> > > or mute the thread
> > > <
> https://github.com/notifications/unsubscribe-auth/ACCoyR0GLMXmL6e8h1-_
> > Rg4ShP1da8Ctks5tyCqAgaJpZM4T8yFI>
> >
> > > .
> > >
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <
> #52 (comment)-
388625355
> >,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/AHfS42-
cjqljpSjvxQ9zFI0ztDBjA6f-ks5tyC9FgaJpZM4T8yFI
> >
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#52 (comment)-
388625888>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
ACCoydb9plsVP6faBLd3eaz2kCVm1dJhks5tyDFvgaJpZM4T8yFI>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHfS4-PIOcnKQIxUuvbiYShfHqdlC33Hks5tyDUmgaJpZM4T8yFI>
.
|
вс, 13 мая 2018, 15:36 naditina <[email protected]>:
I'm using in via the OWL API in a java program. If I put a properties file
in the project folder in my workspace, will ELK load it?
Yes provided it is on the classpath. You can also supply the values using
java command-line options -Dproperty=value.
… On 13 May 2018 at 15:29, Yevgeny Kazakov ***@***.***> wrote:
> Is there any particular problem you whant to solve? Why do you need a
> custom configurations?
> I think most of ELK settings can be changed using java properties. Ser
here
> for example:
>
> https://github.com/liveontologies/elk-reasoner/
> blob/master/elk-cli/src/test/resources/elk.properties
>
> вс, 13 мая 2018, 15:13 naditina ***@***.***>:
>
>
> > new ElkReasonerConfiguration(new SimpleConfiguration()); works fine. As
> > soon as I pass it a ReasonerConfiguration object, it stops working.
> >
> >
> > On 13 May 2018 at 15:04, Yevgeny Kazakov ***@***.***>
> wrote:
> >
> > > What happens if you fo not change any configurations?
> > >
> > > вс, 13 мая 2018, 14:43 naditina ***@***.***>:
> > >
> > >
> > > > Hi,
> > > >
> > > > here is my code to load ELK:
> > > >
> > > > final ReasonerConfiguration innerConfig = new
> ReasonerConfiguration();
> > > >
> > > > innerConfig.setParameter(ReasonerConfiguration.
> > > INCREMENTAL_MODE_ALLOWED,"true");
> > > > //innerConfig.setParameter(ReasonerConfiguration.TRACING_EVICTOR,"
> ");
> > > > innerConfig.setParameter(ReasonerConfiguration.NUM_OF_
> WORKING_THREADS,
> > > > "16");
> > > > final OWLReasonerConfiguration config = new
> > ElkReasonerConfiguration(new
> > > > SimpleConfiguration(),
> > > > innerConfig);
> > > > new ElkReasonerFactory().createReasoner(o, config);
> > > >
> > > >
> > > > snapshot was taken on the 15th of April.
> > > >
> > > > Stacktrace:
> > > >
> > > > Exception in thread "main" java.lang.NullPointerException
> > > > at
> > > > org.semanticweb.elk.reasoner.tracing.TraceState.<init>(
> > > TraceState.java:184)
> > > > at
> > > >
> > > > org.semanticweb.elk.reasoner.stages.AbstractReasonerState.<
> > > init>(AbstractReasonerState.java:219)
> > > > at org.semanticweb.elk.reasoner.Reasoner.<init>(Reasoner.java:109)
> > > > at
> > > >
> > > > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> > > ReasonerFactory.java:107)
> > > > at
> > > >
> > > > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> > > ReasonerFactory.java:99)
> > > > at
> > > >
> > > > org.semanticweb.elk.reasoner.ReasonerFactory.createReasoner(
> > > ReasonerFactory.java:92)
> > > > at org.semanticweb.elk.owlapi.ElkReasoner.<init>(
> ElkReasoner.java:197)
> > > > at
> > > >
> > > > org.semanticweb.elk.owlapi.ElkReasonerFactory.createElkReasoner(
> > > ElkReasonerFactory.java:102)
> > > > at
> > > >
> > > > org.semanticweb.elk.owlapi.ElkReasonerFactory.createReasoner(
> > > ElkReasonerFactory.java:82)
> > > > at
> > > >
> > > > protegeviewminimiser.CyclicViewSimplifier.getReasoner(
> > > CyclicViewSimplifier.java:366)
> > > > ...
> > > >
> > > > Nadeschda
> > > >
> > > > On 13 May 2018 at 14:39, Yevgeny Kazakov ***@***.***
>
> > > wrote:
> > > >
> > > > > Can you provide a small example to reproduce the problrm?
> > > > >
> > > > > 13 мая 2018 г. 14:34 пользователь "naditina" <
> > ***@***.***
> > > >
> > > > > написал:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm trying out a 2 weeks old snapshot version of ELK. When I try
to
> > > load
> > > > a
> > > > > reasoner with any ontology, I get a null pointer because an
> > > > Evictor.Builder
> > > > > object is expected in the config object.
> > > > >
> > > > > at org.semanticweb.elk.reasoner.tracing.TraceState.(
> > > TraceState.java:184)
> > > > >
> > > > > Setting a String value in the ReasonerConfiguration object does
not
> > > help
> > > > > because the value is expected to be of type Evictor.Builder.
> > > > >
> > > > > How can I resolve the problem?
> > > > >
> > > > > Thanks
> > > > > Nadeschda
> > > > >
> > > > > —
> > > > > You are receiving this because you are subscribed to this thread.
> > > > > Reply to this email directly, view it on GitHub
> > > > > <#52>, or
> mute
> > > the
> > > > > thread
> > > > > <https://github.com/notifications/unsubscribe-auth/
> > > > > ACCoybhu7r3OH4lY7mbdpcLfaxZYED71ks5tyChbgaJpZM4T8yFI>
> > > > > .
> > > > >
> > > > > —
> > > > > You are receiving this because you authored the thread.
> > > > > Reply to this email directly, view it on GitHub
> > > > > <
> > > > https://github.com/liveontologies/elk-reasoner/
> issues/52#issuecomment-
> > > 388623927
> > > > >,
> > > > > or mute the thread
> > > > > <
> > > > https://github.com/notifications/unsubscribe-auth/
> > > AHfS4wu6QacxtDdFrqK7IpGfBpYavuDSks5tyCl3gaJpZM4T8yFI
> > > > >
> > > > > .
> > > > >
> > > >
> > > > —
> > > > You are receiving this because you commented.
> > > > Reply to this email directly, view it on GitHub
> > > > <
> > #52 (comment)-
> > > 388624226>,
> > > > or mute the thread
> > > > <
> > https://github.com/notifications/unsubscribe-auth/ACCoyR0GLMXmL6e8h1-_
> > > Rg4ShP1da8Ctks5tyCqAgaJpZM4T8yFI>
> > >
> > > > .
> > > >
> > >
> > > —
> > > You are receiving this because you authored the thread.
> > > Reply to this email directly, view it on GitHub
> > > <
> > #52 (comment)-
> 388625355
> > >,
> > > or mute the thread
> > > <
> > https://github.com/notifications/unsubscribe-auth/AHfS42-
> cjqljpSjvxQ9zFI0ztDBjA6f-ks5tyC9FgaJpZM4T8yFI
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <
#52 (comment)-
> 388625888>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/
> ACCoydb9plsVP6faBLd3eaz2kCVm1dJhks5tyDFvgaJpZM4T8yFI>
>
> > .
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#52 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AHfS4-PIOcnKQIxUuvbiYShfHqdlC33Hks5tyDUmgaJpZM4T8yFI
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACCoyaHj0ohC_WQU6gps1NmE-w0IRn33ks5tyDbkgaJpZM4T8yFI>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm trying out a 2 weeks old snapshot version of ELK. When I try to load a reasoner with any ontology, I get a null pointer because an Evictor.Builder object is expected in the config object.
at org.semanticweb.elk.reasoner.tracing.TraceState.(TraceState.java:184)
Setting a String value in the ReasonerConfiguration object does not help because the value is expected to be of type Evictor.Builder.
How can I resolve the problem?
Thanks
Nadeschda
The text was updated successfully, but these errors were encountered: