Skip to content
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

Saving plsyn to file instead of stdio #36

Open
RdR1024 opened this issue Apr 21, 2020 · 0 comments
Open

Saving plsyn to file instead of stdio #36

RdR1024 opened this issue Apr 21, 2020 · 0 comments

Comments

@RdR1024
Copy link

RdR1024 commented Apr 21, 2020

The current git download of the thea libraries, the save_axioms hook in the owl2_plsyn.pl file doesn’t save to file, but instead dumps to screen.

The following fix in the predicate owl2_io:save_axioms_hook/3 will alleviate that. I essentially mirrored the code from the similar file owl2_to_prolog_dlp.pl.

owl2_io:save_axioms_hook(File,plsyn,Opts) :-
( nonvar(File)
-> tell(File)
; true
),
write_owl_as_plsyn(Opts),
told.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant