Open Demirrr opened 7 months ago
Hi I assume the file is not found since you using a relative path? ./home/......
Thank you for the point.
Yet, this works
./owl2nl.sh -a ./src/test/resources/test_axioms.owl \
-u false -o ./src/test/resources/test_ontology.owl \
-t json -s test_out.json -m rule
but this doesn't
./owl2nl.sh -a ./src/test/resources/best_pred.owl \
-u false -o ./src/test/resources/family.owl \
-t json -s test_out.json -m rule
where /src/test/resources/
contains best_pred.owl
and family.owl
Oh I guess I might understood the problem. Replacing the following
<owl:Ontology rdf:about="https://dice-research.org/predictions/1705308430.7992284">
<owl:imports rdf:resource="file://../KGs/Family/family.owl"/>
</owl:Ontology>
with
<owl:Ontology rdf:about="http://example.com/asdasda"/>
does the trick.
As far as i know, Jena tries to import. Maybe it works when the file exists. I have to test that. Thanks for reporting.
I was wondering whether creating a JAR file for owl2nl script would be a much of a work.
If it is not much work, creating a JAR file and uploading it into https://files.dice-research.org would help you and others to avoid possible future issues. What do yo think ?
Execitng the following example command
./owl2nl.sh -a ./home/demir/Desktop/Softwares/Ontolearn/examples/best_pred.owl -u false -o ./home/demir/Desktop/Softwares/Ontolearn/KGs/Family/family.owl -t json -s test_out.json -m rule
leads to the following RDF parsing errorFiles are here Prediction_and_kb.zip
The two files can be ready without a problem with rdflib see below
Any suggestion to solve this problem ?