Debian Codegraph @

FaCT++.Python/coras/bin/coras-debug

raw symbols SCIP
1 #!/usr/bin/env python3
2 #
3 # Coras - OWL reasoning system
4 #
5 # Copyright (C) 2018 by Artur Wroblewski <[email protected]>
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #
20
21 import argparse
22 import logging
23 import os.path
24 import pprint
25 import sys
26
27 import pyfactxx.coras
28 from pyfactxx.coras.cli import load_and_parse
29
30 logger = logging.getLogger('coras')
31
32 parser = argparse.ArgumentParser()
33 parser.add_argument('input', nargs='+', help='Ontology files')
34
35 args = parser.parse_args()
36
37 logging.basicConfig(
38 format='%(levelname)s:%(asctime)s:%(name)s:%(message)s',
39 level=logging.DEBUG
40 )
41
42 crs = pyfactxx.coras.Coras()
43 load_and_parse(crs, *args.input)
44 # crs.realise() # TODO: check for consistency as well
45
46 logger.debug(
47 'Python reference cache:\n{}'
48 .format(pprint.pformat(crs._reasoner._cache))
49 )
50
51 # vim: sw=4:et:ai