Closed shuxianpan closed 10 months ago
Hello,
Can't reproduce.
But found a bug #53 , old bug, nobody noticed = (
In the example 8 the ontology is printed to System.out
twice: before and after update.
Do you see the both outputs? If not, then the reason is that System.out is closed.
SPARQL support is provided by Jena itself, so this is unlikely to be an ONT-API bug.
Hello, I was using the codes from example 8) in Wiki, but it seems that the ontology I got still has AnnotationProperty in it, and the ObjectProperty did not replace them. I used
ontapi
3.0.4,owlapi-distribution
5.5.0,apache-jena
4.5.0 andjena-arq
4.5.0. The output I got is as follows:I merely changed anything in the example except
OWLDataFactory df = m.getOWLDataFactory();
asDataFactory df = m.getOWLDataFactory();
. The classes I imported are:I also tried to remove the parts for updating / printing declaration and got a slightly different output. Removing updating or printing declaration printed
[ <http://ex.com/test#prop1> <http://ex.com/test#indi1> ] .
at the end of the output. Removing both printed[ <http://ex.com/test#prop1> <http://ex.com/test#indi1> ] .
betweenprop1
andprop2
.Update: I used my local OWL ontology file, and it worked. Possibly, the issue is relevant to creat a new ontology, but I haven't tested that part.