[Pellet-users] possible bug in reasoner.classify() API

Georgios Meditskos gmeditsk at csd.auth.gr
Wed Nov 14 14:46:05 UTC 2007


Shouldn't it be:
<owl:hasValue rdf:datatype="&xsd;boolean">true</owl:hasValue>

at line 62 at location.owl?



?????? ?????? ??? Hrishikesh Sharma <hrishikesh.sharma at gmail.com>:

> Hi,
>        I have an ontology base.owl, which imports location.owl. When I do
> command-line classification on base.owl
> pellet.sh -if /root/ddrive/office/e2r/proto/stage3/ont/location.owl -c
>
> the classification is done and published. However, when I call the same
> from a program using reasoner.classify() API, following exception happens
> org.mindswap.pellet.exceptions.InternalReasonerException: Invalid value to
> create a literal. Value: http://localhost/loc#true
>
> I have carved out a small program from my bigger program(part of
> attachment, Ont.java) and the results are the same. Curiously, if I run
> pellet.sh on location.owl instead of base.owl, the trace/exception/error is
> the same.
>
> The trouble is happening at line 62 of location.owl. I checked W3C OWL
> guide(section 3.4.3), and the syntax seems to be right. If the syntax was
> not right, then classification on base.owl itself should have failed(which
> succeeds)!
>
> I am attaching, for your purusal, base.owl, location.owl and a sample
> program Ont.java(to be invoked from command line as "java Ont
> absolute-path-of-owl-file")
>
> Regards
>     Hrishikesh.
>






More information about the Pellet-users mailing list