Closed nmerkle closed 5 years ago
Hi, I'm stuck here too... have you managed to solve the problem?
Thanks in advance, Anna Giulia
Hi,
I let it be to use the SWRLAPI, because I had also other issues with it regarding performance and memory consumption.
However, I think the problem was that the prefix of the base uri was not set/declared (correctly). Try out to set the following prefix with your own base uri at the beginning of your ontology file:
@prefix : <http://YOUR-Ontology-Base-URI> .
Maybe this helps. I remember that I had also this issue, because my ontology file contained generated node ids (_:genid) which seem to be blank node ids... But if you set all required prefixes in your ontology file then it should work. Another workaround was to filter out these node ids, because they were dispensable and not required for the SWRL reasoning.
Best, Nicole
Hi,
I use the SWRLAPI and as soon as I call the ruleEngine.infer() method I get the following error.
It seems for me that the prefix _: i s not defined, however, I checked my ontology and there is no such prefix used in the whole ontology file, but when I debug, I see the following reference _:genid.. I don't know where this prefix comes from. Is it maybe automatically generated by the SWRLAPI? How can I fix this problem?
Best, nmerkle