id
int64
0
45.1k
file_name
stringlengths
4
68
file_path
stringlengths
14
193
content
stringlengths
32
9.62M
size
int64
32
9.62M
language
stringclasses
1 value
extension
stringclasses
6 values
total_lines
int64
1
136k
avg_line_length
float64
3
903k
max_line_length
int64
3
4.51M
alphanum_fraction
float64
0
1
repo_name
stringclasses
779 values
repo_stars
int64
0
882
repo_forks
int64
0
108
repo_open_issues
int64
0
90
repo_license
stringclasses
8 values
repo_extraction_date
stringclasses
146 values
sha
stringlengths
64
64
__index_level_0__
int64
0
45.1k
exdup_ids_cmlisp_stkv2
listlengths
1
47
6,230
example.linc
informatimago_lisp/languages/linc/example.linc
;;;; -*- mode:lisp;coding:utf-8 -*- ;;;;************************************************************************** ;;;;FILE: example.linc ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp ;;;;USER-INTERFACE: NONE ;;;;DESCRIPTION ;;;; ;;;; Sample linc code. ;;;; ;;;;AUTHORS ;;;; <PJB> Pascal Bourguignon <[email protected]> ;;;;MODIFICATIONS ;;;; 2007-12-19 <PJB> Extracted from linc.lisp ;;;;BUGS ;;;;LEGAL ;;;; AGPL3 ;;;; ;;;; Copyright Pascal Bourguignon 2007 - 2007 ;;;; ;;;; This program is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU Affero General Public License as published by ;;;; the Free Software Foundation, either version 3 of the License, or ;;;; (at your option) any later version. ;;;; ;;;; This program is distributed in the hope that it will be useful, ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;;; GNU Affero General Public License for more details. ;;;; ;;;; You should have received a copy of the GNU Affero General Public License ;;;; along with this program. If not, see <http://www.gnu.org/licenses/>. ;;;;************************************************************************** (cl:in-package :com.informatimago.languages.linc.c) (cl:defpackage :bc-mem (:use) (:export "COPY" "ALLOCATE" "DEALLOCATE")) (declare-variable '(n-allocation n-data copy n-length)) (declare-function '(bc-mem:allocate bc-mem:deallocate bc-mem:copy)) (declare-macro '(minimum)) (comment "Here is a little function") (define-function string_add ((a string_t) (b string_t)) string_t (let ((av int) (bv int) (res string_t (malloc (+ 2 (max (strlen a) (strlen b)))))) (sscanf a "%d" (address av)) (sscanf b "%d" (address bv)) (sprintf res "%d" (+ a b)) (return res))) (comment "Here is another function." "Slightly bigger this time." (* 42 12)) (define-function test () void (if (> n-allocation 1) (progn (= n-data (bc-mem:allocate (* (sizeof char) n-allocation))) (if copy (progn (= n-length (minimum (- n-allocation 1) (-> this dlength))) (bc-mem:copy (-> this data) n-data (* n-length (sizeof char)))) (= n-length 0))) (progn (= n-allocation 1) (= n-data (bc-mem:allocate (* (sizeof char) n-allocation))) (= n-length 0))) (= (aref n-data n-length) (cast 0 char)) (bc-mem:deallocate (cast (address (-> this data)) (pointer (pointer void)))) (= (-> this data) n-data) (= (-> this dlength) n-length) (= (-> this allocation) n-allocation) (let ((test double (* (+ 1 2 3 4) (/ 5 4 3 2) (- 5 4 3 2) (pos a) (neg b) (deref c) (~ d) (! e) (pos (+ 1 a)) (neg (+ 2 b)) (deref (+ c 3)) (~ (+ 4 d)) (! (< e 0))))) (printf "%d\\n" test)) (return this))
3,109
Common Lisp
.l
82
32.939024
83
0.544098
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
0d064283edb200160a5bda959d232b1e00a2b48cf3b3384ec70c265e95bb73b0
6,230
[ -1 ]
6,238
indent.el
informatimago_lisp/languages/linc/indent.el
;;;; .sexph and .sexpc (dolist (sym '(do)) (cl-indent sym 0)) (dolist (sym '(declare-structure declare-union declare-type declare-enumeration declare-constant declare-variable declare-function define-constant define-variable define-macro .ifndef .ifdef .if \#ifndef \#ifdef \#if block)) (cl-indent sym 1)) (cl-indent 'define-function 4) (dolist (sym '(declare-structure declare-union declare-enumeration declare-type)) (setf (get sym 'lisp-define-type) 'type)) (dolist (sym '(declare-constant declare-variable define-constant define-variable)) (setf (get sym 'lisp-define-type) 'var)) ;; (re-search-forward "(\\([ \t]*\\|\\(\\s_\\|\\w\\)+:\\)?\\(declare-\\(structure\\|union\\|enumeration\\|constant\\|variable\\|function\\)\\|define-\\(constant\\|variable\\|function\\|macro\\)\\)\\_>[ \t\n]+\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\|\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\)?") (font-lock-add-keywords 'lisp-mode '(("(\\([ \t]*\\|\\(\\s_\\|\\w\\)+:\\)?\\(declare-\\(structure\\|union\\|enumeration\\|type\\|constant\\|variable\\|function\\)\\|define-\\(constant\\|variable\\|function\\|macro\\)\\)\\_>[ \t\n]+\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\|\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\)?" (1 font-lock-keyword-face) (3 (let ((type (get (intern-soft (match-string 1)) (quote lisp-define-type)))) (cond ((eq type (quote var)) font-lock-variable-name-face) ((eq type (quote type)) font-lock-type-face) ((or (not (match-string 2)) (and (match-string 2) (match-string 4))) font-lock-function-name-face) (t t))))))) ;; (setf font-lock-keywords ;; '(t (("\\<[Rr][Kk]:\\sw\\sw+\\>" 0 font-lock-builtin-face) ;; ("(\\(\\<[-A-Za-z0-9]+-define-[-A-Za-z0-9]+\\>\\)" 1 font-lock-keyword) ;; ("(\\([ ]*\\|\\(\\s_\\|\\w\\)+:\\)?\\(declare-\\(structure\\|union\\|enumeration\\|type\\|constant\\|variable\\|function\\)\\|define-\\(constant\\|variable\\|function\\|macro\\)\\)\\_>[ ;; ]+\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\|\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\)?" ;; (1 font-lock-keyword-face) ;; (3 (let ((type (get (intern-soft (match-string 1)) ;; (quote lisp-define-type)))) ;; (match-string 1) ;; (intern-soft (match-string 1))) ;; (cond ((eq type (quote var)) font-lock-variable-name-face) ;; ((eq type (quote type)) font-lock-type-face) ;; ((or (not (match-string 2)) ;; (and (match-string 2) ;; (match-string 4))) font-lock-function-name-face) ;; (t t)))) ;; (slime-search-suppressed-forms 0 (quote slime-reader-conditional-face) t) ;; ("(\\(\\(\\s_\\|\\w\\)*:\\(define-\\|do-\\|with-\\|without-\\)\\(\\s_\\|\\w\\)*\\)" 1 font-lock-keyword-face) ;; ("(\\(\\(define-\\|do-\\|with-\\)\\(\\s_\\|\\w\\)*\\)" 1 font-lock-keyword-face) ;; ("(\\(check-\\(\\s_\\|\\w\\)*\\)" 1 font-lock-warning-face) ;; ("(\\(assert-\\(\\s_\\|\\w\\)*\\)" 1 font-lock-warning-face) ;; (mm/match-labels ;; (1 font-lock-keyword-face nil) ;; (2 font-lock-function-name-face nil t) ;; (3 font-lock-function-name-face nil t) ;; (4 font-lock-function-name-face nil t) ;; (5 font-lock-function-name-face nil t) ;; (6 font-lock-function-name-face nil t) ;; (7 font-lock-function-name-face nil t) ;; (8 font-lock-function-name-face nil t)) ;; ("(\\(def\\(?:c\\(?:lass\\|onstant\\)\\|generic\\|ine-\\(?:co\\(?:mpiler-macro\\|ndition\\)\\|m\\(?:ethod-combination\\|odify-macro\\)\\|s\\(?:etf-expander\\|ymbol-macro\\)\\)\\|m\\(?:acro\\|ethod\\)\\|pa\\(?:ckage\\|rameter\\)\\|s\\(?:etf\\|\\(?:truc\\|ubs\\)t\\)\\|type\\|un\\|var\\)\\)\\_>[ ']*\\(([ ']*\\)?\\(\\(setf\\)[ ]+\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\|\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\)?" ;; (1 font-lock-keyword-face) ;; (3 (let ((type (get (intern-soft (match-string 1)) ;; (quote lisp-define-type)))) ;; (cond ((eq type (quote var)) font-lock-variable-name-face) ;; ((eq type (quote type)) font-lock-type-face) ;; ((or (not (match-string 2)) ;; (and (match-string 2) ;; (match-string 4))) font-lock-function-name-face))) nil t)) ;; ("\\[\\(\\^\\)" 1 font-lock-negation-char-face prepend) ;; ("(\\(b\\(?:\\(?:loc\\|rea\\)k\\)\\|c\\(?:ase\\|case\\|o\\(?:mpiler-let\\|nd\\(?:ition-case\\)?\\)\\|typecase\\)\\|d\\(?:e\\(?:cla\\(?:im\\|re\\)\\|structuring-bind\\)\\|o\\(?:\\*\\|list\\|times\\)?\\)\\|e\\(?:case\\|typecase\\|val-when\\)\\|flet\\*?\\|go\\|handler-\\(?:bind\\|case\\)\\|i\\(?:f\\|gnore-errors\\|n-package\\)\\|l\\(?:a\\(?:bels\\|mbda\\)\\|et[*f]?\\|o\\(?:cally\\|op\\)\\)\\|m\\(?:acrolet\\|ultiple-value-\\(?:bind\\|prog1\\)\\)\\|pro\\(?:claim\\|g[*12nv]?\\)\\|re\\(?:start-\\(?:bind\\|case\\)\\|turn\\(?:-from\\)?\\)\\|symbol-macrolet\\|t\\(?:agbody\\|\\(?:h\\|ypecas\\)e\\)\\|un\\(?:less\\|wind-protect\\)\\|w\\(?:h\\(?:en\\|ile\\)\\|ith-\\(?:accessors\\|co\\(?:mpilation-unit\\|ndition-restarts\\)\\|hash-table-iterator\\|input-from-string\\|o\\(?:pen-\\(?:file\\|stream\\)\\|utput-to-string\\)\\|package-iterator\\|s\\(?:imple-restart\\|lots\\|tandard-io-syntax\\)\\)\\)\\)\\_>" . 1) ;; ("(\\(catch\\|throw\\|provide\\|require\\)\\_>[ ']*\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\)?" ;; (1 font-lock-keyword-face) ;; (2 font-lock-constant-face nil t)) ;; ("(\\(a\\(?:\\(?:bo\\|sse\\)rt\\)\\|c\\(?:error\\|heck-type\\)\\|error\\|signal\\|warn\\)\\_>" ;; (1 font-lock-warning-face)) ;; ("[`‘]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\)['’]" ;; (1 font-lock-constant-face prepend)) ;; ("\\_<:\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\_>" ;; (0 font-lock-builtin-face)) ;; ("\\_<\\&\\(?:\\sw\\|\\s_\\|\\\\.\\)+\\_>" . font-lock-type-face) ;; (lisp--match-hidden-arg ;; (0 (quote (face font-lock-warning-face help-echo "Hidden behind deeper element; move to another line?")))) ;; ("\\<[Rr][Kk]:\\sw\\sw+\\>" ;; (0 font-lock-builtin-face)) ;; ("(\\(\\<[-A-Za-z0-9]+-define-[-A-Za-z0-9]+\\>\\)" ;; (1 font-lock-keyword))))) ;;;; THE END ;;;;
6,634
Common Lisp
.l
85
74.658824
919
0.454434
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
60f9954f80eda2b8b8ac71cc6b1735687abe45ca3819fa9737980aa75b8dca8e
6,238
[ -1 ]
6,255
Makefile
informatimago_lisp/languages/cpp/tests/Makefile
all: empty-macro: gcc -E -o - empty-macro.c include-macro: gcc -I.. -E -o - include-macro.h priority: gcc -E -o - priority.h concat: gcc -E -o - concat.c stringify: gcc -E -o - stringify.c recursive: gcc -E -o - recursive.c variadic: gcc -E -o - variadic.c shadow: gcc -E -o - shadow.c substitute: gcc -E -o - substitute.c built-ins: gcc -E -o - built-ins.c test: gcc -E -o - test.c trigraphs: gcc -E -o - -trigraphs trigraphs.c errors: gcc -E -o - errors.c line: gcc -E -o - line.c ifdef: gcc -E -o - ifdef.c | cat -s if: gcc -E -o - -Wundef if.c | cat -s if-embedded: gcc -E -o - if-embedded.c | cat -s line: gcc -E -o - line.c | cat -s
658
Common Lisp
.l
37
16.27027
35
0.65
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
d88f3d1c0ba172758ae2bfa58fcdb3335db4f7ff7d180cdf44f4f16662bad69d
6,255
[ -1 ]
6,257
built-ins.c
informatimago_lisp/languages/cpp/tests/built-ins.c
char* built_in_strings[]={ __TIME__, __DATE__, __FILE__, __BASE_FILE__, __TIMESTAMP__, 0 }; int built_in_ints[]={ __STDC__, __COUNTER__, __COUNTER__, __COUNTER__, __INCLUDE_LEVEL__ }
229
Common Lisp
.l
15
11.2
26
0.466981
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
ad1128c1fa6ae05612a2b2df2f6550fc139d7ccca66807ecac518e2320fecd24
6,257
[ -1 ]
6,261
rivest-sexp.txt
informatimago_lisp/future/rivest-sexp/rivest-sexp.txt
Network Working Group R. Rivest Internet Draft May 4, 1997 Expires November 4, 1997 S-Expressions draft-rivest-sexp-00.txt Status of this Memo Distribution of this memo is unlimited. This document is an Internet-Draft. Internet Drafts are working documents of the Internet Engineering Task Force (IETF), its Areas, and its Working Groups. Note that other groups may also distribute working documents as Internet Drafts. Internet Drafts are draft documents valid for a maximum of six months, and may be updated, replaced, or obsoleted by other documents at any time. It is not appropriate to use Internet Drafts as reference material, or to cite them other than as a ``working draft'' or ``work in progress.'' To learn the current status of any Internet-Draft, please check the ``1id-abstracts.txt'' listing contained in the internet-drafts Shadow Directories on: ftp.is.co.za (Africa), nic.nordu.net (Europe), ds.internic.net (US East Coast), ftp.isi.edu (US West Coast), or munnari.oz.au (Pacific Rim) Abstract This memo describes a data structure called "S-expressions" that are suitable for representing arbitrary complex data structures. We make precise the encodings of S-expressions: we give a "canonical form" for S-expressions, described two "transport" representations, and also describe an "advanced" format for display to people. 1. Introduction S-expressions are data structures for representing complex data. They are either byte-strings ("octet-strings") or lists of simpler S-expressions. Here is a sample S-expression: (snicker "abc" (#03# |YWJj|)) It is a list of length three: -- the octet-string "snicker" -- the octet-string "abc" -- a sub-list containing two elements: - the hexadecimal constant #03# - the base-64 constant |YWJj| (which is the same as "abc") This note gives a specific proposal for constructing and utilizing S-expressions. The proposal is independent of any particular application. Here are the design goals for S-expressions: -- generality: S-expressions should be good at representing arbitrary data. -- readability: it should be easy for someone to examine and understand the structure of an S-expression. -- economy: S-expressions should represent data compactly. -- tranportability: S-expressions should be easy to transport over communication media (such as email) that are known to be less than perfect. -- flexibility: S-expressions should make it relatively simple to modify and extend data structures. -- canonicalization: it should be easy to produce a unique "canonical" form of an S-expression, for digital signature purposes. -- efficiency: S-expressions should admit in-memory representations that allow efficient processing. Section 2 gives an introduction to S-expressions. Section 3 discusses the character sets used. Section 4 presents the various representations of octet-strings. Section 5 describes how to represent lists. Section 6 discusses how S-expressions are represented for various uses. Section 7 gives a BNF syntax for S-expressions. Section 8 talks about how S-expressions might be represented in memory. Section 9 briefly describes implementations for handling S-expressions. Section 10 discusses how applications might utilize S-expressions. Section 11 gives historical notes on S-expressions. Section 12 gives references. 2. S-expressions -- informal introduction Informally, an S-expression is either: -- an octet-string, or -- a finite list of simpler S-expressions. An octet-string is a finite sequence of eight-bit octets. There may be many different but equivalent ways of representing an octet-string abc -- as a token "abc" -- as a quoted string #616263# -- as a hexadecimal string 3:abc -- as a length-prefixed "verbatim" encoding {MzphYmM=} -- as a base-64 encoding of the verbatim encoding (that is, an encoding of "3:abc") |YWJj| -- as a base-64 encoding of the octet-string "abc" These encodings are all equivalent; they all denote the same octet string. We will give details of these encodings later on, and also describe how to give a "display type" to a byte string. A list is a finite sequence of zero or more simpler S-expressions. A list may be represented by using parentheses to surround the sequence of encodings of its elements, as in: (abc (de #6667#) "ghi jkl") As we see, there is variability possible in the encoding of an S-expression. In some cases, it is desirable to standardize or restrict the encodings; in other cases it is desirable to have no restrictions. The following are the target cases we aim to handle: -- a "transport" encoding for transporting the S-expression between computers. -- a "canonical" encoding, used when signing the S-expression. -- an "advanced" encoding used for input/output to people. -- an "in-memory" encoding used for processing the S-expression in the computer. These need not be different; in this proposal the canonical encoding is the same as the transport encoding, for example. In this note we propose (related) encoding techniques for each of these uses. 3. Character set We will be describing encodings of S-expressions. Except when giving "verbatim" encodings, the character set used is limited to the following characters in US-ASCII: Alphabetic: A B ... Z a b ... z numeric: 0 1 ... 9 whitespace: space, horizontal tab, vertical tab, form-feed carriage-return, line-feed The following graphics characters, which we call "pseudo-alphabetic": - hyphen or minus . period / slash _ underscore : colon * asterisk + plus = equal The following graphics characters, which are "reserved punctuation": ( left parenthesis ) right parenthesis [ left bracket ] right bracket { left brace } right brace | vertical bar # number sign " double quote & ampersand \ backslash The following characters are unused and unavailable, except in "verbatim" encodings: ! exclamation point % percent ^ circumflex ~ tilde ; semicolon ' apostrophe , comma < less than > greater than ? question mark 4. Octet string representations This section describes in detail the ways in which an octet-string may be represented. We recall that an octet-string is any finite sequence of octets, and that the octet-string may have length zero. 4.1 Verbatim representation A verbatim encoding of an octet string consists of four parts: -- the length (number of octets) of the octet-string, given in decimal most significant digit first, with no leading zeros. -- a colon ":" -- the octet string itself, verbatim. There are no blanks or whitespace separating the parts. No "escape sequences" are interpreted in the octet string. This encoding is also called a "binary" or "raw" encoding. Here are some sample verbatim encodings: 3:abc 7:subject 4::::: 12:hello world! 10:abcdefghij 0: 4.2 Quoted-string representation The quoted-string representation of an octet-string consists of: -- an optional decimal length field -- an initial double-quote (") -- the octet string with "C" escape conventions (\n,etc) -- a final double-quote (") The specified length is the length of the resulting string after any escape sequences have been handled. The string does not have any "terminating NULL" that C includes, and the length does not count such a character. The length is optional. The escape conventions within the quoted string are as follows (these follow the "C" programming language conventions, with an extension for ignoring line terminators of just LF or CRLF): \b -- backspace \t -- horizontal tab \v -- vertical tab \n -- new-line \f -- form-feed \r -- carriage-return \" -- double-quote \' -- single-quote \\ -- back-slash \ooo -- character with octal value ooo (all three digits must be present) \xhh -- character with hexadecimal value hh (both digits must be present) \<carriage-return> -- causes carriage-return to be ignored. \<line-feed> -- causes linefeed to be ignored \<carriage-return><line-feed> -- causes CRLF to be ignored. \<line-feed><carriage-return> -- causes LFCR to be ignored. Here are some examples of quoted-string encodings: "subject" "hi there" 7"subject" 3"\n\n\n" "This has\n two lines." "This has\ one." "" 4.3 Token representation An octet string that meets the following conditions may be given directly as a "token". -- it does not begin with a digit -- it contains only characters that are -- alphabetic (upper or lower case), -- numeric, or -- one of the eight "pseudo-alphabetic" punctuation marks: - . / _ : * + = (Note: upper and lower case are not equivalent.) (Note: A token may begin with punctuation, including ":"). Here are some examples of token representations: subject not-before class-of-1997 //microsoft.com/names/smith * 4.4 Hexadecimal representation An octet-string may be represented with a hexadecimal encoding consisting of: -- an (optional) decimal length of the octet string -- a sharp-sign "#" -- a hexadecimal encoding of the octet string, with each octet represented with two hexadecimal digits, most significant digit first. -- a sharp-sign "#" There may be whitespace inserted in the midst of the hexadecimal encoding arbitrarily; it is ignored. It is an error to have characters other than whitespace and hexadecimal digits. Here are some examples of hexadecimal encodings: #616263# -- represents "abc" 3#616263# -- also represents "abc" # 616 263 # -- also represents "abc" 4.5 Base-64 representation An octet-string may be represented in a base-64 coding consisting of: -- an (optional) decimal length of the octet string -- a vertical bar "|" -- the rfc 1521 base-64 encoding of the octet string. -- a final vertical bar "|" The base-64 encoding uses only the characters A-Z a-z 0-9 + / = It produces four characters of output for each three octets of input. If the input has one or two left-over octets of input, it produces an output block of length four ending in two or one equals signs, respectively. Output routines compliant with this standard MUST output the equals signs as specified. Input routines MAY accept inputs where the equals signs are dropped. There may be whitespace inserted in the midst of the base-64 encoding arbitrarily; it is ignored. It is an error to have characters other than whitespace and base-64 characters. Here are some examples of base-64 encodings: |YWJj| -- represents "abc" | Y W J j | -- also represents "abc" 3|YWJj| -- also represents "abc" |YWJjZA==| -- represents "abcd" |YWJjZA| -- also represents "abcd" 4.6 Display hint Any octet string may be preceded by a single "display hint". The purposes of the display hint is to provide information on how to display the octet string to a user. It has no other function. Many of the MIME types work here. A display-hint is an octet string surrounded by square brackets. There may be whitespace separating the octet string from the surrounding brackets. Any of the legal formats may be used for the octet string. Here are some examples of display-hints: [image/gif] [URI] [charset=unicode-1-1] [text/richtext] [application/postscript] [audio/basic] ["http://abc.com/display-types/funky.html"] In applications an octet-string that is untyped may be considered to have a pre-specified "default" mime type. The mime type "text/plain; charset=iso-8859-1" is the standard default. 4.7 Equality of octet-strings Two octet strings are considered to be "equal" if and only if they have the same display hint and the same data octet strings. Note that octet-strings are "case-sensitive"; the octet-string "abc" is not equal to the octet-string "ABC". An untyped octet-string can be compared to another octet-string (typed or not) by considering it as a typed octet-string with the default mime-type. 5. Lists Just as with octet-strings, there are several ways to represent an S-expression. Whitespace may be used to separate list elements, but they are only required to separate two octet strings when otherwise the two octet strings might be interpreted as one, as when one token follows another. Also, whitespace may follow the initial left parenthesis, or precede the final right parenthesis. Here are some examples of encodings of lists: (a b c) ( a ( b c ) ( ( d e ) ( e f ) ) ) (11:certificate(6:issuer3:bob)(7:subject5:alice)) ({3Rt=} "1997" murphy 3:{XC++}) 6. Representation types There are three "types" of representations: -- canonical -- basic transport -- advanced transport The first two MUST be supported by any implementation; the last is optional. 6.1 Canonical representation This canonical representation is used for digital signature purposes, transmission, etc. It is uniquely defined for each S-expression. It is not particularly readable, but that is not the point. It is intended to be very easy to parse, to be reasonably economical, and to be unique for any S-expression. The "canonical" form of an S-expression represents each octet-string in verbatim mode, and represents each list with no blanks separating elements from each other or from the surrounding parentheses. Here are some examples of canonical representations of S-expressions: (6:issuer3:bob) (4:icon[12:image/bitmap]9:xxxxxxxxx) (7:subject(3:ref5:alice6:mother)) 6.2 Basic transport representation There are two forms of the "basic transport" representation: -- the canonical representation -- an rfc-2045 base-64 representation of the canonical representation, surrounded by braces. The transport mechanism is intended to provide a universal means of representing S-expressions for transport from one machine to another. Here are some examples of an S-expression represented in basic transport mode: (1:a1:b1:c) {KDE6YTE6YjE6YykA} (this is the same S-expression encoded in base-64) There is a difference between the brace notation for base-64 used here and the || notation for base-64'd octet-strings described above. Here the base-64 contents are converted to octets, and then re-scanned as if they were given originally as octets. With the || notation, the contents are just turned into an octet-string. 6.3 Advanced transport representation The "advanced transport" representation is intended to provide more flexible and readable notations for documentation, design, debugging, and (in some cases) user interface. The advanced transport representation allows all of the representation forms described above, include quoted strings, base-64 and hexadecimal representation of strings, tokens, representations of strings with omitted lengths, and so on. 7. BNF for syntax We give separate BNF's for canonical and advanced forms of S-expressions. We use the following notation: <x>* means 0 or more occurrences of <x> <x>+ means 1 or more occurrences of <x> <x>? means 0 or 1 occurrences of <x> parentheses are used for grouping, as in (<x> | <y>)* For canonical and basic transport: <sexpr> :: <string> | <list> <string> :: <display>? <simple-string> ; <simple-string> :: <raw> ; <display> :: "[" <simple-string> "]" ; <raw> :: <decimal> ":" <bytes> ; <decimal> :: <decimal-digit>+ ; -- decimal numbers should have no unnecessary leading zeros <bytes> -- any string of bytes, of the indicated length <list> :: "(" <sexp>* ")" ; <decimal-digit> :: "0" | ... | "9" ; For advanced transport: <sexpr> :: <string> | <list> <string> :: <display>? <simple-string> ; <simple-string> :: <raw> | <token> | <base-64> | <hexadecimal> | <quoted-string> ; <display> :: "[" <simple-string> "]" ; <raw> :: <decimal> ":" <bytes> ; <decimal> :: <decimal-digit>+ ; -- decimal numbers should have no unnecessary leading zeros <bytes> -- any string of bytes, of the indicated length <token> :: <tokenchar>+ ; <base-64> :: <decimal>? "|" ( <base-64-char> | <whitespace> )* "|" ; <hexadecimal> :: "#" ( <hex-digit> | <white-space> )* "#" ; <quoted-string> :: <decimal>? <quoted-string-body> <quoted-string-body> :: "\"" <bytes> "\"" <list> :: "(" ( <sexp> | <whitespace> )* ")" ; <whitespace> :: <whitespace-char>* ; <token-char> :: <alpha> | <decimal-digit> | <simple-punc> ; <alpha> :: <upper-case> | <lower-case> | <digit> ; <lower-case> :: "a" | ... | "z" ; <upper-case> :: "A" | ... | "Z" ; <decimal-digit> :: "0" | ... | "9" ; <hex-digit> :: <decimal-digit> | "A" | ... | "F" | "a" | ... | "f" ; <simple-punc> :: "-" | "." | "/" | "_" | ":" | "*" | "+" | "=" ; <whitespace-char> :: " " | "\t" | "\r" | "\n" ; <base-64-char> :: <alpha> | <decimal-digit> | "+" | "/" | "=" ; <null> :: "" ; 8. In-memory representations For processing, the S-expression would typically be parsed and represented in memory in a more more amenable to efficient processing. We suggest two alternatives: -- "list-structure" -- "array-layout" We only sketch these here, as they are only suggestive. The code referenced below illustrates these styles in more detail. 8.1. List-structure memory representation Here there are separate records for simple-strings, strings, and lists. An S-expression of the form ("abc" "de") would require two records for the simple strings, two for the strings, and two for the list elements. This is a fairly conventional representation, and details are omitted here. 8.2 Array-layout memory representation Here each S-expression is represented as a contiguous array of bytes. The first byte codes the "type" of the S-expression: 01 octet-string 02 octet-string with display-hint 03 beginning of list (and 00 is used for "end of list") Each of the three types is immediately followed by a k-byte integer indicating the size (in bytes) of the following representation. Here k is an integer that depends on the implementation, it might be anywhere from 2 to 8, but would be fixed for a given implementation; it determines the size of the objects that can be handled. The transport and canonical representations are independent of the choice of k made by the implementation. Although the length of lists are not given in the usual S-expression notations, it is easy to fill them in when parsing; when you reach a right-parenthesis you know how long the list representation was, and where to go back to fill in the missing length. 8.2.1 Octet string This is represented as follows: 01 <length> <octet-string> For example (here k = 2) 01 0003 a b c 8.2.2 Octet-string with display-hint This is represented as follows: 02 <length> 01 <length> <octet-string> /* for display-type */ 01 <length> <octet-string> /* for octet-string */ For example, the S-expression [gif] #61626364# would be represented as (with k = 2) 02 000d 01 0003 g i f 01 0004 61 62 63 64 8.2.3 List This is represented as 03 <length> <item1> <item2> <item3> ... <itemn> 00 For example, the list (abc [d]ef (g)) is represented in memory as (with k=2) 03 001b 01 0003 a b c 02 0009 01 0001 d 01 0002 e f 03 0005 01 0001 g 00 00 9. Code There is code available for reading and parsing the various S-expression formats proposed here. See http://theory.lcs.mit.edu/~rivest/sexp.html 10. Utilization of S-expressions This note has described S-expressions in general form. Application writers may wish to restrict their use of S-expressions in various ways. Here are some possible restrictions that might be considered: -- no display-hints -- no lengths on hexadecimal, quoted-strings, or base-64 encodings -- no empty lists -- no empty octet-strings -- no lists having another list as its first element -- no base-64 or hexadecimal encodings -- fixed limits on the size of octet-strings 11. Historical note The S-expression technology described here was originally developed for ``SDSI'' (the Simple Distributed Security Infrastructure by Lampson and Rivest [SDSI]) in 1996, although the origins clearly date back to McCarthy's LISP programming language. It was further refined and improved during the merger of SDSI and SPKI [SPKI] during the first half of 1997. S-expressions are similar to, but more readable and flexible than, Bernstein's "net-strings" [BERN]. 12. References [SDSI] "A Simple Distributed Security Architecture", by Butler Lampson, and Ronald L. Rivest http://theory.lcs.mit.edu/~cis/sdsi.html [SPKI] <a href="http://www.clark.net/pub/cme/html/spki.html">SPKI--A Simple Public Key Infrastructure</a> [BERN] Dan Bernstein's "net-strings"; Internet Draft draft-bernstein-netstrings-02.txt Author's Address Ronald L. Rivest Room 324, 545 Technology Square MIT Laboratory for Computer Science Cambridge, MA 02139 [email protected]
21,974
Common Lisp
.sexp
487
40.952772
78
0.724768
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
f62475f250d1db59ab38b56d1b68099bf922550d04044b65a5eb3f98ce1c0dac
6,261
[ -1 ]
6,262
draft-hedberg-spocp-sexp-00.txt
informatimago_lisp/future/rivest-sexp/draft-hedberg-spocp-sexp-00.txt
Network Working Group R. Hedberg Internet-Draft Stockholm University Expires: July 1, 2004 O. Bandmann L4i January 2004 Restricted S-expressions for use in a generalized authorization service draft-hedberg-spocp-sexp-00 Status of this Memo This document is an Internet-Draft and is in full conformance with all provisions of Section 10 of RFC2026. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http:// www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. This Internet-Draft will expire on July 1, 2004. Copyright Notice Copyright (C) The Internet Society (2004). All Rights Reserved. Hedberg & Bandmann Expires July 1, 2004 [Page 1] Internet-Draft S-expression based Authorization service January 2004 Table of Contents 1. Abstract . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4 3. Background . . . . . . . . . . . . . . . . . . . . . . . . . 5 4. Problems with Access Control Lists . . . . . . . . . . . . . 6 5. Restricted S-expressions for authorization . . . . . . . . . 7 5.1 Simple S-expressions . . . . . . . . . . . . . . . . . . . . 7 5.2 Basic theory . . . . . . . . . . . . . . . . . . . . . . . . 8 5.3 Star forms . . . . . . . . . . . . . . . . . . . . . . . . . 9 5.3.1 The wildcard star form . . . . . . . . . . . . . . . . . . . 10 5.3.2 The set star form . . . . . . . . . . . . . . . . . . . . . 10 5.3.3 The range star form . . . . . . . . . . . . . . . . . . . . 11 5.3.4 The prefix star form . . . . . . . . . . . . . . . . . . . . 13 5.3.5 The suffix star form . . . . . . . . . . . . . . . . . . . . 14 6. S-expression comparison . . . . . . . . . . . . . . . . . . 15 7. Security considerations . . . . . . . . . . . . . . . . . . 17 8. Acknowledgment . . . . . . . . . . . . . . . . . . . . . . . 18 References . . . . . . . . . . . . . . . . . . . . . . . . . 19 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . 20 A. Collected Grammar . . . . . . . . . . . . . . . . . . . . . 21 B. Representing hierarchies . . . . . . . . . . . . . . . . . . 23 C. Representing Security Connection . . . . . . . . . . . . . . 26 Intellectual Property and Copyright Statements . . . . . . . 27 Hedberg & Bandmann Expires July 1, 2004 [Page 2] Internet-Draft S-expression based Authorization service January 2004 1. Abstract This document describes restricted S-expressions as they are used for storing and querying for access rights within the SPOCP (Simple POlicy Control Protocol) project. We describe the restrictions we have made to basic S-expressions and also the theory that allows us to use S-expressions in a policy engine. Hedberg & Bandmann Expires July 1, 2004 [Page 3] Internet-Draft S-expression based Authorization service January 2004 2. Introduction The aim of the SPOCP project is to first develop a model for a generalized authorization service server and then to implement such a server. Generalized in this context means that it shall be equally good in supporting several different types of applications and that one and the same server shall be able to simultaneously support several applications. To achieve this goal we needed to design a policy engine that could evaluate policies without knowing what applications the policies referred to. The first step towards this goal was to pick a rule syntax that was independent of the applications, and we think we have found such a syntax in S-expressions [s-expression]. The goal of this document is to describe how S-expressions can be used in a generalized authorization service, and what restrictions we have applied to S-expressions to make them really useful. The two companion documents [spocp_prot] and [spocp_prot_tcp] describes the Simple Policy Control Protocol and one implementation of it. The terms used in this draft is defined in [RFC2828]. Hedberg & Bandmann Expires July 1, 2004 [Page 4] Internet-Draft S-expression based Authorization service January 2004 3. Background S-expressions is not something new on the Internet arena, "The Simple Public Key Infrastructure" (SPKI) working group within the IETF, based its work on S-expressions. They also made restrictions on the syntax of the S-expressions (See for instance [RFC2693]), something we have built on in our work. In contrast to the SPKI work we are not dealing with certificates but have instead concentrated on using S-expressions as a policy language syntax. A language suitable to express both access policies and queries for permissions. The differences between restricted S-expressions as defined by SPKI and the restrcited S-expressions defined in this document are slight but significant. They can be enumerated as: 1. We have added a companion to prefix called suffix 2. We do not distinguish between ALPHA and BINARY, there are treated as one and the same 3. We have added the restriction that all lists in a set construct have to have different tags An important change is that we have replaced the AIntersect operation with a partial order (pre-order, strictly speaking) compatible with AIntersect. In order to guarantee completeness of the decision algorithm described in section 6, the restriction in item 4 above is needed (cf. [spki_authz]). Hedberg & Bandmann Expires July 1, 2004 [Page 5] Internet-Draft S-expression based Authorization service January 2004 4. Problems with Access Control Lists There are several problems with ACLs as they are normally used in applications, that disappear if access control is based on policy articulated in S-expressions. We list some of these problems below and explain how they can be handled in a authorization policy written using S-expressions. 1. The identity of future clients has to be known An application that wants to use S-expressions for authorization decisions, has a template for S-expression construction. Whether a token representing the identity of the client is part of that template or not, is a local matter and irrelevant to the use of S-expressions. Hence neither the application nor the authorization system needs to know the identity of the client. 2. ACLs are static When constructing the rules, you might not know or care about who will fulfill the restrictions when an access right is requested. Even if a rule appears to be static, the set of persons and/or entities that fulfills the restrictions might be highly dynamic. 3. The application has to have all the information necessary for making the access decision. It is not a problem if the application does not have access to all the necessary information, as long as the Spocp server, or an application it can use, has. Hedberg & Bandmann Expires July 1, 2004 [Page 6] Internet-Draft S-expression based Authorization service January 2004 5. Restricted S-expressions for authorization 5.1 Simple S-expressions A simple S-expression is a nested list enclosed in matching "(" and ")". The first element in the list MUST be an atom (string) and is the "tag" or "name" of the object represented by the list. With that exception, every element in the list may in turn be a S-expression. Note that empty lists are not allowed. As in SPKI, we have chosen Rivest's compact "canonical form", see [s-expression], as our internal representation of an S-expression. A complete description of restricted S-expressions using ABNF [RFC2234] is given in Appendix A . S-expressions are used at the core in the authorization server, and may be sent from a client to a server. If they are, the canonical form is to be used [s-expression]. A canonical S-expression is formed from octet strings (that is every octet can assume any byte value between and including 0x00 and 0xFF), each prefixed by its length. The length of a byte string is a non-negative ASCII decimal number, with no leading "0" digits, terminated by ":". The canonical form is a unique representation of an S-expression and is used as the input to all hash and signature functions. s-expr = "(" tag *s-part ")" tag = octet-string s-part = octet-string / s-expr / star-form octet-string = decimal ":" 1*octet ; The number of octets should be equal to the decimal specification decimal = nzdigit *digit nzdigit = "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" digit = "0" / nzdigit octet = %x00-FF star-form = "(1:*" [ set / range / prefix / suffix ] ")" The specification of the star forms can be found in Section 5.3. *Note:* Even though the canonical form is the one described by the Hedberg & Bandmann Expires July 1, 2004 [Page 7] Internet-Draft S-expression based Authorization service January 2004 ABNF definition, the so called advanced form will be used in the examples in this document since it is much easier for humans to read. Example: (5:spocp(8:Resource6:mailer)) -- canonical form (spocp (Resource mailer)) -- advanced form These are two representations of the same S-expression, consisting of an octet string (the tag) "spocp" and another S-expression, that consists of two octet strings "Resource" and "mailer". 5.2 Basic theory In order to be able to use S-expressions for authorization, two criteria have to be fulfilled. THe first is that S-expressions must have the expressive power needed for conveniently stating an authorization policy. Our practical experience has convinced us that this criterion is satisfied, The other thing needed is the definition of a binary relation '<=', that can be used to order S-expressions. We want a relation where A '<=' B means that rule A is less permissive than rule B. Once the relation is defined, we also need an efficient way to decide (compute) if A '<=' B. A decision algorithm for restricted S-expressions is given in Section 6 We begin by defining '<=' for simple S-expressions; in the next subsection, '<=' will be extended to general restricted S-expressions. In [spki_authz] '<=' has been defined inductively as follows: Let x and y be simple S-expressions then 1. if x and y are simple 'atomic' elements (strings) then x '<=' y if and only if x = y. 2. If x = (x[0] x[1] ... x[N]) and y = (y[0] y[1] ... y[M] ), then x '<=' y if and only if N >= M and x[i] '<=' y[i], for i = 0, ..., M Example 1, If, x = (http (page index.html)(action GET)(user olav)) then x is intended to represent the authorization to the user olav to read ( in HTTP terms GET ) the page index.html using HTTP. Let Hedberg & Bandmann Expires July 1, 2004 [Page 8] Internet-Draft S-expression based Authorization service January 2004 y = (http (page index.html)(action GET)(user)) Then y means almost the same as x except for the fact that the permission to read index.html is given to any user. By definition x '<=' y. Furthermore, if z = (http (page index.html)(action)(user olav)) then z means almost the same as x except for the fact that now Olav can perform any operation on index.html that HTTP supports. Note that y and z are unrelated with respect to the partial order '<='. From the example above it should be obvious that the application generating these S-expressions has restrictions on the format of them, restrictions that correspond to the desired semantics. It is essential to the idea of a centralized authorization service that this semantic does not require a modification of the '<=' relation. The intended use of S-expressions for authorization evaluation is as follows. Assume that a certain principal P wants to perform an action A requiring the authorization X. Then P has the authorization for A if and only if P has the some authorization Y satisfying X '<=' Y. More about partial ordering in Section 6, we have to introduce you to star forms first. So by the use of S-expressions, and the partial order we get an important benefit: we can build an authorization system that works independently of what the policies actually mean. 5.3 Star forms To extend simple S-expressions to restricted S-expressions we have to add a new type of element: star forms. These can be divided into the following categories: wildcard set range prefix suffix Despite their list-like apearence (see below), starforms are not lists. They are succinct ways of representing every element that fits Hedberg & Bandmann Expires July 1, 2004 [Page 9] Internet-Draft S-expression based Authorization service January 2004 into a specific set. Hence, restricted S-expressions (simple S-expressions extended with star forms) really represent _sets_ of simple S-expressions. In order to preserve the intended semantics for the ordering '<=' (from the previous subsection), the only possible way to extend this relation to _sets_ of simple S-expressions, is to define: X '<=' Y if and only if every simple S-expression A in X is bounded by some simple S-expression B in Y (i.e. A '<=' B in the sense of previous subsection) An algorithm for effective computation of this relation is given in section 6 (cf. [spki_authz]). 5.3.1 The wildcard star form Is written '(*)' and matches any single octet string or s-expression. 5.3.2 The set star form Described by the ABNF set = "3:set" 1*s-expr They are a way of specifying a limited set of elements, a group. Example: (* set apple orange lemon) The important difference between this star form 'set' and the one in SPKI ([RFC2693]), is that here, 'set' is restricted in the following way: all lists appearing at the top level in a 'set'-construction MUST have different tags. This restriction implies completeness of the algorithm for computation of '<=' presented in Section 6. The following is an example of a valid restricted S-expression: (t (* set (a x) (b (a y)) (c) a) a) and this one is not: (t (* set (a (x y)) (b c) (a d))) Furthermore, to simplify and streamline the algorithm description in Section 6, we will also make the trivial restriction on the set star form, that a set is not permitted to contain a set as a top level element. E.g. Hedberg & Bandmann Expires July 1, 2004 [Page 10] Internet-Draft S-expression based Authorization service January 2004 (* set (* set x y) z ) can not be part of a restricted S-expression. While, on the other hand, (* set x y z ) can. Immediately nested sets can always be eliminated in this fashion (without changing the semantics). Note that deeper nestings (i.e. within lists) are permitted. E.g. (* set (x (* set y z)) t) can be part of a restricted S-expression. 5.3.3 The range star form Since one needs to know the type when one deals with ranges, there are a couple of types predefined. alpha: which is normal text numeric: non-negative numbers between 0 and 4294967295 (UINT32_MAX) date: date specification of the form YYYY-MM-DD_HH:MM:SS or using the notation used by strftime %G:%m:%d_%H:%M:%S time: time of day specification HH:MM:SS ipv4: the IPv4 address in the normal dot notation format ipv6: IPv6 address in their normal notation In the specification of a range you may use constants in these types in combination with relational operators in a straight forward way. The ABNF specification for range is: rangespec = alpha / numeric / date / time / ipv4 / ipv6 alpha = "5:alpha" [lole utf8string [goge utf8string]] / [goge utf8string [lole utf8string]] numeric = "7:numeric" [ lole number [ goge number ]] / [ goge number [ lole number ]] date = "4:date" [ goge dat [ lole dat ]] / [ lole dat [ goge dat ]] Hedberg & Bandmann Expires July 1, 2004 [Page 11] Internet-Draft S-expression based Authorization service January 2004 time = "4:time" [ lole hms [ goge hms ]] / [ goge hms [ lole hms ]] ipv4 = "4:ipv4" [ lole ipnum [ goge ipnum ]] / [ goge ipnum [lole ipnum ]] ipv6 = "4:ipv6" [ lole ip6num [ goge ip6num ]] / [ goge ip6num [lole ip6num ]] lole = "2:lt" / "2:le" goge = "2:gt" / "2:ge" number = decimal ":" 1*digit dat = decimal ":" date-time ; date format as specified by RFC3339 date-fullyear = 4DIGIT date-month = 2DIGIT ; 01-12 date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 dependent on month/year time-hour = 2DIGIT ; 00-23 time-minute = 2DIGIT ; 00-59 time-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second rules time-secfrac = "." 1*DIGIT time-numoffset = ("+" / "-") time-hour ":" time-minute time-offset = "Z" / time-numoffset partial-time = time-hour ":" time-minute ":" time-second full-date = date-fullyear "-" date-month "-" date-mday full-time = partial-time time-offset date-time = full-date "T" full-time hms = decimal ":" partial-time Hedberg & Bandmann Expires July 1, 2004 [Page 12] Internet-Draft S-expression based Authorization service January 2004 ipnum = decimal ":" 1*3digit "." 1*3digit "." 1*3digit "." 1*3digit ip6num = IPv6address ; as defined in [RFC2373] utf8string = decimal ":" 1*UTF8 UTF8 = %x01-09 / %x0B-0C / %x0E-7F / UTF8-2 / UTF8-3 / UTF8-4 / UTF8-5 / UTF8-6 UTF8-1 = %x80-BF UTF8-2 = %xC0-DF UTF8-1 UTF8-3 = %xE0-EF 2UTF8-1 UTF8-4 = %xF0-F7 3UTF8-1 UTF8-5 = %xF8-FB 4UTF8-1 UTF8-6 = %xFC-FD 5UTF8-1 Finally, note that there is the extra requirement (compared to SPKI) that a range star form always must contain at least two elements. In other words, redundant singleton ranges MUST be replaced by (single) atoms. Example (worktime (* range time ge 08:00:00 le 17:00:00)) or (* range numeric l 15 ge 10) which is the same as (* set 10 11 12 13 14) If in a date specification, time-offset is not 'Z' but a time-numoffset the equivalent date without time-numoffset must be calculated before the value is used. "2002-12-31T23:59:59+01" must be transform to "2003-01-01T00:59:59" before usage. 5.3.4 The prefix star form Used to represent sets of strings that all have the same prefix ABNF: Hedberg & Bandmann Expires July 1, 2004 [Page 13] Internet-Draft S-expression based Authorization service January 2004 prefix = "6:prefix" utf8string Example (file (* prefix conf)) This expression will match any expression with the tag "file", whose second element is an octet string that starts with the string "conf". 5.3.5 The suffix star form Used to represent sets of strings that all have the same suffix ABNF: suffix = "6:suffix" utf8string Example (file (* suffix pdf)) This expression will match any expression with the tag "file", whose second element is an octet string that ends with the string "pdf". Hedberg & Bandmann Expires July 1, 2004 [Page 14] Internet-Draft S-expression based Authorization service January 2004 6. S-expression comparison In this section we present an effective algorithm ( from [spki_authz]) to decide the other relation '<=' defined in Section 5.2 and Section 5.3. Recall the definition of '<=' for simple S-expressions from Section 5.2: For two octet strings A and B, A '<=' B if and only if A == B If S and T are lists, then S '<=' T if S has at least as many elements as T and every element in S is '<=' the corresponding element in T (if S has more elements than T, just ignore the extra elements in S). Example: (fruit apple large red) '<=' (fruit apple) (fruit apple (size large) red) '<=' (fruit apple (size) red) and these are not '<=' (fruit apple large red) compared to (fruit apple (large) red) (fruit apple large red) compared to (fruit apple red large) order is absolutely vital (apple (weight 100)(color red)) is not '<=' (apple (color red)(weight 100)) Thus, in the case of simple S-expressions the definition of '<=' immediately gives us an algorithm. For general restricted S-expressions the following recursive procedure gives us an algorithm. Before the algorithm can be applied, however, the restricted S-expressions which are to be compared need to be normalized. To normalize an element of a restricted S-expression means that in each set star form, ranges of the same type and atoms are joined together in single ranges, whenever possible. E.g. (* set 44 (* range numeric ge 4 le 8) 11 (* range numeric ge 6 le 10)) normalizes to Hedberg & Bandmann Expires July 1, 2004 [Page 15] Internet-Draft S-expression based Authorization service January 2004 (* set (* range numeric ge 4 le 11) 44) The "normal form" is obviously not syntactically unique (even though it is semantically unique), but further reductions should not be possible. After normalization, the algorithm proceeds as follows. If any of the nine cases below applies, the comparison returns true, otherwise it returns false. S '<=' T, when S and T are normalized elements of S-expressions, if: 1. T = (*) 2. S and T are strings and S == T 3. S is a string and T is a set, range, suffix or prefix star form that contains S 4. S and T are range-forms where T contains S 5. S and T are prefix-forms where T contains S 6. S and T are suffix-forms where T contains S 7. S = (X[0] ... X[m]), T = (Y[0] ... Y[n]) n &lt= m and X[i] '<=' Y[i] for i = 0,...,n 8. S = (* set X[0] ... X[m]) and X[i] '<=' T for all i=0,..,m 9. T = (* set Y[0] ... Y[n]) and S '<=' Y[i] for some i=0,..,n Strictly speaking, there are a few other (trivial) pathological cases to deal with, see [spki_authz]. In particular, here we have made the simplifying assumption that range and prefix/suffix star forms are incomparable w.r.t. '<='. Finally, a proof of soundness and completeness for this algorithm, when applied to restricted S-expressions, can also be found in [spki_authz]. Hedberg & Bandmann Expires July 1, 2004 [Page 16] Internet-Draft S-expression based Authorization service January 2004 7. Security considerations Authorization decisions obviously have an immediate impact on security. Concerning the choice of S-expressions as a syntax for representing access policies, the only real security concern, on this level, is whether using S-expressions in some way, is inherently insecure. On a theoretical level it has been shown (see [spki_authz]) that the algorithm to decide the '<=' relation on restricted S-expressions is both sound (never falsely claims that the relation holds) and complete (whenever the relation holds, the algorithm returns 'true'). Hedberg & Bandmann Expires July 1, 2004 [Page 17] Internet-Draft S-expression based Authorization service January 2004 8. Acknowledgment This work originated at at the Swedish Institute of Computer Science (SICS). Babak Sadighi had the original thoughts on management of rigths, Olav Bandmann brought S-expressions into the process and together with Mads Dam he did the mathematical evaluation of the less permissive relationship between S-expressions. The Spocp project is funded by SUNET (The Swedish University Network), UNINETT ( The Norwegian University Network), the universities in Ume…, Uppsala, Stockholm and Lund, The Karolinska Intitute and the NyA project. Torbj÷rn Wiberg is the project leader for the Spocp project and has been very active in the project work. Leif Johansson and Ola Gustafsson has been heavily involved in the technical development of the project. Hedberg & Bandmann Expires July 1, 2004 [Page 18] Internet-Draft S-expression based Authorization service January 2004 References [RFC1738] Berners-Lee, T., Masinter, L. and M. McCahill, "Uniform Resource Locators (URL)", RFC 1738, December 1994. [RFC2828] Shirey, R., "Internet Security Glossary", RFC 2828, May 2000. [RFC2234] Crocker, D. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", RFC 2234, November 1997. [RFC2252] Wahl, M., Coulbeck, A., Howes, T. and S. Kille, "Lightweight Directory Access Protocol (v3): Attribute Syntax Definitions", RFC 2252, December 1997. [RFC2253] Wahl, M., Kille, S. and T. Howes, "Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names", RFC 2253, December 1997. [RFC2373] Hinden, R. and S. Deering, "IP Version 6 Addressing Architecture", RFC 2373, July 1998. [RFC2693] Ellison, C., Frantz, B., Lampson, B., Rivest, R., Thomas, B. and T. Ylonen, "SPKI Certificate Theory", RFC 2693, September 1999. [RFC2712] Medvinsky, A. and M. Hur, "Addition of Kerberos Cipher Suites to Transport Layer Security (TLS)", RFC 2712, October 1999. [RFC2904] Vollbrecht, J., Calhoun, P., Farrell, S., Gommans, L., Gross, G., de Bruijn, B., de Laat, C., Holdrege, M. and D. Spence, "AAA Authorization Framework", RFC 2904, August 2000. [RFC3339] Klyne, G. and C. Newman, "Date and Time on the Internet: Timestamps", RFC 3339, July 2002. [SDSI] Rivest, R. and B. Lampson, "SDSI - A Simple Distributed Security Infrastructure", <http://theory.lcs.mit.edu/~cis/ sdsi.htm>. [sexp_code] Rivest, R., "code and description of S-expressions", <http://theory.lcs.mit.edu/~rivest/sexp.html>. [s-expression] Rivest, R., "S-Expressions", ID draft-rivest-sexp-00.txt, Hedberg & Bandmann Expires July 1, 2004 [Page 19] Internet-Draft S-expression based Authorization service January 2004 May 1997, <http://theory.lcs.mit.edu/~rivest/sexp.txt>. [spocp_prot] Hedberg, R., "The Simple Policy Protocol". [spocp_prot_tcp] Hedberg, R., "The Simple Policy Control Protocol over TCP/ IP". [spki_authz] Bandmann, O. and M. Dam, "A Note On SPKI's Authorisation syntax", <http://www.cs.dartmouth.edu/~pki02/Bandmann/>. Authors' Addresses Roland Hedberg Stockholm University Kasamark 114 Umea 90586 Sweden Phone: +46 90 147275 EMail: [email protected] Olav Bandmann Industrilogik L4i AB Odengatan 87 Stockholm 11322 Sweden EMail: [email protected] Hedberg & Bandmann Expires July 1, 2004 [Page 20] Internet-Draft S-expression based Authorization service January 2004 Appendix A. Collected Grammar This appendix contains the complete ABNF [RFC2234] grammar for all the syntax specified by this document. By itself, however, this grammar is incomplete. It refers by name to syntax rules that are defined by RFC 3339. Rather than reproduce those definitions here, and risk unintentional differences between the two, this document simply refers the reader to RFC 3339 for the remaining definitions. s-expr = "(" tag *s-part ")" tag = octet-string s-part = octet-string / s-expr / star-form octet-string = decimal ":" 1*octet ; The number of octets must be equal to the decimal specification decimal = nzdigit *digit nzdigit = "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" digit = "0" / nzdigit octet = %x00-FF star-form = "(1:*" [ set / range / prefix / suffix ] ")" set = "3:set" 1*s-expr range = "5:range" rangespec rangespec = alpha / numeric / date / time / ipv4 / ipv6 alpha = "5:alpha" [lole utf8string [goge utf8string]] / [goge utf8string [lole utf8string]] numeric = "7:numeric" [ lole number [ goge number ]] / [ goge number [ lole number ]] date = "4:date" [ goge dat [ lole dat ]] / [ lole dat [ goge dat ]] time = "4:time" [ lole hms [ goge hms ]] / [ goge hms [ lole hms ]] Hedberg & Bandmann Expires July 1, 2004 [Page 21] Internet-Draft S-expression based Authorization service January 2004 ipv4 = "4:ipv4" [ lole ipnum [ goge ipnum ]] / [ goge ipnum [lole ipnum ]] ipv6 = "4:ipv6" [ lole ip6num [ goge ip6num ]] / [ goge ip6num [lole ip6num ]] lole = "2:lt" / "2:le" goge = "2:gt" / "2:ge" number = decimal ":" 1*digit dat = decimal ":" date-time ; date-time format as specified by RFC3339 hms = decimal ":" partial-time ; partial-time as define by RFC3339 ipnum = decimal ":" 1*3digit "." 1*3digit "." 1*3digit "." 1*3digit ip6num = IPv6address ; as defined in [RFC2373] utf8string = decimal ":" 1*UTF8 UTF8 = %x01-09 / %x0B-0C / %x0E-7F / UTF8-2 / UTF8-3 / UTF8-4 / UTF8-5 / UTF8-6 UTF8-1 = %x80-BF UTF8-2 = %xC0-DF UTF8-1 UTF8-3 = %xE0-EF 2UTF8-1 UTF8-4 = %xF0-F7 3UTF8-1 UTF8-5 = %xF8-FB 4UTF8-1 UTF8-6 = %xFC-FD 5UTF8-1 prefix = "6:prefix" utf8string suffix = "6:suffix" utf8string typespecific = *UTF8 Hedberg & Bandmann Expires July 1, 2004 [Page 22] Internet-Draft S-expression based Authorization service January 2004 Appendix B. Representing hierarchies When we have been working with S-expression we have found it useful to split queries and rules into three parts: Resource The resource that someone want to use or perform some action on Action The action that is to be performed on the said resource Subject The entity that wants to perform the action on the resource In many situations your application has organised and named both subjects, sctions and resources as hierarchies. If you want to take full advantage of the hierarchical names in rules and queries you have to study carefully how S-expressions are evaluated by the policy engine. Assume that a name is represented as (name p[0] ... p[n]) where p[0] is the part of the name that is closest to the root of the hierarchy. Then you can represent the whole space of names below p[0], by just specifying the top part of the namespace: (name p[0]). Correspondingly you can represent a specific part of the namespace by defining a larger part of the hierarchy (name p[0] ... p[m]), m < n. But what if you would like to represent every object who has the same last name p[n] ? An example of when this would be is if you defined role names within a organization as a concatenation of the organization name, the name of all the organizational units from the top with the roletype. Like this: (role o ou[0] ... ou[n] r) "(role UmU Umdac boss)" would then be the rolename for the boss of the organizational unit Umdac within the organization UmU. Using this structure you could say (role UmU Umdac) and mean every role within that organizational unit and all the organizational units below. But if you said (role UmU boss ) you would refer to the boss of UmU and not all the bosses within UmU. This since (role UmU umdac boss) is not '<=' (role UmU boss). So adding a role type to a list of O and OU's would mean exactly that role at that level in the organization. If you instead would define the role name to be represented as (role r o ou[0] .. ou[n]), then you could address every specific roletype within the organization by writing things like (role boss UmU), which would then mean every 'boss' within the organization UmU. This follows since (role boss UmU OU) is '<=' (role boss UmU). On the other hand you could not specifically target the boss at UmU using Hedberg & Bandmann Expires July 1, 2004 [Page 23] Internet-Draft S-expression based Authorization service January 2004 this representation. One can add complexity to this by using role types that are hierarchical such that the name would be (role o ou[0] ... ou[n] r[0] ... r[m]) or (role r[0] ... r[m] o ou[0] ... ou[n]). By using the first form you could address every role within a role hierarchy at a specific place in the organization hierarchy but not in the whole organization tree. Using the later role you could address one whole subtree of the role hierarchy anywhere within a subtree of the organizational hierarchy. (role UmU admin finance) '<=' (role UmU admin) (role UmU umdac admin) is not '<=' (role UmU admin) and (role admin UmU umdac) '<=' (role admin UmU) (role admin finance UmU) is not '<=' (role admin UmU) Remember that the decision of the meaning of a particular rule is taken when modelling the authorisation policy for a particular application. The Policy Engine does not know anything about the application. It only compares queries to rules according to builtin evaluation rules for restricted S-expressions, as described in this document. What we are discussing in this section are the consequences of choosing certain meanings of a particular S-expression, given how the Policy Engine tests for the '<='-relation. These properties of the Policy Engine must be fully understood by those deciding the structures of rules and queries. When you have two hierarchies that are linked to each other it might be best to decouple them and make two lists of them, (role (org o ou[0] ... ou[n])(type r[0] ... r[m])) which gives you freedome to express the relationship "any role whithin a role hierarchy anywhere within a organization hierarchy". (role (org UmU) (type admin finance)) '<=' (role (org UmU) (type admin)) (role (org UmU umdac) (type admin)) '<=' (role (org UmU) (type admin)) There is of course nothing that prevents you from using one nameform in one set of rules and another form in another as long as the queries you pose to the policy engine use the appropriate one. What you should make certain though is that the form you choose gives you Hedberg & Bandmann Expires July 1, 2004 [Page 24] Internet-Draft S-expression based Authorization service January 2004 the possibility to express exactly what you are aiming for. Hedberg & Bandmann Expires July 1, 2004 [Page 25] Internet-Draft S-expression based Authorization service January 2004 Appendix C. Representing Security Connection Lots of applications uses SSL/TLS to protect the connection between a client and a server. This is a good reason for specify how the information about such a connection should be represented in a S-expression. The information present are: SSL/TLS version Cipher Suite used SubjectDN IssuerDN So a plausible structure which then would describe the connection as viewed from one of the partners ( either the client of the server) would be: (TransportLayerSec (protocolVersion <major> <minor>) (chipherSuite <ciphersuite> ) (autname "X509" (subject <subjectDN> ) (issuer <issuerDN> ))) If X.509 certificates are in use, if instead kerberos [RFC2712] was used that would only change the later part of the structure: (TransportLayerSec (protocolVersion <major> <minor>) (chipherSuite <ciphersuite> ) (autname "gss-name" (uid <uid> ) (realm <realm> ))) Remembering that this connection information is about the connection between a client and a application server that gives access to some resource, and that the application server probably has its restrictions on what kind of connections, ciphersuites and clientcertificates combinations it will accept. So this is about having a second opinion from the owner of the resource on which combination it allows. If it is more restrictive than the application server you might end up with the situation where the client gets a SSL/TLS protected connection to the server but no data will flow over the connection because the resource owner demands that a different ciphersuite must be used. Hedberg & Bandmann Expires July 1, 2004 [Page 26] Internet-Draft S-expression based Authorization service January 2004 Intellectual Property Statement The IETF takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on the IETF's procedures with respect to rights in standards-track and standards-related documentation can be found in BCP-11. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification can be obtained from the IETF Secretariat. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to practice this standard. Please address the information to the IETF Executive Director. Full Copyright Statement Copyright (C) The Internet Society (2004). All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assignees. This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION Hedberg & Bandmann Expires July 1, 2004 [Page 27] Internet-Draft S-expression based Authorization service January 2004 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Acknowledgment Funding for the RFC Editor function is currently provided by the Internet Society. Hedberg & Bandmann Expires July 1, 2004 [Page 28]
42,659
Common Lisp
.sexp
751
50.595206
72
0.678421
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
0681b33fbe41d7d767f6d462775982b10d27deedf44b60d87bbb1a68318d177d
6,262
[ -1 ]
6,267
expressions.sexp
informatimago_lisp/languages/c11/tests/expressions.sexp
;;-*- mode:lisp -*- (translation-unit (external-declaration (declaration-specifiers (type-specifier int)) (declarator |aa| nil) (declarator |bb| (unary 2)) (declarator |cc| (unary 3)) (declarator (pointer |dd|) (unary (& (unary |aa|)))) (declarator (function (pointer |g|) (parameters (parameter (specifier (type-specifier int)) |x|) (parameter (specifier (type-specifier char)) |c|))))) (external-declaration (declaration-specifier (type-specifier int)) (function-declarator (function |f| (parameters (parameter (specifier (type-specifier int)) |argument|) (parameter (specifier (type-specifier char)) |ch|) (parameter (specifier (type-specifier long) (type-specifier int)) |lg|))) () (progn (return 42))))) ((translation-unit (external-declaration ((type-specifier void)) ((declarator (function nil |f_void|)))) (external-declaration ((type-specifier bool)) ((declarator (function nil |f_bool|)))) (external-declaration ((type-specifier char)) ((declarator (function nil |f_char|)))) (external-declaration ((type-specifier short)) ((declarator (function nil |f_short|)))) (external-declaration ((type-specifier short) (type-specifier int)) ((declarator (function nil |f_short_int|)))) (external-declaration ((type-specifier long)) ((declarator (function nil |f_long|)))) (external-declaration ((type-specifier long) (type-specifier int)) ((declarator (function nil |f_long_int|)))) (external-declaration ((type-specifier long) (type-specifier long)) ((declarator (function nil |f_long_long|)))) (external-declaration ((type-specifier signed) (type-specifier char)) ((declarator (function nil |f_signed_char|)))) (external-declaration ((type-specifier signed) (type-specifier short)) ((declarator (function nil |f_signed_short|)))) (external-declaration ((type-specifier signed) (type-specifier short) (type-specifier int)) ((declarator (function nil |f_signed_short_int|)))) (external-declaration ((type-specifier signed) (type-specifier long)) ((declarator (function nil |f_signed_long|)))) (external-declaration ((type-specifier signed) (type-specifier long) (type-specifier int)) ((declarator (function nil |f_signed_long_int|)))) (external-declaration ((type-specifier signed) (type-specifier long) (type-specifier long)) ((declarator (function nil |f_signed_long_long|)))) (external-declaration ((type-specifier unsigned) (type-specifier char)) ((declarator (function nil |f_unsigned_char|)))) (external-declaration ((type-specifier unsigned) (type-specifier short)) ((declarator (function nil |f_unsigned_short|)))) (external-declaration ((type-specifier unsigned) (type-specifier short) (type-specifier int)) ((declarator (function nil |f_unsigned_short_int|)))) (external-declaration ((type-specifier unsigned) (type-specifier long)) ((declarator (function nil |f_unsigned_long|)))) (external-declaration ((type-specifier unsigned) (type-specifier long) (type-specifier int)) ((declarator (function nil |f_unsigned_long_int|)))) (external-declaration ((type-specifier unsigned) (type-specifier long) (type-specifier long)) ((declarator (function nil |f_unsigned_long_long|)))) (external-declaration ((type-specifier float)) ((declarator (function nil |f_float|)))) (external-declaration ((type-specifier double)) ((declarator (function nil |f_double|)))) (external-declaration ((type-specifier complex)) ((declarator (function nil |f_complex|)))) (external-declaration ((type-specifier imaginary)) ((declarator (function nil |f_imaginary|)))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier void)) ((declarator |v_es_void|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier bool)) ((declarator |v_es_bool|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier char)) ((declarator |v_es_char|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier short)) ((declarator |v_es_short|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier short) (type-specifier int)) ((declarator |v_es_short_int|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier long)) ((declarator |v_es_long|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier long) (type-specifier int)) ((declarator |v_es_long_int|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier long) (type-specifier long)) ((declarator |v_es_long_long|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier signed) (type-specifier char)) ((declarator |v_es_signed_char|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier signed) (type-specifier short)) ((declarator |v_es_signed_short|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier signed) (type-specifier short) (type-specifier int)) ((declarator |v_es_signed_short_int|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier signed) (type-specifier long)) ((declarator |v_es_signed_long|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier signed) (type-specifier long) (type-specifier int)) ((declarator |v_es_signed_long_int|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier signed) (type-specifier long) (type-specifier long)) ((declarator |v_es_signed_long_long|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier unsigned) (type-specifier char)) ((declarator |v_es_unsigned_char|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier unsigned) (type-specifier short)) ((declarator |v_es_unsigned_short|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier unsigned) (type-specifier short) (type-specifier int)) ((declarator |v_es_unsigned_short_int|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier unsigned) (type-specifier long)) ((declarator |v_es_unsigned_long|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier unsigned) (type-specifier long) (type-specifier int)) ((declarator |v_es_unsigned_long_int|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier unsigned) (type-specifier long) (type-specifier long)) ((declarator |v_es_unsigned_long_long|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier float)) ((declarator |v_es_float|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier double)) ((declarator |v_es_double|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier complex)) ((declarator |v_es_complex|))) (external-declaration ((storage-class-specifier extern) (storage-class-specifier static) (type-specifier imaginary)) ((declarator |v_es_imaginary|))) (external-declaration ((type-specifier void)) ((function-declarator (function nil |f_register|) nil (tagbody (declaration ((storage-class-specifier register) (type-specifier void)) (declarator |v_r_void|)) (declaration ((storage-class-specifier register) (type-specifier bool)) (declarator |v_r_bool|)) (declaration ((storage-class-specifier register) (type-specifier char)) (declarator |v_r_char|)) (declaration ((storage-class-specifier register) (type-specifier short)) (declarator |v_r_short|)) (declaration ((storage-class-specifier register) (type-specifier short) (type-specifier int)) (declarator |v_r_short_int|)) (declaration ((storage-class-specifier register) (type-specifier long)) (declarator |v_r_long|)) (declaration ((storage-class-specifier register) (type-specifier long) (type-specifier int)) (declarator |v_r_long_int|)) (declaration ((storage-class-specifier register) (type-specifier long) (type-specifier long)) (declarator |v_r_long_long|)) (declaration ((storage-class-specifier register) (type-specifier signed) (type-specifier char)) (declarator |v_r_signed_char|)) (declaration ((storage-class-specifier register) (type-specifier signed) (type-specifier short)) (declarator |v_r_signed_short|)) (declaration ((storage-class-specifier register) (type-specifier signed) (type-specifier short) (type-specifier int)) (declarator |v_r_signed_short_int|)) (declaration ((storage-class-specifier register) (type-specifier signed) (type-specifier long)) (declarator |v_r_signed_long|)) (declaration ((storage-class-specifier register) (type-specifier signed) (type-specifier long) (type-specifier int)) (declarator |v_r_signed_long_int|)) (declaration ((storage-class-specifier register) (type-specifier signed) (type-specifier long) (type-specifier long)) (declarator |v_r_signed_long_long|)) (declaration ((storage-class-specifier register) (type-specifier unsigned) (type-specifier char)) (declarator |v_r_unsigned_char|)) (declaration ((storage-class-specifier register) (type-specifier unsigned) (type-specifier short)) (declarator |v_r_unsigned_short|)) (declaration ((storage-class-specifier register) (type-specifier unsigned) (type-specifier short) (type-specifier int)) (declarator |v_r_unsigned_short_int|)) (declaration ((storage-class-specifier register) (type-specifier unsigned) (type-specifier long)) (declarator |v_r_unsigned_long|)) (declaration ((storage-class-specifier register) (type-specifier unsigned) (type-specifier long) (type-specifier int)) (declarator |v_r_unsigned_long_int|)) (declaration ((storage-class-specifier register) (type-specifier unsigned) (type-specifier long) (type-specifier long)) (declarator |v_r_unsigned_long_long|)) (declaration ((storage-class-specifier register) (type-specifier float)) (declarator |v_r_float|)) (declaration ((storage-class-specifier register) (type-specifier double)) (declarator |v_r_double|)) (declaration ((storage-class-specifier register) (type-specifier complex)) (declarator |v_r_complex|)) (declaration ((storage-class-specifier register) (type-specifier imaginary)) (declarator |v_r_imaginary|)))))) (external-declaration ((type-specifier int)) ((function-declarator (function (parameter ((type-specifier int)) (|argument|)) \f) nil (tagbody (declaration ((type-specifier int)) (declarator |aa|) (declarator |bb| 2) (declarator |cc| 3) (declarator (pointer nil |dd|) (& |aa|)) (declarator (function (parameter ((type-specifier int)) (\x)) (pointer nil \g)))) (declaration ((type-specifier int)) (declarator (array nil 3 |vector|) (compound-literal nil (1 2 3)))) (declaration ((type-specifier (struct |point| ((struct-declaration ((type-specifier int)) (struct-declarator \x)) (struct-declaration ((type-specifier int)) (struct-declarator \y)) (struct-declaration ((type-specifier char)) (struct-declarator (pointer nil |color_name|))) (struct-declaration ((type-specifier int)) (struct-declarator (array nil 3 |color_rgb|))) (struct-declaration ((type-specifier (struct |point| nil))) (struct-declarator (pointer nil |next|))) (struct-declaration ((type-specifier int)) (struct-declarator (function (parameter ((type-specifier int))) (pointer nil |method|)))))))) (declarator |point|)) (declaration ((type-specifier int)) (declarator |ivar|)) (declaration ((type-specifier int)) (declarator (pointer nil |pvar|))) (declaration ((type-specifier char)) (declarator (pointer nil |svar|))) (declaration ((type-specifier char)) (declarator (array nil nil |sliteral|) "literal")) (declaration ((type-specifier int)) (declarator \a 1)) (declaration ((type-specifier int)) (declarator \b 2)) (declaration ((type-specifier int)) (declarator \c 3)) (declaration ((type-specifier int)) (declarator \x 42)) (declaration ((type-specifier int)) (declarator |primary_expressions|)) (setf |ivar| |argument|) (setf |ivar| 42) (setf |svar| "hello") (setf |ivar| (+ 1 2)) (setf |svar| "Hello World") (declaration ((type-specifier int)) (declarator |unary_expressions|)) (setf |svar| (& (aref |sliteral| 0))) (setf |pvar| (& |ivar|)) (setf |ivar| (* |pvar|)) (setf |ivar| (+ |argument|)) (setf |ivar| (+ |argument|)) (setf |ivar| (+ (+ |argument|))) (setf |ivar| (- |argument|)) (setf |ivar| (- |argument|)) (setf |ivar| (- (- |argument|))) (setf |ivar| (~ |argument|)) (setf |ivar| (~ |argument|)) (setf |ivar| (! |argument|)) (setf |ivar| (! |argument|)) (setf |ivar| (size-of |argument|)) (setf |ivar| (size-of |argument|)) (setf |ivar| (size-of (compound-literal (type-name ((type-specifier int))) nil))) (setf |ivar| (align-of (type-name ((type-specifier int))))) (setf |ivar| (pre-increment |argument|)) (setf |ivar| (pre-decrement |argument|)) (declaration ((type-specifier int)) (declarator |postfix_expressions|)) (setf |ivar| (dot |point| \x)) (setf |ivar| (aref (dot |point| |color_rgb|) 0)) (setf |ivar| (ptr-op (dot |point| |next|) \x)) (setf |ivar| (aref (ptr-op (dot |point| |next|) |color_name|) 0)) (setf |ivar| (call (dot |point| |method|) (42))) (setf |ivar| (post-increment |argument|)) (setf |ivar| (post-decrement |argument|)) (setf |ivar| (post-increment (ptr-op (dot |point| |next|) \x))) (setf |ivar| (post-decrement (ptr-op (dot |point| |next|) \y))) (declaration ((type-specifier int)) (declarator |cast_expressions|)) (setf |ivar| (cast (type-name ((type-specifier int))) (aref |sliteral| 0))) (setf |ivar| (cast (type-name ((type-specifier int))) \a)) (setf |ivar| (cast (type-name ((type-specifier int))) \a)) (setf |ivar| (cast (type-name ((type-specifier int))) (call \f (0 97 1)))) (declaration ((type-specifier int)) (declarator |multiplicative_expressions|)) (setf |ivar| (* \a \x)) (setf |ivar| (* 2 3)) (setf |ivar| (* 3 \x)) (setf |ivar| (* \x 2)) (setf |ivar| (/ \a \x)) (setf |ivar| (/ 2 3)) (setf |ivar| (/ 3 \x)) (setf |ivar| (/ \x 2)) (setf |ivar| (% \a \x)) (setf |ivar| (% 2 3)) (setf |ivar| (% 3 \x)) (setf |ivar| (% \x 2)) (declaration ((type-specifier int)) (declarator |additive_expressions|)) (setf |ivar| (+ \a \x)) (setf |ivar| (+ 2 3)) (setf |ivar| (+ 3 \x)) (setf |ivar| (+ \x 2)) (setf |ivar| (- \a \x)) (setf |ivar| (- 2 3)) (setf |ivar| (- 3 \x)) (setf |ivar| (- \x 2)) (declaration ((type-specifier int)) (declarator |shift_expressions|)) (setf |ivar| (<< \a \x)) (setf |ivar| (<< 2 3)) (setf |ivar| (<< 3 \x)) (setf |ivar| (<< \x 2)) (setf |ivar| (>> \a \x)) (setf |ivar| (>> 2 3)) (setf |ivar| (>> 3 \x)) (setf |ivar| (>> \x 2)) (declaration ((type-specifier int)) (declarator |relational_expressions|)) (setf |ivar| (> \a \x)) (setf |ivar| (> 2 3)) (setf |ivar| (> 3 \x)) (setf |ivar| (> \x 2)) (setf |ivar| (< \a \x)) (setf |ivar| (< 2 3)) (setf |ivar| (< 3 \x)) (setf |ivar| (< \x 2)) (setf |ivar| (>= \a \x)) (setf |ivar| (>= 2 3)) (setf |ivar| (>= 3 \x)) (setf |ivar| (>= \x 2)) (setf |ivar| (<= \a \x)) (setf |ivar| (<= 2 3)) (setf |ivar| (<= 3 \x)) (setf |ivar| (<= \x 2)) (declaration ((type-specifier int)) (declarator |equality_expressions|)) (setf |ivar| (== \a \x)) (setf |ivar| (== 2 3)) (setf |ivar| (== 3 \x)) (setf |ivar| (== \x 2)) (setf |ivar| (!= \a \x)) (setf |ivar| (!= 2 3)) (setf |ivar| (!= 3 \x)) (setf |ivar| (!= \x 2)) (declaration ((type-specifier int)) (declarator |logic_expressions|)) (setf |ivar| (& \a \b)) (setf |ivar| (^ \a \b)) (setf |ivar| (\| \a \b)) (setf |ivar| (&& \a \b)) (setf |ivar| (|\|\|| \a \b)) (setf |ivar| (if \a (\b \c))) (declaration ((type-specifier int)) (declarator |assignment_expressions|)) (setf |ivar| |argument|) (+= |ivar| |argument|) (-= |ivar| |argument|) (*= |ivar| |argument|) (/= |ivar| |argument|) (%= |ivar| |argument|) (<<= |ivar| |argument|) (>>= |ivar| |argument|) (&= |ivar| |argument|) (^= |ivar| |argument|) (\|= |ivar| |argument|) (declaration ((type-specifier int)) (declarator |sequence_expressions|)) (progn (setf |ivar| \a) \b \c) (progn (setf |ivar| (progn (post-increment \a) (call \f (\b 99 42)) (+ (+ (* (* \a \x) \x) (* \b \x)) \c))) (+ (* (+ (* \a \x) \b) \x) \c)) (declaration ((type-specifier int)) (declarator \z (+ 1 (/ (* 2 3) 4)))) (return \z))))) (external-declaration ((type-specifier int)) ((function-declarator (function nil |main|) nil (tagbody (return 0)))))))
47,472
Common Lisp
.sexp
497
32.38833
222
0.248244
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
e8aff713ff359031ad6cb5ae42eeeb11bf17328b5001f2dbc6fa0e0337d0505e
6,267
[ -1 ]
6,269
test.sexph
informatimago_lisp/languages/linc/test.sexph
;;;; -*- mode:lisp -*- (.ifndef test-sexph (include <stdint.h>) (include <stdbool.h>) (declare-function checked-malloc ((size size-t)) -> (pointer void)) (declare-structure point (x float) (y float) (color uint32-t (bit 3))) (declare-enumeration object-type t-cons t-fixnum t-character t-string t-symbol) (declare-structure cons (car (struct object)) (cdr (struct object))) (declare-union values (kons cons) (fixv sint64-t) (flov double) (stri string) (symb symbol)) (declare-type object (struct (tag object-type) (value values))) (declare-constant max-objects uint32-t) (declare-variable next-object uint32-t) (declare-function cons ((car (pointer object)) (cdr (pointer object))) -> cons) (declare-function car ((kons (pointer object const))) -> (pointer object)) (declare-function cdr ((kons (pointer object const))) -> (pointer object)) (declare-function consp ((kons (pointer object const))) -> bool) ) (define-constant max-objects uint32-t 1024) (define-variable next-object uint32-t 0) (define-function cons ((car (pointer object)) (cdr (pointer object))) -> cons (let ((kons (checked-malloc (sizeof (* kons))))) (when (== kons NULL) (return NULL)) (= (-> kons tag) t-cons) (= (. (-> kons value) kons car) car) (= (. (-> kons value) kons cdr) cdr) (return kons))) (define-function car ((kons (pointer object const))) -> (pointer object) (check-type kons t-cons) (return (. (-> kons value) kons car))) (define-function cdr ((kons (pointer object const))) -> (pointer object) (check-type kons t-cons) (return (. (-> kons value) kons cdr))) (define-function consp ((object (pointer object const))) -> bool (check-type kons t-cons) (return (. (-> kons value) kons cdr)))
1,898
Common Lisp
.sexp
56
29.142857
78
0.631233
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
e9ae96f58d963032f46320cce4b1ef9bfa49cf74c6763e4e808837a44db01f2c
6,269
[ -1 ]
6,271
test-types.sexpc
informatimago_lisp/languages/linc/test-types.sexpc
;; -*- mode:lisp -*- (include <stdbool.h> <stdint.h>) (declare-type foo-c-t char) (declare-type foo-ui-t const unsigned int) (declare-type foo-n-t foo-c-t) (declare-type type-101-t char) (declare-type type-102-t signed char) (declare-type type-103-t unsigned char) (declare-type type-104-t short) (declare-type type-105-t signed short) (declare-type type-106-t short int) (declare-type type-107-t signed short int) (declare-type type-108-t unsigned short) (declare-type type-109-t unsigned short int) (declare-type type-110-t int) (declare-type type-111-t signed) (declare-type type-112-t signed int) (declare-type type-113-t unsigned) (declare-type type-114-t unsigned int) (declare-type type-115-t long) (declare-type type-116-t signed long) (declare-type type-117-t long int) (declare-type type-118-t signed long int) (declare-type type-119-t unsigned long) (declare-type type-120-t unsigned long int) (declare-type type-121-t long long) (declare-type type-122-t signed long long) (declare-type type-123-t long long int) (declare-type type-124-t signed long long int) (declare-type type-125-t unsigned long long) (declare-type type-126-t unsigned long long int) (declare-type type-127-t float) (declare-type type-128-t double) (declare-type type-129-t long double) (declare-type type-130-t bool) (declare-type type-131-t float complex) (declare-type type-132-t double complex) (declare-type type-133-t long double complex) (declare-type type-201-t char) (declare-type type-202-t char signed) (declare-type type-203-t char unsigned) (declare-type type-204-t short) (declare-type type-205-t short signed) (declare-type type-206-t int short) (declare-type type-207-t int short signed) (declare-type type-208-t short unsigned) (declare-type type-209-t int short unsigned) (declare-type type-210-t int) (declare-type type-211-t signed) (declare-type type-212-t int signed) (declare-type type-213-t unsigned) (declare-type type-214-t int unsigned) (declare-type type-215-t long) (declare-type type-216-t long signed) (declare-type type-217-t int long) (declare-type type-218-t int long signed) (declare-type type-219-t long unsigned) (declare-type type-220-t int long unsigned) (declare-type type-221-t long long) (declare-type type-222-t long long signed) (declare-type type-223-t int long long) (declare-type type-224-t int long long signed) (declare-type type-225-t long long unsigned) (declare-type type-226-t int long long unsigned) (declare-type type-227-t float) (declare-type type-228-t double) (declare-type type-229-t double long) (declare-type type-230-t bool) (declare-type type-231-t complex float) (declare-type type-232-t complex double) (declare-type type-233-t complex double long) (declare-structure point (x int) (y int)) (declare-union object (c char) (s short) (i int) (l long) (f float) (d double)) (declare-type point-t (struct (x int) (y int))) (declare-type object-t (union (c char) (s short) (i int) (l long) (f float) (d double))) (declare-type qobject-t (struct (c const volatile atomic char) (s const volatile short) (i const atomic int) (l const volatile atomic long) (f volatile atomic float) (d1 const double) (d2 const atomic double) (d3 volatile atomic double) (d4 const double) (d5 atomic double) (d6 double) (d7 const double))) (declare-type pflags-t (struct pflags (n int (bit 1)) (c int (bit 1)) (z int (bit 1)) (mode int (bit 3)) (supervisor int (bit 1)))) (declare-enumeration color color-black color-red (color-green 2) (color-blue 4)) (declare-type color-t (enum (black 0) red (green 2) (blue 4))) (declare-type colored-point-t (struct (x double) (y double) (color color-t))) (declare-type atomic-int-t (atomic int)) (declare-type atomic-unsigned-short-int-t (atomic unsigned short int)) ;; (declare-type atomic-volatile-unsigned-short-int-t (atomic volatile unsigned short int)) (declare-type atomic-foo-c-t (atomic foo-c-t)) (declare-type pointer-int-t (pointer int)) (declare-type pointer-unsigned-short-int-t (pointer unsigned short int)) ;; (declare-type pointer-const-volatile-const-unsigned-short-int-t (pointer const volatile const unsigned short int)) ;; (declare-type pointer-const-const-volatile-unsigned-short-int-t (pointer const const volatile unsigned short int)) (declare-type pointer-foo-c-t (pointer foo-c-t)) (declare-type pointer-colored-point-t (pointer colored-point-t)) (define-constant bufsize (unsigned int) 1000) (declare-type array-int-t (array int)) (declare-type array-int-42-t (array int 42)) (define-function foo () int (define-variable a int 0) (declare-type array-uint-42-t (array (unsigned int) static (= a 42))) (declare-type array-uint-4bufsize-t (array (unsigned int) static (= a (* bufsize 4)))) (declare-variable a1 array-uint-42-t) (declare-variable a2 array-uint-4bufsize-t) (= (aref a1 0) (aref a2 0)) (return a)) (declare-type function-int-int-t (function (int) int)) (declare-type function-int-void-noreturn-t (function (int) void)) (declare-type function-int-int-inline-t (function (int) int)) (declare-type function-int-x-int-int-t (function ((x int) (y int)) int)) (declare-type function-uint-x-uint-int-t (function ((unsigned int) (unsigned int) (varpt-star (pointer (array int *)))) int)) (declare-type flist-t (struct (count unsigned) (funs (array ((function ((p1 (pointer object-t)) (p2 (pointer char)) (i3 unsigned int)) int)))))) (declare-function cons ((car (pointer object-t)) (cdr (pointer object-t))) (pointer object-t)) (declare-function car ((cons (pointer object-t))) (pointer object-t)) (declare-function cdr ((cons (pointer object-t))) (pointer object-t)) (declare-type struct-of-array (struct (string (pointer char)) (pt (array int 3)) (varpt (pointer (array int))))) (declare-variable my-string (pointer char)) (declare-variable my-pt (array int 3)) (declare-variable my-vec-of-pt (array (array int 3) 10)) (declare-variable my-varpt (pointer (array int))) (declare-function fun-with-varpt-star ((arg (array int *))) int) (define-function main () int (return (foo)))
7,575
Common Lisp
.sexp
170
35.552941
121
0.595554
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
2069aa301e9d9195b1eb42fb0f585114cdb9335fcf71ffc7986ff9c9bbfb004f
6,271
[ -1 ]
6,273
test-expressions.sexpc
informatimago_lisp/languages/linc/test-expressions.sexpc
;; -*- mode:lisp; package:com.informatimago.languages.linc.c -*- (include <math.h>) (include <stdlib.h>) (define-function test-priorities () void (let* ((i int 42) (j int 33) (k int 21) (a unsigned 101) (b unsigned 202) (c unsigned 303) (d unsigned 404)) (= i (*= j 4)) (*= (*= i j) 4) (+= i (*= j (? (== k 0) 1 0))) (+= (*= i j) (? (== k 0) 1 0)) (*= i (\|\| (&& a b) (&& a c))) (*= i (&& (\|\| a b) (\|\| a c))) (+= i (\| (& a b) (& (~ a) c))) (+= i (& (\| a b) (~ (\| a c)))) (+= i (~ (\| (& a b) (& (~ a) c)))) (+= i (& (~ (\| a (~ b))) (~ (\| a c)))) (+= j (\| a (^ b (& c (~ d))))) (+= j (~ (& a (^ b (\| c d))))) (+= k (+ (<< a (+ i j)) (<< b (+ j k)) (<< c (+ k i)))) (+= k (+ (>> (+ a i) j) (>> (+ b j) k) (>> (+ c k) i))) (+= k (+ (- (<< a i) j) (- (<< b j) k) (- (<< c k) i))))) ;; Unary: (define-function main () (int) (block (define-variable cptr (pointer char) "foo bar") (define-variable cptrptr (pointer (pointer char)) (& cptr)) (define-variable char1 char (* cptr)) (define-variable pos int (+ 1)) (define-variable neg int (- 1)) ;; Binary: (define-variable sum2 int (+ 1 2)) (define-variable sum4 int (+ 1 2 3 4)) (define-variable dif2 int (- 1 2)) (define-variable dif4 int (- 1 2 3 4)) (define-variable mul2 int (* 2 3)) (define-variable mul4 int (* 2 3 4 5)) (define-variable div2 int (/ 2 3)) (define-variable div4 int (/ 2 3 4 5)) (define-variable mod2 int (% 2 3)) (define-variable mod4 int (% 2 3 4 5)) (define-variable boolior bool (\|\| (== pos 1) (== neg 1))) (define-variable booland bool (&& (== pos 1) (== neg 1))) (define-variable bit-ior int (\| sum2 mul2)) (define-variable bit-and int (& sum2 mul2)) (define-variable bit-eor int (^ sum2 mul2)) (define-variable beq bool (== sum2 mul2)) (define-variable bne bool (!= sum2 mul2)) (define-variable blt bool (< sum2 mul2)) (define-variable bgt bool (> sum2 mul2)) (define-variable ble bool (<= sum2 mul2)) (define-variable bge bool (>= sum2 mul2)) (define-variable lshift int (<< sum2 pos)) (define-variable rshift int (>> sum2 pos)) ;; memptr deref .* ;; ptrmemptr-deref ->* (define-variable ucast (unsigned int) (cast mul4 unsigned int)) (define-variable size1 (unsigned int) (sizeof char)) (define-variable size2 (unsigned int) (sizeof cptr)) ;; Unary: (define-variable mul4-p1 int (++ mul4)) (define-variable mul4-m1 int (-- mul4)) (define-variable mul4-p1p int (post++ mul4)) (define-variable mul4-m1p int (post-- mul4)) (define-variable boolnot bool (! (== pos 1))) (define-variable bit-not int (~ mul4)) ;; Ternary (define-variable if3 int (? (== mul2 6) 1 0)) ;; Miscellaneous: (declare-structure point (x int) (y int)) ;; (define-variable pt1 point {1 2}) (declare-variable pt1 (struct point)) (= (. pt1 x) 1) (= (. pt1 y) 2) (define-variable pt1-x int (. pt1 x)) (define-variable ppt (pointer (struct point)) (& pt1)) (define-variable ppt1-y int (-> ppt y)) (define-variable cho char (aref cptr 1)) (declare-type link-t (struct link (next (pointer (struct link))) (item (struct (link (pointer (struct link))) (also (struct (link (pointer (struct link))))))))) (define-variable ll0 (pointer link-t) NULL) (= ll0 (-> ll0 next next next)) (= ll0 (-> (-> (-> ll0 next) next) next)) (= ll0 (-> ll0 (-> next (-> next next)))) (= ll0 (-> ll0 (. (-> next item) link))) (= ll0 (-> ll0 (. (-> next (. item also)) link))) (= ll0 (-> ll0 (-> next (. item also link)))) (= ll0 (-> ll0 (-> next (. item link)))) (= ll0 (-> ll0 (. (-> next item) link))) (= ll0 (-> ll0 (-> next (. item (-> link next))))) (= ll0 (-> ll0 (-> next (-> (. item link) next)))) (= ll0 (-> ll0 (. (-> next item) link) next)) (define-variable sin-pi-2 double (sin (/ M-PI 2))) (define-variable seq int (\, (++ size1) (++ size2) 3)) (cast cptr void) (cast cptrptr void) (cast char1 void) (cast pos void) (cast neg void) (cast sum2 void) (cast sum4 void) (cast dif2 void) (cast dif4 void) (cast mul2 void) (cast mul4 void) (cast div2 void) (cast div4 void) (cast mod2 void) (cast mod4 void) (cast boolior void) (cast booland void) (cast bit-ior void) (cast bit-and void) (cast bit-eor void) (cast beq void) (cast bne void) (cast blt void) (cast bgt void) (cast ble void) (cast bge void) (cast lshift void) (cast rshift void) (cast ucast void) (cast size1 void) (cast size2 void) (cast mul4-p1 void) (cast mul4-m1 void) (cast mul4-p1p void) (cast mul4-m1p void) (cast boolnot void) (cast bit-not void) (cast if3 void) (cast pt1 void) (cast pt1-x void) (cast ppt void) (cast ppt1-y void) (cast cho void) (cast sin-pi-2 void) (cast seq void) (return 0)))
6,316
Common Lisp
.sexp
154
34.350649
86
0.434577
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
12e83755032208708e54fe1322da8c05f06688732acf7d781e6b3507965df969
6,273
[ -1 ]
6,277
test-statements.sexpc
informatimago_lisp/languages/linc/test-statements.sexpc
;; -*- mode:lisp; package:com.informatimago.languages.linc.c -*- (include <stdio.h> <stdlib.h>) (define-function main ((argc int) (argv (pointer (pointer char)))) int (let ((i int 0)) (while (< i 10) (goto start1) (+= i 2) (label start1) (++ i) (printf "i = %d\n" i) (if (< 5 i) (break) (continue)) (printf "Never printed!\n")) (= i 0) (do (goto start2) (+= i 2) (label start2) (++ i) (printf "i = %d\n" i) (if (< 5 i) (break) (continue)) (printf "Never printed!\n") while (< i 10)) (= i 0) (for ((= i 0) (< i 10) (++ i)) (switch i (case 0 (printf "Zero\n") (break)) (case (+ 1 1) (printf "Two\n") (break)) (default (printf "Current %d\n" i) (break))) (if (== 0 (% i 3)) (+= i 2) (+= i 3))) (return 0)))
1,059
Common Lisp
.sexp
42
15.761905
70
0.383168
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
e7403580e1982a3b51d26f95436e3eb2f8f860dace3a651a5b83eef9dbb924c8
6,277
[ -1 ]
6,278
test-macros.sexpc
informatimago_lisp/languages/linc/test-macros.sexpc
;; -*- mode:list; package:com.informatimago.languages.linc.c -*- (include <stdio.h>) (define-macro BUFFER_SIZE "(1024)") (define-macro TRUNCATE (dividend divisor) "cons(integer((dividend)/(divisor)), integer((dividend)%(divisor)))") (declare-type object-t (struct (tag int) (data int))) (declare-type object (pointer object-t)) (declare-function integer ((value int)) object) (declare-function cons ((car object) (cdr object)) object) (declare-function car ((cons object)) object) (declare-function cdr ((cons object)) object) (define-function main () int (let* ((result object (TRUNCATE 10 3)) (buffer (array char BUFFER_SIZE) ())) (printf "%p; %p; %p\n" (car result) (cdr result) buffer) (return 0)))
783
Common Lisp
.sexp
16
44.0625
111
0.646982
informatimago/lisp
20
6
0
AGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
8a8b7fed2ea4ba43128d1f0b86bfa8b4c7c2d97237d6f55ba0b7b5e8e9edfbcb
6,278
[ -1 ]
6,279
bn-utils.lisp
lhope_cl-bayesnet/src/bn-utils.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; bn-utils - helper macros and functions for Bayesian Network ;; compilation. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) ;;(declaim (optimize (speed 3))) (defmacro multiply-floats (floats) (let ((gfloats (gensym))) `(let ((,gfloats ,floats)) (cond ((endp ,gfloats) 1.0d0) ((cdr ,gfloats) (reduce #'* ,gfloats)) ((car ,gfloats)))))) (defmacro sum-floats (floats) (let ((gfloats (gensym))) `(let ((,gfloats ,floats)) (cond ((endp ,gfloats) 0.0d0) ((cdr ,gfloats) (reduce #'+ ,gfloats)) ((car ,gfloats)))))) (defmacro vlength (vec) `(array-dimension ,vec 0)) (defmacro do-upper ((i j len &optional result) &body body) "do for upper triangular i and j. i from 0 to len, j from i+1 to len." (let ((glen (gensym))) `(let ((,glen ,len)) (dotimes (,i ,glen ,result) (loop for ,j from (1+ ,i) to (1- ,len) do ,@body))))) (defmacro reset-potential (place) `(setf ,place (make-vector (length ,place) 1))) (defparameter *temporary-directory* "/tmp/" "Temporary work directory for C-based network compilation") (defun random-choose (seq) (declare (sequence seq)) (elt seq (random (length seq)))) ;; This is not really good. Fix sometime. (defun find-temporary-file (prefix suffix &optional (directory *temporary-directory*)) (ensure-directories-exist directory) (loop for i fixnum = 0 then (1+ i) for file = (merge-pathnames (format nil "~A~A~A" prefix i suffix) directory) unless (probe-file file) do (return file))) (defun float-to-fixnums (float) "This converts a float to a list of fixnums, useful for hashing floats using fixnum-based schemes." (with-calculation float (multiple-value-bind (bignum exponent) (integer-decode-float float) (loop for fixnum = (logand bignum #.most-positive-fixnum) then (logand next #.most-positive-fixnum) for next = (ash bignum #.(- (integer-length most-positive-fixnum))) then (ash next #.(- (integer-length most-positive-fixnum))) collect fixnum into fixnums until (= next 0) finally (return (cons exponent fixnums)))))) (defun split (p x) (do ((y x z) (z (cdr x) (cdr z)) (pt ()) (pn ())) ((endp y) (values pt pn)) (if (funcall p (car y)) (setq pt (rplacd y pt)) (setq pn (rplacd y pn))))) (defun degen-prob (i length) "Creates a 0-vector of the given length, with the i'th argument set to 1." (let ((vec (make-array length :initial-element 0.0d0))) (setf (aref vec i) 1.0d0) vec)) (defun map-pairs (fn list) "applies fn to each pair of items and returns a list of the resulting values. > (map-pairs #'cons '(1 2 3 4)) => ((1 . 2) (1 . 3) (1 . 4) (2 . 3) (2 . 4) (3 . 4))" (mapcon (lambda (x) (let ((me (car x))) (mapcar (lambda (you) (funcall fn me you)) (cdr x)))) list)) (defun symmetric (array x y) "Treat 2D array as a symmetric array. Settable." (if (< x y) (aref array x y) (aref array y x))) (defun (setf symmetric) (val array x y) (if (< x y) (setf (aref array x y) val) (setf (aref array y x) val))) (defun node-combinations (initial node-mask) "Returns a vector of all node index combinations built from initial. node-mask is a vector which is nil for non-incremented nodes and numstates for included nodes. DEPRECATED for being horribly slow." (let* ((num-combs (reduce #'* (remove nil node-mask))) (combs (make-array num-combs)) (net-state (copy-array initial))) (dotimes (i (vlength node-mask)) (when (svref node-mask i) (setf (svref net-state i) 0))) (setf (svref combs 0) (copy-array net-state)) (do ((i 1 (1+ i))) ((= i num-combs) combs) (cpt-incf net-state node-mask) (setf (svref combs i) (copy-array net-state))))) (defun split-probs (probs prob-length) (declare (type list probs) (fixnum prob-length)) (loop with len = (length probs) with prob-vec = (make-array (the fixnum (/ len prob-length)) :element-type 'vector :initial-element #()) for prob-num = 0 then (1+ prob-num) while probs for prob = (make-array prob-length :element-type 'float :initial-element 0.0) do (dotimes (i prob-length) (setf (aref prob i) (pop probs))) (setf (aref prob-vec prob-num) prob) finally (return prob-vec))) (defun edge< (edge1 edge2) (let ((e1a (car edge1)) (e2a (car edge2))) (declare (fixnum e1a e2a)) (or (< e1a e2a) (and (= e1a e2a) (let ((e1d (cdr edge1)) (e2d (cdr edge2))) (declare (fixnum e1d e2d)) (< e1d e2d)))))) (defun edge= (edge1 edge2) (and (= (car edge1) (car edge2)) (= (cdr edge1) (cdr edge2)))) (defun vecfn (fn num) "Build a vector by calling fn num times." (declare (fixnum num)) (let ((vec (make-array num))) (dotimes (i num vec) (setf (svref vec i) (funcall fn)))))
5,738
Common Lisp
.lisp
145
35.958621
101
0.654095
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
b9ef0d069388402123bdbef2dc00bda173f7454eef234ac6fa2b0578943b657f
6,279
[ -1 ]
6,280
tries.lisp
lhope_cl-bayesnet/src/tries.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; tries - trie implementation for compiling Arithmetic Circuits. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (defconstant +TRIE-HASH-THRESHOLD+ 7) (defstruct TRIE "A trie node." (value nil) (count 0) ;; only incremented when branch is a list. (test 'eql) (branch nil)) (defun TRIE-CLEAR (trie) "Empties the trie, but leaves the test as is." (setf (trie-value trie) nil (trie-count trie) 0 (trie-branch trie) nil) trie) (defun MAKE-TRIE-HASH (alist &key (test 'eql)) "Converts a trie alist to a trie-specific hash." (let ((hash (make-hash-table :test test))) (dolist (element alist hash) (setf (gethash (car element) hash) (cdr element))))) (defun TRIE-BRANCH-COUNT (trie) "Count the number of branches of trie." (if (typep (trie-branch trie) 'hash-table) (hash-table-count (trie-branch trie)) (trie-count trie))) (defun TRIE-SEARCH (trie key) "Recursively search the trie for the given key. If key is nil, We're at the right node, so we return it. The value (which may be nil) can then be accessed with trie-value." (etypecase key (null trie) (list (let ((branch (trie-branch trie))) (cond ((null branch) nil) ((listp branch) (awhen (assoc (car key) branch :test (trie-test trie)) (trie-search (cdr it) (cdr key)))) (t (awhen (gethash (car key) branch) (trie-search it (cdr key))))))) (sequence (trie-search trie (coerce key 'list))))) (defun TRIE-INSERT (value trie key) "Insert the value in the trie with the given key. Returns the accessed trie node." (etypecase key (null (progn (setf (trie-value trie) value) trie)) (list (symbol-macrolet ((count (trie-count trie)) (branch (trie-branch trie)) (test (trie-test trie))) (declare (type fixnum count)) (if (listp branch) (aif (assoc (car key) branch :test test) (trie-insert value (cdr it) (cdr key)) (let ((new-trie (make-trie :test test))) (push (cons (car key) new-trie) branch) (incf count) (when (= (the fixnum count) (the fixnum +trie-hash-threshold+)) (setf branch (make-trie-hash branch :test test))) (trie-insert value new-trie (cdr key)))) (aif (gethash (car key) branch) (trie-insert value it (cdr key)) (let ((new-trie (make-trie :test test))) (setf (gethash (car key) branch) new-trie) (trie-insert value new-trie (cdr key))))))) (sequence (trie-insert value trie (coerce key 'list))))) (defun TRIE-PRUNE (to-prune example) "Recursively remove all branches in to-prune that don't also appear in example, thus to-prune is guaranteed to be as small as example or smaller." (symbol-macrolet ((branch (trie-branch to-prune))) (if (listp branch) (setf branch (loop for cons in branch for next-example = (trie-search example `(,(car cons))) when next-example collect cons and do (trie-prune (cdr cons) next-example)) (trie-count to-prune) (length branch)) (loop for key being the hash-key of branch using (hash-value next-to-prune) for next-example = (trie-search example `(,key)) if next-example do (trie-prune next-to-prune next-example) else do (remhash key branch)))) to-prune) (defun TRIE-LIST-VALUES (trie) "Recursively list all values in the trie." (let* ((branch (trie-branch trie)) (children (if (listp branch) (loop for (nil . next-trie) in branch nconc (trie-list-values next-trie)) (loop for next-trie being the hash-value of branch nconc (trie-list-values next-trie))))) (aif (trie-value trie) (cons it children) children))) (defun TRIE-LIST-DEPTH (trie depth) "List all values at the given depth (0 is the top level)." (cond ((< depth 0) nil) ((= depth 0) (awhen (trie-value trie) (list it))) (t (let ((branch (trie-branch trie))) (if (listp branch) (loop for (nil . next-trie) in branch nconc (trie-list-depth next-trie (1- depth))) (loop for next-trie being the hash-value of branch nconc (trie-list-depth next-trie (1- depth)))))))) (defun TRIE-LIST-BOTTOM (trie) "List all values at the bottom of the trie (i.e. values of all tries with no branches)." (if (= (trie-count trie) 0) (list (trie-value trie)) (let ((branch (trie-branch trie))) (if (listp branch) (loop for (nil . next-trie) in branch nconc (trie-list-bottom next-trie)) (loop for next-trie being the hash-value of branch nconc (trie-list-bottom next-trie)))))) (defun TRIE-BOTTOM-P (trie) "Returns t if the given trie has no branches." (let ((branch (trie-branch trie))) (or (null branch) (and (hash-table-p branch) (= 0 (hash-table-count branch)))))) (defun %TRIE-MAP-TRIE (fn new-trie trie &rest tries) "Create a new trie with the same structure as trie, applying fn to each trie-node in turn." (setf (trie-value new-trie) (apply fn trie tries)) (let ((branch (trie-branch trie))) (if (listp branch) (loop for (key . next-trie) in branch for next-tries = (mapcar (lambda (x) (trie-search x `(,key))) tries) for no-op = (member nil next-tries) ;; abort if we don't find a key. for next-new-trie = (unless no-op (trie-insert nil new-trie `(,key))) unless no-op do (apply #'%trie-map-trie fn next-new-trie next-trie next-tries)) ;; regrettable copying of code. (loop for next-trie being the hash-value of branch using (hash-key key) for next-tries = (mapcar (lambda (x) (trie-search x `(,key))) tries) for no-op = (member nil next-tries) ;; abort if we don't find a key. for next-new-trie = (unless no-op (trie-insert nil new-trie `(,key))) unless no-op do (apply #'%trie-map-trie fn next-new-trie next-trie next-tries)))) new-trie) (defun TRIE-MAP-B (fn trie) "Apply fn to each branch of trie. Returns the trie." (let ((branch (trie-branch trie))) (if (listp branch) (loop for (nil . next-trie) in branch do (funcall fn next-trie)) (loop for next-trie being the hash-value of branch do (funcall fn next-trie))))) (defmacro DO-TRIE-BRANCHES ((next-trie trie &optional result) &body body) "Loop over the trie's branches." `(progn (trie-map-b (lambda (,next-trie) ,@body) ,trie) ,result)) (defun TRIE-MAP-BRANCHES (fn trie) "Apply fn to each branch of trie. Returns a list of the returned values." (let (list) (trie-map-b (lambda (x) (push (funcall fn x) list)) trie) (nreverse list))) (defun TRIE-BRANCH-VALUES (trie) "Return (key . trie-value) for each branch of trie." (let ((branch (trie-branch trie))) (if (listp branch) (loop for (key . next-trie) in branch collect (cons key (trie-value next-trie))) (loop for next-trie being the hash-value of branch using (hash-key key) collect (cons key (trie-value next-trie)))))) (defun TRIE-MAP-TRIE (fn trie &rest tries) "Apply fn to the given trie and its children, returning the results as the values of a matching trie." (apply #'%trie-map-trie fn (make-trie :test (trie-test trie)) trie tries)) (defun TRIE-MAP-VALUES (fn trie) "Apply fn to the given trie's non-nil values, returning the results as the values of a matching trie." (trie-map-trie (lambda (trie) (awhen (trie-value trie) (funcall fn it))) trie)) (defmacro DO-TRIE-VALUES ((value trie &optional retval) &body body) `(block nil (trie-map-values (lambda (,value) ,@body) ,trie) ,retval)) (defun %TRIE-MAP-KEY-VALUE (fn key trie new-trie) "Create a new trie with the same structure as trie, applying fn to the key and the old trie node." (setf (trie-value new-trie) (funcall fn key trie)) (let ((branch (trie-branch trie))) (if (listp branch) (loop for (next-key . next-trie) in branch for next-new-trie = (trie-insert nil new-trie `(,next-key)) do (%trie-map-key-value fn `(,@key ,next-key) next-trie next-new-trie)) (loop for next-trie being the hash-value of branch using (hash-key next-key) for next-new-trie = (trie-insert nil new-trie `(,next-key)) do (%trie-map-key-value fn `(,@key ,next-key) next-trie next-new-trie)))) new-trie) (defun TRIE-MAP-KEY-VALUE (fn trie) "Create a new trie with the same structure as trie, applying fn to the key and the old trie node." (%trie-map-key-value fn nil trie (make-trie :test (trie-test trie)))) (defun HASH-TO-TRIE (hash &key (trie (make-trie :test (hash-table-test hash))) (trie-key #'identity) (trie-value #'identity) bagp) "Add the elements of hash to the given trie (if no trie is given, make one with the same test as the hash table. trie-key (default #'identity) is a function to apply to the hash-key. It should convert the hash-key to a list of atoms which are compatible with the trie's test. trie-value (default #'identity) is a function to extract the value of interest from the actual value (or the key if bagp is non-nil) held in the hash." (loop for key being the hash-key of hash using (hash-value value) do (trie-insert (funcall trie-value (if bagp key value)) trie (funcall trie-key key)) finally (return trie)))
10,064
Common Lisp
.lisp
231
39.627706
78
0.676794
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
a5950d7457f4d3f3cc6e3e2ac84aacb7a6cd842cbd534a98bdfa436ce9f5f3db
6,280
[ -1 ]
6,281
emit-c.lisp
lhope_cl-bayesnet/src/emit-c.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; emit-c - Write out C source code from Arithmetic Circuit ;; instructions, compile and load the resultant shared object. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (defun emit-c-double (double) (let ((str (princ-to-string double))) (nsubstitute #\E #\d str))) (defun emit-c-forms (func-name net-spec forms stream) (loop for inst in forms for var = 0 then (1+ var) for rhs = (if (numberp (car inst)) (format nil "~Am(~A[~A], ~A)" func-name net-spec (car inst) (cdr inst)) (let ((op-string (format nil " ~A " (car inst)))) (with-output-to-string (s) (loop for cons on (cdr inst) do (let ((val (car cons))) (princ (if (floatp val) (emit-c-double val) (format nil "v~A" val)) s)) when (cdr cons) do (princ op-string s))))) do (format stream "double v~A = ~A;~%" var rhs))) (defun emit-c-preamble (func-name net-spec stream) "Write out the matching function for state and val. Returns 1.0 if state is negative (missing) or state = val. Returns 0.0 otherwise." (format stream "double ~Am(int state, int val) {~%" func-name) (format stream " if(state < 0) { return 1.0; }~%") (format stream " return (state == val) ? 1.0 : 0.0;~%") (format stream "}~%~%double ~A(int* ~A) {~%" func-name net-spec)) (defun emit-c-net (net stream) (let ((ins (gen-instructions net)) (func-name (gentemp "__BN"))) (with-slots (forms form-count) ins (emit-c-preamble func-name 'NETSPEC stream) (emit-c-forms func-name 'NETSPEC forms stream) (format stream "return v~A;~%}~%" (1- form-count)) (values func-name form-count)))) #-cl-bayesnet-no-cffi (defparameter *gcc-format-string* "gcc -O2 -shared ~A -o ~A" "String to pass to format. First arg is source, second is target.") #-cl-bayesnet-no-cffi (defun use-compiled-c (net &optional source-location) "Writes out arithmetic circuit instructions to a c file, compiles it with gcc, loads the shared object, and prepares the net to use the loaded function. If source-location is specified, writes the c file there. Otherwise uses a temporary file. Returns the closure used, the raw cffi function pointer, and the number of instructions." ;; TODO: c-spec ends up a dangling pointer. (let ((source (or source-location (find-temporary-file "" ".c"))) (target (find-temporary-file "" ".so"))) (multiple-value-bind (func-name form-count) (with-open-file (s source :direction :output :if-exists :supersede) (emit-c-net net s)) (trivial-shell:shell-command (format nil *gcc-format-string* source target)) (unless source-location (delete-file source)) (cffi:load-foreign-library target) (let* ((len (num-nodes net)) (c-spec (cffi:foreign-alloc :int :count len)) (func-pointer (cffi:foreign-symbol-pointer (princ-to-string func-name)))) (values (setf (compiled net) (lambda (net-spec) (dotimes (i len) (setf (cffi:mem-aref c-spec :int i) (aref net-spec i))) (cffi:foreign-funcall-pointer func-pointer nil :pointer c-spec :double))) func-pointer form-count))))) ;;(foreign-free c-spec)
4,058
Common Lisp
.lisp
88
42.602273
82
0.676849
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
ec9e16e2d25e13405aeaef1bdb9ccaa184dc67196154196c50282cc734138757
6,281
[ -1 ]
6,282
message.lisp
lhope_cl-bayesnet/src/message.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; message - join-tree and message passing implementation. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) ;; LH 2013-04-01: I don't know what these are anymore. :( ;; TODO mv gen-parameter into bn. ;; - message pass should work better with indices, so we don't have to use find. ;; - we naively get probs and enter likelihoods in the "default" ;; cluster. Better to use the cluster with smallest potential. ;; - Cache probabilities. ;; - When generating a probability, generate and cache other assigned ;; probabilities for that cluster, so we don't have to loop (defclass potential-container () ((mask :reader mask :initarg :mask) (potential :accessor potential :initarg :potential))) (defclass cluster (potential-container) ((mark :accessor mark :initform nil) (clean-potential :initarg :clean-potential :reader clean-potential))) (defclass sep-set (potential-container) ()) (defclass join-tree () ((net :initarg :net :reader net) (nodes :initarg :nodes :reader nodes) (clusters :initarg :clusters :reader clusters) (links :initarg :links :reader links) (all-sep-sets :initarg :sep-sets :reader all-sep-sets) (consistent :initform nil :accessor consistent) (assignment :initarg :assignment :reader assignment) (obs :initarg :obs :accessor obs) (evidence :initarg :evidence :reader evi))) (defclass jt-node () ((index :initarg :index :reader index) (assignment :initarg :assignment :reader assignment) (evidence :initarg :evidence :accessor evi) (obs :initarg :obs :accessor obs) (name :initarg :name :reader name) (states :initarg :states :reader states) (join-tree :initarg :join-tree :accessor join-tree-of))) (defun make-potential (net cluster assignment) (loop with mask = (returnit (make-array (num-nodes net) :initial-element nil) (map nil (lambda (node) (setf (aref it node) (num-states (node node net)))) cluster)) with state = (make-array (length mask) :initial-element 0) for probs = (mapcar (lambda (x) (gen-parameter net state x)) assignment) repeat (reduce #'* cluster :key (lambda (x) (num-states (node x net)))) collect (reduce #'* probs) into potential do (cpt-incf state mask) finally (return (values (coerce potential 'vector) mask)))) (defun make-join-tree (net) (unless (slot-boundp net 'node-order) (preprocess-network net)) (multiple-value-bind (cliques tree) (clique-tree net) (multiple-value-bind (assignment node-assignment) (assign-nodes net cliques) (let ((clusters ;; generate the clusters. (make-array (length cliques) :initial-contents (loop for clique across cliques for clique-assign across assignment collect (multiple-value-bind (potential mask) (make-potential net clique clique-assign) (make-instance 'cluster :mask mask :clean-potential potential :potential (copy-seq potential))))))) ;; Add tree information. Links contains sets of cluster-num-sep-set pairs. (loop with sep-sets with links = (make-array (length cliques) :initial-element nil) for link across tree for clique across cliques for cluster across clusters for counter from 0 do (setf (aref links counter) (loop for link-num in link collect (cons link-num (if (> link-num counter) ;; make the separator (multiple-value-bind (potential mask) (make-potential net (intersection clique (aref cliques link-num)) nil) (returnit (make-instance 'sep-set :mask mask :potential potential) (push it sep-sets))) ;; else find the existing separator and use that. (cdr (find counter (aref links link-num) :key #'car)))))) finally (let ((nodes (loop for assign across node-assignment for index from 0 for node = (node index net) collect (make-instance 'jt-node :index index :assignment assign :evidence (make-array (num-states node) :initial-element 1) :obs -1 :name (name node) :states (states node))))) (return (returnit (make-instance 'join-tree :clusters clusters :links links :sep-sets sep-sets ;; :net net :nodes (coerce nodes 'vector) :assignment node-assignment) (loop for node across (nodes it) do (setf (join-tree-of node) it)))))))))) (defun marginalise (sep-set cluster) "Return a new potential for sep-set to match cluster." (with-slots (mask potential) cluster (loop with sep-mask = (mask sep-set) with sep-pot = (make-array (length (potential sep-set)) :initial-element 0) with state = (make-array (length mask) :initial-element 0) repeat (length potential) do (incf (aref sep-pot (cpt-index sep-mask state)) (aref potential (cpt-index mask state))) (cpt-incf state mask) finally (return sep-pot)))) (defgeneric message-pass (jt clique1 clique2)) (defmethod message-pass ((jt join-tree) (clique1 fixnum) (clique2 fixnum)) (with-slots (clusters links) jt (with-slots (mask potential) (aref clusters clique2) (loop with sep-set = (cdr (find clique2 (aref links clique1) :key #'car)) with sep-mask = (mask sep-set) with old = (potential sep-set) with new = (marginalise sep-set (aref clusters clique1)) with state = (make-array (length mask) :initial-element 0) for c-index = (cpt-index mask state) for s-index = (cpt-index sep-mask state) repeat (length potential) do (multf (aref potential c-index) (if (= 0 (aref new s-index)) 0 (/ (aref new s-index) (aref old s-index)))) (cpt-incf state mask) finally (return (setf (potential sep-set) new)))))) (defun collect-evidence (jt cluster) (with-slots (clusters links) jt (setf (mark (aref clusters cluster)) t) (loop for (cluster2 . nil) in (aref links cluster) do (unless (mark (aref clusters cluster2)) (collect-evidence jt cluster2) (message-pass jt cluster2 cluster))) )) (defun distribute-evidence (jt cluster) (with-slots (clusters links) jt (setf (mark (aref clusters cluster)) t) (loop for (cluster2 . nil) in (aref links cluster) do (unless (mark (aref clusters cluster2)) (message-pass jt cluster cluster2) (distribute-evidence jt cluster2))))) (defun jt-propagate (jt) (with-slots (consistent clusters) jt (when consistent (return-from jt-propagate)) (loop for cluster across clusters do (setf (mark cluster) nil)) (collect-evidence jt 0) (loop for cluster across clusters do (setf (mark cluster) nil)) (distribute-evidence jt 0) (setf consistent t))) (defun jt-prob (jt node-num) "Calculates the probability of node-num given junction tree jt." (let ((cluster (aref (clusters jt) (aref (assignment jt) node-num)))) (with-slots (mask potential) cluster (loop with node-prob = (make-array (aref mask node-num) :initial-element 0) with node-mask = (returnit (make-array (length mask) :initial-element nil) (setf (aref it node-num) (aref mask node-num))) with state = (make-array (length mask) :initial-element 0) repeat (length potential) do (incf (aref node-prob (cpt-index node-mask state)) (aref potential (cpt-index mask state))) (cpt-incf state mask) finally (return node-prob))))) (defun jt-retract (jt) (with-slots (consistent clusters all-sep-sets nodes) jt (when (every (lambda (x) (= -1 (obs x))) nodes) (return-from jt-retract)) (setf consistent nil) (loop for cluster across clusters do (setf (potential cluster) (copy-seq (clean-potential cluster)))) (loop for sep-set in all-sep-sets do (reset-potential (potential sep-set))) (loop for node across nodes do (with-slots (obs evidence) node (setf obs -1) (reset-potential evidence))))) (defun jt-obs (jt node-num obs) "Enter the observation that node-num is obs." (let ((cluster (aref (clusters jt) (aref (assignment jt) node-num)))) (with-slots (mask potential) cluster (when (= obs (obs (aref (nodes jt) node-num))) (return-from jt-obs)) (setf (consistent jt) nil) (loop with likelihood = (returnit (make-array (aref mask node-num) :initial-element 0) (setf (aref it obs) 1)) with node-mask = (returnit (make-array (length mask) :initial-element nil) (setf (aref it node-num) (aref mask node-num))) with state = (make-array (length mask) :initial-element 0) repeat (length potential) for c-index = (cpt-index mask state) do (multf (aref potential c-index) (aref likelihood (cpt-index node-mask state))) (cpt-incf state mask) finally (setf (obs (aref (nodes jt) node-num)) obs) (setf (evi (aref (nodes jt) node-num)) likelihood)))))
9,764
Common Lisp
.lisp
217
40.225806
106
0.680659
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
1b07f88689444be8b14eed485c0701bd0a576f3e7158e07abb8e8c65889e0c0b
6,282
[ -1 ]
6,283
clique-tree.lisp
lhope_cl-bayesnet/src/clique-tree.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; clique-tree - tools for clique-trees, which are intermediate ;; structures for building join-trees. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (defun neighbours (graph node-num) "Generates a list of neighbours of the node." (aref graph node-num)) (defun neighbour (graph a b) (find b (aref graph a))) (defun connect (graph a b) (pushnew a (aref graph b) :test #'=) (pushnew b (aref graph a) :test #'=)) (defun floyd-warshall (graph) "This finds all shortest paths in graph. I could make it more efficient by using the fact that the paths are symmetric." ;; Assume a function edgeCost(i,j) which returns the cost of the edge from i to j ;; (infinity if there is none). ;; Also assume that n is the number of vertices and edgeCost(i,i)=0 (let ((n (length graph))) (flet ((edge-cost (i j) (cond ((= i j) 0) ((neighbour graph i j) 1) (t n)))) ;; int path[][] - A 2-Dimensional matrix. At each step in the ;; algorithm, path[i][j] is the shortest path from i to j using ;; intermediate values in (1..k-1). Each path[i][j] is ;; initialized to edgeCost(i,j). (let ((path (make-array `(,n ,n) :element-type 'fixnum :initial-element 0))) (dotimes (i n) (dotimes (j n) (setf (aref path i j) (edge-cost i j)))) ;; procedure FloydWarshall () (dotimes (k n path) (dotimes (i n) (dotimes (j n) (unless (or (= i j) (= i k) (= j k)) (setf (aref path i j) (min (aref path i j) (+ (aref path i k) (aref path k j)))))))))))) (defun moral (net) (loop with moral = (make-array (length (node-order net)) :initial-element nil) for i from 0 to (1- (length moral)) for node across (node-vec net) do (loop for par across (parent-indices node) do (connect moral i par) (loop for par2 across (parent-indices node) do (unless (= par par2) ; inefficient (connect moral par par2)))) finally (return moral))) (defun cluster-node (graph node) "Generates a list of added links (node1 . node2) which are necessary to form a cluster around node. Uses an (edge-tree)." (let (cluster) (map-pairs (lambda (a b) (unless (neighbour graph a b) (pushnew (if (< a b) (cons a b) (cons b a)) cluster))) (aref graph node)) cluster)) (defun weight-cluster (net graph node) "a cluster's weight is the product of its nodes' states." (let ((val (num-states (node node net)))) (dolist (neighbour (aref graph node) val) (setf val (* val (num-states (node neighbour net))))))) (defun delete-node (graph node) "Remove references to the node from graph. Replaces the node with t" (dolist (neighbour (aref graph node)) (setf (aref graph neighbour) (delete node (aref graph neighbour)))) (setf (aref graph node) nil)) (defun gen-cliques (net graph) "Graph is an array of (itree), where each tree contains that node's neighbours. Returns a list of cliques obtained from triangulating the graph. The triangulation can be recovered by starting with a moral graph and ensuring each clique is completely connected. Each clique is an itree of nodes. Destroys graph." (let ((candidates (map-int #'identity (length graph))) cliques) (flet ((clique< (node1 node2) (let ((cluster1 (cluster-node graph node1)) (cluster2 (cluster-node graph node2))) (or (< (length cluster1) (length cluster2)) (and (= (length cluster1) (length cluster2)) (< (weight-cluster net graph node1) (weight-cluster net graph node2))))))) (while candidates (setf candidates (sort candidates #'clique<)) (let* ((best (pop candidates)) (clique (copy-list (aref graph best)))) (push best clique) (unless (member-if (lambda (x) (subsetp clique x)) cliques) (push clique cliques)) (dolist (edge (cluster-node graph best)) (connect graph (car edge) (cdr edge))) (delete-node graph best))) (setf cliques (coerce (nreverse cliques) 'vector)) (dotimes (i (length cliques) cliques) ;; sort the cliques. (setf (aref cliques i) (sort (aref cliques i) #'<)))))) (defun sep-mass (a b) "Find |intersection| of lists clique1 and clique2" (length (intersection a b))) (defun sep-cost (a b states) "Find prod states of x in X + prod states of y in Y. clique1 and clique2 are lists, states is a vector." (+ (reduce #'* a :key (lambda (x) (aref states x))) (reduce #'* b :key (lambda (x) (aref states x))))) (defun sep-sets (cliques states) (sort (map-pairs #'cons (map-int #'identity (length cliques))) (lambda (x y) (let ((x-mass (sep-mass (aref cliques (car x)) (aref cliques (cdr x)))) (y-mass (sep-mass (aref cliques (car y)) (aref cliques (cdr y))))) (cond ((> x-mass y-mass)) ((= x-mass y-mass) ;; below is still slow. Could cache. (< (sep-cost (aref cliques (car x)) (aref cliques (cdr x)) states) (sep-cost (aref cliques (car y)) (aref cliques (cdr y)) states)))))))) (defun path (graph a b) (labels ((%path (graph a b path) (when (member b (aref graph a) :test #'=) (return-from path path)) (dolist (next (aref graph a)) (when (not (member next path :test #'=)) (awhen (%path graph next b (cons next path)) (return-from path it)))))) (%path graph a b (list a)))) (defun cycle (graph a) (labels ((%path (graph a b path) (when (member b (aref graph a) :test #'=) (return-from %path path)) (dolist (next (aref graph a)) (when (not (member next path :test #'=)) (awhen (%path graph next b (cons next path)) (return-from %path it)))))) (dolist (next (aref graph a)) (dolist (next-next (aref graph next)) (unless (= next-next a) (%path graph next-next a (list next-next next a))))))) (defun roots (graph) "Returns the roots of the graph as a list." (loop with roots = (list 0) for i from 1 to (1- (length graph)) do (unless (dolist (root roots) ;; unless i is connected to a root... (when (path graph root i) (return t))) (push i roots)) finally (return roots))) (defun clique-tree (net) "Builds a clique-tree for dag. The tree is represented by an upper triangular matrix which has lists of clique-nodes in its diagonal." (let* ((cliques (gen-cliques net (moral net))) (len (length cliques)) (states (returnit (make-array (num-nodes net)); :element-type 'fixnum) (dotimes (i (num-nodes net)) (setf (aref it i) (num-states (node i net)))))) (tree (make-array len :initial-element nil)) (sep-sets (sep-sets cliques states)) (edge-number 0)) (while (and (< edge-number len) sep-sets) (let ((sep-set (pop sep-sets))) (unless (path tree (car sep-set) (cdr sep-set)) (connect tree (car sep-set) (cdr sep-set)) (incf edge-number)))) (values cliques tree))) (defun assign-nodes (net cliques) "Returns an assignment of a clique node for each net node. Since lookup within a clique is sequential, just uses an array of lists. An array of assignments from the node perspective is returned as a second value." (loop with assignment = (make-array (length cliques) :initial-element nil) with node-assignment = (make-array (num-nodes net) :initial-element 0) for node-num = 0 then (1+ node-num) for node across (node-vec net) for family = (cons node-num (coerce (parent-indices node) 'list)) do (dotimes (clique (vlength cliques) (error "Node ~A is unassigned!" node-num)) (when (subsetp family (aref cliques clique)) (setf (aref node-assignment node-num) clique) (push node-num (aref assignment clique)) (return))) finally (return (values assignment node-assignment)))) (defun traverse (tree &optional (root 0)) "Builds a traversal for the undirected tree structure tree. Structure is ;(tree-node subtraversal1 ... subtraversaln)" (labels ((trav (node visited) (cons node (let (trav) (dotimes (next-node (length tree) trav) (when (and (neighbour tree node next-node) ;; they are connected ;; and a node in the separator has not been assigned (not (member next-node visited :test #'=))) (push (trav next-node (cons node visited)) trav))))))) (trav root nil))) (defun tree-depth (tree root) (loop with closed = (returnit (make-hash-table :test 'eql) (setf (gethash root it) t)) with open = (aref tree root) with len = (length tree) for depth from 0 for new-open = nil until (= (hash-table-count closed) len) do (dolist (node open) (setf (gethash node closed) t)) (dolist (node open) (dolist (new-node (aref tree node)) ;; this works because it's a tree. (unless (gethash new-node closed) (push new-node new-open)))) (setf open new-open) finally (return depth))) (defun best-root (tree) (let ((list (map-int (lambda (x) (tree-depth tree x)) (length tree)))) (multiple-value-bind (val pos) (best list #'<) (declare (ignore val)) pos))) (defun net-masks (net cliques traversal) "Shadowing traversal, returns (tree-node node-mask combinations) for each tree-node in traversal." (with-slots (node-vec) net (labels ((net-mask (net-state clique) (loop with combinations = 1 with net-mask = (make-array (num-nodes net) :initial-element nil) for node-state across net-state for node-num = 0 then (1+ node-num) do (when (and (null node-state) (member node-num clique)) (let ((num-states (num-states (aref node-vec node-num)))) (setf (aref net-mask node-num) num-states) (setf combinations (* combinations num-states)))) finally (return (values net-mask combinations)))) (traverse (traversal net-state) (multiple-value-bind (net-mask combs) (net-mask net-state (svref cliques (car traversal))) (dotimes (i (length net-mask)) ;; set net-state as per net-mask (when (aref net-mask i) (setf (aref net-state i) t))) (prog1 (cons (list (car traversal) net-mask combs) (loop for trav in (cdr traversal) collect (traverse trav net-state))) (dotimes (i (length net-mask)) ;; unset net-state. (when (aref net-mask i) (setf (aref net-state i) nil))))))) (traverse traversal (make-array (num-nodes net) :initial-element nil)))))
11,209
Common Lisp
.lisp
258
39.042636
85
0.65834
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
dc84b0a19110e7e1731d3027dfda51e9fadbb1bc21b41bb7b52821d48826c0ff
6,283
[ -1 ]
6,284
utils.lisp
lhope_cl-bayesnet/src/utils.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; utils - general utility macros and functions. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (eval-when (:compile-toplevel :load-toplevel :execute) (defmacro with-gensyms ((&rest symbols) &body body) `(let ,(mapcar #'(lambda (symbol) `(,symbol (gensym))) symbols) ,@body))) (defmacro while (expr &body body) "Continue performing body until expr is false." `(do () ((not ,expr)) ,@body)) (defmacro aif (test-form then-form &optional else-form) "Anaphoric if. (lexically sets 'it' to the test-form, which can then be referenced in then-form and else-form." `(let ((it ,test-form)) (if it ,then-form ,else-form))) (defmacro awhen (test-form &body body) "Anaphoric when. See aif." `(aif ,test-form (progn ,@body))) (defmacro returnit (val &body body) "An anaphorous macro. binds the first val to `it', allows possible modifications in the body, then returns the values. A more general prog1." `(let ((it ,val)) ,@body it)) (defmacro multf (ref multiplier) "(setf ref (* ref multiplier)). Like incf." `(setf ,ref (* ,ref ,multiplier))) (defvar *calculation-context* nil "Used by with-calculation(-context) to define a limited caching environment.") (defmacro with-calculation-context ((&optional (test 'equalp)) &body body) "Defines a calculation context within which calculations performed within with-calculation are cached according to their label." `(let ((*calculation-context* (make-hash-table :test ',test))) ,@body)) (defmacro with-calculation (label &body body) "Unless label is nil, caches the calculation performed by body using label. If there is no calculation-context, does not evaluate label, so don't rely on side effects." (with-gensyms (glabel gvalue gpresent-p) `(let ((,glabel (and *calculation-context* ,label))) (multiple-value-bind (,gvalue ,gpresent-p) (and ,glabel *calculation-context* (gethash ,glabel *calculation-context*)) (if ,gpresent-p ,gvalue (prog1 (setf ,gvalue (progn ,@body)) (when (and ,glabel *calculation-context*) (setf (gethash ,glabel *calculation-context*) ,gvalue)))))))) ;; function composition (defun compose (&rest fns) "Create a function which is the composition of the given functions." (destructuring-bind (fn1 . rest) (reverse fns) (lambda (&rest args) (reduce (lambda (v f) (funcall f v)) rest :initial-value (apply fn1 args))))) (defun maparray (fn array) "maparray applies fn to all elements in array, returning the result in an array the same dimension as the first array" (let ((retval (make-array (array-dimensions array))) (length (array-total-size array))) (dotimes (i length retval) (setf (row-major-aref retval i) (funcall fn (row-major-aref array i)))))) (defun copy-array (array) (maparray #'identity array)) (defun cpt-incf (att-state att-mask) "Increments att-state according to att-mask; att-state and att-mask are vectors. att-mask is nil for non-included attributes and the number of values for included attributes. It takes (reduce #'* (remove nil att-mask)) to iterate through att-state. att-state must be a positive integer below the mask's value, wherever mask is non-nil." (dotimes (i (length att-mask)) (awhen (aref att-mask i) (let ((state (incf (aref att-state i)))) (if (= it state) (setf (aref att-state i) 0) (return))))) att-state) (defun cpt-index (mask att-state) "Given the mask and att-state, return an index. Used to map attribute values to a single lookup value in a table." (loop with multiplier = 1 with index = 0 for state across mask for value across att-state do (when state (incf index (* multiplier value)) (setf multiplier (* multiplier state))) finally (return index))) (defun map-int (fn n) "Map fn across integers from 0 below n, returning the results in an (ordered) list." (let ((acc nil)) (dotimes (i n) (push (funcall fn i) acc)) (nreverse acc))) (defun best-in-list (list compare &key (key #'identity)) "return the best value in list, along with its position and its comparison value. See best." (loop with best-arg = 0 and best-val = (car list) with best-eval = (funcall key best-val) for arg from 1 for val in (cdr list) for eval = (funcall key val) when (funcall compare eval best-eval) do (setq best-arg arg best-val val best-eval eval) finally (return (values best-val best-arg best-eval)))) (defun best-in-array (array compare &key (key #'identity)) "return the best value in array, along with its position and its comparison value. See best." (loop with best-arg = 0 and best-val = (aref array 0) with best-eval = (funcall key best-val) for arg from 1 below (length array) for val = (aref array arg) for eval = (funcall key val) when (funcall compare eval best-eval) do (setq best-arg arg best-val val best-eval eval) finally (return (values best-val best-arg best-eval)))) (defun best-in-hash (hash compare &key (key #'identity)) "return the best value in hash along with its hash-key and its comparison value. See best." (loop with best-arg and best-val and best-eval for arg being the hash-key of hash using (hash-value val) for eval = (funcall key val) when (or (null best-eval) (funcall compare eval best-eval)) do (setq best-arg arg best-val val best-eval eval) finally (return (values best-val best-arg best-eval)))) (defun best (seq/hash compare &key (key #'identity)) "Returns the best value in seq/hash, along with its position (or key for the hash), according to compare. The comparison value is returned as a third value. key extracts the value to be used for comparison." (etypecase seq/hash (null nil) (cons (best-in-list seq/hash compare :key key)) (sequence (best-in-array seq/hash compare :key key)) (hash-table (best-in-hash seq/hash compare :key key)))) (defun make-vector (len &optional initarg) (make-array len :initial-element initarg)) (defun normalize (vec &optional smoothing-factor) "Normalize a vector. Optionally adds smoothing-factor (which should be a number) to each element first. If tot is less than or equal to 0." (let ((tot (reduce #'+ vec :initial-value (if smoothing-factor (* smoothing-factor (length vec)) 0)))) (cond ((= (length vec) 0) #()) ((<= tot 0) (make-array (length vec) :initial-element (/ (length vec)))) (t (map 'vector (if smoothing-factor (lambda (x) (/ (+ x smoothing-factor) tot)) (lambda (x) (/ x tot))) vec))))) (defun order-vector (end &optional (start 0)) "Create a vector of length (end - start), filled with numbers from start...(end - 1). Start defaults to 0." (let ((vec (make-array (- end start) :element-type 'fixnum :initial-element 0))) (dotimes (i (length vec) vec) (setf (aref vec i) (+ i start))))) (defgeneric shuffle (object) (:documentation "Randomise the object, which should represent a sequence.")) (defmethod shuffle ((vector vector)) "shuffle the items in vector into a random order." (let ((len (length vector))) (dotimes (i (1- len) vector) (rotatef (aref vector i) (aref vector (+ i (random (- len i)))))))) (defmethod shuffle ((sequence sequence)) "shuffle the items in the sequence into a random order. Converts the sequence to a vector." (let ((type (type-of sequence))) (coerce (shuffle (coerce sequence 'vector)) type))) (defmethod shuffle ((length integer)) "Create a vector of the given length using order-vector, and shuffle it." (shuffle (order-vector length)))
8,655
Common Lisp
.lisp
194
40.773196
96
0.690894
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
570e0ee54482dec28785131975cd17d2e8bae39594714c63919db106d095e81d
6,284
[ -1 ]
6,285
parse-network.lisp
lhope_cl-bayesnet/src/parse-network.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; parse-network - Reading external Bayesian Network files. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (defun keyify (string) (intern (string-upcase string) :keyword)) (defun dimension-list (list) "Calculates the dimensionality of the list. EG: (make-array (dimension-list list) :initial-contents list)))" (loop for this = list then (car this) while (and (listp this) (not (endp this))) collect (length this))) (defun dimension-list-but-one (list) "Calculates the dimensionality of the list, minus one. EG: (make-array (dimension-list list) :initial-contents list)))" (loop for this = list then (car this) while (and (listp (car this)) (not (endp (car this)))) collect (length this))) (defun parse-netica-stream (stream &key (net (make-instance 'net))) "Idea taken from trivial-configuration-parser by Brian Mastenbrook." (let ((*readtable* (copy-readtable *readtable*)) (*package* (find-package :keyword)) (*read-eval* nil) (*read-base* 10) (*read-default-float-format* 'double-float) (*read-suppress* nil)) (setf (readtable-case *readtable*) :upcase) ; comments are "//" (make-dispatch-macro-character #\/) (let ((fun (get-macro-character #\;))) (set-dispatch-macro-character #\/ #\/ (lambda (s c1 c2) (declare (ignore c2)) (funcall fun s c1)))) ;;(set-syntax-from-char #\# #\;) (set-syntax-from-char #\; #\ ) (set-syntax-from-char #\, #\Space) (set-macro-character #\{ (lambda (stream char) (declare (ignore char)) (read-delimited-list #\} stream t))) (set-macro-character #\} (lambda (stream char) (declare (ignore stream char)) (error "Unmatched close brace!"))) (set-syntax-from-char #\: #\ ) (let* ((eof-value (gensym "EOF")) (read-file (loop for thing = (read stream nil eof-value) while (not (eql thing eof-value)) collect thing))) (parse-netica-net read-file :net net)))) (defun parse-netica-net (list &key (net (make-instance 'net))) (let ((first (first list)) (name (second list)) (defs (third list))) (assert (eql first :bnet)) (setf (slot-value net 'name) (symbol-name name)) (do* ((first (pop defs) (pop defs)) (second (pop defs) (pop defs)) (third (pop defs) (pop defs))) ((null first) net) (cond ((eql :node first) (setf (gethash second (slot-value net 'nodes)) (returnit (parse-netica-node second third) (set-net net it) net))) ((eql second :=) (setf (gethash first (slot-value net 'properties)) third)) (t (format t "Couldn't parse triple ~A, ~A, ~A, ignoring." first second third)))))) (defun parse-netica-node (name list) (let ((node (make-instance 'node))) (setf (slot-value node 'name) name) (do* ((first (pop list) (pop list)) (second (pop list) (pop list)) (third (pop list) (pop list))) ((null first) node) (if (eql second :=) (case first (:probs (setf (slot-value node 'table) (maparray (lambda (x) (coerce x 'vector)) (make-array (dimension-list-but-one third) :initial-contents third)))) (:functable (awhen (states node) (setf (slot-value node 'table) (maparray (lambda (x) (degen-prob (position x it) (length it))) (make-array (dimension-list third) :initial-contents third))))) (:numstates (setf (slot-value node 'states) (returnit (make-array third) (dotimes (i third) (setf (aref it i) i))))) (:states (setf (slot-value node 'states) (coerce third 'vector))) (:parents (setf (slot-value node 'parents) (coerce third 'vector))) (otherwise (setf (gethash first (slot-value node 'properties)) third))) (format t "Couldn't parse triple ~A, ~A, ~A, ignoring." first second third))))) (defun load-dne (file) "Load a file in Netica's dne file format. Returns a net." (with-open-file (s file :direction :input) (parse-netica-stream s))) ;;; ace ;;; (defun parse-ace-stream (stream &key (net (make-instance 'net))) "Idea taken from trivial-configuration-parser by Brian Mastenbrook." (let ((*readtable* (copy-readtable *readtable*)) (*package* (find-package :keyword)) (*read-eval* nil) (*read-base* 10) (*read-default-float-format* 'double-float) (*read-suppress* nil)) (setf (readtable-case *readtable*) :upcase) ; comments are "//" (make-dispatch-macro-character #\/) (let ((fun (get-macro-character #\;))) (set-dispatch-macro-character #\/ #\/ (lambda (s c1 c2) (declare (ignore c2)) (funcall fun s c1)))) ;;(set-syntax-from-char #\# #\;) (set-syntax-from-char #\| #\Space) (set-syntax-from-char #\; #\Space) (set-syntax-from-char #\, #\Space) (set-macro-character #\{ (lambda (stream char) (declare (ignore char)) (read-delimited-list #\} stream t))) (set-macro-character #\} (lambda (stream char) (declare (ignore stream char)) (error "Unmatched close brace!"))) (set-syntax-from-char #\: #\ ) (loop with eof-value = (gensym "EOF") with ignore = 0 for thing = (read stream nil eof-value) while (not (eql thing eof-value)) if (> ignore 0) do (decf ignore) else do (case thing (:net (setf ignore 1)) (:node (let ((name (read stream nil eof-value)) (list (read stream nil eof-value))) (setf (gethash name (slot-value net 'nodes)) (returnit (parse-netica-node name list) (set-net net it) net)))) (:potential (let ((parents (read stream nil eof-value)) (data-list (read stream nil eof-value))) (parse-ace-potential net parents data-list)))) finally (return net)))) (defun parse-ace-potential (net parents data-list) (let* ((node (node (pop parents) net)) (num-states (num-states-1 node)) (probs (third data-list))) (declare (list probs) (fixnum num-states)) (setf (slot-value node 'parents) (coerce parents 'vector)) (setf (slot-value node 'table) (cond ((some #'consp probs) (maparray (lambda (x) (coerce x 'vector)) (make-array (the list (dimension-list-but-one probs)) :initial-contents probs))) ((> (length probs) num-states) (make-array (mapcar (lambda (x) (num-states-1 (node x net))) parents) :displaced-to (split-probs probs num-states))) (t (make-array nil :initial-element (make-array num-states :element-type 'float :initial-contents probs))))))) (defun parse-ace-node (name list) (let ((node (make-instance 'node))) (setf (slot-value node 'name) name) (do* ((first (pop list) (pop list)) (second (pop list) (pop list)) (third (pop list) (pop list))) ((null first) node) (if (eql second :=) (case first (:states (setf (slot-value node 'states) (map 'vector #'keyify third))) (otherwise (setf (gethash first (slot-value node 'properties)) third))) (format t "Couldn't parse triple ~A, ~A, ~A, ignoring." first second third))))) (defun load-ace (file) "Load a file in ace file format. Returns a net." (with-open-file (s file :direction :input) (parse-ace-stream s))) (defun load-xmlbif (file) "Load a file in xmlbif file format. Returns a net." (let ((net (make-instance 'net)) (lxml-net (cdr (assoc :network (s-xml:parse-xml-file file :output-type :lxml))))) (dolist (node lxml-net) (let ((node-name (if (listp (car node)) (caar node) (car node)))) (case node-name (:name (set-name (second node) net)) (:variable (xmlbif-add-variable net node)) (:definition (xmlbif-add-definition net node)) (t (warn "load-xmlbif-file: Ignoring node ~S" node))))) net)) (defun xmlbif-add-variable (net node) ;; could check for node TYPE = "nature" here. (loop with bnode = (make-instance 'node) with outcomes for (key value) in (cdr node) do (case key (:name (set-name (keyify value) bnode)) (:outcome (push (keyify value) outcomes)) (t (warn "xmlbif-add-variable: ignoring ~A=~A" key value))) finally (assert (name bnode) () "xmlbif-add-variable: variable does not have a name!") (set-states (coerce (nreverse outcomes) 'simple-vector) bnode) (setf (gethash (name bnode) (nodes net)) bnode) (set-net net bnode) (return bnode))) (defun xmlbif-add-definition (net def) ;; could check for node TYPE = "nature" here. (loop with node with parents with probs for (key value) in (cdr def) do (case key (:for (setf node (or (gethash (keyify value) (nodes net)) (error "xmlbif-add-definition: could not find node for definition ~A" def)))) (:given (push (keyify value) parents)) ;; reverse order. (:table (setf probs (with-input-from-string (in value) (loop with *read-eval* = nil for float = (read in nil nil) while float collect float))))) finally (setf parents (nreverse parents)) (set-parents (coerce parents 'simple-vector) node) ;; this isn't the most efficient table representation. But remember this gets compiled later. (loop with state-count = (length (states node)) with table-arity = (loop for parent in parents collect (length (states (gethash parent (nodes net))))) with flat-table = (make-array (reduce #'* table-arity :initial-value 1)) ;; initial-value handles table-arity = nil. for index from 0 for probs1 on probs by (lambda (x) (nthcdr state-count x)) do (setf (aref flat-table index) (coerce (subseq probs1 0 state-count) 'simple-vector)) finally (setf (table node) (make-array table-arity :displaced-to flat-table))))) (defmethod initialize-instance :after ((net net) &key netica-file ace-file bif-file) (cond (netica-file (load-netica-file netica-file :net net)) (ace-file (load-ace-file ace-file :net net)) (bif-file (load-xmlbif-file bif-file :net net))))
11,212
Common Lisp
.lisp
273
35
119
0.624886
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
4cacad363d41e1e9b4cf538d81f1bb1046dfc4dbe9947b184e43dc7499f98821
6,285
[ -1 ]
6,286
evidence.lisp
lhope_cl-bayesnet/src/evidence.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; evidence - implementation of the evidence API for join-tree ;; objects. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) ;;primitives ;;(defun make-join-tree (net) ;;(defun jt-propagate (jt) ;;(defun jt-prob (jt node-num) ;;(defun jt-retract (jt) ;;(defun jt-obs (jt node-num obs) (defmethod node ((name symbol) (jt join-tree)) (find name (nodes jt) :key #'name)) (defmethod node ((index fixnum) (jt join-tree)) (aref (nodes jt) index)) (defmethod clear-evidence ((jt join-tree)) (jt-retract jt)) (defmethod evidence-index ((jt join-tree)) (evidence-1 jt)) (defmethod evidence-index ((node jt-node)) (obs node)) (defmethod evidence-1 ((jt join-tree)) (map 'vector #'obs (nodes jt))) (defmethod evidence ((jt join-tree)) (with-slots (nodes) jt (loop for node across nodes for obs = (obs node) when (>= obs 0) nconc (list (name node) (aref (states node) obs))))) (defmethod evidence ((node jt-node)) (with-slots (obs states) node (when (>= obs 0) (aref states obs)))) (defmethod add-evidence ((jt join-tree) (evidence list)) (with-slots (nodes) jt (loop for (name state) on evidence by #'cddr for node-num = (if (numberp name) name (position name nodes :key #'name)) for state-num = (if (numberp state) state (position state (states (aref nodes node-num)))) do (jt-obs jt node-num state-num)))) (defmethod (setf evidence) ((evidence list) (jt join-tree)) (clear-evidence jt) (add-evidence jt evidence)) (defmethod (setf evidence) ((evidence vector) (jt join-tree)) "Sets net's evidence according to net-state vec." (clear-evidence jt) (loop for i = 0 then (1+ i) for ev across evidence do (when (>= ev 0) (jt-obs jt i ev)))) (defmethod (setf evidence) ((state-num integer) (node jt-node)) (with-slots (join-tree index) node (jt-obs join-tree index state-num) state-num)) (defmethod (setf evidence) ((state symbol) (node jt-node)) (setf (evidence node) (position state (states node)))) (defmethod %query ((jt join-tree) (query fixnum)) (jt-propagate jt) (normalize (jt-prob jt query))) (defmethod %query ((jt join-tree) (query symbol)) (%query jt (position query (nodes jt) :key #'name))) (defmethod %query ((jt join-tree) (query null)) (loop for node across (nodes jt) for obs = (obs node) do (when (>= obs 0) (jt-propagate jt) (return (aref (jt-prob jt (index node)) obs))) finally (return 1))) (defmethod %query ((jt join-tree) (query vector)) (save-evidence jt (setf (evidence jt) query) (%query jt nil))) (defmethod %query ((jt join-tree) (query list)) "FIXME: should return a single prob for the joint distribution." (with-slots (nodes) jt (loop with evidence = (make-array (length nodes) :initial-element -1) for (name state) on query by #'cddr for node-num = (if (numberp name) name (position name nodes :key #'name)) for state-num = (if (numberp state) state (position state (states (aref nodes node-num)))) do (setf (aref evidence node-num) state-num) finally (return (%query jt evidence))))) (defmethod %query ((node jt-node) (query integer)) (with-slots (index join-tree states) node (when (and (>= query 0) (< query (length states))) (aref (%query join-tree index) query)))) (defmethod %query ((node jt-node) (query symbol)) (awhen (position query (states node)) (%query node it))) (defmethod %query ((node jt-node) (query null)) (with-slots (index join-tree) node (%query join-tree index))) (defmethod %query ((node jt-node) (query vector)) (with-slots (index join-tree) node (save-evidence join-tree (setf (evidence join-tree) query) (%query join-tree index)))) (defmethod %query ((node jt-node) (query list)) "FIXME: should return a single prob for the joint distribution." (with-slots (join-tree) node (with-slots (nodes) join-tree (loop with evidence = (make-array (length nodes) :initial-element -1) for (name state) on query by #'cddr for node-num = (if (numberp name) name (position name nodes :key #'name)) for state-num = (if (numberp state) state (position state (states (aref nodes node-num)))) do (setf (aref evidence node-num) state-num) finally (return (%query node evidence)))))) (defun use-join-tree (net) "Use a join-tree to evaluate this net. Returns the join-tree object." (let ((jt (make-join-tree net))) (setf (compiled net) (lambda (net-spec) (%query jt net-spec))) jt))
5,485
Common Lisp
.lisp
136
36.764706
75
0.672679
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
5a25a16cac1078421632e090ec6d64a236c6c928c8b16a37febdad56b287ca7d
6,286
[ -1 ]
6,287
compiler.lisp
lhope_cl-bayesnet/src/compiler.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; compiler - compile a Bayesian Network to a set of Arithmetic ;; Circuit instructions. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) ;; this is the class that the net gets compiled to. (defclass instructions () ((forms :initform nil :accessor forms :type list) ;; lookups are defined in initialize-instance (match-lookup :reader match-lookup) (+-lookup :reader +-lookup) (*-lookup :reader *-lookup) (form-count :initform 0 :accessor form-count :type fixnum) (assignment :accessor assignment :type (simple-array fixnum *)) (cliques :accessor cliques :type simple-vector) (tree :accessor tree :type simple-vector))) (defmethod initialize-instance :after ((ins instructions) &key net) (when net (with-slots (cliques tree assignment match-lookup +-lookup *-lookup) ins (multiple-value-setq (cliques tree) (clique-tree net)) (setf assignment (assign-nodes net cliques)) (setf match-lookup (make-array (num-nodes net) :element-type '(simple-array fixnum))) (dotimes (i (num-nodes net)) (setf (aref match-lookup i) (make-array (num-states (aref (node-vec net) i)) :element-type 'fixnum :initial-element -1))) (setf +-lookup (vecfn #'make-trie (1+ (length cliques)))) (setf *-lookup (vecfn #'make-trie (1+ (length cliques))))))) (defun set-match (ins node-num value form-num) ;; (declare (type (mod 536870912) node-num value form-num) (optimize (speed 3) (safety 0))) (let ((match-lookup (match-lookup ins))) (declare (type (simple-array (simple-array fixnum *) *) match-lookup)) (setf (aref (aref match-lookup node-num) value) form-num))) (defun get-match (ins node-num value) ;; (declare (type (mod 536870912) node-num value) (optimize (speed 3) (safety 0))) (let ((match-lookup (match-lookup ins))) (declare (type (simple-array (simple-array fixnum *) *) match-lookup)) (aref (aref match-lookup node-num) value))) (defun set-+ (ins vals form-num depth) ;; (declare (optimize (speed 3) (safety 0))) (let ((first (car vals))) (trie-insert form-num (aref (+-lookup ins) depth) (if (floatp first) (append (float-to-fixnums first) (cdr vals)) vals)))) (defun get-+ (ins vals depth) ;; (declare (optimize (speed 3) (safety 0))) (let ((first (car vals))) (awhen (trie-search (aref (+-lookup ins) depth) (if (floatp first) (append (float-to-fixnums first) (cdr vals)) vals)) (trie-value it)))) (defun set-* (ins vals form-num depth) ;; (declare (optimize (speed 3) (safety 0))) (let ((first (car vals))) (trie-insert form-num (aref (*-lookup ins) depth) (if (floatp first) (append (float-to-fixnums first) (cdr vals)) vals)))) (defun get-* (ins vals depth) ;; (declare (optimize (speed 3) (safety 0))) (let ((first (car vals))) (awhen (trie-search (aref (*-lookup ins) depth) (if (floatp first) (append (float-to-fixnums first) (cdr vals)) vals)) (trie-value it)))) (defun add-form (form ins &optional depth) (let ((form-num (form-count ins)) (op (car form))) (cond ((numberp op) (set-match ins op (cdr form) form-num)) ((eq op '*) (set-* ins (cdr form) form-num depth)) ((eq op '+) (set-+ ins (cdr form) form-num depth))) (push form (forms ins)); form-num) (incf (form-count ins)) form-num)) (defun push-form (form ins &optional depth) "Pushes a form onto instructions, and returns an index into forms. Won't actually add a form if a matching one exists (acts like pushnew)." (let ((op (car form))) (cond ((numberp op) (let ((form-num (get-match ins op (cdr form)))) (if (>= form-num 0) form-num (add-form form ins)))) ((eq op '*) (or (get-* ins (cdr form) depth) (add-form form ins depth))) ((eq op '+) (or (get-+ ins (cdr form) depth) (add-form form ins depth)))))) (defun gen-evidence (net net-state node-num) (declare (ignore net)) (cons node-num (svref net-state node-num))) (defun post-process-times (depth args ins) "Puts the form in canonical form for insertion." (multiple-value-bind (floats indices) (split #'floatp args) (let ((total (multiply-floats floats))) (cond ((endp indices) total) ; no indices ((endp (cdr indices)) ; one new index (if (= total 1.0d0) ; and no num (car indices) ; delegate (push-form `(* ,total ,(car indices)) ins depth))) ; else push total and index (t (let ((sorted (sort indices #'<))) ; sort multiple indices (if (= total 1.0d0) (push-form (cons '* sorted) ins depth) ; no total, just push the form. ;; make a new index for sorted and push the result. (push-form (list* '* total sorted) ins depth)))))))) (defun post-process-plus (depth args ins) "Puts the form in canonical form for insertion." (multiple-value-bind (floats indices) (split #'floatp args) (let ((total (sum-floats floats))) (cond ((endp indices) total) ; no indices ((endp (cdr indices)) ; one new index (if (= total 0.0d0) ; and no num (car indices) ; delegate (push-form `(+ ,total ,(car indices)) ins depth))) ; else push total and index (t (let ((sorted (sort indices #'<))) ; sort multiple indices (if (= total 0.0d0) (push-form (cons '+ sorted) ins depth) ; no total, just push the form. ;; make a new index for sorted and push the result. (push-form (list* '+ total sorted) ins depth)))))))) (defun gen-separator (net ins net-state traversal depth) "bn - a net object. clique-tree - a clique-tree built from the bn's dag. Symmetric array with node-num lists on the diagonal and t where connected. node-assignment - (aref node-assignment node-num) == node's clique index. net-state - array of the current node states. Nil means the node hasn't been processed. traversal - the current traversal to operate on: (clique trav1 ... travn) depth - the current depth of the traversal." (post-process-plus depth ;; generate a multiply for each net-state instantiation. (destructuring-bind (clique-num net-mask combs) (car traversal) (declare (ignore clique-num)) (dotimes (i (length net-mask)) (when (aref net-mask i) (setf (aref net-state i) 0))) (loop repeat combs ;; iterate through the node assigment collect (gen-clique net ins net-state traversal depth) do (cpt-incf net-state net-mask) finally (dotimes (i (vlength net-mask)) (when (aref net-mask i) (setf (aref net-state i) nil))))) ins)) (defun gen-clique (net ins net-state traversal depth) (flet ((check-zero (x) (if (and (floatp x) (= 0.0d0 (the double-float x))) (return-from gen-clique 0.0d0) x))) (with-slots (assignment) ins (post-process-times depth ;; multiplies floats and sorts indices. Also pushes onto forms. (let (this-form) ;; assigned node parameters and evidence indicators. (loop for node-num in (aref assignment (caar traversal)) do (push (push-form (gen-evidence net net-state node-num) ins) this-form) (push (check-zero (gen-parameter net net-state node-num)) this-form)) ;; children (connected cliques which haven't yet been assigned) (dolist (trav (cdr traversal) this-form) (push (check-zero (gen-separator net ins net-state trav (1+ depth))) this-form))) ins)))) (defun best-traversal (net ins) (with-slots (tree cliques) ins (labels ((trav-third (trav) (cons (funcall #'third (car trav)) (mapcar #'trav-third (cdr trav)))) (gen-trav (node) (net-masks net cliques (traverse tree node))) (traversal-max-mult (trav) (* (car trav) (reduce #'max (mapcar #'traversal-max-mult (cdr trav)) :initial-value 1)))) (let ((travs (map-int #'gen-trav (length tree)))) (best travs #'< :key (compose #'traversal-max-mult #'trav-third)))))) (defun gen-instructions (net) "Generate an arithmetic circuit for the bn represented by a net (bn.lisp). Note that this version assumes the clique-tree is a single tree (which is correct at 15/12/2007)." (unless (slot-boundp net 'node-order) (preprocess-network net)) (with-calculation-context (eql) (let ((ins (make-instance 'instructions :net net)) (net-state (make-array (num-nodes net) :initial-element nil))) (gen-separator net ins net-state (best-traversal net ins) 0) (setf (forms ins) (nreverse (forms ins))) ins))) (defun match (val1 val2) (declare (type fixnum val1 val2)) "Matches evidence." (the double-float (if (< val1 0) 1.0d0 (if (= val1 val2) 1.0d0 0.0d0)))) (declaim (ftype (function (fixnum fixnum) double-float) match) (inline match)) (defun interpret (ins net-spec) (loop with results = (make-array (form-count ins)); :element-type 'double-float) for i fixnum from 0 for (inst-type . vals) in (forms ins) do (setf (aref results i) (cond ((numberp inst-type) (match (aref net-spec inst-type) vals)) ((eq inst-type '+) (loop with val1 = (car vals) with retval = (if (floatp val1) val1 (aref results val1)) for val in (cdr vals) do (incf retval (aref results val)) finally (return retval))) ((eq inst-type '*) (loop with val1 = (car vals) with retval = (if (floatp val1) val1 (aref results val1)) for val in (cdr vals) do (when (= retval 0.0d0) (return 0.0d0)) (setf retval (* retval (aref results val))) finally (return retval))))) finally (return (aref results (1- (vlength results)))))) (defun use-interpreted (net) "Use interpreted arithmetic circuit instructions for the net. Returns the instructions object." (let ((ins (gen-instructions net))) (setf (compiled net) (lambda (net-spec) (interpret ins net-spec))) ins))
11,044
Common Lisp
.lisp
236
42.432203
93
0.640864
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
32a18fb3ff07b861d491c9752c74dcde15fa5a9ebebe11cceeb19c785ae13189
6,287
[ -1 ]
6,288
bn.lisp
lhope_cl-bayesnet/src/bn.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; bn - Bayesian Network classes, evidence and querying APIs. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (defgeneric name (net/node) (:documentation "For a net, a string identifier and for a node, a keyword identifier.")) (defgeneric net (node/join-tree) (:documentation "Returns the containing net for a node or join-tree.")) (defgeneric node-order (net) (:documentation "Returns a list of node-names as keywords. The ordering matches their index order. This is set as part of the network compilation process.")) (defgeneric num-nodes (net) (:documentation "The amount of nodes in the network.")) (defclass net () ((name :reader name :writer set-name) (compiled :initform nil :accessor compiled) (node-order :reader node-order :writer set-node-order); :type (simple-vector)) ;; for rapid access by index. (num-nodes :reader num-nodes) (node-vec :accessor node-vec); :type (simple-array node *)) (nodes :initform (make-hash-table) :reader nodes) (properties :initform (make-hash-table) :reader properties))) (defgeneric num-states (node) (:documentation "The amount of states for the given node.")) (defgeneric parents (node) (:documentation "A vector of parent names as keywords for the given node.")) (defgeneric states (node) (:documentation "A vector of state names as keywords for the given node.")) (defclass node () ((name :reader name :writer set-name) (net :reader net :writer set-net :initarg :net) (table :accessor table) (states :reader states :writer set-states) (parents :reader parents :writer set-parents) ;; for rapid access by index. (parent-vec :accessor parent-vec); :type (simple-array node *)) (parent-indices :accessor parent-indices :type (simple-array fixnum *)) (num-states :reader num-states) (index :accessor index) (evidence :accessor %evidence :initform -1); :type fixnum) (properties :initform (make-hash-table) :reader properties))) (defun statep (node state) (or (and (integerp state) (>= state 0) (< state (num-states node))) (position state (states node)))) (defun num-states-1 (node) (length (states node))) (defun num-nodes-1 (net) (hash-table-count (nodes net))) (defun preprocess-node (node) "Store information for efficient lookup." (with-slots (parents) node (declare (simple-vector parents)) (loop with parent-vec = (make-array (length parents)); :element-type 'node :initial-element node) with parent-indices = (make-array (length parents) :element-type 'fixnum :initial-element 0) for parent-name across parents for parent = (node parent-name (net node)) for index = 0 then (1+ index) do (setf (aref parent-vec index) parent) (setf (aref parent-indices index) (index parent)) finally (setf (slot-value node 'num-states) (length (states node)) (slot-value node 'parent-vec) parent-vec (slot-value node 'parent-indices) parent-indices)))) (defun preprocess-network (net) "Readies the network for efficient lookup. Sets a node ordering for the network. Also sets node parent-vec and parent-indices." (loop with array = (make-array (hash-table-count (nodes net))) with node-vec = (make-array (length array)); :element-type 'node ;:initial-element (make-instance 'node)) for name being each hash-key in (nodes net) for node being each hash-value in (nodes net) for index = 0 then (1+ index) do (setf (aref array index) name) (setf (aref node-vec index) node) (setf (index node) index) finally (setf (slot-value net 'num-nodes) (length node-vec)) (set-node-order array net) (setf (node-vec net) node-vec) (loop for node across (node-vec net) ;; now do node parents do (preprocess-node node)) (return (node-order net)))) (defun num-arcs (net) (loop for node being each hash-value in (nodes net) sum (length (the simple-vector (parents node))))) (defgeneric node (name/index net/join-tree) (:documentation "Retrieve the node represented by a keyword name or index from the given net or join-tree.")) (defmethod node ((name symbol) (net net)) (gethash name (nodes net))) (defmethod node ((index fixnum) (net net)) (with-slots (node-vec) net ;(declare (type (simple-array node *) node-vec)) (aref node-vec index))) (defun table-lookup (table indices) (apply #'aref table indices)) ;; evidence (defgeneric clear-evidence (object) (:documentation "Clear all evidence from object.")) (defmethod clear-evidence ((node node)) (setf (%evidence node) -1)) (defmethod clear-evidence ((net net)) (loop for node being each hash-value in (nodes net) do (clear-evidence node))) (defgeneric evidence-index (object) (:documentation "Returns the evidence in a node as a state index and nets as a vector of state indices. -1 indicates no evidence.")) (defmethod evidence-index ((node node)) (%evidence node)) (defmethod evidence-index ((net net)) (loop for node being each hash-value in (nodes net) for evidence = (evidence-index node) when evidence nconc (list (name node) evidence))) (defgeneric evidence (object) (:documentation "Returns the evidence in a node as its state symbol (nil if no evidence), and for nets and join-trees a plist of node-state pairs. Settable.")) (defmethod evidence ((node node)) (let ((evidence (%evidence node))) (declare (fixnum evidence)) (unless (< evidence 0) (svref (states node) evidence)))) (defmethod evidence ((net net)) (loop for node being each hash-value in (nodes net) for evidence = (evidence node) when evidence nconc (list (name node) evidence))) (defgeneric add-evidence (object evidence) (:documentation "Sets the evidence in a node via state index or symbol. For a net or join-tree, adds the evidence as a plist of node-state pairs.")) (defmethod add-evidence ((net net) (evidence list)) (when evidence (destructuring-bind (name state &rest next) evidence (setf (evidence (or (node name net) (error "add-evidence: Could not find node ~A in net!" name))) state) (add-evidence net next))) evidence) (defmethod add-evidence (object evidence) (setf (evidence object) evidence)) (defgeneric (setf evidence) (evidence object) (:documentation "Sets the evidence in a node via state index or symbol. For a net or join-tree, sets the evidence as either a plist of node-state pairs, or a vector of state indices (or -1 for unobserved) corresponding to the net's node-order.")) (defmethod (setf evidence) ((null null) (node node)) (setf (%evidence node) -1)) (defmethod (setf evidence) ((index integer) (node node)) (setf (%evidence node) index)) (defmethod (setf evidence) ((state symbol) (node node)) (setf (%evidence node) (position state (states node))) state) (defmethod (setf evidence) ((evidence list) (net net)) (clear-evidence net) (add-evidence net evidence)) (defmethod (setf evidence) ((evidence vector) (net net)) "Sets net's evidence according to net-state vec." (loop for name across (node-order net) for ev across evidence for node = (node name net) do (setf (evidence node) ev))) (defun %evidence-1 (net array) ;(declare (type (array (array fixnum *)))) (let ((nodes (node-order net))) (dotimes (i (vlength nodes) array) (setf (aref array i) (evidence-index (node (aref nodes i) net)))))) (defgeneric evidence-1 (object)) (defmethod evidence-1 ((net net)) (%evidence-1 net (make-array (num-nodes net)))); :element-type 'fixnum))) (defmacro save-evidence (object &body body) (with-gensyms (gobject gstore) `(let* ((,gobject ,object) (,gstore (evidence-1 ,gobject))) (unwind-protect (progn ,@body) (setf (evidence ,gobject) ,gstore))))) (defmacro with-evidence ((net &rest evidence) &body body) "Saves the existing evidence in the net and sets the evidence to evidence. Restores the net to its previous state after leaving the with-evidence block." (let ((gnet (gensym))) `(let ((,gnet ,net)) (save-evidence ,gnet (setf (evidence ,gnet) ',evidence) ,@body)))) (defgeneric %query (net query) (:documentation "Query a net/node.")) (defmethod %query ((node node) (query integer)) (when (and (>= query 0) (< query (num-states node))) (let ((old (evidence-index node))) (unwind-protect (/ (progn (setf (evidence node) query) (%query (net node) nil)) (progn (setf (evidence node) nil) (%query (net node) nil))) (setf (evidence node) old))))) (defmethod %query ((node node) (query symbol)) (awhen (position query (states node)) (%query node it))) (defmethod %query ((node node) (query null)) (let ((old (evidence-index node))) (unwind-protect (let ((probs (make-array (num-states node))); :element-type 'double-float)) (total 0.0d0)) (dotimes (i (num-states node)) (let ((val (progn (setf (evidence node) i) (%query (net node) nil)))) (incf total val) (setf (aref probs i) val))) (dotimes (i (num-states node) probs) (setf (aref probs i) (/ (aref probs i) total)))) (setf (evidence node) old)))) (defmethod %query ((node node) (query list)) (let ((old (evidence-index node))) (unwind-protect (let ((probs (make-array (num-states node))); :element-type 'double-float)) (total 0.0d0)) (dotimes (i (num-states node)) (let ((val (%query (net node) (list* (name node) i query)))) (incf total val) (setf (aref probs i) val))) (dotimes (i (num-states node) probs) (setf (aref probs i) (/ (aref probs i) total)))) (setf (evidence node) old)))) (defmethod %query ((net net) (query vector)) (funcall (compiled net) query)) (defmethod %query ((net net) (query symbol)) (awhen (node query net) (%query it nil))) (defmethod %query ((net net) (query list)) (with-evidence (net) (add-evidence net query) (%query net nil))) (defmethod %query ((net net) (query null)) (funcall (compiled net) (evidence-1 net))) (defun query (object &optional query) "Queries a net or node object. node only - A probability vector for the states of node. node and integer - The probability the node is in that numbered state (according to (states node)). node and symbol - The probability the node is in that state. node and list - A probability vector for the states of node given list, which is a plist of node-state pairs. net only - The joint probability for the whole net. net and vector - The joint probability for the whole net, given the vector. Vector has the num-nodes length, and contains either a state number for each node, or -1 if the node state is unknown. net and symbol - A probability vector for the states of the node designated by symbol. net and list - The joint probability for the whole net, given list, which is a plist of node-state pairs. " (%query object query)) (defun gen-parameter (net net-state node-num) "Generate a parameter for the net with the given net-state and node-num." (declare (optimize (speed 3) (safety 0)) (type (mod #.most-positive-fixnum) node-num)) (loop with node = (node node-num net) and state = (aref net-state node-num) for parent-index across (the (simple-array fixnum *) (parent-indices node)) ;; collect the state for this parent. collect (svref net-state parent-index) into dims finally (return (coerce (svref (apply #'aref (table node) dims) state) 'double-float))))
12,685
Common Lisp
.lisp
305
37.42623
81
0.685297
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
0faaba1367a7137bccb6e713601a9407b4d02a4ef94cf1a4af94a67e6479d21a
6,288
[ -1 ]
6,289
packages.lisp
lhope_cl-bayesnet/src/packages.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; packages - Package and external API definition. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-user) (defpackage :cl-bayesnet (:documentation "A Common Lisp Bayesian Network Inference Engine") (:use :cl) (:nicknames :bn) (:export ;; create :load-xmlbif :load-ace :load-dne ;; prepare :use-compiled-c ;; slow compile, fastest execution. :use-interpreted ;; slow compile, fast execution. :use-join-tree ;; fast compile, slow execution. ;; classes :net :node ;; also a reader function. :join-tree :instructions ;; readers :node-order :name :states :parents :num-states :num-nodes ;; probability querying. :query ;; evidence :clear-evidence :evidence-index :evidence :add-evidence :with-evidence ))
1,718
Common Lisp
.lisp
56
27.910714
72
0.693791
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
007c00627d60c9c4e7b1c7fd0328d395ee3f2468383fff8ba56babc06a5dd9b2
6,289
[ -1 ]
6,290
test.lisp
lhope_cl-bayesnet/src/test.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; test - Internal test tools to make random networks and evidence. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) (defun random-graph (num-nodes num-arcs &key ensure-connected) (declare (fixnum num-nodes num-arcs)) ;; make graph (let ((graph (make-array num-nodes :initial-element nil))) (when (> num-arcs 0) (loop with i = 0 for a = (random num-nodes) for b = (random num-nodes) do (unless (or (= a b) (neighbour graph a b)) (connect graph a b) (incf i)) until (= i num-arcs))) (when ensure-connected (loop for roots = (roots graph) while (cdr roots) for shuffle = (shuffle (length roots)) do (connect graph (nth (aref shuffle 0) roots) (nth (aref shuffle 1) roots)))) graph)) (defun random-prob (num-states) (declare (fixnum num-states)) (loop with prob = (make-array num-states :element-type 'float :initial-element 0.0) with total = 0.0d0 for i from 0 to (1- num-states) do (incf total (setf (aref prob i) (random 1.0))) finally (dotimes (j num-states) (setf (aref prob j) (/ (aref prob j) total))) (return prob))) (defun random-table (node) (loop with net = (net node) with parent-states = (map 'list (lambda (x) (num-states-1 (node x net))) (parents node)) with combs = (reduce #'* parent-states) with num-states = (num-states-1 node) with prob-vec = (make-array combs) for i from 0 to (1- combs) do (setf (aref prob-vec i) (random-prob num-states)) finally (return (make-array parent-states :displaced-to prob-vec)))) (defun random-network (max-states &rest random-graph-args) ;; make net (loop with graph = (apply #'random-graph random-graph-args) with net = (make-instance 'net) with total-order = (shuffle (length graph)) for i of-type fixnum across total-order for node = (make-instance 'node :net net) do (setf (slot-value node 'name) (intern (format nil "V~A" i) :keyword)) (setf (slot-value node 'parents) (map 'vector (lambda (x) (intern (format nil "V~A" x) :keyword)) (aref graph i))) (setf (slot-value node 'states) (coerce (let ((min (if (consp max-states) (first max-states) 2)) (max (if (consp max-states) (second max-states) max-states))) (map-int #'identity (+ min (random (1+ (- max min)))))) 'vector)) (setf (gethash (name node) (nodes net)) node) (delete-node graph i) finally (loop for node being each hash-value in (nodes net) do (setf (table node) (random-table node))) (return net))) (defun net-graph (net) "Output the net's structure in a viewable form." (coerce (loop for i from 0 to (1- (num-nodes net)) collect (coerce (parent-indices (node i net)) 'list)) 'vector)) (defun test-net-random (net &optional (iterations 100)) (assert (compiled net) () "Choose a compilation type for the net.") (let (probs (net-spec (make-array (num-nodes net) :element-type 'fixnum)) (array (returnit (make-array (num-nodes net)) (dotimes (i (num-nodes net)) (setf (aref it i) i))))) (dotimes (i iterations probs) (push (%query net (random-evidence net net-spec array)) probs)))) (defun random-evidence (net &optional (net-spec (make-array (num-nodes net) :element-type 'fixnum)) (arr (returnit (make-array (num-nodes net) :element-type 'fixnum) (dotimes (i (num-nodes net)) (setf (aref it i) i))))) (shuffle arr) (dotimes (i (vlength net-spec)) (setf (aref net-spec i) -1)) (dotimes (j (random (num-nodes net))) (setf (aref net-spec (aref arr j)) (random (num-states (node (aref arr j) net))))) net-spec) (defun junction-p (cliques tree) "Test whether the tree is in fact a junction tree, meaning for each pair of cliques, all cliques in between contain their intersection." (dotimes (i (1- (length cliques)) t) (loop for j from (1+ i) to (1- (length cliques)) for intersection = (intersection (aref cliques i) (aref cliques j)) do (loop for clique-num in (path tree i j) ;; inefficiently checks node j. for clique = (aref cliques clique-num) do (dolist (node intersection) (unless (member node clique) (return-from junction-p nil)))))))
5,247
Common Lisp
.lisp
126
36.984127
85
0.651782
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
2ea417fc8a3a295076889f3219f0dd94007a272642066c3aaf516efddc8b85fb
6,290
[ -1 ]
6,291
emit-lisp.lisp
lhope_cl-bayesnet/tests/emit-lisp.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; emit-lisp - Write out lisp source code from Arithmetic Circuit ;; instructions. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (in-package :cl-bayesnet) ;;;; ;;;; The below code is obsolete. There is not yet any point to ;;;; rewriting it, because the SBCL compiler is too slow to be relied ;;;; upon. ;;;; (defun emit-lisp-bind (array-symbol var-array) (loop for var across var-array for index = 0 then (1+ index) collect `(,var (svref ,array-symbol ,index)))) (defun compile-lisp-net (net) (multiple-value-bind (forms result var-array form-count) (emit-instructions net) (let* ((net-spec (gentemp "NET")) (func `(lambda (,net-spec) (let ,(emit-lisp-bind net-spec var-array) (let* ,forms ,result))))) (setf (compiled net) (compile nil func)) (values func form-count))))
1,748
Common Lisp
.lisp
43
38.069767
72
0.686251
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
27211c45557ed30933e85c465661c54e1e1fcf96b4488a276a19c4c81f78d5e2
6,291
[ -1 ]
6,292
test-alarm.lisp
lhope_cl-bayesnet/tests/test-alarm.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; test-alarm - Test/example usage code. Note this is public domain. ;; ;; This is free and unencumbered software released into the public domain. ;; ;; Anyone is free to copy, modify, publish, use, compile, sell, or ;; distribute this software, either in source code form or as a compiled ;; binary, for any purpose, commercial or non-commercial, and by any ;; means. ;; ;; In jurisdictions that recognize copyright laws, the author or authors ;; of this software dedicate any and all copyright interest in the ;; software to the public domain. We make this dedication for the benefit ;; of the public at large and to the detriment of our heirs and ;; successors. We intend this dedication to be an overt act of ;; relinquishment in perpetuity of all present and future rights to this ;; software under copyright law. ;; ;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ;; IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR ;; OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ;; ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR ;; OTHER DEALINGS IN THE SOFTWARE. ;; ;; For more information, please refer to <http://unlicense.org/> (in-package :cl-user) (defparameter *join-tree* (bn:load-dne (merge-pathnames "git/cl-bayesnet/nets/alarm.dne" (user-homedir-pathname)))) (defparameter *interpreted* (bn:load-xmlbif (merge-pathnames "git/cl-bayesnet/nets/alarm.xml" (user-homedir-pathname)))) (defparameter *compiled-c* (bn:load-xmlbif (merge-pathnames "git/cl-bayesnet/nets/alarm.xml" (user-homedir-pathname)))) (time (defparameter *jt* (bn:use-join-tree *join-tree*))) ;; 0.033 seconds of real time (time (defparameter *instructions* (bn:use-interpreted *interpreted*))) ;; 27.236 seconds of real time (time (bn:use-compiled-c *compiled-c*)) ;; 28.207 seconds of real time (bn:node-order *join-tree*) ;; dne #(:HYPOVOLEMIA :LVFAILURE :LVEDVOLUME :STROKEVOLUME :CVP :PCWP :INSUFFANESTH :PULMEMBOLUS :INTUBATION :SHUNT :KINKEDTUBE :MINVOLSET :VENTMACH :DISCONNECT :VENTTUBE :VENTLUNG :VENTALV :FIO2 :PVSAT :SAO2 :ANAPHYLAXIS :TPR :ARTCO2 :CATECHOL :HR :CO :HISTORY :BP :ERRCAUTER :HREKG :HRSAT :ERRLOWOUTPUT :HRBP :EXPCO2 :PAP :PRESS :MINVOL) (bn:node-order *interpreted*) ;; bif #(:HYPOVOLEMIA :STROKEVOLUME :LVFAILURE :LVEDVOLUME :PCWP :CVP :HISTORY :MINVOLSET :VENTMACH :DISCONNECT :VENTTUBE :KINKEDTUBE :PRESS :ERRLOWOUTPUT :HRBP :ERRCAUTER :HREKG :HRSAT :BP :CO :HR :TPR :ANAPHYLAXIS :INSUFFANESTH :PAP :PULMEMBOLUS :FIO2 :CATECHOL :SAO2 :SHUNT :PVSAT :MINVOL :EXPCO2 :ARTCO2 :VENTALV :VENTLUNG :INTUBATION) (bn:states (bn:node :hypovolemia *compiled-c*)) #(:TRUE :FALSE) (bn:states (bn:node :bp *compiled-c*)) #(:LOW :NORMAL :HIGH) ;; For queries you can use the join-tree object same as the net object. ;; I use *jt* to demonstrate (bn:query *jt* '(:bp :low :history :false)) 0.41846273520929067d0 (bn:query *interpreted* '(:bp :low :history :false)) 0.41846274444015086d0 (bn:query *compiled-c* '(:bp :low :history :false)) 0.41846274444015086d0 (bn:query (bn:node :hrbp *jt*)) #(0.07128078734685757d0 0.4167348123134152d0 0.5119844003397273d0) (bn:query (bn:node :hrbp *interpreted*)) #(0.07128078957655479d0 0.4167348170680417d0 0.5119843933554036d0) (bn:query (bn:node :hrbp *compiled-c*)) #(0.07128078957655479d0 0.4167348170680417d0 0.5119843933554036d0) (bn:query (bn:node :hrbp *jt*) '(:ventlung :zero)) #(0.037591916440952444d0 0.13858216958572717d0 0.8238259139733204d0) (bn:query (bn:node :hrbp *interpreted*) '(:ventlung :zero)) #(0.03759191698211968d0 0.13858217452537563d0 0.8238259084925047d0) (bn:query (bn:node :hrbp *compiled-c*) '(:ventlung :zero)) #(0.03759191698211968d0 0.13858217452537563d0 0.8238259084925047d0) ;; some speed tests. (progn (time (length (bn::test-net-random *compiled-c* 100000)))) ;; 0.636 seconds of real time (progn (time (length (bn::test-net-random *interpreted* 100000)))) ;; 12.010 seconds of real time ;; Here we use only 1000 because join tree is much slower. (progn (time (length (bn::test-net-random *join-tree* 1000)))) ;; 8.281 seconds of real time ;; Evidence (bn:with-evidence (*compiled-c* :ventlung 0 :pcwp 0) (bn:query *compiled-c*)) 0.029107331259445833d0 (bn:states (bn:node :hrbp *compiled-c*)) #(:LOW :NORMAL :HIGH) (bn:with-evidence (*compiled-c* :ventlung :high :pcwp :high) (bn:query (bn:node :hrbp *compiled-c*))) #(0.09471917513150513d0 0.6102541714395288d0 0.2950266534289663d0)
4,730
Common Lisp
.lisp
105
43.238095
79
0.739509
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
7184fb981a736b1ddd6ea5ecf387d6e522f260a2ef4c14c8f13a1b1d083c6008
6,292
[ -1 ]
6,293
cl-bayesnet.asd
lhope_cl-bayesnet/cl-bayesnet.asd
;;;; -*- Mode: LISP -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; cl-bayesnet - ASDF system definition for the cl-bayesnet system. ;; ;; Copyright (c) 2007-2013, Lucas Hope <[email protected]>. ;; Copyright other contributors as noted in the AUTHORS file. ;; ;; This file is part of cl-bayesnet - a Common Lisp Bayesian Network ;; Inference Engine. ;; ;; This file is licensed under the terms of the LLGPL. ;; ;; This library is free software; you can redistribute it and/or modify ;; it under the terms of the Lisp Lesser General Public License version ;; 3, which consists of the GNU Lesser General Public License, either ;; version 3 or (at your option) any later version, as published by the ;; Free Software Foundation, and the Franz preamble. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. (asdf:defsystem :cl-bayesnet :name "cl-bayesnet" :author "Lucas Hope <[email protected]>" :version "0.1.0" :maintainer "Lucas Hope <[email protected]>" :description "A Common Lisp Bayesian Network Inference Engine" :license "LLGPL" :depends-on (:s-xml #-cl-bayesnet-no-cffi :trivial-shell #-cl-bayesnet-no-cffi :cffi) :serial t :components ((:module :src :serial t :components ((:file "packages") (:file "utils") (:file "tries") (:file "bn-utils") (:file "bn") (:file "parse-network") (:file "clique-tree") (:file "message") (:file "evidence") (:file "compiler") (:file "emit-c") (:file "test")))))
1,795
Common Lisp
.asd
47
34.170213
72
0.649113
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
5a6b14553aceaafb5aeb713579e75758b19f5bd24ca901ca6a4239a300d83922
6,293
[ -1 ]
6,294
make-api-doc.sbcl
lhope_cl-bayesnet/make-api-doc.sbcl
#!/usr/bin/sbcl --script ;; The default quicklisp location. #-quicklisp (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) (when (probe-file quicklisp-init) (load quicklisp-init))) (require 'sb-introspect) ;; workaround, cl-api should include this. (ql:quickload '("cl-bayesnet" "cl-api")) (unless (cdr sb-ext:*posix-argv*) (format t "~&Usage: make-api-doc.sbcl <output-directory>~2%")) (defparameter *doc-dir* (let ((arg (second sb-ext:*posix-argv*))) (if arg (make-pathname :directory arg) ""))) (cl-api:api-gen :cl-bayesnet *doc-dir* :exclude-const (constantly t) :exclude-var (constantly t) :exclude-class (constantly t) :exclude-cond (constantly t) :exclude-macro nil ) (format t "~2%")
806
Common Lisp
.cl
24
29.541667
67
0.664948
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
b41822ea79659e8598c40ed2e087c50f181c09ec71ac7e63b7148ed963828172
6,294
[ -1 ]
6,312
alarm.xml
lhope_cl-bayesnet/nets/alarm.xml
<?xml version="1.0" encoding="US-ASCII"?> <!-- Bayesian network in XMLBIF v0.3 (BayesNet Interchange Format) Produced by JavaBayes (http://www.cs.cmu.edu/~javabayes/ Output created Mon Nov 02 22:40:15 GMT-03:00 1998 --> <!-- DTD for the XMLBIF 0.3 format --> <!DOCTYPE BIF [ <!ELEMENT BIF ( NETWORK )*> <!ATTLIST BIF VERSION CDATA #REQUIRED> <!ELEMENT NETWORK ( NAME, ( PROPERTY | VARIABLE | DEFINITION )* )> <!ELEMENT NAME (#PCDATA)> <!ELEMENT VARIABLE ( NAME, ( OUTCOME | PROPERTY )* ) > <!ATTLIST VARIABLE TYPE (nature|decision|utility) "nature"> <!ELEMENT OUTCOME (#PCDATA)> <!ELEMENT DEFINITION ( FOR | GIVEN | TABLE | PROPERTY )* > <!ELEMENT FOR (#PCDATA)> <!ELEMENT GIVEN (#PCDATA)> <!ELEMENT TABLE (#PCDATA)> <!ELEMENT PROPERTY (#PCDATA)> ]> <BIF VERSION="0.3"> <NETWORK> <NAME>Alarm</NAME> <!-- Variables --> <VARIABLE TYPE="nature"> <NAME>Hypovolemia</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (54, 35)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>StrokeVolume</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (184, 113)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>LVFailure</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (145, 36)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>LVEDVolume</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (68, 114)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>PCWP</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (111, 177)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>CVP</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (32, 179)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>History</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (238, 61)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>MinVolSet</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (564, 38)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>VentMach</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (640, 86)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>Disconnect</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (738, 86)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>VentTube</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (682, 168)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>KinkedTube</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (564, 172)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>Press</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (722, 253)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>ErrLowOutput</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (226, 237)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>HRBP</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (229, 305)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>ErrCauter</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (366, 278)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>HREKG</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (289, 305)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>HRSat</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (220, 396)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>BP</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (154, 396)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>CO</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (195, 176)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>HR</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (308, 171)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>TPR</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (120, 301)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>Anaphylaxis</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (31, 239)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>InsuffAnesth</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (329, 37)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>PAP</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (1045, 292)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>PulmEmbolus</NAME> <OUTCOME>True</OUTCOME> <OUTCOME>False</OUTCOME> <PROPERTY>position = (969, 258)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>FiO2</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <PROPERTY>position = (1014, 162)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>Catechol</NAME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (329, 107)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>SaO2</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (926, 387)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>Shunt</NAME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (894, 293)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>PVSat</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (949, 197)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>MinVol</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (754, 387)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>ExpCO2</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (530, 393)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>ArtCO2</NAME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (474, 277)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>VentAlv</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (881, 165)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>VentLung</NAME> <OUTCOME>Zero</OUTCOME> <OUTCOME>Low</OUTCOME> <OUTCOME>Normal</OUTCOME> <OUTCOME>High</OUTCOME> <PROPERTY>position = (706, 344)</PROPERTY> </VARIABLE> <VARIABLE TYPE="nature"> <NAME>Intubation</NAME> <OUTCOME>Normal</OUTCOME> <OUTCOME>Esophageal</OUTCOME> <OUTCOME>OneSided</OUTCOME> <PROPERTY>position = (843, 86)</PROPERTY> </VARIABLE> <!-- Probability distributions --> <DEFINITION> <FOR>Hypovolemia</FOR> <TABLE>0.2 0.8 </TABLE> </DEFINITION> <DEFINITION> <FOR>StrokeVolume</FOR> <GIVEN>LVFailure</GIVEN> <GIVEN>Hypovolemia</GIVEN> <TABLE>0.98 0.01 0.01 0.5 0.49 0.01 0.95 0.04 0.01 0.05 0.9 0.05 </TABLE> </DEFINITION> <DEFINITION> <FOR>LVFailure</FOR> <TABLE>0.05 0.95 </TABLE> </DEFINITION> <DEFINITION> <FOR>LVEDVolume</FOR> <GIVEN>Hypovolemia</GIVEN> <GIVEN>LVFailure</GIVEN> <TABLE>0.95 0.04 0.01 0.98 0.01 0.01 0.01 0.09 0.9 0.05 0.9 0.05 </TABLE> </DEFINITION> <DEFINITION> <FOR>PCWP</FOR> <GIVEN>LVEDVolume</GIVEN> <TABLE>0.95 0.04 0.01 0.04 0.95 0.01 0.01 0.04 0.95 </TABLE> </DEFINITION> <DEFINITION> <FOR>CVP</FOR> <GIVEN>LVEDVolume</GIVEN> <TABLE>0.95 0.04 0.01 0.04 0.95 0.01 0.01 0.29 0.7 </TABLE> </DEFINITION> <DEFINITION> <FOR>History</FOR> <GIVEN>LVFailure</GIVEN> <TABLE>0.9 0.1 0.01 0.99 </TABLE> </DEFINITION> <DEFINITION> <FOR>MinVolSet</FOR> <TABLE>0.01 0.98 0.01 </TABLE> </DEFINITION> <DEFINITION> <FOR>VentMach</FOR> <GIVEN>MinVolSet</GIVEN> <TABLE>0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 </TABLE> </DEFINITION> <DEFINITION> <FOR>Disconnect</FOR> <TABLE>0.05 0.95 </TABLE> </DEFINITION> <DEFINITION> <FOR>VentTube</FOR> <GIVEN>VentMach</GIVEN> <GIVEN>Disconnect</GIVEN> <TABLE>0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.01 0.97 0.01 0.97 0.01 0.01 0.01 0.01 0.01 0.01 0.97 </TABLE> </DEFINITION> <DEFINITION> <FOR>KinkedTube</FOR> <TABLE>0.04 0.96 </TABLE> </DEFINITION> <DEFINITION> <FOR>Press</FOR> <GIVEN>KinkedTube</GIVEN> <GIVEN>Intubation</GIVEN> <GIVEN>VentTube</GIVEN> <TABLE>0.97 0.01 0.01 0.01 0.01 0.49 0.3 0.2 0.01 0.01 0.08 0.9 0.01 0.01 0.01 0.97 0.97 0.01 0.01 0.01 0.1 0.84 0.05 0.01 0.05 0.25 0.25 0.45 0.01 0.15 0.25 0.59 0.97 0.01 0.01 0.01 0.01 0.29 0.3 0.4 0.01 0.01 0.08 0.9 0.01 0.01 0.01 0.97 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.97 0.01 0.01 0.01 0.4 0.58 0.01 0.01 0.2 0.75 0.04 0.01 0.2 0.7 0.09 0.01 0.97 0.01 0.01 0.01 0.01 0.9 0.08 0.01 0.01 0.01 0.38 0.6 0.01 0.01 0.01 0.97 </TABLE> </DEFINITION> <DEFINITION> <FOR>ErrLowOutput</FOR> <TABLE>0.05 0.95 </TABLE> </DEFINITION> <DEFINITION> <FOR>HRBP</FOR> <GIVEN>ErrLowOutput</GIVEN> <GIVEN>HR</GIVEN> <TABLE>0.98 0.01 0.01 0.4 0.59 0.01 0.3 0.4 0.3 0.98 0.01 0.01 0.01 0.98 0.01 0.01 0.01 0.98 </TABLE> </DEFINITION> <DEFINITION> <FOR>ErrCauter</FOR> <TABLE>0.1 0.9 </TABLE> </DEFINITION> <DEFINITION> <FOR>HREKG</FOR> <GIVEN>HR</GIVEN> <GIVEN>ErrCauter</GIVEN> <TABLE>0.333333 0.333333 0.333333 0.98 0.01 0.01 0.333333 0.333333 0.333333 0.01 0.98 0.01 0.333333 0.333333 0.333333 0.01 0.01 0.98 </TABLE> </DEFINITION> <DEFINITION> <FOR>HRSat</FOR> <GIVEN>HR</GIVEN> <GIVEN>ErrCauter</GIVEN> <TABLE>0.333333 0.333333 0.333333 0.98 0.01 0.01 0.333333 0.333333 0.333333 0.01 0.98 0.01 0.333333 0.333333 0.333333 0.01 0.01 0.98 </TABLE> </DEFINITION> <DEFINITION> <FOR>BP</FOR> <GIVEN>CO</GIVEN> <GIVEN>TPR</GIVEN> <TABLE>0.98 0.01 0.01 0.98 0.01 0.01 0.3 0.6 0.1 0.98 0.01 0.01 0.1 0.85 0.05 0.05 0.4 0.55 0.9 0.09 0.01 0.05 0.2 0.75 0.01 0.09 0.9 </TABLE> </DEFINITION> <DEFINITION> <FOR>CO</FOR> <GIVEN>HR</GIVEN> <GIVEN>StrokeVolume</GIVEN> <TABLE>0.98 0.01 0.01 0.95 0.04 0.01 0.3 0.69 0.01 0.95 0.04 0.01 0.04 0.95 0.01 0.01 0.3 0.69 0.8 0.19 0.01 0.01 0.04 0.95 0.01 0.01 0.98 </TABLE> </DEFINITION> <DEFINITION> <FOR>HR</FOR> <GIVEN>Catechol</GIVEN> <TABLE>0.1 0.89 0.01 0.01 0.09 0.9 </TABLE> </DEFINITION> <DEFINITION> <FOR>TPR</FOR> <GIVEN>Anaphylaxis</GIVEN> <TABLE>0.98 0.01 0.01 0.3 0.4 0.3 </TABLE> </DEFINITION> <DEFINITION> <FOR>Anaphylaxis</FOR> <TABLE>0.01 0.99 </TABLE> </DEFINITION> <DEFINITION> <FOR>InsuffAnesth</FOR> <TABLE>0.2 0.8 </TABLE> </DEFINITION> <DEFINITION> <FOR>PAP</FOR> <GIVEN>PulmEmbolus</GIVEN> <TABLE>0.01 0.19 0.8 0.05 0.9 0.05 </TABLE> </DEFINITION> <DEFINITION> <FOR>PulmEmbolus</FOR> <TABLE>0.01 0.99 </TABLE> </DEFINITION> <DEFINITION> <FOR>FiO2</FOR> <TABLE>0.01 0.99 </TABLE> </DEFINITION> <DEFINITION> <FOR>Catechol</FOR> <GIVEN>InsuffAnesth</GIVEN> <GIVEN>SaO2</GIVEN> <GIVEN>TPR</GIVEN> <GIVEN>ArtCO2</GIVEN> <TABLE>0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.05 0.95 0.05 0.95 0.01 0.99 0.01 0.99 0.01 0.99 0.01 0.99 0.05 0.95 0.05 0.95 0.01 0.99 0.05 0.95 0.05 0.95 0.01 0.99 0.05 0.95 0.05 0.95 0.01 0.99 0.05 0.95 0.05 0.95 0.01 0.99 0.05 0.95 0.05 0.95 0.01 0.99 0.1 0.9 0.1 0.9 0.1 0.9 0.95 0.05 0.95 0.05 0.3 0.7 0.95 0.05 0.95 0.05 0.3 0.7 0.95 0.05 0.95 0.05 0.3 0.7 0.99 0.01 0.99 0.01 0.99 0.01 0.95 0.05 0.99 0.01 0.3 0.7 </TABLE> </DEFINITION> <DEFINITION> <FOR>SaO2</FOR> <GIVEN>Shunt</GIVEN> <GIVEN>PVSat</GIVEN> <TABLE>0.98 0.01 0.01 0.01 0.98 0.01 0.01 0.01 0.98 0.98 0.01 0.01 0.98 0.01 0.01 0.69 0.3 0.01 </TABLE> </DEFINITION> <DEFINITION> <FOR>Shunt</FOR> <GIVEN>PulmEmbolus</GIVEN> <GIVEN>Intubation</GIVEN> <TABLE>0.1 0.9 0.1 0.9 0.01 0.99 0.95 0.05 0.95 0.05 0.05 0.95 </TABLE> </DEFINITION> <DEFINITION> <FOR>PVSat</FOR> <GIVEN>VentAlv</GIVEN> <GIVEN>FiO2</GIVEN> <TABLE>0.98 0.01 0.01 0.98 0.01 0.01 0.98 0.01 0.01 0.98 0.01 0.01 0.95 0.04 0.01 0.01 0.95 0.04 0.95 0.04 0.01 0.01 0.01 0.98 </TABLE> </DEFINITION> <DEFINITION> <FOR>MinVol</FOR> <GIVEN>VentLung</GIVEN> <GIVEN>Intubation</GIVEN> <TABLE>0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.6 0.38 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.5 0.48 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.5 0.48 0.01 0.01 0.01 0.01 0.01 0.97 </TABLE> </DEFINITION> <DEFINITION> <FOR>ExpCO2</FOR> <GIVEN>ArtCO2</GIVEN> <GIVEN>VentLung</GIVEN> <TABLE>0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.97 0.01 0.01 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 </TABLE> </DEFINITION> <DEFINITION> <FOR>ArtCO2</FOR> <GIVEN>VentAlv</GIVEN> <TABLE>0.01 0.01 0.98 0.01 0.01 0.98 0.04 0.92 0.04 0.9 0.09 0.01 </TABLE> </DEFINITION> <DEFINITION> <FOR>VentAlv</FOR> <GIVEN>Intubation</GIVEN> <GIVEN>VentLung</GIVEN> <TABLE>0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.97 0.01 0.01 0.01 0.03 0.95 0.01 0.01 0.01 0.94 0.04 0.01 0.01 0.88 0.1 0.01 </TABLE> </DEFINITION> <DEFINITION> <FOR>VentLung</FOR> <GIVEN>KinkedTube</GIVEN> <GIVEN>VentTube</GIVEN> <GIVEN>Intubation</GIVEN> <TABLE>0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.95 0.03 0.01 0.01 0.97 0.01 0.01 0.01 0.95 0.03 0.01 0.01 0.4 0.58 0.01 0.01 0.97 0.01 0.01 0.01 0.5 0.48 0.01 0.01 0.3 0.68 0.01 0.01 0.97 0.01 0.01 0.01 0.3 0.68 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.01 0.97 0.01 0.01 0.01 0.01 0.01 0.97 0.01 0.01 0.01 0.01 0.97 0.97 0.01 0.01 0.01 0.01 0.01 0.01 0.97 </TABLE> </DEFINITION> <DEFINITION> <FOR>Intubation</FOR> <TABLE>0.92 0.03 0.05 </TABLE> </DEFINITION> </NETWORK> </BIF>
15,185
Common Lisp
.l
475
29.126316
543
0.673793
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
bf3a6c496fa707f8a25400c7cf89513adce837bd6351fd914cf6c78873af06fc
6,312
[ -1 ]
6,313
alarm.dne
lhope_cl-bayesnet/nets/alarm.dne
// ~->[DNET-1]->~ // File created by NicholsonA at MonashU using Netica 2.07 on Oct 01, 2001 at 16:23:56. bnet Alarm { autoupdate = TRUE; comment = "\n\ ALARM Copyright 1998 Norsys \ Software Corp.\n\n\ ALARM stands for 'A Logical Alarm Reduction Mechanism'.\n\ A medical diagnostic alarm message system for patient monitoring.\n\n\ This network is described in Beinlich, Ingo, H. J. Suermondt, R. M. Chavez, and G. F. Cooper \ (1989) \"The ALARM \n\ monitoring system: A case study with two probabilistic inference techniques for belief networks\" \ in Proc. of the \n\ Second European Conf. on Artificial Intelligence in Medicine (London, Aug.), 38, 247-256. Also \ Tech. Report \n\ KSL-88-84, Knowledge Systems Laboratory, Medical Computer Science, Stanford Univ., CA.\n\n\n\ TUTORIAL: Probabilistic Inference & Sensitivity\n\ --------\n\n\ For simple probabilistic inference, see the \"Asia\" belief network.\n\n\ Click in the network window to activate it, then choose Network->Compile. The display changes to \ show \n\ belief bars.\n\n\ Most nodes in this network have more than two states. For example \"Breathing Pressure\" has: \ Zero, Low,\n\ Normal and High. This sort of a breakdown is typical of belief networks with nodes representing \ continuous\n\ variables. Netica has facilities for more advanced discretization if desired. If you have \ trouble finding\n\ the \"Breathing Pressure\" node, try Edit->Find and type in \"breathing\".\n\n\ If you want to enter a negative finding (i.e. a finding that a node isn't in some state) hold \ down the\n\ shift key while clicking on it. For example, hold down the shift key and click on \"Normal\" and \ \"High\" \n\ of the \"Breathing Pressure\" node. The probability of those two states drops to 0, and that of\n\ Zero and Low increases.\n\n\ Sometimes it is useful to know how much the findings at another node can influence the beliefs of \ a \n\ particular node. For instance, say you wanted to know which nodes could most influence our \ knowledge of\n\ \"Heart Rate\". Click on \"Heart Rate\" (the actual title) to select it, and then choose \ Network->Sensitivity\n\ to Findings. A detailed report will be produced, which is described in Netica's onscreen help.\n\ At the end of the report is a list of all the nodes, with the ones whose findings are most likely \ to \n\ produce the greatest change in the belief of Heart Rate listed first. The first column of \ numbers provides \n\ a numerical degree. The report takes findings currently entered into account. The nodes are \ referred to \n\ by name, rather than title (you can observe the names of all the nodes by making the network \ window \n\ active and choosing Style->Name).\n\n\ For those studying how the internals of belief network systems work, you may be interested to see \ the\n\ Markov network, triangulated network, elimination order and junction tree produced. \n\ Choose Style->Links->Markov Net, Style->Links->Triangulated, Report->Elimination Order and\n\ Report->Junction Tree, respectively. Be careful about saving the network after doing this, since \ it may\n\ have lost the bends in the links.\n\n\n\n\ "; whenchanged = 1001917394; visual V1 { defdispform = LABELBOX; nodelabeling = TITLE; NodeMaxNumEntries = 50; nodefont = font {shape= "Arial"; size= 10;}; linkfont = font {shape= "Arial"; size= 9;}; windowposn = (2, 0, 961, 618); CommentShowing = TRUE; CommentWindowPosn = (2, 617, 961, 884); resolution = 72; drawingbounds = (1656, 730); showpagebreaks = FALSE; usegrid = TRUE; gridspace = (6, 6); PrinterSetting A { margins = (1270, 1270, 1270, 1270); landscape = FALSE; magnify = 1; }; }; node Hypovolemia { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.2, 0.8); visual V1 { center = (90, 66); height = 5; }; }; node LVFailure { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.05, 0.95); title = "Left Ventricular\nFailure"; visual V1 { center = (276, 66); height = 3; }; }; node LVEDVolume { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (Hypovolemia, LVFailure); probs = // Low Normal High // Hypovolemia LVFailure (((0.95, 0.04, 0.01), // True True (0.98, 0.01, 0.01)), // True False ((0.01, 0.09, 0.9), // False True (0.05, 0.9, 0.05))); // False False ; title = "Left Ventricular\nEnd-diastolic volume"; visual V1 { center = (168, 162); height = 4; link 1 { path = ((97, 76), (154, 145)); }; }; }; node StrokeVolume { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (LVFailure, Hypovolemia); probs = // Low Normal High // LVFailure Hypovolemia (((0.98, 0.01, 0.01), // True True (0.5, 0.49, 0.01)), // True False ((0.95, 0.04, 0.01), // False True (0.05, 0.9, 0.05))); // False False ; visual V1 { center = (384, 156); height = 15; link 1 { path = ((296, 84), (373, 147)); }; }; }; node CVP { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (LVEDVolume); probs = // Low Normal High // LVEDVolume ((0.95, 0.04, 0.01), // Low (0.04, 0.95, 0.01), // Normal (0.01, 0.29, 0.7)); // High ; title = "Central Venous\nPressure"; visual V1 { center = (86, 252); height = 6; }; }; node PCWP { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (LVEDVolume); probs = // Low Normal High // LVEDVolume ((0.95, 0.04, 0.01), // Low (0.04, 0.95, 0.01), // Normal (0.01, 0.04, 0.95)); // High ; title = "Pulmonary Capillary\nWedge Pressure"; visual V1 { center = (234, 336); height = 14; }; }; node InsuffAnesth { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.2, 0.8); title = "Anest./Anelgesia\nInsufficient"; visual V1 { center = (576, 138); height = 18; }; }; node PulmEmbolus { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.01, 0.99); visual V1 { center = (756, 144); height = 23; }; }; node Intubation { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Normal, Esophageal, OneSided); parents = (); probs = // Normal Esophageal OneSided (0.92, 0.03, 0.05); visual V1 { center = (954, 72); height = 26; }; }; node Shunt { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Normal, High); parents = (PulmEmbolus, Intubation); probs = // Normal High // PulmEmbolus Intubation (((0.1, 0.9), // True Normal (0.1, 0.9), // True Esophageal (0.01, 0.99)), // True OneSided ((0.95, 0.05), // False Normal (0.95, 0.05), // False Esophageal (0.05, 0.95))); // False OneSided ; visual V1 { center = (774, 222); height = 20; }; }; node KinkedTube { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.04, 0.96); visual V1 { center = (1134, 102); height = 28; }; }; node MinVolSet { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (); probs = // Low Normal High (0.01, 0.98, 0.01); comment = "Minute ventilation?\nMV = Respitory Rate * Tidal Volume"; visual V1 { center = (1476, 108); height = 35; }; }; node VentMach { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (MinVolSet); probs = // Zero Low Normal High // MinVolSet ((0.01, 0.97, 0.01, 0.01), // Low (0.01, 0.01, 0.97, 0.01), // Normal (0.01, 0.01, 0.01, 0.97)); // High ; visual V1 { center = (1476, 204); height = 36; }; }; node Disconnect { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.05, 0.95); title = "Disconnection"; visual V1 { center = (1308, 102); height = 29; }; }; node VentTube { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (VentMach, Disconnect); probs = // Zero Low Normal High // VentMach Disconnect (((0.97, 0.01, 0.01, 0.01), // Zero True (0.97, 0.01, 0.01, 0.01)), // Zero False ((0.97, 0.01, 0.01, 0.01), // Low True (0.01, 0.97, 0.01, 0.01)), // Low False ((0.97, 0.01, 0.01, 0.01), // Normal True (0.01, 0.01, 0.97, 0.01)), // Normal False ((0.97, 0.01, 0.01, 0.01), // High True (0.01, 0.01, 0.01, 0.97))); // High False ; visual V1 { center = (1308, 204); height = 30; }; }; node VentLung { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (KinkedTube, VentTube, Intubation); probs = // Zero Low Normal High // KinkedTube VentTube Intubation ((((0.97, 0.01, 0.01, 0.01), // True Zero Normal (0.97, 0.01, 0.01, 0.01), // True Zero Esophageal (0.97, 0.01, 0.01, 0.01)), // True Zero OneSided ((0.95, 0.03, 0.01, 0.01), // True Low Normal (0.97, 0.01, 0.01, 0.01), // True Low Esophageal (0.95, 0.03, 0.01, 0.01)), // True Low OneSided ((0.4, 0.58, 0.01, 0.01), // True Normal Normal (0.97, 0.01, 0.01, 0.01), // True Normal Esophageal (0.5, 0.48, 0.01, 0.01)), // True Normal OneSided ((0.3, 0.68, 0.01, 0.01), // True High Normal (0.97, 0.01, 0.01, 0.01), // True High Esophageal (0.3, 0.68, 0.01, 0.01))), // True High OneSided (((0.97, 0.01, 0.01, 0.01), // False Zero Normal (0.97, 0.01, 0.01, 0.01), // False Zero Esophageal (0.97, 0.01, 0.01, 0.01)), // False Zero OneSided ((0.01, 0.97, 0.01, 0.01), // False Low Normal (0.97, 0.01, 0.01, 0.01), // False Low Esophageal (0.01, 0.97, 0.01, 0.01)), // False Low OneSided ((0.01, 0.01, 0.97, 0.01), // False Normal Normal (0.97, 0.01, 0.01, 0.01), // False Normal Esophageal (0.01, 0.01, 0.97, 0.01)), // False Normal OneSided ((0.01, 0.01, 0.01, 0.97), // False High Normal (0.97, 0.01, 0.01, 0.01), // False High Esophageal (0.01, 0.01, 0.01, 0.97)))); // False High OneSided ; visual V1 { center = (1134, 204); height = 27; }; }; node VentAlv { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (Intubation, VentLung); probs = // Zero Low Normal High // Intubation VentLung (((0.97, 0.01, 0.01, 0.01), // Normal Zero (0.01, 0.97, 0.01, 0.01), // Normal Low (0.01, 0.01, 0.97, 0.01), // Normal Normal (0.01, 0.01, 0.01, 0.97)), // Normal High ((0.97, 0.01, 0.01, 0.01), // Esophageal Zero (0.01, 0.97, 0.01, 0.01), // Esophageal Low (0.01, 0.01, 0.97, 0.01), // Esophageal Normal (0.01, 0.01, 0.01, 0.97)), // Esophageal High ((0.97, 0.01, 0.01, 0.01), // OneSided Zero (0.03, 0.95, 0.01, 0.01), // OneSided Low (0.01, 0.94, 0.04, 0.01), // OneSided Normal (0.01, 0.88, 0.1, 0.01))); // OneSided High ; visual V1 { center = (954, 204); height = 25; }; }; node FiO2 { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal); parents = (); probs = // Low Normal (0.01, 0.99); visual V1 { center = (888, 504); height = 37; }; }; node PVSat { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (VentAlv, FiO2); probs = // Low Normal High // VentAlv FiO2 (((0.98, 0.01, 0.01), // Zero Low (0.98, 0.01, 0.01)), // Zero Normal ((0.98, 0.01, 0.01), // Low Low (0.98, 0.01, 0.01)), // Low Normal ((0.95, 0.04, 0.01), // Normal Low (0.01, 0.95, 0.04)), // Normal Normal ((0.95, 0.04, 0.01), // High Low (0.01, 0.01, 0.98))); // High Normal ; comment = "PASAT = Pulmonary artery oxygen saturation"; visual V1 { center = (888, 420); height = 17; link 1 { path = ((945, 214), (870, 288), (870, 354), (886, 411)); }; }; }; node SaO2 { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (Shunt, PVSat); probs = // Low Normal High // Shunt PVSat (((0.98, 0.01, 0.01), // Normal Low (0.01, 0.98, 0.01), // Normal Normal (0.01, 0.01, 0.98)), // Normal High ((0.98, 0.01, 0.01), // High Low (0.98, 0.01, 0.01), // High Normal (0.69, 0.3, 0.01))); // High High ; visual V1 { center = (774, 324); height = 21; }; }; node Anaphylaxis { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.01, 0.99); visual V1 { center = (72, 420); height = 12; }; }; node TPR { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (Anaphylaxis); probs = // Low Normal High // Anaphylaxis ((0.98, 0.01, 0.01), // True (0.3, 0.4, 0.3)); // False ; title = "Total Peripheral\nResistance"; visual V1 { center = (252, 420); height = 11; }; }; node ArtCO2 { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (VentAlv); probs = // Low Normal High // VentAlv ((0.01, 0.01, 0.98), // Zero (0.01, 0.01, 0.98), // Low (0.04, 0.92, 0.04), // Normal (0.9, 0.09, 0.01)); // High ; visual V1 { center = (960, 324); height = 32; }; }; node Catechol { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Normal, High); parents = (InsuffAnesth, SaO2, TPR, ArtCO2); probs = // Normal High // InsuffAnesth SaO2 TPR ArtCO2 (((((0.01, 0.99), // True Low Low Low (0.01, 0.99), // True Low Low Normal (0.01, 0.99)), // True Low Low High ((0.01, 0.99), // True Low Normal Low (0.01, 0.99), // True Low Normal Normal (0.01, 0.99)), // True Low Normal High ((0.01, 0.99), // True Low High Low (0.01, 0.99), // True Low High Normal (0.01, 0.99))), // True Low High High (((0.01, 0.99), // True Normal Low Low (0.01, 0.99), // True Normal Low Normal (0.01, 0.99)), // True Normal Low High ((0.01, 0.99), // True Normal Normal Low (0.01, 0.99), // True Normal Normal Normal (0.01, 0.99)), // True Normal Normal High ((0.05, 0.95), // True Normal High Low (0.05, 0.95), // True Normal High Normal (0.01, 0.99))), // True Normal High High (((0.01, 0.99), // True High Low Low (0.01, 0.99), // True High Low Normal (0.01, 0.99)), // True High Low High ((0.05, 0.95), // True High Normal Low (0.05, 0.95), // True High Normal Normal (0.01, 0.99)), // True High Normal High ((0.05, 0.95), // True High High Low (0.05, 0.95), // True High High Normal (0.01, 0.99)))), // True High High High ((((0.05, 0.95), // False Low Low Low (0.05, 0.95), // False Low Low Normal (0.01, 0.99)), // False Low Low High ((0.05, 0.95), // False Low Normal Low (0.05, 0.95), // False Low Normal Normal (0.01, 0.99)), // False Low Normal High ((0.05, 0.95), // False Low High Low (0.05, 0.95), // False Low High Normal (0.01, 0.99))), // False Low High High (((0.1, 0.9), // False Normal Low Low (0.1, 0.9), // False Normal Low Normal (0.1, 0.9)), // False Normal Low High ((0.95, 0.05), // False Normal Normal Low (0.95, 0.05), // False Normal Normal Normal (0.3, 0.7)), // False Normal Normal High ((0.95, 0.05), // False Normal High Low (0.95, 0.05), // False Normal High Normal (0.3, 0.7))), // False Normal High High (((0.95, 0.05), // False High Low Low (0.95, 0.05), // False High Low Normal (0.3, 0.7)), // False High Low High ((0.99, 0.00999999), // False High Normal Low (0.99, 0.00999999), // False High Normal Normal (0.99, 0.00999999)), // False High Normal High ((0.95, 0.05), // False High High Low (0.99, 0.00999999), // False High High Normal (0.3, 0.7))))); // False High High High ; title = "Catecholamine"; visual V1 { center = (576, 222); height = 1; link 3 { path = ((284, 403), (438, 324), (564, 232)); }; link 4 { path = ((955, 315), (930, 270), (690, 270), (597, 232)); }; }; }; node HR { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (Catechol); probs = // Low Normal High // Catechol ((0.1, 0.89, 0.01), // Normal (0.01, 0.09, 0.9)); // High ; title = "Heart Rate"; visual V1 { center = (576, 330); height = 2; }; }; node CO { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (HR, StrokeVolume); probs = // Low Normal High // HR StrokeVolume (((0.98, 0.01, 0.01), // Low Low (0.95, 0.04, 0.01), // Low Normal (0.3, 0.69, 0.01)), // Low High ((0.95, 0.04, 0.01), // Normal Low (0.04, 0.95, 0.01), // Normal Normal (0.01, 0.3, 0.69)), // Normal High ((0.8, 0.19, 0.01), // High Low (0.01, 0.04, 0.95), // High Normal (0.01, 0.01, 0.98))); // High High ; title = "Cardiac Output"; visual V1 { center = (384, 252); height = 16; }; }; node History { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (LVFailure); probs = // True False // LVFailure ((0.9, 0.1), // True (0.01, 0.99)); // False ; visual V1 { center = (456, 66); height = 19; }; }; node BP { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (CO, TPR); probs = // Low Normal High // CO TPR (((0.98, 0.01, 0.01), // Low Low (0.98, 0.01, 0.01), // Low Normal (0.3, 0.6, 0.1)), // Low High ((0.98, 0.01, 0.01), // Normal Low (0.1, 0.85, 0.05), // Normal Normal (0.05, 0.4, 0.55)), // Normal High ((0.9, 0.09, 0.01), // High Low (0.05, 0.2, 0.75), // High Normal (0.01, 0.09, 0.9))); // High High ; title = "Blood Pressure"; visual V1 { center = (252, 504); height = 13; link 1 { path = ((380, 262), (348, 318), (348, 456), (270, 495)); }; }; }; node ErrCauter { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.1, 0.9); title = "Error Cauter"; visual V1 { center = (726, 414); height = 24; }; }; node HREKG { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (HR, ErrCauter); probs = // Low Normal High // HR ErrCauter (((0.3333333, 0.3333333, 0.3333333), // Low True (0.98, 0.01, 0.01)), // Low False ((0.3333333, 0.3333333, 0.3333333), // Normal True (0.01, 0.98, 0.01)), // Normal False ((0.3333333, 0.3333333, 0.3333333), // High True (0.01, 0.01, 0.98))); // High False ; visual V1 { center = (576, 504); height = 8; }; }; node HRSat { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (HR, ErrCauter); probs = // Low Normal High // HR ErrCauter (((0.3333333, 0.3333333, 0.3333333), // Low True (0.98, 0.01, 0.01)), // Low False ((0.3333333, 0.3333333, 0.3333333), // Normal True (0.01, 0.98, 0.01)), // Normal False ((0.3333333, 0.3333333, 0.3333333), // High True (0.01, 0.01, 0.98))); // High False ; visual V1 { center = (726, 504); height = 9; link 1 { path = ((580, 340), (624, 426), (715, 495)); }; }; }; node ErrLowOutput { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (True, False); parents = (); probs = // True False (0.05, 0.95); title = "Error Low\nOuput"; visual V1 { center = (426, 420); height = 10; }; }; node HRBP { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (ErrLowOutput, HR); probs = // Low Normal High // ErrLowOutput HR (((0.98, 0.01, 0.01), // True Low (0.4, 0.59, 0.01), // True Normal (0.3, 0.4, 0.3)), // True High ((0.98, 0.01, 0.01), // False Low (0.01, 0.98, 0.01), // False Normal (0.01, 0.01, 0.98))); // False High ; visual V1 { center = (426, 504); height = 7; link 2 { path = ((572, 340), (522, 444), (440, 495)); }; }; }; node ExpCO2 { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (ArtCO2, VentLung); probs = // Zero Low Normal High // ArtCO2 VentLung (((0.97, 0.01, 0.01, 0.01), // Low Zero (0.01, 0.97, 0.01, 0.01), // Low Low (0.01, 0.97, 0.01, 0.01), // Low Normal (0.01, 0.97, 0.01, 0.01)), // Low High ((0.97, 0.01, 0.01, 0.01), // Normal Zero (0.01, 0.01, 0.97, 0.01), // Normal Low (0.01, 0.01, 0.97, 0.01), // Normal Normal (0.01, 0.01, 0.97, 0.01)), // Normal High ((0.97, 0.01, 0.01, 0.01), // High Zero (0.01, 0.01, 0.01, 0.97), // High Low (0.01, 0.01, 0.01, 0.97), // High Normal (0.01, 0.01, 0.01, 0.97))); // High High ; visual V1 { center = (1134, 324); height = 33; }; }; node PAP { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Low, Normal, High); parents = (PulmEmbolus); probs = // Low Normal High // PulmEmbolus ((0.01, 0.19, 0.8), // True (0.05, 0.9, 0.05)); // False ; title = "Pulmonary Artery\nPressure"; visual V1 { center = (756, 60); height = 22; }; }; node Press { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (KinkedTube, Intubation, VentTube); probs = // Zero Low Normal High // KinkedTube Intubation VentTube ((((0.97, 0.01, 0.01, 0.01), // True Normal Zero (0.01, 0.49, 0.3, 0.2), // True Normal Low (0.01, 0.01, 0.08, 0.9), // True Normal Normal (0.01, 0.01, 0.01, 0.97)), // True Normal High ((0.97, 0.01, 0.01, 0.01), // True Esophageal Zero (0.1, 0.84, 0.05, 0.01), // True Esophageal Low (0.05, 0.25, 0.25, 0.45), // True Esophageal Normal (0.01, 0.15, 0.25, 0.59)), // True Esophageal High ((0.97, 0.01, 0.01, 0.01), // True OneSided Zero (0.01, 0.29, 0.3, 0.4), // True OneSided Low (0.01, 0.01, 0.08, 0.9), // True OneSided Normal (0.01, 0.01, 0.01, 0.97))), // True OneSided High (((0.97, 0.01, 0.01, 0.01), // False Normal Zero (0.01, 0.97, 0.01, 0.01), // False Normal Low (0.01, 0.01, 0.97, 0.01), // False Normal Normal (0.01, 0.01, 0.01, 0.97)), // False Normal High ((0.97, 0.01, 0.01, 0.01), // False Esophageal Zero (0.4, 0.58, 0.01, 0.01), // False Esophageal Low (0.2, 0.75, 0.04, 0.01), // False Esophageal Normal (0.2, 0.7, 0.09, 0.01)), // False Esophageal High ((0.97, 0.01, 0.01, 0.01), // False OneSided Zero (0.01, 0.9, 0.08, 0.01), // False OneSided Low (0.01, 0.01, 0.38, 0.6), // False OneSided Normal (0.01, 0.01, 0.01, 0.97)))); // False OneSided High ; title = "Breathing Pressure"; visual V1 { center = (1494, 324); height = 31; link 1 { path = ((1161, 93), (1260, 60), (1560, 60), (1560, 258), (1503, 315)); }; link 2 { path = ((988, 70), (1242, 48), (1572, 48), (1572, 258), (1504, 315)); }; link 3 { path = ((1321, 214), (1480, 315)); }; }; }; node MinVol { kind = NATURE; discrete = TRUE; chance = CHANCE; states = (Zero, Low, Normal, High); parents = (VentLung, Intubation); probs = // Zero Low Normal High // VentLung Intubation (((0.97, 0.01, 0.01, 0.01), // Zero Normal (0.97, 0.01, 0.01, 0.01), // Zero Esophageal (0.97, 0.01, 0.01, 0.01)), // Zero OneSided ((0.01, 0.97, 0.01, 0.01), // Low Normal (0.6, 0.38, 0.01, 0.01), // Low Esophageal (0.01, 0.97, 0.01, 0.01)), // Low OneSided ((0.01, 0.01, 0.97, 0.01), // Normal Normal (0.5, 0.48, 0.01, 0.01), // Normal Esophageal (0.01, 0.01, 0.97, 0.01)), // Normal OneSided ((0.01, 0.01, 0.01, 0.97), // High Normal (0.5, 0.48, 0.01, 0.01), // High Esophageal (0.01, 0.01, 0.01, 0.97))); // High OneSided ; visual V1 { center = (1314, 324); height = 34; link 2 { path = ((969, 82), (1080, 144), (1224, 144), (1224, 252), (1303, 315)); }; }; }; };
33,937
Common Lisp
.l
858
34.212121
101
0.416255
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
6d9c4e0dfca3c695f8f164ba05f079581461cea7aef16db808b14ad6fb896785
6,313
[ -1 ]
6,314
acesmall.net
lhope_cl-bayesnet/nets/acesmall.net
net { } node friendsIo1po1I { label = "friends(o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po1I) { data = (0.5 0.5 ); } node wclause1Io1po1po1I { label = "wclause1(o1,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po1I | friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 ); } node friendsIo1po2I { label = "friends(o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po2I) { data = (0.5 0.5 ); } node or_friendsIo1po2I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po2I_wclause2Io1I_CC0_CC0_CC0 | friendsIo1po1I friendsIo1po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po3I { label = "friends(o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po3I) { data = (0.5 0.5 ); } node or_friendsIo1po3I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po3I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po2I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po4I { label = "friends(o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po4I) { data = (0.5 0.5 ); } node or_friendsIo1po4I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po4I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po3I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po5I { label = "friends(o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po5I) { data = (0.5 0.5 ); } node or_friendsIo1po5I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po5I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po4I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po6I { label = "friends(o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po6I) { data = (0.5 0.5 ); } node or_friendsIo1po6I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po6I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po5I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po7I { label = "friends(o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po7I) { data = (0.5 0.5 ); } node or_friendsIo1po7I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po7I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po6I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po8I { label = "friends(o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po8I) { data = (0.5 0.5 ); } node or_friendsIo1po8I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po8I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po7I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po9I { label = "friends(o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po9I) { data = (0.5 0.5 ); } node or_friendsIo1po9I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po9I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po8I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node friendsIo1po10I { label = "friends(o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo1po10I) { data = (0.5 0.5 ); } node or_friendsIo1po10I_wclause2Io1I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo1po10I_wclause2Io1I_CC0_CC0_CC0 | or_friendsIo1po9I_wclause2Io1I_CC0_CC0_CC0 friendsIo1po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node smokesIo1I { label = "smokes(o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo1I) { data = (0.5 0.5 ); } node wclause2Io1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io1I_CC0 | or_friendsIo1po10I_wclause2Io1I_CC0_CC0_CC0 smokesIo1I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io1I { label = "wclause2(o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io1I | wclause2Io1I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node wclause4Io1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po1I_CC0 | friendsIo1po1I smokesIo1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io1po1I { label = "wclause4(o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po1I | wclause4Io1po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node cancerIo1I { label = "cancer(o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo1I) { data = (0.5 0.5 ); } node wclause3Io1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io1I_CC0 | smokesIo1I cancerIo1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io1I { label = "wclause3(o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io1I | wclause3Io1I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node smokesIo2I { label = "smokes(o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo2I) { data = (0.5 0.5 ); } node wclause4Io2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po1I_CC0_CC1 | smokesIo2I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po2I_CC0 | friendsIo1po2I wclause4Io2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po2I { label = "wclause4(o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po2I | wclause4Io1po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node friendsIo2po1I { label = "friends(o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po1I) { data = (0.5 0.5 ); } node wclause4Io2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po1I_CC0 | friendsIo2po1I wclause4Io2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po1I { label = "wclause4(o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po1I | wclause4Io2po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node friendsIo2po2I { label = "friends(o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po2I) { data = (0.5 0.5 ); } node wclause1Io2po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po1I_CC0 | friendsIo2po2I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po1I { label = "wclause1(o2,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po1I | wclause1Io2po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po2I { label = "wclause1(o2,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po2I | friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po2I_CC0_CC1 | friendsIo2po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po2I_CC0 | friendsIo1po2I wclause1Io1po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po2I { label = "wclause1(o1,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po2I | wclause1Io1po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po2I_CC0_CC1 | friendsIo1po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po2I_CC0 | friendsIo2po1I wclause1Io2po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po2I { label = "wclause1(o2,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po2I | wclause1Io2po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po3I { label = "friends(o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po3I) { data = (0.5 0.5 ); } node wclause1Io2po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po3I_CC0 | friendsIo2po2I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po3I { label = "wclause1(o2,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po3I | wclause1Io2po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po3I_CC0_CC1 | friendsIo2po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po3I_CC0 | friendsIo1po2I wclause1Io1po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po3I { label = "wclause1(o1,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po3I | wclause1Io1po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po3I_CC0_CC1 | friendsIo1po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po3I_CC0 | friendsIo2po1I wclause1Io2po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po3I { label = "wclause1(o2,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po3I | wclause1Io2po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po1I { label = "friends(o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po1I) { data = (0.5 0.5 ); } node wclause1Io2po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po1I_CC0_CC1 | friendsIo3po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po1I_CC0 | friendsIo2po3I wclause1Io2po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po1I { label = "wclause1(o2,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po1I | wclause1Io2po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po3I { label = "friends(o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po3I) { data = (0.5 0.5 ); } node wclause1Io3po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po1I_CC0 | friendsIo3po3I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po1I { label = "wclause1(o3,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po1I | wclause1Io3po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po3I { label = "wclause1(o3,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po3I | friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po3I_CC0_CC1 | friendsIo3po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po3I_CC0 | friendsIo1po3I wclause1Io1po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po3I { label = "wclause1(o1,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po3I | wclause1Io1po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po3I_CC0_CC1 | friendsIo3po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po3I_CC0 | friendsIo2po3I wclause1Io2po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po3I { label = "wclause1(o2,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po3I | wclause1Io2po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po3I_CC0_CC1 | friendsIo1po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po3I_CC0 | friendsIo3po1I wclause1Io3po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po3I { label = "wclause1(o3,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po3I | wclause1Io3po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po3I_CC0_CC1 | friendsIo2po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo3po2I { label = "friends(o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po2I) { data = (0.5 0.5 ); } node wclause1Io3po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po3I_CC0 | friendsIo3po2I wclause1Io3po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po3I { label = "wclause1(o3,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po3I | wclause1Io3po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po2I_CC0 | friendsIo3po3I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po2I { label = "wclause1(o3,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po2I | wclause1Io3po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po2I_CC0_CC1 | friendsIo3po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po2I_CC0 | friendsIo1po3I wclause1Io1po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po2I { label = "wclause1(o1,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po2I | wclause1Io1po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po2I_CC0_CC1 | friendsIo3po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po2I_CC0 | friendsIo2po3I wclause1Io2po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po2I { label = "wclause1(o2,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po2I | wclause1Io2po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po2I_CC0_CC1 | friendsIo1po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po2I_CC0 | friendsIo3po1I wclause1Io3po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po2I { label = "wclause1(o3,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po2I | wclause1Io3po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po1I_CC0_CC1 | friendsIo2po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po1I_CC0 | friendsIo3po2I wclause1Io3po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po1I { label = "wclause1(o3,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po1I | wclause1Io3po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po2I_CC0_CC1 | friendsIo2po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po2I_CC0 | friendsIo3po2I wclause1Io3po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po2I { label = "wclause1(o3,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po2I | wclause1Io3po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po4I { label = "friends(o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po4I) { data = (0.5 0.5 ); } node friendsIo3po4I { label = "friends(o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po4I) { data = (0.5 0.5 ); } node wclause1Io3po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po4I_CC0_CC1 | friendsIo2po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po4I_CC0 | friendsIo3po2I wclause1Io3po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po4I { label = "wclause1(o3,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po4I | wclause1Io3po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po4I_CC0 | friendsIo3po3I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po4I { label = "wclause1(o3,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po4I | wclause1Io3po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po4I_CC0_CC1 | friendsIo3po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po4I_CC0 | friendsIo1po3I wclause1Io1po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po4I { label = "wclause1(o1,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po4I | wclause1Io1po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po4I_CC0_CC1 | friendsIo3po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po4I_CC0 | friendsIo2po3I wclause1Io2po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po4I { label = "wclause1(o2,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po4I | wclause1Io2po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po4I_CC0_CC1 | friendsIo1po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po4I_CC0 | friendsIo3po1I wclause1Io3po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po4I { label = "wclause1(o3,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po4I | wclause1Io3po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po1I { label = "friends(o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po1I) { data = (0.5 0.5 ); } node wclause1Io3po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po1I_CC0_CC1 | friendsIo4po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po1I_CC0 | friendsIo3po4I wclause1Io3po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po1I { label = "wclause1(o3,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po1I | wclause1Io3po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po4I { label = "friends(o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po4I) { data = (0.5 0.5 ); } node wclause1Io4po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po1I_CC0 | friendsIo4po4I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po1I { label = "wclause1(o4,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po1I | wclause1Io4po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po4I { label = "wclause1(o4,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po4I | friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po4I_CC0_CC1 | friendsIo4po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po4I_CC0 | friendsIo1po4I wclause1Io1po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po4I { label = "wclause1(o1,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po4I | wclause1Io1po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po4I_CC0_CC1 | friendsIo4po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po4I_CC0 | friendsIo2po4I wclause1Io2po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po4I { label = "wclause1(o2,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po4I | wclause1Io2po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po4I_CC0_CC1 | friendsIo4po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po4I_CC0 | friendsIo3po4I wclause1Io3po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po4I { label = "wclause1(o3,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po4I | wclause1Io3po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po4I_CC0_CC1 | friendsIo1po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po4I_CC0 | friendsIo4po1I wclause1Io4po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po4I { label = "wclause1(o4,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po4I | wclause1Io4po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po4I_CC0_CC1 | friendsIo2po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo4po2I { label = "friends(o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po2I) { data = (0.5 0.5 ); } node wclause1Io4po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po4I_CC0 | friendsIo4po2I wclause1Io4po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po4I { label = "wclause1(o4,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po4I | wclause1Io4po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po2I_CC0 | friendsIo4po4I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po2I { label = "wclause1(o4,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po2I | wclause1Io4po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po2I_CC0_CC1 | friendsIo4po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po2I_CC0 | friendsIo1po4I wclause1Io1po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po2I { label = "wclause1(o1,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po2I | wclause1Io1po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po2I_CC0_CC1 | friendsIo4po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po2I_CC0 | friendsIo2po4I wclause1Io2po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po2I { label = "wclause1(o2,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po2I | wclause1Io2po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po2I_CC0_CC1 | friendsIo4po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po2I_CC0 | friendsIo3po4I wclause1Io3po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po2I { label = "wclause1(o3,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po2I | wclause1Io3po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po2I_CC0_CC1 | friendsIo1po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po2I_CC0 | friendsIo4po1I wclause1Io4po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po2I { label = "wclause1(o4,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po2I | wclause1Io4po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po1I_CC0_CC1 | friendsIo2po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po1I_CC0 | friendsIo4po2I wclause1Io4po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po1I { label = "wclause1(o4,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po1I | wclause1Io4po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po2I_CC0_CC1 | friendsIo2po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po2I_CC0 | friendsIo4po2I wclause1Io4po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po2I { label = "wclause1(o4,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po2I | wclause1Io4po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po3I { label = "friends(o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po3I) { data = (0.5 0.5 ); } node wclause1Io4po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po3I_CC0_CC1 | friendsIo2po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po3I_CC0 | friendsIo4po2I wclause1Io4po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po3I { label = "wclause1(o4,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po3I | wclause1Io4po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po3I_CC0 | friendsIo4po4I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po3I { label = "wclause1(o4,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po3I | wclause1Io4po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po3I_CC0_CC1 | friendsIo4po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po3I_CC0 | friendsIo1po4I wclause1Io1po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po3I { label = "wclause1(o1,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po3I | wclause1Io1po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po3I_CC0_CC1 | friendsIo4po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po3I_CC0 | friendsIo2po4I wclause1Io2po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po3I { label = "wclause1(o2,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po3I | wclause1Io2po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po3I_CC0_CC1 | friendsIo4po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po3I_CC0 | friendsIo3po4I wclause1Io3po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po3I { label = "wclause1(o3,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po3I | wclause1Io3po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po3I_CC0_CC1 | friendsIo1po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po3I_CC0 | friendsIo4po1I wclause1Io4po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po3I { label = "wclause1(o4,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po3I | wclause1Io4po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po1I_CC0_CC1 | friendsIo3po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po1I_CC0 | friendsIo4po3I wclause1Io4po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po1I { label = "wclause1(o4,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po1I | wclause1Io4po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po2I_CC0_CC1 | friendsIo3po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po2I_CC0 | friendsIo4po3I wclause1Io4po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po2I { label = "wclause1(o4,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po2I | wclause1Io4po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po3I_CC0_CC1 | friendsIo3po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po3I_CC0 | friendsIo4po3I wclause1Io4po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po3I { label = "wclause1(o4,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po3I | wclause1Io4po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po4I_CC0_CC1 | friendsIo3po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po4I_CC0 | friendsIo4po3I wclause1Io4po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po4I { label = "wclause1(o4,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po4I | wclause1Io4po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po5I { label = "friends(o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po5I) { data = (0.5 0.5 ); } node friendsIo4po5I { label = "friends(o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po5I) { data = (0.5 0.5 ); } node wclause1Io4po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po5I_CC0_CC1 | friendsIo3po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po5I_CC0 | friendsIo4po3I wclause1Io4po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po5I { label = "wclause1(o4,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po5I | wclause1Io4po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po5I_CC0 | friendsIo4po4I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po5I { label = "wclause1(o4,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po5I | wclause1Io4po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po5I_CC0_CC1 | friendsIo4po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po5I_CC0 | friendsIo1po4I wclause1Io1po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po5I { label = "wclause1(o1,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po5I | wclause1Io1po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po5I { label = "friends(o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po5I) { data = (0.5 0.5 ); } node wclause1Io2po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po5I_CC0_CC1 | friendsIo4po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po5I_CC0 | friendsIo2po4I wclause1Io2po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po5I { label = "wclause1(o2,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po5I | wclause1Io2po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po5I_CC0 | friendsIo2po2I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po5I { label = "wclause1(o2,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po5I | wclause1Io2po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po5I_CC0_CC1 | friendsIo2po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po5I_CC0 | friendsIo1po2I wclause1Io1po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po5I { label = "wclause1(o1,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po5I | wclause1Io1po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po5I_CC0_CC1 | friendsIo1po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po5I_CC0 | friendsIo2po1I wclause1Io2po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po5I { label = "wclause1(o2,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po5I | wclause1Io2po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po5I_CC0_CC1 | friendsIo3po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po5I_CC0 | friendsIo2po3I wclause1Io2po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po5I { label = "wclause1(o2,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po5I | wclause1Io2po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po1I { label = "friends(o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po1I) { data = (0.5 0.5 ); } node wclause1Io2po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po1I_CC0_CC1 | friendsIo5po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po1I_CC0 | friendsIo2po5I wclause1Io2po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po1I { label = "wclause1(o2,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po1I | wclause1Io2po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po5I { label = "friends(o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po5I) { data = (0.5 0.5 ); } node wclause1Io5po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po1I_CC0 | friendsIo5po5I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po1I { label = "wclause1(o5,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po1I | wclause1Io5po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po5I { label = "wclause1(o5,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po5I | friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po5I_CC0_CC1 | friendsIo5po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po5I_CC0 | friendsIo1po5I wclause1Io1po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po5I { label = "wclause1(o1,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po5I | wclause1Io1po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po5I_CC0_CC1 | friendsIo5po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po5I_CC0 | friendsIo2po5I wclause1Io2po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po5I { label = "wclause1(o2,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po5I | wclause1Io2po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po5I_CC0_CC1 | friendsIo5po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po5I_CC0 | friendsIo3po5I wclause1Io3po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po5I { label = "wclause1(o3,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po5I | wclause1Io3po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po5I_CC0_CC1 | friendsIo5po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po5I_CC0 | friendsIo4po5I wclause1Io4po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po5I { label = "wclause1(o4,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po5I | wclause1Io4po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po5I_CC0_CC1 | friendsIo1po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po5I_CC0 | friendsIo5po1I wclause1Io5po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po5I { label = "wclause1(o5,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po5I | wclause1Io5po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po5I_CC0_CC1 | friendsIo2po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo5po2I { label = "friends(o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po2I) { data = (0.5 0.5 ); } node wclause1Io5po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po5I_CC0 | friendsIo5po2I wclause1Io5po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po5I { label = "wclause1(o5,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po5I | wclause1Io5po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po2I_CC0 | friendsIo5po5I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po2I { label = "wclause1(o5,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po2I | wclause1Io5po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po2I_CC0_CC1 | friendsIo5po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po2I_CC0 | friendsIo1po5I wclause1Io1po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po2I { label = "wclause1(o1,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po2I | wclause1Io1po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po2I_CC0_CC1 | friendsIo5po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po2I_CC0 | friendsIo2po5I wclause1Io2po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po2I { label = "wclause1(o2,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po2I | wclause1Io2po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po2I_CC0_CC1 | friendsIo5po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po2I_CC0 | friendsIo3po5I wclause1Io3po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po2I { label = "wclause1(o3,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po2I | wclause1Io3po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po2I_CC0_CC1 | friendsIo5po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po2I_CC0 | friendsIo4po5I wclause1Io4po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po2I { label = "wclause1(o4,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po2I | wclause1Io4po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po2I_CC0_CC1 | friendsIo1po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po2I_CC0 | friendsIo5po1I wclause1Io5po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po2I { label = "wclause1(o5,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po2I | wclause1Io5po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po1I_CC0_CC1 | friendsIo2po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po1I_CC0 | friendsIo5po2I wclause1Io5po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po1I { label = "wclause1(o5,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po1I | wclause1Io5po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po2I_CC0_CC1 | friendsIo2po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po2I_CC0 | friendsIo5po2I wclause1Io5po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po2I { label = "wclause1(o5,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po2I | wclause1Io5po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po3I { label = "friends(o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po3I) { data = (0.5 0.5 ); } node wclause1Io5po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po3I_CC0_CC1 | friendsIo2po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po3I_CC0 | friendsIo5po2I wclause1Io5po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po3I { label = "wclause1(o5,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po3I | wclause1Io5po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po3I_CC0 | friendsIo5po5I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po3I { label = "wclause1(o5,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po3I | wclause1Io5po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po3I_CC0_CC1 | friendsIo5po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po3I_CC0 | friendsIo1po5I wclause1Io1po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po3I { label = "wclause1(o1,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po3I | wclause1Io1po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po3I_CC0_CC1 | friendsIo5po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po3I_CC0 | friendsIo2po5I wclause1Io2po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po3I { label = "wclause1(o2,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po3I | wclause1Io2po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po3I_CC0_CC1 | friendsIo5po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po3I_CC0 | friendsIo3po5I wclause1Io3po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po3I { label = "wclause1(o3,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po3I | wclause1Io3po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po3I_CC0_CC1 | friendsIo5po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po3I_CC0 | friendsIo4po5I wclause1Io4po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po3I { label = "wclause1(o4,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po3I | wclause1Io4po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po3I_CC0_CC1 | friendsIo1po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po3I_CC0 | friendsIo5po1I wclause1Io5po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po3I { label = "wclause1(o5,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po3I | wclause1Io5po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po1I_CC0_CC1 | friendsIo3po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po1I_CC0 | friendsIo5po3I wclause1Io5po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po1I { label = "wclause1(o5,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po1I | wclause1Io5po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po2I_CC0_CC1 | friendsIo3po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po2I_CC0 | friendsIo5po3I wclause1Io5po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po2I { label = "wclause1(o5,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po2I | wclause1Io5po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po3I_CC0_CC1 | friendsIo3po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po3I_CC0 | friendsIo5po3I wclause1Io5po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po3I { label = "wclause1(o5,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po3I | wclause1Io5po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po4I { label = "friends(o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po4I) { data = (0.5 0.5 ); } node wclause1Io5po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po4I_CC0_CC1 | friendsIo3po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po4I_CC0 | friendsIo5po3I wclause1Io5po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po4I { label = "wclause1(o5,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po4I | wclause1Io5po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po4I_CC0 | friendsIo5po5I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po4I { label = "wclause1(o5,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po4I | wclause1Io5po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po4I_CC0_CC1 | friendsIo5po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po4I_CC0 | friendsIo1po5I wclause1Io1po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po4I { label = "wclause1(o1,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po4I | wclause1Io1po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po4I_CC0_CC1 | friendsIo5po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po4I_CC0 | friendsIo2po5I wclause1Io2po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po4I { label = "wclause1(o2,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po4I | wclause1Io2po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po4I_CC0_CC1 | friendsIo5po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po4I_CC0 | friendsIo3po5I wclause1Io3po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po4I { label = "wclause1(o3,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po4I | wclause1Io3po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po4I_CC0_CC1 | friendsIo5po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po4I_CC0 | friendsIo4po5I wclause1Io4po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po4I { label = "wclause1(o4,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po4I | wclause1Io4po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po4I_CC0_CC1 | friendsIo1po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po4I_CC0 | friendsIo5po1I wclause1Io5po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po4I { label = "wclause1(o5,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po4I | wclause1Io5po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po4I_CC0_CC1 | friendsIo2po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po4I_CC0 | friendsIo5po2I wclause1Io5po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po4I { label = "wclause1(o5,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po4I | wclause1Io5po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po1I_CC0_CC1 | friendsIo4po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po1I_CC0 | friendsIo5po4I wclause1Io5po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po1I { label = "wclause1(o5,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po1I | wclause1Io5po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po2I_CC0_CC1 | friendsIo4po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po2I_CC0 | friendsIo5po4I wclause1Io5po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po2I { label = "wclause1(o5,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po2I | wclause1Io5po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po3I_CC0_CC1 | friendsIo4po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po3I_CC0 | friendsIo5po4I wclause1Io5po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po3I { label = "wclause1(o5,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po3I | wclause1Io5po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po4I_CC0_CC1 | friendsIo4po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po4I_CC0 | friendsIo5po4I wclause1Io5po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po4I { label = "wclause1(o5,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po4I | wclause1Io5po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po5I_CC0_CC1 | friendsIo4po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po5I_CC0 | friendsIo5po4I wclause1Io5po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po5I { label = "wclause1(o5,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po5I | wclause1Io5po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po6I { label = "friends(o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po6I) { data = (0.5 0.5 ); } node friendsIo5po6I { label = "friends(o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po6I) { data = (0.5 0.5 ); } node wclause1Io5po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po6I_CC0_CC1 | friendsIo4po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po6I_CC0 | friendsIo5po4I wclause1Io5po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po6I { label = "wclause1(o5,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po6I | wclause1Io5po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po6I_CC0 | friendsIo5po5I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po6I { label = "wclause1(o5,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po6I | wclause1Io5po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po6I_CC0_CC1 | friendsIo5po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po6I_CC0 | friendsIo1po5I wclause1Io1po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po6I { label = "wclause1(o1,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po6I | wclause1Io1po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po6I { label = "friends(o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po6I) { data = (0.5 0.5 ); } node wclause1Io2po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po6I_CC0_CC1 | friendsIo5po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po6I_CC0 | friendsIo2po5I wclause1Io2po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po6I { label = "wclause1(o2,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po6I | wclause1Io2po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po6I_CC0 | friendsIo2po2I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po6I { label = "wclause1(o2,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po6I | wclause1Io2po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po6I_CC0_CC1 | friendsIo2po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po6I_CC0 | friendsIo1po2I wclause1Io1po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po6I { label = "wclause1(o1,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po6I | wclause1Io1po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po6I_CC0_CC1 | friendsIo1po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po6I_CC0 | friendsIo2po1I wclause1Io2po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po6I { label = "wclause1(o2,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po6I | wclause1Io2po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po6I { label = "friends(o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po6I) { data = (0.5 0.5 ); } node wclause1Io2po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po6I_CC0_CC1 | friendsIo3po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po6I_CC0 | friendsIo2po3I wclause1Io2po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po6I { label = "wclause1(o2,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po6I | wclause1Io2po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po6I_CC0 | friendsIo3po3I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po6I { label = "wclause1(o3,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po6I | wclause1Io3po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po6I_CC0_CC1 | friendsIo3po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po6I_CC0 | friendsIo1po3I wclause1Io1po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po6I { label = "wclause1(o1,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po6I | wclause1Io1po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po6I_CC0_CC1 | friendsIo1po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po6I_CC0 | friendsIo3po1I wclause1Io3po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po6I { label = "wclause1(o3,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po6I | wclause1Io3po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po6I_CC0_CC1 | friendsIo2po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po6I_CC0 | friendsIo3po2I wclause1Io3po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po6I { label = "wclause1(o3,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po6I | wclause1Io3po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po6I_CC0_CC1 | friendsIo4po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po6I_CC0 | friendsIo3po4I wclause1Io3po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po6I { label = "wclause1(o3,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po6I | wclause1Io3po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po6I_CC0_CC1 | friendsIo5po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po6I_CC0 | friendsIo3po5I wclause1Io3po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po6I { label = "wclause1(o3,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po6I | wclause1Io3po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po1I { label = "friends(o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po1I) { data = (0.5 0.5 ); } node wclause1Io3po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po1I_CC0_CC1 | friendsIo6po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po1I_CC0 | friendsIo3po6I wclause1Io3po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po1I { label = "wclause1(o3,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po1I | wclause1Io3po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po6I { label = "friends(o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po6I) { data = (0.5 0.5 ); } node wclause1Io6po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po1I_CC0 | friendsIo6po6I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po1I { label = "wclause1(o6,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po1I | wclause1Io6po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po6I { label = "wclause1(o6,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po6I | friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po6I_CC0_CC1 | friendsIo6po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po6I_CC0 | friendsIo1po6I wclause1Io1po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po6I { label = "wclause1(o1,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po6I | wclause1Io1po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po6I_CC0_CC1 | friendsIo6po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po6I_CC0 | friendsIo2po6I wclause1Io2po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po6I { label = "wclause1(o2,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po6I | wclause1Io2po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po6I_CC0_CC1 | friendsIo6po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po6I_CC0 | friendsIo3po6I wclause1Io3po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po6I { label = "wclause1(o3,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po6I | wclause1Io3po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po6I_CC0_CC1 | friendsIo6po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po6I_CC0 | friendsIo4po6I wclause1Io4po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po6I { label = "wclause1(o4,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po6I | wclause1Io4po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po6I_CC0_CC1 | friendsIo6po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po6I_CC0 | friendsIo5po6I wclause1Io5po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po6I { label = "wclause1(o5,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po6I | wclause1Io5po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po6I_CC0_CC1 | friendsIo1po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po6I_CC0 | friendsIo6po1I wclause1Io6po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po6I { label = "wclause1(o6,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po6I | wclause1Io6po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po6I_CC0_CC1 | friendsIo2po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo6po2I { label = "friends(o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po2I) { data = (0.5 0.5 ); } node wclause1Io6po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po6I_CC0 | friendsIo6po2I wclause1Io6po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po6I { label = "wclause1(o6,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po6I | wclause1Io6po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po2I_CC0 | friendsIo6po6I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po2I { label = "wclause1(o6,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po2I | wclause1Io6po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po2I_CC0_CC1 | friendsIo6po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po2I_CC0 | friendsIo1po6I wclause1Io1po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po2I { label = "wclause1(o1,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po2I | wclause1Io1po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po2I_CC0_CC1 | friendsIo6po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po2I_CC0 | friendsIo2po6I wclause1Io2po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po2I { label = "wclause1(o2,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po2I | wclause1Io2po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po2I_CC0_CC1 | friendsIo6po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po2I_CC0 | friendsIo3po6I wclause1Io3po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po2I { label = "wclause1(o3,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po2I | wclause1Io3po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po2I_CC0_CC1 | friendsIo6po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po2I_CC0 | friendsIo4po6I wclause1Io4po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po2I { label = "wclause1(o4,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po2I | wclause1Io4po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po2I_CC0_CC1 | friendsIo6po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po2I_CC0 | friendsIo5po6I wclause1Io5po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po2I { label = "wclause1(o5,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po2I | wclause1Io5po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po2I_CC0_CC1 | friendsIo1po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po2I_CC0 | friendsIo6po1I wclause1Io6po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po2I { label = "wclause1(o6,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po2I | wclause1Io6po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po1I_CC0_CC1 | friendsIo2po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po1I_CC0 | friendsIo6po2I wclause1Io6po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po1I { label = "wclause1(o6,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po1I | wclause1Io6po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po2I_CC0_CC1 | friendsIo2po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po2I_CC0 | friendsIo6po2I wclause1Io6po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po2I { label = "wclause1(o6,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po2I | wclause1Io6po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po3I { label = "friends(o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po3I) { data = (0.5 0.5 ); } node wclause1Io6po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po3I_CC0_CC1 | friendsIo2po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po3I_CC0 | friendsIo6po2I wclause1Io6po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po3I { label = "wclause1(o6,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po3I | wclause1Io6po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po3I_CC0 | friendsIo6po6I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po3I { label = "wclause1(o6,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po3I | wclause1Io6po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po3I_CC0_CC1 | friendsIo6po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po3I_CC0 | friendsIo1po6I wclause1Io1po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po3I { label = "wclause1(o1,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po3I | wclause1Io1po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po3I_CC0_CC1 | friendsIo6po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po3I_CC0 | friendsIo2po6I wclause1Io2po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po3I { label = "wclause1(o2,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po3I | wclause1Io2po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po3I_CC0_CC1 | friendsIo6po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po3I_CC0 | friendsIo3po6I wclause1Io3po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po3I { label = "wclause1(o3,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po3I | wclause1Io3po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po3I_CC0_CC1 | friendsIo6po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po3I_CC0 | friendsIo4po6I wclause1Io4po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po3I { label = "wclause1(o4,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po3I | wclause1Io4po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po3I_CC0_CC1 | friendsIo6po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po3I_CC0 | friendsIo5po6I wclause1Io5po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po3I { label = "wclause1(o5,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po3I | wclause1Io5po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po3I_CC0_CC1 | friendsIo1po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po3I_CC0 | friendsIo6po1I wclause1Io6po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po3I { label = "wclause1(o6,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po3I | wclause1Io6po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po1I_CC0_CC1 | friendsIo3po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po1I_CC0 | friendsIo6po3I wclause1Io6po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po1I { label = "wclause1(o6,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po1I | wclause1Io6po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po2I_CC0_CC1 | friendsIo3po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po2I_CC0 | friendsIo6po3I wclause1Io6po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po2I { label = "wclause1(o6,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po2I | wclause1Io6po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po3I_CC0_CC1 | friendsIo3po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po3I_CC0 | friendsIo6po3I wclause1Io6po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po3I { label = "wclause1(o6,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po3I | wclause1Io6po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po4I { label = "friends(o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po4I) { data = (0.5 0.5 ); } node wclause1Io6po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po4I_CC0_CC1 | friendsIo3po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po4I_CC0 | friendsIo6po3I wclause1Io6po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po4I { label = "wclause1(o6,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po4I | wclause1Io6po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po4I_CC0 | friendsIo6po6I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po4I { label = "wclause1(o6,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po4I | wclause1Io6po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po4I_CC0_CC1 | friendsIo6po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po4I_CC0 | friendsIo1po6I wclause1Io1po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po4I { label = "wclause1(o1,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po4I | wclause1Io1po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po4I_CC0_CC1 | friendsIo6po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po4I_CC0 | friendsIo2po6I wclause1Io2po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po4I { label = "wclause1(o2,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po4I | wclause1Io2po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po4I_CC0_CC1 | friendsIo6po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po4I_CC0 | friendsIo3po6I wclause1Io3po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po4I { label = "wclause1(o3,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po4I | wclause1Io3po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po4I_CC0_CC1 | friendsIo6po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po4I_CC0 | friendsIo4po6I wclause1Io4po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po4I { label = "wclause1(o4,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po4I | wclause1Io4po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po4I_CC0_CC1 | friendsIo6po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po4I_CC0 | friendsIo5po6I wclause1Io5po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po4I { label = "wclause1(o5,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po4I | wclause1Io5po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po4I_CC0_CC1 | friendsIo1po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po4I_CC0 | friendsIo6po1I wclause1Io6po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po4I { label = "wclause1(o6,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po4I | wclause1Io6po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po4I_CC0_CC1 | friendsIo2po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po4I_CC0 | friendsIo6po2I wclause1Io6po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po4I { label = "wclause1(o6,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po4I | wclause1Io6po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po1I_CC0_CC1 | friendsIo4po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po1I_CC0 | friendsIo6po4I wclause1Io6po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po1I { label = "wclause1(o6,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po1I | wclause1Io6po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po2I_CC0_CC1 | friendsIo4po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po2I_CC0 | friendsIo6po4I wclause1Io6po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po2I { label = "wclause1(o6,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po2I | wclause1Io6po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po3I_CC0_CC1 | friendsIo4po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po3I_CC0 | friendsIo6po4I wclause1Io6po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po3I { label = "wclause1(o6,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po3I | wclause1Io6po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po4I_CC0_CC1 | friendsIo4po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po4I_CC0 | friendsIo6po4I wclause1Io6po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po4I { label = "wclause1(o6,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po4I | wclause1Io6po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po5I { label = "friends(o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po5I) { data = (0.5 0.5 ); } node wclause1Io6po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po5I_CC0_CC1 | friendsIo4po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po5I_CC0 | friendsIo6po4I wclause1Io6po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po5I { label = "wclause1(o6,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po5I | wclause1Io6po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po5I_CC0 | friendsIo6po6I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po5I { label = "wclause1(o6,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po5I | wclause1Io6po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po5I_CC0_CC1 | friendsIo6po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po5I_CC0 | friendsIo1po6I wclause1Io1po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po5I { label = "wclause1(o1,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po5I | wclause1Io1po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po5I_CC0_CC1 | friendsIo6po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po5I_CC0 | friendsIo2po6I wclause1Io2po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po5I { label = "wclause1(o2,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po5I | wclause1Io2po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po5I_CC0_CC1 | friendsIo6po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po5I_CC0 | friendsIo3po6I wclause1Io3po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po5I { label = "wclause1(o3,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po5I | wclause1Io3po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po5I_CC0_CC1 | friendsIo6po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po5I_CC0 | friendsIo4po6I wclause1Io4po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po5I { label = "wclause1(o4,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po5I | wclause1Io4po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po5I_CC0_CC1 | friendsIo6po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po5I_CC0 | friendsIo5po6I wclause1Io5po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po5I { label = "wclause1(o5,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po5I | wclause1Io5po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po5I_CC0_CC1 | friendsIo1po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po5I_CC0 | friendsIo6po1I wclause1Io6po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po5I { label = "wclause1(o6,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po5I | wclause1Io6po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po5I_CC0_CC1 | friendsIo2po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po5I_CC0 | friendsIo6po2I wclause1Io6po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po5I { label = "wclause1(o6,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po5I | wclause1Io6po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po5I_CC0_CC1 | friendsIo3po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po5I_CC0 | friendsIo6po3I wclause1Io6po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po5I { label = "wclause1(o6,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po5I | wclause1Io6po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po1I_CC0_CC1 | friendsIo5po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po1I_CC0 | friendsIo6po5I wclause1Io6po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po1I { label = "wclause1(o6,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po1I | wclause1Io6po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po2I_CC0_CC1 | friendsIo5po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po2I_CC0 | friendsIo6po5I wclause1Io6po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po2I { label = "wclause1(o6,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po2I | wclause1Io6po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po3I_CC0_CC1 | friendsIo5po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po3I_CC0 | friendsIo6po5I wclause1Io6po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po3I { label = "wclause1(o6,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po3I | wclause1Io6po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po4I_CC0_CC1 | friendsIo5po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po4I_CC0 | friendsIo6po5I wclause1Io6po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po4I { label = "wclause1(o6,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po4I | wclause1Io6po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po5I_CC0_CC1 | friendsIo5po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po5I_CC0 | friendsIo6po5I wclause1Io6po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po5I { label = "wclause1(o6,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po5I | wclause1Io6po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po6I_CC0_CC1 | friendsIo5po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po6I_CC0 | friendsIo6po5I wclause1Io6po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po6I { label = "wclause1(o6,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po6I | wclause1Io6po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po7I { label = "friends(o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po7I) { data = (0.5 0.5 ); } node friendsIo6po7I { label = "friends(o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po7I) { data = (0.5 0.5 ); } node wclause1Io6po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po7I_CC0_CC1 | friendsIo5po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po7I_CC0 | friendsIo6po5I wclause1Io6po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po7I { label = "wclause1(o6,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po7I | wclause1Io6po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po7I_CC0 | friendsIo6po6I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po7I { label = "wclause1(o6,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po7I | wclause1Io6po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po7I_CC0_CC1 | friendsIo6po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po7I_CC0 | friendsIo1po6I wclause1Io1po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po7I { label = "wclause1(o1,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po7I | wclause1Io1po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po7I { label = "friends(o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po7I) { data = (0.5 0.5 ); } node wclause1Io2po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po7I_CC0_CC1 | friendsIo6po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po7I_CC0 | friendsIo2po6I wclause1Io2po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po7I { label = "wclause1(o2,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po7I | wclause1Io2po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po7I_CC0 | friendsIo2po2I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po7I { label = "wclause1(o2,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po7I | wclause1Io2po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po7I_CC0_CC1 | friendsIo2po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po7I_CC0 | friendsIo1po2I wclause1Io1po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po7I { label = "wclause1(o1,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po7I | wclause1Io1po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po7I_CC0_CC1 | friendsIo1po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po7I_CC0 | friendsIo2po1I wclause1Io2po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po7I { label = "wclause1(o2,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po7I | wclause1Io2po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po7I { label = "friends(o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po7I) { data = (0.5 0.5 ); } node wclause1Io2po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po7I_CC0_CC1 | friendsIo3po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po7I_CC0 | friendsIo2po3I wclause1Io2po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po7I { label = "wclause1(o2,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po7I | wclause1Io2po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po7I_CC0 | friendsIo3po3I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po7I { label = "wclause1(o3,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po7I | wclause1Io3po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po7I_CC0_CC1 | friendsIo3po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po7I_CC0 | friendsIo1po3I wclause1Io1po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po7I { label = "wclause1(o1,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po7I | wclause1Io1po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po7I_CC0_CC1 | friendsIo1po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po7I_CC0 | friendsIo3po1I wclause1Io3po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po7I { label = "wclause1(o3,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po7I | wclause1Io3po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po7I_CC0_CC1 | friendsIo2po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po7I_CC0 | friendsIo3po2I wclause1Io3po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po7I { label = "wclause1(o3,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po7I | wclause1Io3po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po7I { label = "friends(o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po7I) { data = (0.5 0.5 ); } node wclause1Io3po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po7I_CC0_CC1 | friendsIo4po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po7I_CC0 | friendsIo3po4I wclause1Io3po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po7I { label = "wclause1(o3,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po7I | wclause1Io3po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po7I_CC0 | friendsIo4po4I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po7I { label = "wclause1(o4,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po7I | wclause1Io4po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po7I_CC0_CC1 | friendsIo4po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po7I_CC0 | friendsIo1po4I wclause1Io1po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po7I { label = "wclause1(o1,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po7I | wclause1Io1po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po7I_CC0_CC1 | friendsIo4po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po7I_CC0 | friendsIo2po4I wclause1Io2po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po7I { label = "wclause1(o2,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po7I | wclause1Io2po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po7I_CC0_CC1 | friendsIo1po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po7I_CC0 | friendsIo4po1I wclause1Io4po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po7I { label = "wclause1(o4,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po7I | wclause1Io4po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po7I_CC0_CC1 | friendsIo2po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po7I_CC0 | friendsIo4po2I wclause1Io4po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po7I { label = "wclause1(o4,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po7I | wclause1Io4po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po7I_CC0_CC1 | friendsIo3po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po7I_CC0 | friendsIo4po3I wclause1Io4po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po7I { label = "wclause1(o4,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po7I | wclause1Io4po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po7I_CC0_CC1 | friendsIo5po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po7I_CC0 | friendsIo4po5I wclause1Io4po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po7I { label = "wclause1(o4,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po7I | wclause1Io4po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po7I_CC0_CC1 | friendsIo6po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po7I_CC0 | friendsIo4po6I wclause1Io4po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po7I { label = "wclause1(o4,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po7I | wclause1Io4po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po1I { label = "friends(o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po1I) { data = (0.5 0.5 ); } node wclause1Io4po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po1I_CC0_CC1 | friendsIo7po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po1I_CC0 | friendsIo4po7I wclause1Io4po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po1I { label = "wclause1(o4,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po1I | wclause1Io4po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po7I { label = "friends(o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po7I) { data = (0.5 0.5 ); } node wclause1Io7po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po1I_CC0 | friendsIo7po7I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po1I { label = "wclause1(o7,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po1I | wclause1Io7po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po7I { label = "wclause1(o7,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po7I | friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po7I_CC0_CC1 | friendsIo7po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po7I_CC0 | friendsIo1po7I wclause1Io1po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po7I { label = "wclause1(o1,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po7I | wclause1Io1po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po7I_CC0_CC1 | friendsIo7po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po7I_CC0 | friendsIo2po7I wclause1Io2po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po7I { label = "wclause1(o2,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po7I | wclause1Io2po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po7I_CC0_CC1 | friendsIo7po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po7I_CC0 | friendsIo3po7I wclause1Io3po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po7I { label = "wclause1(o3,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po7I | wclause1Io3po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po7I_CC0_CC1 | friendsIo7po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po7I_CC0 | friendsIo4po7I wclause1Io4po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po7I { label = "wclause1(o4,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po7I | wclause1Io4po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po7I_CC0_CC1 | friendsIo7po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po7I_CC0 | friendsIo5po7I wclause1Io5po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po7I { label = "wclause1(o5,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po7I | wclause1Io5po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po7I_CC0_CC1 | friendsIo7po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po7I_CC0 | friendsIo6po7I wclause1Io6po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po7I { label = "wclause1(o6,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po7I | wclause1Io6po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po7I_CC0_CC1 | friendsIo1po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po7I_CC0 | friendsIo7po1I wclause1Io7po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po7I { label = "wclause1(o7,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po7I | wclause1Io7po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po7I_CC0_CC1 | friendsIo2po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo7po2I { label = "friends(o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po2I) { data = (0.5 0.5 ); } node wclause1Io7po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po7I_CC0 | friendsIo7po2I wclause1Io7po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po7I { label = "wclause1(o7,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po7I | wclause1Io7po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po2I_CC0 | friendsIo7po7I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po2I { label = "wclause1(o7,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po2I | wclause1Io7po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po2I_CC0_CC1 | friendsIo7po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po2I_CC0 | friendsIo1po7I wclause1Io1po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po2I { label = "wclause1(o1,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po2I | wclause1Io1po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po2I_CC0_CC1 | friendsIo7po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po2I_CC0 | friendsIo2po7I wclause1Io2po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po2I { label = "wclause1(o2,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po2I | wclause1Io2po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po2I_CC0_CC1 | friendsIo7po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po2I_CC0 | friendsIo3po7I wclause1Io3po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po2I { label = "wclause1(o3,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po2I | wclause1Io3po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po2I_CC0_CC1 | friendsIo7po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po2I_CC0 | friendsIo4po7I wclause1Io4po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po2I { label = "wclause1(o4,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po2I | wclause1Io4po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po2I_CC0_CC1 | friendsIo7po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po2I_CC0 | friendsIo5po7I wclause1Io5po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po2I { label = "wclause1(o5,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po2I | wclause1Io5po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po2I_CC0_CC1 | friendsIo7po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po2I_CC0 | friendsIo6po7I wclause1Io6po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po2I { label = "wclause1(o6,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po2I | wclause1Io6po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po2I_CC0_CC1 | friendsIo1po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po2I_CC0 | friendsIo7po1I wclause1Io7po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po2I { label = "wclause1(o7,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po2I | wclause1Io7po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po1I_CC0_CC1 | friendsIo2po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po1I_CC0 | friendsIo7po2I wclause1Io7po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po1I { label = "wclause1(o7,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po1I | wclause1Io7po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po2I_CC0_CC1 | friendsIo2po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po2I_CC0 | friendsIo7po2I wclause1Io7po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po2I { label = "wclause1(o7,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po2I | wclause1Io7po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po3I { label = "friends(o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po3I) { data = (0.5 0.5 ); } node wclause1Io7po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po3I_CC0_CC1 | friendsIo2po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po3I_CC0 | friendsIo7po2I wclause1Io7po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po3I { label = "wclause1(o7,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po3I | wclause1Io7po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po3I_CC0 | friendsIo7po7I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po3I { label = "wclause1(o7,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po3I | wclause1Io7po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po3I_CC0_CC1 | friendsIo7po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po3I_CC0 | friendsIo1po7I wclause1Io1po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po3I { label = "wclause1(o1,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po3I | wclause1Io1po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po3I_CC0_CC1 | friendsIo7po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po3I_CC0 | friendsIo2po7I wclause1Io2po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po3I { label = "wclause1(o2,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po3I | wclause1Io2po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po3I_CC0_CC1 | friendsIo7po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po3I_CC0 | friendsIo3po7I wclause1Io3po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po3I { label = "wclause1(o3,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po3I | wclause1Io3po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po3I_CC0_CC1 | friendsIo7po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po3I_CC0 | friendsIo4po7I wclause1Io4po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po3I { label = "wclause1(o4,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po3I | wclause1Io4po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po3I_CC0_CC1 | friendsIo7po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po3I_CC0 | friendsIo5po7I wclause1Io5po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po3I { label = "wclause1(o5,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po3I | wclause1Io5po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po3I_CC0_CC1 | friendsIo7po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po3I_CC0 | friendsIo6po7I wclause1Io6po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po3I { label = "wclause1(o6,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po3I | wclause1Io6po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po3I_CC0_CC1 | friendsIo1po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po3I_CC0 | friendsIo7po1I wclause1Io7po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po3I { label = "wclause1(o7,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po3I | wclause1Io7po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po1I_CC0_CC1 | friendsIo3po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po1I_CC0 | friendsIo7po3I wclause1Io7po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po1I { label = "wclause1(o7,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po1I | wclause1Io7po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po2I_CC0_CC1 | friendsIo3po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po2I_CC0 | friendsIo7po3I wclause1Io7po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po2I { label = "wclause1(o7,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po2I | wclause1Io7po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po3I_CC0_CC1 | friendsIo3po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po3I_CC0 | friendsIo7po3I wclause1Io7po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po3I { label = "wclause1(o7,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po3I | wclause1Io7po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po4I { label = "friends(o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po4I) { data = (0.5 0.5 ); } node wclause1Io7po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po4I_CC0_CC1 | friendsIo3po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po4I_CC0 | friendsIo7po3I wclause1Io7po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po4I { label = "wclause1(o7,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po4I | wclause1Io7po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po4I_CC0 | friendsIo7po7I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po4I { label = "wclause1(o7,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po4I | wclause1Io7po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po4I_CC0_CC1 | friendsIo7po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po4I_CC0 | friendsIo1po7I wclause1Io1po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po4I { label = "wclause1(o1,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po4I | wclause1Io1po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po4I_CC0_CC1 | friendsIo7po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po4I_CC0 | friendsIo2po7I wclause1Io2po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po4I { label = "wclause1(o2,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po4I | wclause1Io2po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po4I_CC0_CC1 | friendsIo7po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po4I_CC0 | friendsIo3po7I wclause1Io3po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po4I { label = "wclause1(o3,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po4I | wclause1Io3po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po4I_CC0_CC1 | friendsIo7po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po4I_CC0 | friendsIo4po7I wclause1Io4po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po4I { label = "wclause1(o4,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po4I | wclause1Io4po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po4I_CC0_CC1 | friendsIo7po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po4I_CC0 | friendsIo5po7I wclause1Io5po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po4I { label = "wclause1(o5,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po4I | wclause1Io5po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po4I_CC0_CC1 | friendsIo7po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po4I_CC0 | friendsIo6po7I wclause1Io6po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po4I { label = "wclause1(o6,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po4I | wclause1Io6po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po4I_CC0_CC1 | friendsIo1po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po4I_CC0 | friendsIo7po1I wclause1Io7po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po4I { label = "wclause1(o7,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po4I | wclause1Io7po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po4I_CC0_CC1 | friendsIo2po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po4I_CC0 | friendsIo7po2I wclause1Io7po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po4I { label = "wclause1(o7,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po4I | wclause1Io7po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po1I_CC0_CC1 | friendsIo4po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po1I_CC0 | friendsIo7po4I wclause1Io7po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po1I { label = "wclause1(o7,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po1I | wclause1Io7po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po2I_CC0_CC1 | friendsIo4po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po2I_CC0 | friendsIo7po4I wclause1Io7po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po2I { label = "wclause1(o7,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po2I | wclause1Io7po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po3I_CC0_CC1 | friendsIo4po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po3I_CC0 | friendsIo7po4I wclause1Io7po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po3I { label = "wclause1(o7,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po3I | wclause1Io7po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po4I_CC0_CC1 | friendsIo4po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po4I_CC0 | friendsIo7po4I wclause1Io7po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po4I { label = "wclause1(o7,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po4I | wclause1Io7po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po5I { label = "friends(o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po5I) { data = (0.5 0.5 ); } node wclause1Io7po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po5I_CC0_CC1 | friendsIo4po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po5I_CC0 | friendsIo7po4I wclause1Io7po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po5I { label = "wclause1(o7,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po5I | wclause1Io7po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po5I_CC0 | friendsIo7po7I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po5I { label = "wclause1(o7,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po5I | wclause1Io7po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po5I_CC0_CC1 | friendsIo7po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po5I_CC0 | friendsIo1po7I wclause1Io1po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po5I { label = "wclause1(o1,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po5I | wclause1Io1po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po5I_CC0_CC1 | friendsIo7po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po5I_CC0 | friendsIo2po7I wclause1Io2po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po5I { label = "wclause1(o2,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po5I | wclause1Io2po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po5I_CC0_CC1 | friendsIo7po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po5I_CC0 | friendsIo3po7I wclause1Io3po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po5I { label = "wclause1(o3,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po5I | wclause1Io3po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po5I_CC0_CC1 | friendsIo7po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po5I_CC0 | friendsIo4po7I wclause1Io4po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po5I { label = "wclause1(o4,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po5I | wclause1Io4po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po5I_CC0_CC1 | friendsIo7po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po5I_CC0 | friendsIo5po7I wclause1Io5po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po5I { label = "wclause1(o5,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po5I | wclause1Io5po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po5I_CC0_CC1 | friendsIo7po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po5I_CC0 | friendsIo6po7I wclause1Io6po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po5I { label = "wclause1(o6,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po5I | wclause1Io6po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po5I_CC0_CC1 | friendsIo1po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po5I_CC0 | friendsIo7po1I wclause1Io7po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po5I { label = "wclause1(o7,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po5I | wclause1Io7po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po5I_CC0_CC1 | friendsIo2po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po5I_CC0 | friendsIo7po2I wclause1Io7po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po5I { label = "wclause1(o7,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po5I | wclause1Io7po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po5I_CC0_CC1 | friendsIo3po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po5I_CC0 | friendsIo7po3I wclause1Io7po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po5I { label = "wclause1(o7,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po5I | wclause1Io7po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po1I_CC0_CC1 | friendsIo5po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po1I_CC0 | friendsIo7po5I wclause1Io7po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po1I { label = "wclause1(o7,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po1I | wclause1Io7po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po2I_CC0_CC1 | friendsIo5po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po2I_CC0 | friendsIo7po5I wclause1Io7po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po2I { label = "wclause1(o7,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po2I | wclause1Io7po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po3I_CC0_CC1 | friendsIo5po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po3I_CC0 | friendsIo7po5I wclause1Io7po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po3I { label = "wclause1(o7,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po3I | wclause1Io7po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po4I_CC0_CC1 | friendsIo5po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po4I_CC0 | friendsIo7po5I wclause1Io7po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po4I { label = "wclause1(o7,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po4I | wclause1Io7po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po5I_CC0_CC1 | friendsIo5po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po5I_CC0 | friendsIo7po5I wclause1Io7po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po5I { label = "wclause1(o7,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po5I | wclause1Io7po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po6I { label = "friends(o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po6I) { data = (0.5 0.5 ); } node wclause1Io7po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po6I_CC0_CC1 | friendsIo5po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po6I_CC0 | friendsIo7po5I wclause1Io7po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po6I { label = "wclause1(o7,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po6I | wclause1Io7po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po6I_CC0 | friendsIo7po7I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po6I { label = "wclause1(o7,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po6I | wclause1Io7po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po6I_CC0_CC1 | friendsIo7po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po6I_CC0 | friendsIo1po7I wclause1Io1po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po6I { label = "wclause1(o1,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po6I | wclause1Io1po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po6I_CC0_CC1 | friendsIo7po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po6I_CC0 | friendsIo2po7I wclause1Io2po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po6I { label = "wclause1(o2,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po6I | wclause1Io2po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po6I_CC0_CC1 | friendsIo7po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po6I_CC0 | friendsIo3po7I wclause1Io3po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po6I { label = "wclause1(o3,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po6I | wclause1Io3po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po6I_CC0_CC1 | friendsIo7po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po6I_CC0 | friendsIo4po7I wclause1Io4po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po6I { label = "wclause1(o4,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po6I | wclause1Io4po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po6I_CC0_CC1 | friendsIo7po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po6I_CC0 | friendsIo5po7I wclause1Io5po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po6I { label = "wclause1(o5,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po6I | wclause1Io5po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po6I_CC0_CC1 | friendsIo7po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po6I_CC0 | friendsIo6po7I wclause1Io6po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po6I { label = "wclause1(o6,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po6I | wclause1Io6po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po6I_CC0_CC1 | friendsIo1po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po6I_CC0 | friendsIo7po1I wclause1Io7po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po6I { label = "wclause1(o7,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po6I | wclause1Io7po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po6I_CC0_CC1 | friendsIo2po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po6I_CC0 | friendsIo7po2I wclause1Io7po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po6I { label = "wclause1(o7,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po6I | wclause1Io7po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po6I_CC0_CC1 | friendsIo3po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po6I_CC0 | friendsIo7po3I wclause1Io7po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po6I { label = "wclause1(o7,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po6I | wclause1Io7po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po6I_CC0_CC1 | friendsIo4po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po6I_CC0 | friendsIo7po4I wclause1Io7po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po6I { label = "wclause1(o7,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po6I | wclause1Io7po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po1I_CC0_CC1 | friendsIo6po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po1I_CC0 | friendsIo7po6I wclause1Io7po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po1I { label = "wclause1(o7,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po1I | wclause1Io7po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po2I_CC0_CC1 | friendsIo6po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po2I_CC0 | friendsIo7po6I wclause1Io7po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po2I { label = "wclause1(o7,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po2I | wclause1Io7po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po3I_CC0_CC1 | friendsIo6po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po3I_CC0 | friendsIo7po6I wclause1Io7po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po3I { label = "wclause1(o7,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po3I | wclause1Io7po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po4I_CC0_CC1 | friendsIo6po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po4I_CC0 | friendsIo7po6I wclause1Io7po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po4I { label = "wclause1(o7,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po4I | wclause1Io7po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po5I_CC0_CC1 | friendsIo6po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po5I_CC0 | friendsIo7po6I wclause1Io7po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po5I { label = "wclause1(o7,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po5I | wclause1Io7po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po6I_CC0_CC1 | friendsIo6po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po6I_CC0 | friendsIo7po6I wclause1Io7po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po6I { label = "wclause1(o7,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po6I | wclause1Io7po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po7I_CC0_CC1 | friendsIo6po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po7I_CC0 | friendsIo7po6I wclause1Io7po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po7I { label = "wclause1(o7,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po7I | wclause1Io7po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po8I { label = "friends(o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po8I) { data = (0.5 0.5 ); } node friendsIo7po8I { label = "friends(o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po8I) { data = (0.5 0.5 ); } node wclause1Io7po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po8I_CC0_CC1 | friendsIo6po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po8I_CC0 | friendsIo7po6I wclause1Io7po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po8I { label = "wclause1(o7,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po8I | wclause1Io7po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po8I_CC0 | friendsIo7po7I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po8I { label = "wclause1(o7,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po8I | wclause1Io7po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po8I_CC0_CC1 | friendsIo7po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po8I_CC0 | friendsIo1po7I wclause1Io1po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po8I { label = "wclause1(o1,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po8I | wclause1Io1po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po8I { label = "friends(o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po8I) { data = (0.5 0.5 ); } node wclause1Io2po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po8I_CC0_CC1 | friendsIo7po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po8I_CC0 | friendsIo2po7I wclause1Io2po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po8I { label = "wclause1(o2,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po8I | wclause1Io2po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po8I_CC0 | friendsIo2po2I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po8I { label = "wclause1(o2,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po8I | wclause1Io2po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po8I_CC0_CC1 | friendsIo2po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po8I_CC0 | friendsIo1po2I wclause1Io1po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po8I { label = "wclause1(o1,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po8I | wclause1Io1po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po8I_CC0_CC1 | friendsIo1po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po8I_CC0 | friendsIo2po1I wclause1Io2po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po8I { label = "wclause1(o2,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po8I | wclause1Io2po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po8I { label = "friends(o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po8I) { data = (0.5 0.5 ); } node wclause1Io2po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po8I_CC0_CC1 | friendsIo3po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po8I_CC0 | friendsIo2po3I wclause1Io2po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po8I { label = "wclause1(o2,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po8I | wclause1Io2po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po8I_CC0 | friendsIo3po3I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po8I { label = "wclause1(o3,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po8I | wclause1Io3po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po8I_CC0_CC1 | friendsIo3po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po8I_CC0 | friendsIo1po3I wclause1Io1po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po8I { label = "wclause1(o1,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po8I | wclause1Io1po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po8I_CC0_CC1 | friendsIo1po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po8I_CC0 | friendsIo3po1I wclause1Io3po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po8I { label = "wclause1(o3,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po8I | wclause1Io3po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po8I_CC0_CC1 | friendsIo2po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po8I_CC0 | friendsIo3po2I wclause1Io3po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po8I { label = "wclause1(o3,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po8I | wclause1Io3po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po8I { label = "friends(o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po8I) { data = (0.5 0.5 ); } node wclause1Io3po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po8I_CC0_CC1 | friendsIo4po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po8I_CC0 | friendsIo3po4I wclause1Io3po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po8I { label = "wclause1(o3,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po8I | wclause1Io3po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po8I_CC0 | friendsIo4po4I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po8I { label = "wclause1(o4,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po8I | wclause1Io4po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po8I_CC0_CC1 | friendsIo4po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po8I_CC0 | friendsIo1po4I wclause1Io1po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po8I { label = "wclause1(o1,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po8I | wclause1Io1po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po8I_CC0_CC1 | friendsIo4po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po8I_CC0 | friendsIo2po4I wclause1Io2po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po8I { label = "wclause1(o2,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po8I | wclause1Io2po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po8I_CC0_CC1 | friendsIo1po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po8I_CC0 | friendsIo4po1I wclause1Io4po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po8I { label = "wclause1(o4,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po8I | wclause1Io4po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po8I_CC0_CC1 | friendsIo2po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po8I_CC0 | friendsIo4po2I wclause1Io4po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po8I { label = "wclause1(o4,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po8I | wclause1Io4po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po8I_CC0_CC1 | friendsIo3po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po8I_CC0 | friendsIo4po3I wclause1Io4po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po8I { label = "wclause1(o4,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po8I | wclause1Io4po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po8I { label = "friends(o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po8I) { data = (0.5 0.5 ); } node wclause1Io4po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po8I_CC0_CC1 | friendsIo5po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po8I_CC0 | friendsIo4po5I wclause1Io4po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po8I { label = "wclause1(o4,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po8I | wclause1Io4po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po8I_CC0 | friendsIo5po5I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po8I { label = "wclause1(o5,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po8I | wclause1Io5po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po8I_CC0_CC1 | friendsIo5po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po8I_CC0 | friendsIo1po5I wclause1Io1po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po8I { label = "wclause1(o1,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po8I | wclause1Io1po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po8I_CC0_CC1 | friendsIo5po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po8I_CC0 | friendsIo2po5I wclause1Io2po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po8I { label = "wclause1(o2,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po8I | wclause1Io2po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po8I_CC0_CC1 | friendsIo5po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po8I_CC0 | friendsIo3po5I wclause1Io3po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po8I { label = "wclause1(o3,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po8I | wclause1Io3po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po8I_CC0_CC1 | friendsIo1po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po8I_CC0 | friendsIo5po1I wclause1Io5po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po8I { label = "wclause1(o5,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po8I | wclause1Io5po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po8I_CC0_CC1 | friendsIo2po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po8I_CC0 | friendsIo5po2I wclause1Io5po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po8I { label = "wclause1(o5,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po8I | wclause1Io5po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po8I_CC0_CC1 | friendsIo3po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po8I_CC0 | friendsIo5po3I wclause1Io5po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po8I { label = "wclause1(o5,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po8I | wclause1Io5po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po8I_CC0_CC1 | friendsIo4po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po8I_CC0 | friendsIo5po4I wclause1Io5po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po8I { label = "wclause1(o5,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po8I | wclause1Io5po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po8I_CC0_CC1 | friendsIo6po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po8I_CC0 | friendsIo5po6I wclause1Io5po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po8I { label = "wclause1(o5,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po8I | wclause1Io5po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po8I_CC0_CC1 | friendsIo7po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po8I_CC0 | friendsIo5po7I wclause1Io5po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po8I { label = "wclause1(o5,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po8I | wclause1Io5po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po1I { label = "friends(o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po1I) { data = (0.5 0.5 ); } node wclause1Io5po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po1I_CC0_CC1 | friendsIo8po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po1I_CC0 | friendsIo5po8I wclause1Io5po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po1I { label = "wclause1(o5,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po1I | wclause1Io5po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po8I { label = "friends(o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po8I) { data = (0.5 0.5 ); } node wclause1Io8po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po1I_CC0 | friendsIo8po8I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po1I { label = "wclause1(o8,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po1I | wclause1Io8po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po8I { label = "wclause1(o8,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po8I | friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po8I_CC0_CC1 | friendsIo8po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po8I_CC0 | friendsIo1po8I wclause1Io1po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po8I { label = "wclause1(o1,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po8I | wclause1Io1po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po8I_CC0_CC1 | friendsIo8po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po8I_CC0 | friendsIo2po8I wclause1Io2po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po8I { label = "wclause1(o2,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po8I | wclause1Io2po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po8I_CC0_CC1 | friendsIo8po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po8I_CC0 | friendsIo3po8I wclause1Io3po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po8I { label = "wclause1(o3,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po8I | wclause1Io3po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po8I_CC0_CC1 | friendsIo8po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po8I_CC0 | friendsIo4po8I wclause1Io4po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po8I { label = "wclause1(o4,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po8I | wclause1Io4po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po8I_CC0_CC1 | friendsIo8po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po8I_CC0 | friendsIo5po8I wclause1Io5po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po8I { label = "wclause1(o5,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po8I | wclause1Io5po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po8I_CC0_CC1 | friendsIo8po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po8I_CC0 | friendsIo6po8I wclause1Io6po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po8I { label = "wclause1(o6,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po8I | wclause1Io6po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po8I_CC0_CC1 | friendsIo8po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po8I_CC0 | friendsIo7po8I wclause1Io7po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po8I { label = "wclause1(o7,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po8I | wclause1Io7po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po8I_CC0_CC1 | friendsIo1po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po8I_CC0 | friendsIo8po1I wclause1Io8po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po8I { label = "wclause1(o8,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po8I | wclause1Io8po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po8I_CC0_CC1 | friendsIo2po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo8po2I { label = "friends(o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po2I) { data = (0.5 0.5 ); } node wclause1Io8po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po8I_CC0 | friendsIo8po2I wclause1Io8po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po8I { label = "wclause1(o8,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po8I | wclause1Io8po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po2I_CC0 | friendsIo8po8I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po2I { label = "wclause1(o8,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po2I | wclause1Io8po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po2I_CC0_CC1 | friendsIo8po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po2I_CC0 | friendsIo1po8I wclause1Io1po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po2I { label = "wclause1(o1,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po2I | wclause1Io1po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po2I_CC0_CC1 | friendsIo8po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po2I_CC0 | friendsIo2po8I wclause1Io2po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po2I { label = "wclause1(o2,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po2I | wclause1Io2po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po2I_CC0_CC1 | friendsIo8po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po2I_CC0 | friendsIo3po8I wclause1Io3po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po2I { label = "wclause1(o3,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po2I | wclause1Io3po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po2I_CC0_CC1 | friendsIo8po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po2I_CC0 | friendsIo4po8I wclause1Io4po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po2I { label = "wclause1(o4,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po2I | wclause1Io4po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po2I_CC0_CC1 | friendsIo8po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po2I_CC0 | friendsIo5po8I wclause1Io5po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po2I { label = "wclause1(o5,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po2I | wclause1Io5po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po2I_CC0_CC1 | friendsIo8po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po2I_CC0 | friendsIo6po8I wclause1Io6po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po2I { label = "wclause1(o6,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po2I | wclause1Io6po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po2I_CC0_CC1 | friendsIo8po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po2I_CC0 | friendsIo7po8I wclause1Io7po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po2I { label = "wclause1(o7,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po2I | wclause1Io7po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po2I_CC0_CC1 | friendsIo1po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po2I_CC0 | friendsIo8po1I wclause1Io8po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po2I { label = "wclause1(o8,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po2I | wclause1Io8po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po1I_CC0_CC1 | friendsIo2po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po1I_CC0 | friendsIo8po2I wclause1Io8po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po1I { label = "wclause1(o8,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po1I | wclause1Io8po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po2I_CC0_CC1 | friendsIo2po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po2I_CC0 | friendsIo8po2I wclause1Io8po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po2I { label = "wclause1(o8,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po2I | wclause1Io8po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po3I { label = "friends(o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po3I) { data = (0.5 0.5 ); } node wclause1Io8po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po3I_CC0_CC1 | friendsIo2po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po3I_CC0 | friendsIo8po2I wclause1Io8po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po3I { label = "wclause1(o8,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po3I | wclause1Io8po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po3I_CC0 | friendsIo8po8I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po3I { label = "wclause1(o8,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po3I | wclause1Io8po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po3I_CC0_CC1 | friendsIo8po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po3I_CC0 | friendsIo1po8I wclause1Io1po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po3I { label = "wclause1(o1,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po3I | wclause1Io1po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po3I_CC0_CC1 | friendsIo8po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po3I_CC0 | friendsIo2po8I wclause1Io2po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po3I { label = "wclause1(o2,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po3I | wclause1Io2po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po3I_CC0_CC1 | friendsIo8po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po3I_CC0 | friendsIo3po8I wclause1Io3po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po3I { label = "wclause1(o3,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po3I | wclause1Io3po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po3I_CC0_CC1 | friendsIo8po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po3I_CC0 | friendsIo4po8I wclause1Io4po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po3I { label = "wclause1(o4,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po3I | wclause1Io4po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po3I_CC0_CC1 | friendsIo8po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po3I_CC0 | friendsIo5po8I wclause1Io5po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po3I { label = "wclause1(o5,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po3I | wclause1Io5po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po3I_CC0_CC1 | friendsIo8po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po3I_CC0 | friendsIo6po8I wclause1Io6po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po3I { label = "wclause1(o6,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po3I | wclause1Io6po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po3I_CC0_CC1 | friendsIo8po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po3I_CC0 | friendsIo7po8I wclause1Io7po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po3I { label = "wclause1(o7,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po3I | wclause1Io7po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po3I_CC0_CC1 | friendsIo1po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po3I_CC0 | friendsIo8po1I wclause1Io8po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po3I { label = "wclause1(o8,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po3I | wclause1Io8po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po1I_CC0_CC1 | friendsIo3po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po1I_CC0 | friendsIo8po3I wclause1Io8po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po1I { label = "wclause1(o8,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po1I | wclause1Io8po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po2I_CC0_CC1 | friendsIo3po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po2I_CC0 | friendsIo8po3I wclause1Io8po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po2I { label = "wclause1(o8,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po2I | wclause1Io8po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po3I_CC0_CC1 | friendsIo3po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po3I_CC0 | friendsIo8po3I wclause1Io8po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po3I { label = "wclause1(o8,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po3I | wclause1Io8po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po4I { label = "friends(o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po4I) { data = (0.5 0.5 ); } node wclause1Io8po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po4I_CC0_CC1 | friendsIo3po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po4I_CC0 | friendsIo8po3I wclause1Io8po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po4I { label = "wclause1(o8,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po4I | wclause1Io8po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po4I_CC0 | friendsIo8po8I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po4I { label = "wclause1(o8,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po4I | wclause1Io8po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po4I_CC0_CC1 | friendsIo8po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po4I_CC0 | friendsIo1po8I wclause1Io1po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po4I { label = "wclause1(o1,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po4I | wclause1Io1po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po4I_CC0_CC1 | friendsIo8po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po4I_CC0 | friendsIo2po8I wclause1Io2po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po4I { label = "wclause1(o2,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po4I | wclause1Io2po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po4I_CC0_CC1 | friendsIo8po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po4I_CC0 | friendsIo3po8I wclause1Io3po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po4I { label = "wclause1(o3,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po4I | wclause1Io3po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po4I_CC0_CC1 | friendsIo8po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po4I_CC0 | friendsIo4po8I wclause1Io4po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po4I { label = "wclause1(o4,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po4I | wclause1Io4po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po4I_CC0_CC1 | friendsIo8po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po4I_CC0 | friendsIo5po8I wclause1Io5po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po4I { label = "wclause1(o5,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po4I | wclause1Io5po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po4I_CC0_CC1 | friendsIo8po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po4I_CC0 | friendsIo6po8I wclause1Io6po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po4I { label = "wclause1(o6,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po4I | wclause1Io6po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po4I_CC0_CC1 | friendsIo8po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po4I_CC0 | friendsIo7po8I wclause1Io7po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po4I { label = "wclause1(o7,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po4I | wclause1Io7po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po4I_CC0_CC1 | friendsIo1po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po4I_CC0 | friendsIo8po1I wclause1Io8po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po4I { label = "wclause1(o8,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po4I | wclause1Io8po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po4I_CC0_CC1 | friendsIo2po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po4I_CC0 | friendsIo8po2I wclause1Io8po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po4I { label = "wclause1(o8,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po4I | wclause1Io8po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po1I_CC0_CC1 | friendsIo4po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po1I_CC0 | friendsIo8po4I wclause1Io8po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po1I { label = "wclause1(o8,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po1I | wclause1Io8po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po2I_CC0_CC1 | friendsIo4po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po2I_CC0 | friendsIo8po4I wclause1Io8po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po2I { label = "wclause1(o8,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po2I | wclause1Io8po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po3I_CC0_CC1 | friendsIo4po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po3I_CC0 | friendsIo8po4I wclause1Io8po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po3I { label = "wclause1(o8,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po3I | wclause1Io8po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po4I_CC0_CC1 | friendsIo4po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po4I_CC0 | friendsIo8po4I wclause1Io8po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po4I { label = "wclause1(o8,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po4I | wclause1Io8po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po5I { label = "friends(o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po5I) { data = (0.5 0.5 ); } node wclause1Io8po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po5I_CC0_CC1 | friendsIo4po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po5I_CC0 | friendsIo8po4I wclause1Io8po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po5I { label = "wclause1(o8,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po5I | wclause1Io8po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po5I_CC0 | friendsIo8po8I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po5I { label = "wclause1(o8,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po5I | wclause1Io8po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po5I_CC0_CC1 | friendsIo8po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po5I_CC0 | friendsIo1po8I wclause1Io1po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po5I { label = "wclause1(o1,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po5I | wclause1Io1po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po5I_CC0_CC1 | friendsIo8po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po5I_CC0 | friendsIo2po8I wclause1Io2po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po5I { label = "wclause1(o2,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po5I | wclause1Io2po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po5I_CC0_CC1 | friendsIo8po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po5I_CC0 | friendsIo3po8I wclause1Io3po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po5I { label = "wclause1(o3,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po5I | wclause1Io3po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po5I_CC0_CC1 | friendsIo8po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po5I_CC0 | friendsIo4po8I wclause1Io4po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po5I { label = "wclause1(o4,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po5I | wclause1Io4po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po5I_CC0_CC1 | friendsIo8po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po5I_CC0 | friendsIo5po8I wclause1Io5po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po5I { label = "wclause1(o5,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po5I | wclause1Io5po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po5I_CC0_CC1 | friendsIo8po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po5I_CC0 | friendsIo6po8I wclause1Io6po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po5I { label = "wclause1(o6,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po5I | wclause1Io6po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po5I_CC0_CC1 | friendsIo8po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po5I_CC0 | friendsIo7po8I wclause1Io7po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po5I { label = "wclause1(o7,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po5I | wclause1Io7po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po5I_CC0_CC1 | friendsIo1po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po5I_CC0 | friendsIo8po1I wclause1Io8po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po5I { label = "wclause1(o8,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po5I | wclause1Io8po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po5I_CC0_CC1 | friendsIo2po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po5I_CC0 | friendsIo8po2I wclause1Io8po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po5I { label = "wclause1(o8,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po5I | wclause1Io8po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po5I_CC0_CC1 | friendsIo3po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po5I_CC0 | friendsIo8po3I wclause1Io8po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po5I { label = "wclause1(o8,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po5I | wclause1Io8po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po1I_CC0_CC1 | friendsIo5po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po1I_CC0 | friendsIo8po5I wclause1Io8po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po1I { label = "wclause1(o8,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po1I | wclause1Io8po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po2I_CC0_CC1 | friendsIo5po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po2I_CC0 | friendsIo8po5I wclause1Io8po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po2I { label = "wclause1(o8,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po2I | wclause1Io8po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po3I_CC0_CC1 | friendsIo5po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po3I_CC0 | friendsIo8po5I wclause1Io8po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po3I { label = "wclause1(o8,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po3I | wclause1Io8po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po4I_CC0_CC1 | friendsIo5po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po4I_CC0 | friendsIo8po5I wclause1Io8po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po4I { label = "wclause1(o8,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po4I | wclause1Io8po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po5I_CC0_CC1 | friendsIo5po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po5I_CC0 | friendsIo8po5I wclause1Io8po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po5I { label = "wclause1(o8,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po5I | wclause1Io8po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po6I { label = "friends(o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po6I) { data = (0.5 0.5 ); } node wclause1Io8po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po6I_CC0_CC1 | friendsIo5po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po6I_CC0 | friendsIo8po5I wclause1Io8po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po6I { label = "wclause1(o8,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po6I | wclause1Io8po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po6I_CC0 | friendsIo8po8I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po6I { label = "wclause1(o8,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po6I | wclause1Io8po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po6I_CC0_CC1 | friendsIo8po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po6I_CC0 | friendsIo1po8I wclause1Io1po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po6I { label = "wclause1(o1,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po6I | wclause1Io1po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po6I_CC0_CC1 | friendsIo8po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po6I_CC0 | friendsIo2po8I wclause1Io2po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po6I { label = "wclause1(o2,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po6I | wclause1Io2po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po6I_CC0_CC1 | friendsIo8po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po6I_CC0 | friendsIo3po8I wclause1Io3po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po6I { label = "wclause1(o3,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po6I | wclause1Io3po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po6I_CC0_CC1 | friendsIo8po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po6I_CC0 | friendsIo4po8I wclause1Io4po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po6I { label = "wclause1(o4,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po6I | wclause1Io4po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po6I_CC0_CC1 | friendsIo8po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po6I_CC0 | friendsIo5po8I wclause1Io5po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po6I { label = "wclause1(o5,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po6I | wclause1Io5po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po6I_CC0_CC1 | friendsIo8po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po6I_CC0 | friendsIo6po8I wclause1Io6po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po6I { label = "wclause1(o6,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po6I | wclause1Io6po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po6I_CC0_CC1 | friendsIo8po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po6I_CC0 | friendsIo7po8I wclause1Io7po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po6I { label = "wclause1(o7,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po6I | wclause1Io7po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po6I_CC0_CC1 | friendsIo1po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po6I_CC0 | friendsIo8po1I wclause1Io8po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po6I { label = "wclause1(o8,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po6I | wclause1Io8po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po6I_CC0_CC1 | friendsIo2po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po6I_CC0 | friendsIo8po2I wclause1Io8po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po6I { label = "wclause1(o8,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po6I | wclause1Io8po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po6I_CC0_CC1 | friendsIo3po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po6I_CC0 | friendsIo8po3I wclause1Io8po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po6I { label = "wclause1(o8,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po6I | wclause1Io8po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po6I_CC0_CC1 | friendsIo4po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po6I_CC0 | friendsIo8po4I wclause1Io8po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po6I { label = "wclause1(o8,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po6I | wclause1Io8po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po1I_CC0_CC1 | friendsIo6po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po1I_CC0 | friendsIo8po6I wclause1Io8po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po1I { label = "wclause1(o8,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po1I | wclause1Io8po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po2I_CC0_CC1 | friendsIo6po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po2I_CC0 | friendsIo8po6I wclause1Io8po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po2I { label = "wclause1(o8,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po2I | wclause1Io8po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po3I_CC0_CC1 | friendsIo6po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po3I_CC0 | friendsIo8po6I wclause1Io8po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po3I { label = "wclause1(o8,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po3I | wclause1Io8po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po4I_CC0_CC1 | friendsIo6po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po4I_CC0 | friendsIo8po6I wclause1Io8po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po4I { label = "wclause1(o8,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po4I | wclause1Io8po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po5I_CC0_CC1 | friendsIo6po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po5I_CC0 | friendsIo8po6I wclause1Io8po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po5I { label = "wclause1(o8,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po5I | wclause1Io8po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po6I_CC0_CC1 | friendsIo6po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po6I_CC0 | friendsIo8po6I wclause1Io8po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po6I { label = "wclause1(o8,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po6I | wclause1Io8po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po7I { label = "friends(o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po7I) { data = (0.5 0.5 ); } node wclause1Io8po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po7I_CC0_CC1 | friendsIo6po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po7I_CC0 | friendsIo8po6I wclause1Io8po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po7I { label = "wclause1(o8,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po7I | wclause1Io8po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po7I_CC0 | friendsIo8po8I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po7I { label = "wclause1(o8,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po7I | wclause1Io8po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po7I_CC0_CC1 | friendsIo8po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po7I_CC0 | friendsIo1po8I wclause1Io1po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po7I { label = "wclause1(o1,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po7I | wclause1Io1po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po7I_CC0_CC1 | friendsIo8po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po7I_CC0 | friendsIo2po8I wclause1Io2po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po7I { label = "wclause1(o2,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po7I | wclause1Io2po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po7I_CC0_CC1 | friendsIo8po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po7I_CC0 | friendsIo3po8I wclause1Io3po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po7I { label = "wclause1(o3,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po7I | wclause1Io3po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po7I_CC0_CC1 | friendsIo8po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po7I_CC0 | friendsIo4po8I wclause1Io4po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po7I { label = "wclause1(o4,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po7I | wclause1Io4po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po7I_CC0_CC1 | friendsIo8po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po7I_CC0 | friendsIo5po8I wclause1Io5po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po7I { label = "wclause1(o5,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po7I | wclause1Io5po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po7I_CC0_CC1 | friendsIo8po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po7I_CC0 | friendsIo6po8I wclause1Io6po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po7I { label = "wclause1(o6,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po7I | wclause1Io6po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po7I_CC0_CC1 | friendsIo8po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po7I_CC0 | friendsIo7po8I wclause1Io7po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po7I { label = "wclause1(o7,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po7I | wclause1Io7po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po7I_CC0_CC1 | friendsIo1po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po7I_CC0 | friendsIo8po1I wclause1Io8po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po7I { label = "wclause1(o8,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po7I | wclause1Io8po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po7I_CC0_CC1 | friendsIo2po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po7I_CC0 | friendsIo8po2I wclause1Io8po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po7I { label = "wclause1(o8,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po7I | wclause1Io8po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po7I_CC0_CC1 | friendsIo3po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po7I_CC0 | friendsIo8po3I wclause1Io8po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po7I { label = "wclause1(o8,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po7I | wclause1Io8po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po7I_CC0_CC1 | friendsIo4po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po7I_CC0 | friendsIo8po4I wclause1Io8po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po7I { label = "wclause1(o8,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po7I | wclause1Io8po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po7I_CC0_CC1 | friendsIo5po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po7I_CC0 | friendsIo8po5I wclause1Io8po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po7I { label = "wclause1(o8,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po7I | wclause1Io8po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po1I_CC0_CC1 | friendsIo7po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po1I_CC0 | friendsIo8po7I wclause1Io8po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po1I { label = "wclause1(o8,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po1I | wclause1Io8po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po2I_CC0_CC1 | friendsIo7po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po2I_CC0 | friendsIo8po7I wclause1Io8po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po2I { label = "wclause1(o8,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po2I | wclause1Io8po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po3I_CC0_CC1 | friendsIo7po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po3I_CC0 | friendsIo8po7I wclause1Io8po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po3I { label = "wclause1(o8,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po3I | wclause1Io8po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po4I_CC0_CC1 | friendsIo7po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po4I_CC0 | friendsIo8po7I wclause1Io8po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po4I { label = "wclause1(o8,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po4I | wclause1Io8po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po5I_CC0_CC1 | friendsIo7po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po5I_CC0 | friendsIo8po7I wclause1Io8po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po5I { label = "wclause1(o8,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po5I | wclause1Io8po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po6I_CC0_CC1 | friendsIo7po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po6I_CC0 | friendsIo8po7I wclause1Io8po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po6I { label = "wclause1(o8,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po6I | wclause1Io8po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po7I_CC0_CC1 | friendsIo7po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po7I_CC0 | friendsIo8po7I wclause1Io8po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po7I { label = "wclause1(o8,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po7I | wclause1Io8po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po8I_CC0_CC1 | friendsIo7po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po8I_CC0 | friendsIo8po7I wclause1Io8po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po8I { label = "wclause1(o8,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po8I | wclause1Io8po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po9I { label = "friends(o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po9I) { data = (0.5 0.5 ); } node friendsIo8po9I { label = "friends(o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po9I) { data = (0.5 0.5 ); } node wclause1Io8po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po9I_CC0_CC1 | friendsIo7po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po9I_CC0 | friendsIo8po7I wclause1Io8po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po9I { label = "wclause1(o8,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po9I | wclause1Io8po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po9I_CC0 | friendsIo8po8I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po9I { label = "wclause1(o8,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po9I | wclause1Io8po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po9I_CC0_CC1 | friendsIo8po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po9I_CC0 | friendsIo1po8I wclause1Io1po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po9I { label = "wclause1(o1,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po9I | wclause1Io1po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po9I { label = "friends(o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po9I) { data = (0.5 0.5 ); } node wclause1Io2po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po9I_CC0_CC1 | friendsIo8po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po9I_CC0 | friendsIo2po8I wclause1Io2po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po9I { label = "wclause1(o2,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po9I | wclause1Io2po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po9I_CC0 | friendsIo2po2I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po9I { label = "wclause1(o2,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po9I | wclause1Io2po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po9I_CC0_CC1 | friendsIo2po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po9I_CC0 | friendsIo1po2I wclause1Io1po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po9I { label = "wclause1(o1,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po9I | wclause1Io1po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po9I_CC0_CC1 | friendsIo1po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po9I_CC0 | friendsIo2po1I wclause1Io2po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po9I { label = "wclause1(o2,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po9I | wclause1Io2po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po9I { label = "friends(o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po9I) { data = (0.5 0.5 ); } node wclause1Io2po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po9I_CC0_CC1 | friendsIo3po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po9I_CC0 | friendsIo2po3I wclause1Io2po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po9I { label = "wclause1(o2,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po9I | wclause1Io2po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po9I_CC0 | friendsIo3po3I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po9I { label = "wclause1(o3,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po9I | wclause1Io3po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po9I_CC0_CC1 | friendsIo3po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po9I_CC0 | friendsIo1po3I wclause1Io1po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po9I { label = "wclause1(o1,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po9I | wclause1Io1po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po9I_CC0_CC1 | friendsIo1po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po9I_CC0 | friendsIo3po1I wclause1Io3po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po9I { label = "wclause1(o3,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po9I | wclause1Io3po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po9I_CC0_CC1 | friendsIo2po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po9I_CC0 | friendsIo3po2I wclause1Io3po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po9I { label = "wclause1(o3,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po9I | wclause1Io3po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po9I { label = "friends(o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po9I) { data = (0.5 0.5 ); } node wclause1Io3po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po9I_CC0_CC1 | friendsIo4po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po9I_CC0 | friendsIo3po4I wclause1Io3po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po9I { label = "wclause1(o3,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po9I | wclause1Io3po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po9I_CC0 | friendsIo4po4I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po9I { label = "wclause1(o4,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po9I | wclause1Io4po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po9I_CC0_CC1 | friendsIo4po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po9I_CC0 | friendsIo1po4I wclause1Io1po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po9I { label = "wclause1(o1,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po9I | wclause1Io1po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po9I_CC0_CC1 | friendsIo4po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po9I_CC0 | friendsIo2po4I wclause1Io2po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po9I { label = "wclause1(o2,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po9I | wclause1Io2po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po9I_CC0_CC1 | friendsIo1po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po9I_CC0 | friendsIo4po1I wclause1Io4po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po9I { label = "wclause1(o4,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po9I | wclause1Io4po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po9I_CC0_CC1 | friendsIo2po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po9I_CC0 | friendsIo4po2I wclause1Io4po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po9I { label = "wclause1(o4,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po9I | wclause1Io4po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po9I_CC0_CC1 | friendsIo3po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po9I_CC0 | friendsIo4po3I wclause1Io4po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po9I { label = "wclause1(o4,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po9I | wclause1Io4po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po9I { label = "friends(o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po9I) { data = (0.5 0.5 ); } node wclause1Io4po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po9I_CC0_CC1 | friendsIo5po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po9I_CC0 | friendsIo4po5I wclause1Io4po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po9I { label = "wclause1(o4,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po9I | wclause1Io4po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po9I_CC0 | friendsIo5po5I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po9I { label = "wclause1(o5,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po9I | wclause1Io5po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po9I_CC0_CC1 | friendsIo5po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po9I_CC0 | friendsIo1po5I wclause1Io1po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po9I { label = "wclause1(o1,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po9I | wclause1Io1po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po9I_CC0_CC1 | friendsIo5po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po9I_CC0 | friendsIo2po5I wclause1Io2po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po9I { label = "wclause1(o2,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po9I | wclause1Io2po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po9I_CC0_CC1 | friendsIo5po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po9I_CC0 | friendsIo3po5I wclause1Io3po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po9I { label = "wclause1(o3,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po9I | wclause1Io3po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po9I_CC0_CC1 | friendsIo1po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po9I_CC0 | friendsIo5po1I wclause1Io5po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po9I { label = "wclause1(o5,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po9I | wclause1Io5po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po9I_CC0_CC1 | friendsIo2po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po9I_CC0 | friendsIo5po2I wclause1Io5po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po9I { label = "wclause1(o5,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po9I | wclause1Io5po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po9I_CC0_CC1 | friendsIo3po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po9I_CC0 | friendsIo5po3I wclause1Io5po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po9I { label = "wclause1(o5,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po9I | wclause1Io5po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po9I_CC0_CC1 | friendsIo4po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po9I_CC0 | friendsIo5po4I wclause1Io5po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po9I { label = "wclause1(o5,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po9I | wclause1Io5po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po9I { label = "friends(o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po9I) { data = (0.5 0.5 ); } node wclause1Io5po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po9I_CC0_CC1 | friendsIo6po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po9I_CC0 | friendsIo5po6I wclause1Io5po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po9I { label = "wclause1(o5,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po9I | wclause1Io5po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po9I_CC0 | friendsIo6po6I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po9I { label = "wclause1(o6,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po9I | wclause1Io6po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po9I_CC0_CC1 | friendsIo6po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po9I_CC0 | friendsIo1po6I wclause1Io1po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po9I { label = "wclause1(o1,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po9I | wclause1Io1po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po9I_CC0_CC1 | friendsIo6po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po9I_CC0 | friendsIo2po6I wclause1Io2po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po9I { label = "wclause1(o2,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po9I | wclause1Io2po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po9I_CC0_CC1 | friendsIo6po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po9I_CC0 | friendsIo3po6I wclause1Io3po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po9I { label = "wclause1(o3,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po9I | wclause1Io3po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po9I_CC0_CC1 | friendsIo6po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po9I_CC0 | friendsIo4po6I wclause1Io4po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po9I { label = "wclause1(o4,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po9I | wclause1Io4po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po9I_CC0_CC1 | friendsIo1po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po9I_CC0 | friendsIo6po1I wclause1Io6po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po9I { label = "wclause1(o6,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po9I | wclause1Io6po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po9I_CC0_CC1 | friendsIo2po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po9I_CC0 | friendsIo6po2I wclause1Io6po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po9I { label = "wclause1(o6,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po9I | wclause1Io6po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po9I_CC0_CC1 | friendsIo3po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po9I_CC0 | friendsIo6po3I wclause1Io6po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po9I { label = "wclause1(o6,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po9I | wclause1Io6po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po9I_CC0_CC1 | friendsIo4po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po9I_CC0 | friendsIo6po4I wclause1Io6po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po9I { label = "wclause1(o6,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po9I | wclause1Io6po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po9I_CC0_CC1 | friendsIo5po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po9I_CC0 | friendsIo6po5I wclause1Io6po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po9I { label = "wclause1(o6,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po9I | wclause1Io6po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po9I_CC0_CC1 | friendsIo7po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po9I_CC0 | friendsIo6po7I wclause1Io6po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po9I { label = "wclause1(o6,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po9I | wclause1Io6po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po9I_CC0_CC1 | friendsIo8po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po9I_CC0 | friendsIo6po8I wclause1Io6po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po9I { label = "wclause1(o6,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po9I | wclause1Io6po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po1I { label = "friends(o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po1I) { data = (0.5 0.5 ); } node wclause1Io6po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po1I_CC0_CC1 | friendsIo9po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po1I_CC0 | friendsIo6po9I wclause1Io6po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po1I { label = "wclause1(o6,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po1I | wclause1Io6po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po9I { label = "friends(o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po9I) { data = (0.5 0.5 ); } node wclause1Io9po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po1I_CC0 | friendsIo9po9I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po1I { label = "wclause1(o9,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po1I | wclause1Io9po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po9I { label = "wclause1(o9,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po9I | friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po9I_CC0_CC1 | friendsIo9po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po9I_CC0 | friendsIo1po9I wclause1Io1po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po9I { label = "wclause1(o1,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po9I | wclause1Io1po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po9I_CC0_CC1 | friendsIo9po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po9I_CC0 | friendsIo2po9I wclause1Io2po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po9I { label = "wclause1(o2,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po9I | wclause1Io2po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po9I_CC0_CC1 | friendsIo9po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po9I_CC0 | friendsIo3po9I wclause1Io3po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po9I { label = "wclause1(o3,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po9I | wclause1Io3po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po9I_CC0_CC1 | friendsIo9po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po9I_CC0 | friendsIo4po9I wclause1Io4po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po9I { label = "wclause1(o4,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po9I | wclause1Io4po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po9I_CC0_CC1 | friendsIo9po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po9I_CC0 | friendsIo5po9I wclause1Io5po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po9I { label = "wclause1(o5,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po9I | wclause1Io5po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po9I_CC0_CC1 | friendsIo9po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po9I_CC0 | friendsIo6po9I wclause1Io6po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po9I { label = "wclause1(o6,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po9I | wclause1Io6po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po9I_CC0_CC1 | friendsIo9po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po9I_CC0 | friendsIo7po9I wclause1Io7po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po9I { label = "wclause1(o7,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po9I | wclause1Io7po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po9I_CC0_CC1 | friendsIo9po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po9I_CC0 | friendsIo8po9I wclause1Io8po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po9I { label = "wclause1(o8,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po9I | wclause1Io8po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po9I_CC0_CC1 | friendsIo1po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po9I_CC0 | friendsIo9po1I wclause1Io9po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po9I { label = "wclause1(o9,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po9I | wclause1Io9po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po9I_CC0_CC1 | friendsIo2po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo9po2I { label = "friends(o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po2I) { data = (0.5 0.5 ); } node wclause1Io9po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po9I_CC0 | friendsIo9po2I wclause1Io9po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po9I { label = "wclause1(o9,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po9I | wclause1Io9po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po2I_CC0 | friendsIo9po9I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po2I { label = "wclause1(o9,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po2I | wclause1Io9po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po2I_CC0_CC1 | friendsIo9po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po2I_CC0 | friendsIo1po9I wclause1Io1po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po2I { label = "wclause1(o1,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po2I | wclause1Io1po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po2I_CC0_CC1 | friendsIo9po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po2I_CC0 | friendsIo2po9I wclause1Io2po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po2I { label = "wclause1(o2,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po2I | wclause1Io2po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po2I_CC0_CC1 | friendsIo9po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po2I_CC0 | friendsIo3po9I wclause1Io3po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po2I { label = "wclause1(o3,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po2I | wclause1Io3po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po2I_CC0_CC1 | friendsIo9po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po2I_CC0 | friendsIo4po9I wclause1Io4po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po2I { label = "wclause1(o4,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po2I | wclause1Io4po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po2I_CC0_CC1 | friendsIo9po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po2I_CC0 | friendsIo5po9I wclause1Io5po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po2I { label = "wclause1(o5,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po2I | wclause1Io5po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po2I_CC0_CC1 | friendsIo9po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po2I_CC0 | friendsIo6po9I wclause1Io6po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po2I { label = "wclause1(o6,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po2I | wclause1Io6po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po2I_CC0_CC1 | friendsIo9po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po2I_CC0 | friendsIo7po9I wclause1Io7po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po2I { label = "wclause1(o7,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po2I | wclause1Io7po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po2I_CC0_CC1 | friendsIo9po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po2I_CC0 | friendsIo8po9I wclause1Io8po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po2I { label = "wclause1(o8,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po2I | wclause1Io8po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po2I_CC0_CC1 | friendsIo1po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po2I_CC0 | friendsIo9po1I wclause1Io9po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po2I { label = "wclause1(o9,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po2I | wclause1Io9po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po1I_CC0_CC1 | friendsIo2po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po1I_CC0 | friendsIo9po2I wclause1Io9po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po1I { label = "wclause1(o9,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po1I | wclause1Io9po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po2I_CC0_CC1 | friendsIo2po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po2I_CC0 | friendsIo9po2I wclause1Io9po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po2I { label = "wclause1(o9,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po2I | wclause1Io9po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po3I { label = "friends(o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po3I) { data = (0.5 0.5 ); } node wclause1Io9po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po3I_CC0_CC1 | friendsIo2po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po3I_CC0 | friendsIo9po2I wclause1Io9po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po3I { label = "wclause1(o9,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po3I | wclause1Io9po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po3I_CC0 | friendsIo9po9I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po3I { label = "wclause1(o9,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po3I | wclause1Io9po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po3I_CC0_CC1 | friendsIo9po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po3I_CC0 | friendsIo1po9I wclause1Io1po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po3I { label = "wclause1(o1,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po3I | wclause1Io1po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po3I_CC0_CC1 | friendsIo9po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po3I_CC0 | friendsIo2po9I wclause1Io2po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po3I { label = "wclause1(o2,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po3I | wclause1Io2po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po3I_CC0_CC1 | friendsIo9po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po3I_CC0 | friendsIo3po9I wclause1Io3po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po3I { label = "wclause1(o3,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po3I | wclause1Io3po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po3I_CC0_CC1 | friendsIo9po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po3I_CC0 | friendsIo4po9I wclause1Io4po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po3I { label = "wclause1(o4,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po3I | wclause1Io4po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po3I_CC0_CC1 | friendsIo9po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po3I_CC0 | friendsIo5po9I wclause1Io5po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po3I { label = "wclause1(o5,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po3I | wclause1Io5po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po3I_CC0_CC1 | friendsIo9po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po3I_CC0 | friendsIo6po9I wclause1Io6po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po3I { label = "wclause1(o6,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po3I | wclause1Io6po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po3I_CC0_CC1 | friendsIo9po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po3I_CC0 | friendsIo7po9I wclause1Io7po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po3I { label = "wclause1(o7,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po3I | wclause1Io7po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po3I_CC0_CC1 | friendsIo9po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po3I_CC0 | friendsIo8po9I wclause1Io8po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po3I { label = "wclause1(o8,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po3I | wclause1Io8po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po3I_CC0_CC1 | friendsIo1po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po3I_CC0 | friendsIo9po1I wclause1Io9po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po3I { label = "wclause1(o9,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po3I | wclause1Io9po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po1I_CC0_CC1 | friendsIo3po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po1I_CC0 | friendsIo9po3I wclause1Io9po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po1I { label = "wclause1(o9,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po1I | wclause1Io9po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po2I_CC0_CC1 | friendsIo3po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po2I_CC0 | friendsIo9po3I wclause1Io9po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po2I { label = "wclause1(o9,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po2I | wclause1Io9po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po3I_CC0_CC1 | friendsIo3po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po3I_CC0 | friendsIo9po3I wclause1Io9po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po3I { label = "wclause1(o9,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po3I | wclause1Io9po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po4I { label = "friends(o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po4I) { data = (0.5 0.5 ); } node wclause1Io9po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po4I_CC0_CC1 | friendsIo3po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po4I_CC0 | friendsIo9po3I wclause1Io9po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po4I { label = "wclause1(o9,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po4I | wclause1Io9po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po4I_CC0 | friendsIo9po9I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po4I { label = "wclause1(o9,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po4I | wclause1Io9po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po4I_CC0_CC1 | friendsIo9po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po4I_CC0 | friendsIo1po9I wclause1Io1po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po4I { label = "wclause1(o1,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po4I | wclause1Io1po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po4I_CC0_CC1 | friendsIo9po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po4I_CC0 | friendsIo2po9I wclause1Io2po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po4I { label = "wclause1(o2,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po4I | wclause1Io2po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po4I_CC0_CC1 | friendsIo9po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po4I_CC0 | friendsIo3po9I wclause1Io3po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po4I { label = "wclause1(o3,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po4I | wclause1Io3po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po4I_CC0_CC1 | friendsIo9po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po4I_CC0 | friendsIo4po9I wclause1Io4po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po4I { label = "wclause1(o4,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po4I | wclause1Io4po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po4I_CC0_CC1 | friendsIo9po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po4I_CC0 | friendsIo5po9I wclause1Io5po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po4I { label = "wclause1(o5,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po4I | wclause1Io5po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po4I_CC0_CC1 | friendsIo9po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po4I_CC0 | friendsIo6po9I wclause1Io6po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po4I { label = "wclause1(o6,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po4I | wclause1Io6po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po4I_CC0_CC1 | friendsIo9po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po4I_CC0 | friendsIo7po9I wclause1Io7po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po4I { label = "wclause1(o7,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po4I | wclause1Io7po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po4I_CC0_CC1 | friendsIo9po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po4I_CC0 | friendsIo8po9I wclause1Io8po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po4I { label = "wclause1(o8,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po4I | wclause1Io8po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po4I_CC0_CC1 | friendsIo1po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po4I_CC0 | friendsIo9po1I wclause1Io9po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po4I { label = "wclause1(o9,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po4I | wclause1Io9po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po4I_CC0_CC1 | friendsIo2po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po4I_CC0 | friendsIo9po2I wclause1Io9po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po4I { label = "wclause1(o9,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po4I | wclause1Io9po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po1I_CC0_CC1 | friendsIo4po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po1I_CC0 | friendsIo9po4I wclause1Io9po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po1I { label = "wclause1(o9,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po1I | wclause1Io9po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po2I_CC0_CC1 | friendsIo4po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po2I_CC0 | friendsIo9po4I wclause1Io9po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po2I { label = "wclause1(o9,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po2I | wclause1Io9po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po3I_CC0_CC1 | friendsIo4po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po3I_CC0 | friendsIo9po4I wclause1Io9po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po3I { label = "wclause1(o9,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po3I | wclause1Io9po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po4I_CC0_CC1 | friendsIo4po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po4I_CC0 | friendsIo9po4I wclause1Io9po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po4I { label = "wclause1(o9,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po4I | wclause1Io9po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po5I { label = "friends(o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po5I) { data = (0.5 0.5 ); } node wclause1Io9po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po5I_CC0_CC1 | friendsIo4po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po5I_CC0 | friendsIo9po4I wclause1Io9po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po5I { label = "wclause1(o9,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po5I | wclause1Io9po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po5I_CC0 | friendsIo9po9I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po5I { label = "wclause1(o9,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po5I | wclause1Io9po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po5I_CC0_CC1 | friendsIo9po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po5I_CC0 | friendsIo1po9I wclause1Io1po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po5I { label = "wclause1(o1,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po5I | wclause1Io1po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po5I_CC0_CC1 | friendsIo9po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po5I_CC0 | friendsIo2po9I wclause1Io2po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po5I { label = "wclause1(o2,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po5I | wclause1Io2po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po5I_CC0_CC1 | friendsIo9po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po5I_CC0 | friendsIo3po9I wclause1Io3po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po5I { label = "wclause1(o3,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po5I | wclause1Io3po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po5I_CC0_CC1 | friendsIo9po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po5I_CC0 | friendsIo4po9I wclause1Io4po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po5I { label = "wclause1(o4,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po5I | wclause1Io4po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po5I_CC0_CC1 | friendsIo9po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po5I_CC0 | friendsIo5po9I wclause1Io5po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po5I { label = "wclause1(o5,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po5I | wclause1Io5po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po5I_CC0_CC1 | friendsIo9po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po5I_CC0 | friendsIo6po9I wclause1Io6po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po5I { label = "wclause1(o6,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po5I | wclause1Io6po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po5I_CC0_CC1 | friendsIo9po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po5I_CC0 | friendsIo7po9I wclause1Io7po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po5I { label = "wclause1(o7,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po5I | wclause1Io7po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po5I_CC0_CC1 | friendsIo9po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po5I_CC0 | friendsIo8po9I wclause1Io8po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po5I { label = "wclause1(o8,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po5I | wclause1Io8po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po5I_CC0_CC1 | friendsIo1po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po5I_CC0 | friendsIo9po1I wclause1Io9po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po5I { label = "wclause1(o9,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po5I | wclause1Io9po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po5I_CC0_CC1 | friendsIo2po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po5I_CC0 | friendsIo9po2I wclause1Io9po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po5I { label = "wclause1(o9,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po5I | wclause1Io9po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po5I_CC0_CC1 | friendsIo3po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po5I_CC0 | friendsIo9po3I wclause1Io9po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po5I { label = "wclause1(o9,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po5I | wclause1Io9po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po1I_CC0_CC1 | friendsIo5po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po1I_CC0 | friendsIo9po5I wclause1Io9po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po1I { label = "wclause1(o9,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po1I | wclause1Io9po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po2I_CC0_CC1 | friendsIo5po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po2I_CC0 | friendsIo9po5I wclause1Io9po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po2I { label = "wclause1(o9,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po2I | wclause1Io9po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po3I_CC0_CC1 | friendsIo5po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po3I_CC0 | friendsIo9po5I wclause1Io9po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po3I { label = "wclause1(o9,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po3I | wclause1Io9po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po4I_CC0_CC1 | friendsIo5po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po4I_CC0 | friendsIo9po5I wclause1Io9po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po4I { label = "wclause1(o9,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po4I | wclause1Io9po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po5I_CC0_CC1 | friendsIo5po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po5I_CC0 | friendsIo9po5I wclause1Io9po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po5I { label = "wclause1(o9,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po5I | wclause1Io9po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po6I { label = "friends(o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po6I) { data = (0.5 0.5 ); } node wclause1Io9po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po6I_CC0_CC1 | friendsIo5po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po6I_CC0 | friendsIo9po5I wclause1Io9po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po6I { label = "wclause1(o9,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po6I | wclause1Io9po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po6I_CC0 | friendsIo9po9I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po6I { label = "wclause1(o9,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po6I | wclause1Io9po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po6I_CC0_CC1 | friendsIo9po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po6I_CC0 | friendsIo1po9I wclause1Io1po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po6I { label = "wclause1(o1,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po6I | wclause1Io1po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po6I_CC0_CC1 | friendsIo9po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po6I_CC0 | friendsIo2po9I wclause1Io2po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po6I { label = "wclause1(o2,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po6I | wclause1Io2po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po6I_CC0_CC1 | friendsIo9po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po6I_CC0 | friendsIo3po9I wclause1Io3po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po6I { label = "wclause1(o3,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po6I | wclause1Io3po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po6I_CC0_CC1 | friendsIo9po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po6I_CC0 | friendsIo4po9I wclause1Io4po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po6I { label = "wclause1(o4,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po6I | wclause1Io4po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po6I_CC0_CC1 | friendsIo9po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po6I_CC0 | friendsIo5po9I wclause1Io5po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po6I { label = "wclause1(o5,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po6I | wclause1Io5po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po6I_CC0_CC1 | friendsIo9po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po6I_CC0 | friendsIo6po9I wclause1Io6po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po6I { label = "wclause1(o6,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po6I | wclause1Io6po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po6I_CC0_CC1 | friendsIo9po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po6I_CC0 | friendsIo7po9I wclause1Io7po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po6I { label = "wclause1(o7,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po6I | wclause1Io7po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po6I_CC0_CC1 | friendsIo9po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po6I_CC0 | friendsIo8po9I wclause1Io8po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po6I { label = "wclause1(o8,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po6I | wclause1Io8po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po6I_CC0_CC1 | friendsIo1po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po6I_CC0 | friendsIo9po1I wclause1Io9po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po6I { label = "wclause1(o9,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po6I | wclause1Io9po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po6I_CC0_CC1 | friendsIo2po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po6I_CC0 | friendsIo9po2I wclause1Io9po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po6I { label = "wclause1(o9,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po6I | wclause1Io9po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po6I_CC0_CC1 | friendsIo3po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po6I_CC0 | friendsIo9po3I wclause1Io9po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po6I { label = "wclause1(o9,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po6I | wclause1Io9po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po6I_CC0_CC1 | friendsIo4po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po6I_CC0 | friendsIo9po4I wclause1Io9po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po6I { label = "wclause1(o9,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po6I | wclause1Io9po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po1I_CC0_CC1 | friendsIo6po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po1I_CC0 | friendsIo9po6I wclause1Io9po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po1I { label = "wclause1(o9,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po1I | wclause1Io9po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po2I_CC0_CC1 | friendsIo6po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po2I_CC0 | friendsIo9po6I wclause1Io9po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po2I { label = "wclause1(o9,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po2I | wclause1Io9po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po3I_CC0_CC1 | friendsIo6po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po3I_CC0 | friendsIo9po6I wclause1Io9po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po3I { label = "wclause1(o9,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po3I | wclause1Io9po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po4I_CC0_CC1 | friendsIo6po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po4I_CC0 | friendsIo9po6I wclause1Io9po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po4I { label = "wclause1(o9,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po4I | wclause1Io9po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po5I_CC0_CC1 | friendsIo6po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po5I_CC0 | friendsIo9po6I wclause1Io9po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po5I { label = "wclause1(o9,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po5I | wclause1Io9po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po6I_CC0_CC1 | friendsIo6po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po6I_CC0 | friendsIo9po6I wclause1Io9po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po6I { label = "wclause1(o9,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po6I | wclause1Io9po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po7I { label = "friends(o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po7I) { data = (0.5 0.5 ); } node wclause1Io9po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po7I_CC0_CC1 | friendsIo6po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po7I_CC0 | friendsIo9po6I wclause1Io9po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po7I { label = "wclause1(o9,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po7I | wclause1Io9po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po7I_CC0 | friendsIo9po9I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po7I { label = "wclause1(o9,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po7I | wclause1Io9po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po7I_CC0_CC1 | friendsIo9po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po7I_CC0 | friendsIo1po9I wclause1Io1po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po7I { label = "wclause1(o1,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po7I | wclause1Io1po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po7I_CC0_CC1 | friendsIo9po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po7I_CC0 | friendsIo2po9I wclause1Io2po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po7I { label = "wclause1(o2,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po7I | wclause1Io2po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po7I_CC0_CC1 | friendsIo9po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po7I_CC0 | friendsIo3po9I wclause1Io3po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po7I { label = "wclause1(o3,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po7I | wclause1Io3po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po7I_CC0_CC1 | friendsIo9po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po7I_CC0 | friendsIo4po9I wclause1Io4po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po7I { label = "wclause1(o4,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po7I | wclause1Io4po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po7I_CC0_CC1 | friendsIo9po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po7I_CC0 | friendsIo5po9I wclause1Io5po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po7I { label = "wclause1(o5,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po7I | wclause1Io5po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po7I_CC0_CC1 | friendsIo9po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po7I_CC0 | friendsIo6po9I wclause1Io6po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po7I { label = "wclause1(o6,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po7I | wclause1Io6po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po7I_CC0_CC1 | friendsIo9po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po7I_CC0 | friendsIo7po9I wclause1Io7po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po7I { label = "wclause1(o7,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po7I | wclause1Io7po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po7I_CC0_CC1 | friendsIo9po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po7I_CC0 | friendsIo8po9I wclause1Io8po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po7I { label = "wclause1(o8,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po7I | wclause1Io8po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po7I_CC0_CC1 | friendsIo1po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po7I_CC0 | friendsIo9po1I wclause1Io9po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po7I { label = "wclause1(o9,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po7I | wclause1Io9po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po7I_CC0_CC1 | friendsIo2po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po7I_CC0 | friendsIo9po2I wclause1Io9po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po7I { label = "wclause1(o9,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po7I | wclause1Io9po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po7I_CC0_CC1 | friendsIo3po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po7I_CC0 | friendsIo9po3I wclause1Io9po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po7I { label = "wclause1(o9,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po7I | wclause1Io9po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po7I_CC0_CC1 | friendsIo4po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po7I_CC0 | friendsIo9po4I wclause1Io9po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po7I { label = "wclause1(o9,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po7I | wclause1Io9po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po7I_CC0_CC1 | friendsIo5po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po7I_CC0 | friendsIo9po5I wclause1Io9po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po7I { label = "wclause1(o9,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po7I | wclause1Io9po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po1I_CC0_CC1 | friendsIo7po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po1I_CC0 | friendsIo9po7I wclause1Io9po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po1I { label = "wclause1(o9,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po1I | wclause1Io9po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po2I_CC0_CC1 | friendsIo7po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po2I_CC0 | friendsIo9po7I wclause1Io9po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po2I { label = "wclause1(o9,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po2I | wclause1Io9po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po3I_CC0_CC1 | friendsIo7po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po3I_CC0 | friendsIo9po7I wclause1Io9po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po3I { label = "wclause1(o9,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po3I | wclause1Io9po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po4I_CC0_CC1 | friendsIo7po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po4I_CC0 | friendsIo9po7I wclause1Io9po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po4I { label = "wclause1(o9,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po4I | wclause1Io9po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po5I_CC0_CC1 | friendsIo7po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po5I_CC0 | friendsIo9po7I wclause1Io9po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po5I { label = "wclause1(o9,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po5I | wclause1Io9po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po6I_CC0_CC1 | friendsIo7po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po6I_CC0 | friendsIo9po7I wclause1Io9po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po6I { label = "wclause1(o9,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po6I | wclause1Io9po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po7I_CC0_CC1 | friendsIo7po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po7I_CC0 | friendsIo9po7I wclause1Io9po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po7I { label = "wclause1(o9,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po7I | wclause1Io9po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo9po8I { label = "friends(o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po8I) { data = (0.5 0.5 ); } node wclause1Io9po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po8I_CC0_CC1 | friendsIo7po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po8I_CC0 | friendsIo9po7I wclause1Io9po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po8I { label = "wclause1(o9,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po8I | wclause1Io9po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po8I_CC0 | friendsIo9po9I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po8I { label = "wclause1(o9,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po8I | wclause1Io9po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po8I_CC0_CC1 | friendsIo9po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po8I_CC0 | friendsIo1po9I wclause1Io1po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po8I { label = "wclause1(o1,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po8I | wclause1Io1po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po8I_CC0_CC1 | friendsIo9po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po8I_CC0 | friendsIo2po9I wclause1Io2po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po8I { label = "wclause1(o2,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po8I | wclause1Io2po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po8I_CC0_CC1 | friendsIo9po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po8I_CC0 | friendsIo3po9I wclause1Io3po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po8I { label = "wclause1(o3,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po8I | wclause1Io3po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po8I_CC0_CC1 | friendsIo9po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po8I_CC0 | friendsIo4po9I wclause1Io4po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po8I { label = "wclause1(o4,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po8I | wclause1Io4po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po8I_CC0_CC1 | friendsIo9po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po8I_CC0 | friendsIo5po9I wclause1Io5po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po8I { label = "wclause1(o5,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po8I | wclause1Io5po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po8I_CC0_CC1 | friendsIo9po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po8I_CC0 | friendsIo6po9I wclause1Io6po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po8I { label = "wclause1(o6,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po8I | wclause1Io6po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po8I_CC0_CC1 | friendsIo9po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po8I_CC0 | friendsIo7po9I wclause1Io7po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po8I { label = "wclause1(o7,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po8I | wclause1Io7po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po8I_CC0_CC1 | friendsIo9po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po8I_CC0 | friendsIo8po9I wclause1Io8po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po8I { label = "wclause1(o8,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po8I | wclause1Io8po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po8I_CC0_CC1 | friendsIo1po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po8I_CC0 | friendsIo9po1I wclause1Io9po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po8I { label = "wclause1(o9,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po8I | wclause1Io9po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po8I_CC0_CC1 | friendsIo2po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po8I_CC0 | friendsIo9po2I wclause1Io9po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po8I { label = "wclause1(o9,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po8I | wclause1Io9po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po8I_CC0_CC1 | friendsIo3po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po8I_CC0 | friendsIo9po3I wclause1Io9po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po8I { label = "wclause1(o9,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po8I | wclause1Io9po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po8I_CC0_CC1 | friendsIo4po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po8I_CC0 | friendsIo9po4I wclause1Io9po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po8I { label = "wclause1(o9,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po8I | wclause1Io9po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po8I_CC0_CC1 | friendsIo5po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po8I_CC0 | friendsIo9po5I wclause1Io9po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po8I { label = "wclause1(o9,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po8I | wclause1Io9po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po8I_CC0_CC1 | friendsIo6po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po8I_CC0 | friendsIo9po6I wclause1Io9po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po8I { label = "wclause1(o9,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po8I | wclause1Io9po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po1I_CC0_CC1 | friendsIo8po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po1I_CC0 | friendsIo9po8I wclause1Io9po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po1I { label = "wclause1(o9,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po1I | wclause1Io9po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po2I_CC0_CC1 | friendsIo8po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po2I_CC0 | friendsIo9po8I wclause1Io9po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po2I { label = "wclause1(o9,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po2I | wclause1Io9po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po3I_CC0_CC1 | friendsIo8po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po3I_CC0 | friendsIo9po8I wclause1Io9po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po3I { label = "wclause1(o9,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po3I | wclause1Io9po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po4I_CC0_CC1 | friendsIo8po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po4I_CC0 | friendsIo9po8I wclause1Io9po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po4I { label = "wclause1(o9,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po4I | wclause1Io9po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po5I_CC0_CC1 | friendsIo8po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po5I_CC0 | friendsIo9po8I wclause1Io9po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po5I { label = "wclause1(o9,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po5I | wclause1Io9po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po6I_CC0_CC1 | friendsIo8po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po6I_CC0 | friendsIo9po8I wclause1Io9po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po6I { label = "wclause1(o9,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po6I | wclause1Io9po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po7I_CC0_CC1 | friendsIo8po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po7I_CC0 | friendsIo9po8I wclause1Io9po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po7I { label = "wclause1(o9,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po7I | wclause1Io9po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po8I_CC0_CC1 | friendsIo8po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po8I_CC0 | friendsIo9po8I wclause1Io9po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po8I { label = "wclause1(o9,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po8I | wclause1Io9po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po9I_CC0_CC1 | friendsIo8po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po9I_CC0 | friendsIo9po8I wclause1Io9po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po9I { label = "wclause1(o9,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po9I | wclause1Io9po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo8po10I { label = "friends(o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo8po10I) { data = (0.5 0.5 ); } node friendsIo9po10I { label = "friends(o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo9po10I) { data = (0.5 0.5 ); } node wclause1Io9po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po10I_CC0_CC1 | friendsIo8po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po10I_CC0 | friendsIo9po8I wclause1Io9po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po8po10I { label = "wclause1(o9,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po8po10I | wclause1Io9po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po10I_CC0 | friendsIo9po9I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io9po9po10I { label = "wclause1(o9,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po9po10I | wclause1Io9po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po10I_CC0_CC1 | friendsIo9po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po10I_CC0 | friendsIo1po9I wclause1Io1po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po10I { label = "wclause1(o1,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po10I | wclause1Io1po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo2po10I { label = "friends(o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo2po10I) { data = (0.5 0.5 ); } node wclause1Io2po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po10I_CC0_CC1 | friendsIo9po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po10I_CC0 | friendsIo2po9I wclause1Io2po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po10I { label = "wclause1(o2,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po10I | wclause1Io2po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po10I_CC0 | friendsIo2po2I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po10I { label = "wclause1(o2,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po10I | wclause1Io2po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po10I_CC0_CC1 | friendsIo2po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po10I_CC0 | friendsIo1po2I wclause1Io1po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po10I { label = "wclause1(o1,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po10I | wclause1Io1po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po10I_CC0_CC1 | friendsIo1po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po10I_CC0 | friendsIo2po1I wclause1Io2po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po10I { label = "wclause1(o2,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po10I | wclause1Io2po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo3po10I { label = "friends(o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo3po10I) { data = (0.5 0.5 ); } node wclause1Io2po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po10I_CC0_CC1 | friendsIo3po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po10I_CC0 | friendsIo2po3I wclause1Io2po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po3po10I { label = "wclause1(o2,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po3po10I | wclause1Io2po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po10I_CC0 | friendsIo3po3I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po10I { label = "wclause1(o3,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po10I | wclause1Io3po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po10I_CC0_CC1 | friendsIo3po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po10I_CC0 | friendsIo1po3I wclause1Io1po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po10I { label = "wclause1(o1,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po10I | wclause1Io1po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po10I_CC0_CC1 | friendsIo1po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po10I_CC0 | friendsIo3po1I wclause1Io3po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po10I { label = "wclause1(o3,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po10I | wclause1Io3po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po10I_CC0_CC1 | friendsIo2po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po10I_CC0 | friendsIo3po2I wclause1Io3po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po10I { label = "wclause1(o3,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po10I | wclause1Io3po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo4po10I { label = "friends(o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo4po10I) { data = (0.5 0.5 ); } node wclause1Io3po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po10I_CC0_CC1 | friendsIo4po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po10I_CC0 | friendsIo3po4I wclause1Io3po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po10I { label = "wclause1(o3,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po10I | wclause1Io3po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po10I_CC0 | friendsIo4po4I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po10I { label = "wclause1(o4,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po10I | wclause1Io4po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po10I_CC0_CC1 | friendsIo4po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po10I_CC0 | friendsIo1po4I wclause1Io1po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po10I { label = "wclause1(o1,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po10I | wclause1Io1po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po10I_CC0_CC1 | friendsIo4po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po10I_CC0 | friendsIo2po4I wclause1Io2po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po10I { label = "wclause1(o2,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po10I | wclause1Io2po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po10I_CC0_CC1 | friendsIo1po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po10I_CC0 | friendsIo4po1I wclause1Io4po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po10I { label = "wclause1(o4,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po10I | wclause1Io4po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po10I_CC0_CC1 | friendsIo2po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po10I_CC0 | friendsIo4po2I wclause1Io4po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po10I { label = "wclause1(o4,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po10I | wclause1Io4po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po10I_CC0_CC1 | friendsIo3po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po10I_CC0 | friendsIo4po3I wclause1Io4po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po10I { label = "wclause1(o4,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po10I | wclause1Io4po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo5po10I { label = "friends(o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo5po10I) { data = (0.5 0.5 ); } node wclause1Io4po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po10I_CC0_CC1 | friendsIo5po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po10I_CC0 | friendsIo4po5I wclause1Io4po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po10I { label = "wclause1(o4,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po10I | wclause1Io4po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po10I_CC0 | friendsIo5po5I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po10I { label = "wclause1(o5,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po10I | wclause1Io5po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po10I_CC0_CC1 | friendsIo5po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po10I_CC0 | friendsIo1po5I wclause1Io1po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po10I { label = "wclause1(o1,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po10I | wclause1Io1po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po10I_CC0_CC1 | friendsIo5po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po10I_CC0 | friendsIo2po5I wclause1Io2po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po10I { label = "wclause1(o2,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po10I | wclause1Io2po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po10I_CC0_CC1 | friendsIo5po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po10I_CC0 | friendsIo3po5I wclause1Io3po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po10I { label = "wclause1(o3,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po10I | wclause1Io3po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po10I_CC0_CC1 | friendsIo1po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po10I_CC0 | friendsIo5po1I wclause1Io5po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po10I { label = "wclause1(o5,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po10I | wclause1Io5po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po10I_CC0_CC1 | friendsIo2po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po10I_CC0 | friendsIo5po2I wclause1Io5po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po10I { label = "wclause1(o5,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po10I | wclause1Io5po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po10I_CC0_CC1 | friendsIo3po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po10I_CC0 | friendsIo5po3I wclause1Io5po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po10I { label = "wclause1(o5,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po10I | wclause1Io5po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po10I_CC0_CC1 | friendsIo4po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po10I_CC0 | friendsIo5po4I wclause1Io5po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po10I { label = "wclause1(o5,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po10I | wclause1Io5po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo6po10I { label = "friends(o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo6po10I) { data = (0.5 0.5 ); } node wclause1Io5po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po10I_CC0_CC1 | friendsIo6po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po10I_CC0 | friendsIo5po6I wclause1Io5po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po10I { label = "wclause1(o5,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po10I | wclause1Io5po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po10I_CC0 | friendsIo6po6I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po10I { label = "wclause1(o6,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po10I | wclause1Io6po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po10I_CC0_CC1 | friendsIo6po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po10I_CC0 | friendsIo1po6I wclause1Io1po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po10I { label = "wclause1(o1,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po10I | wclause1Io1po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po10I_CC0_CC1 | friendsIo6po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po10I_CC0 | friendsIo2po6I wclause1Io2po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po10I { label = "wclause1(o2,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po10I | wclause1Io2po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po10I_CC0_CC1 | friendsIo6po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po10I_CC0 | friendsIo3po6I wclause1Io3po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po10I { label = "wclause1(o3,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po10I | wclause1Io3po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po10I_CC0_CC1 | friendsIo6po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po10I_CC0 | friendsIo4po6I wclause1Io4po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po10I { label = "wclause1(o4,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po10I | wclause1Io4po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po10I_CC0_CC1 | friendsIo1po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po10I_CC0 | friendsIo6po1I wclause1Io6po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po10I { label = "wclause1(o6,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po10I | wclause1Io6po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po10I_CC0_CC1 | friendsIo2po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po10I_CC0 | friendsIo6po2I wclause1Io6po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po10I { label = "wclause1(o6,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po10I | wclause1Io6po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po10I_CC0_CC1 | friendsIo3po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po10I_CC0 | friendsIo6po3I wclause1Io6po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po10I { label = "wclause1(o6,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po10I | wclause1Io6po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po10I_CC0_CC1 | friendsIo4po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po10I_CC0 | friendsIo6po4I wclause1Io6po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po10I { label = "wclause1(o6,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po10I | wclause1Io6po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po10I_CC0_CC1 | friendsIo5po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po10I_CC0 | friendsIo6po5I wclause1Io6po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po10I { label = "wclause1(o6,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po10I | wclause1Io6po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo7po10I { label = "friends(o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo7po10I) { data = (0.5 0.5 ); } node wclause1Io6po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po10I_CC0_CC1 | friendsIo7po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po10I_CC0 | friendsIo6po7I wclause1Io6po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po10I { label = "wclause1(o6,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po10I | wclause1Io6po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po10I_CC0 | friendsIo7po7I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po10I { label = "wclause1(o7,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po10I | wclause1Io7po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po10I_CC0_CC1 | friendsIo7po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po10I_CC0 | friendsIo1po7I wclause1Io1po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po10I { label = "wclause1(o1,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po10I | wclause1Io1po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po10I_CC0_CC1 | friendsIo7po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po10I_CC0 | friendsIo2po7I wclause1Io2po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po10I { label = "wclause1(o2,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po10I | wclause1Io2po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po10I_CC0_CC1 | friendsIo7po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po10I_CC0 | friendsIo3po7I wclause1Io3po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po10I { label = "wclause1(o3,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po10I | wclause1Io3po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po10I_CC0_CC1 | friendsIo7po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po10I_CC0 | friendsIo4po7I wclause1Io4po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po10I { label = "wclause1(o4,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po10I | wclause1Io4po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po10I_CC0_CC1 | friendsIo7po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po10I_CC0 | friendsIo5po7I wclause1Io5po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po10I { label = "wclause1(o5,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po10I | wclause1Io5po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po10I_CC0_CC1 | friendsIo1po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po10I_CC0 | friendsIo7po1I wclause1Io7po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po10I { label = "wclause1(o7,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po10I | wclause1Io7po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po10I_CC0_CC1 | friendsIo2po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po10I_CC0 | friendsIo7po2I wclause1Io7po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po10I { label = "wclause1(o7,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po10I | wclause1Io7po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po10I_CC0_CC1 | friendsIo3po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po10I_CC0 | friendsIo7po3I wclause1Io7po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po10I { label = "wclause1(o7,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po10I | wclause1Io7po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po10I_CC0_CC1 | friendsIo4po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po10I_CC0 | friendsIo7po4I wclause1Io7po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po10I { label = "wclause1(o7,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po10I | wclause1Io7po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po10I_CC0_CC1 | friendsIo5po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po10I_CC0 | friendsIo7po5I wclause1Io7po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po10I { label = "wclause1(o7,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po10I | wclause1Io7po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po10I_CC0_CC1 | friendsIo6po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po10I_CC0 | friendsIo7po6I wclause1Io7po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po10I { label = "wclause1(o7,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po10I | wclause1Io7po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po10I_CC0_CC1 | friendsIo8po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po10I_CC0 | friendsIo7po8I wclause1Io7po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po10I { label = "wclause1(o7,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po10I | wclause1Io7po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po10I_CC0_CC1 | friendsIo9po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po10I_CC0 | friendsIo7po9I wclause1Io7po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po10I { label = "wclause1(o7,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po10I | wclause1Io7po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po1I { label = "friends(o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po1I) { data = (0.5 0.5 ); } node wclause1Io7po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po1I_CC0_CC1 | friendsIo10po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po1I_CC0 | friendsIo7po10I wclause1Io7po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po1I { label = "wclause1(o7,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po1I | wclause1Io7po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po10I { label = "friends(o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po10I) { data = (0.5 0.5 ); } node wclause1Io10po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po1I_CC0 | friendsIo10po10I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po1I { label = "wclause1(o10,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po1I | wclause1Io10po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po10I { label = "wclause1(o10,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po10I | friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 ); } node wclause1Io1po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po10I_CC0_CC1 | friendsIo10po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po10I_CC0 | friendsIo1po10I wclause1Io1po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po10I { label = "wclause1(o1,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po10I | wclause1Io1po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po10I_CC0_CC1 | friendsIo10po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po10I_CC0 | friendsIo2po10I wclause1Io2po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po10I { label = "wclause1(o2,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po10I | wclause1Io2po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po10I_CC0_CC1 | friendsIo10po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po10I_CC0 | friendsIo3po10I wclause1Io3po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po10I { label = "wclause1(o3,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po10I | wclause1Io3po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po10I_CC0_CC1 | friendsIo10po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po10I_CC0 | friendsIo4po10I wclause1Io4po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po10I { label = "wclause1(o4,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po10I | wclause1Io4po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po10I_CC0_CC1 | friendsIo10po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po10I_CC0 | friendsIo5po10I wclause1Io5po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po10I { label = "wclause1(o5,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po10I | wclause1Io5po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po10I_CC0_CC1 | friendsIo10po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po10I_CC0 | friendsIo6po10I wclause1Io6po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po10I { label = "wclause1(o6,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po10I | wclause1Io6po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po10I_CC0_CC1 | friendsIo10po10I friendsIo7po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po10I_CC0 | friendsIo7po10I wclause1Io7po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po10I { label = "wclause1(o7,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po10I | wclause1Io7po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po10I_CC0_CC1 | friendsIo10po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po10I_CC0 | friendsIo8po10I wclause1Io8po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po10I { label = "wclause1(o8,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po10I | wclause1Io8po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po10I_CC0_CC1 | friendsIo10po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po10I_CC0 | friendsIo9po10I wclause1Io9po10po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po10I { label = "wclause1(o9,o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po10I | wclause1Io9po10po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po10I_CC0_CC1 | friendsIo1po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po10I_CC0 | friendsIo10po1I wclause1Io10po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po10I { label = "wclause1(o10,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po10I | wclause1Io10po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po10I_CC0_CC1 | friendsIo2po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node friendsIo10po2I { label = "friends(o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po2I) { data = (0.5 0.5 ); } node wclause1Io10po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po10I_CC0 | friendsIo10po2I wclause1Io10po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po10I { label = "wclause1(o10,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po10I | wclause1Io10po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po2I_CC0 | friendsIo10po10I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po2I { label = "wclause1(o10,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po2I | wclause1Io10po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po2I_CC0_CC1 | friendsIo10po2I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po2I_CC0 | friendsIo1po10I wclause1Io1po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po2I { label = "wclause1(o1,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po2I | wclause1Io1po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po2I_CC0_CC1 | friendsIo10po2I friendsIo2po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po2I_CC0 | friendsIo2po10I wclause1Io2po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po2I { label = "wclause1(o2,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po2I | wclause1Io2po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po2I_CC0_CC1 | friendsIo10po2I friendsIo3po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po2I_CC0 | friendsIo3po10I wclause1Io3po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po2I { label = "wclause1(o3,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po2I | wclause1Io3po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po2I_CC0_CC1 | friendsIo10po2I friendsIo4po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po2I_CC0 | friendsIo4po10I wclause1Io4po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po2I { label = "wclause1(o4,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po2I | wclause1Io4po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po2I_CC0_CC1 | friendsIo10po2I friendsIo5po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po2I_CC0 | friendsIo5po10I wclause1Io5po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po2I { label = "wclause1(o5,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po2I | wclause1Io5po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po2I_CC0_CC1 | friendsIo10po2I friendsIo6po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po2I_CC0 | friendsIo6po10I wclause1Io6po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po2I { label = "wclause1(o6,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po2I | wclause1Io6po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po2I_CC0_CC1 | friendsIo10po2I friendsIo7po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po2I_CC0 | friendsIo7po10I wclause1Io7po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po2I { label = "wclause1(o7,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po2I | wclause1Io7po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po2I_CC0_CC1 | friendsIo10po2I friendsIo8po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po2I_CC0 | friendsIo8po10I wclause1Io8po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po2I { label = "wclause1(o8,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po2I | wclause1Io8po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po2I_CC0_CC1 | friendsIo10po2I friendsIo9po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po2I_CC0 | friendsIo9po10I wclause1Io9po10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po2I { label = "wclause1(o9,o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po2I | wclause1Io9po10po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po2I_CC0_CC1 | friendsIo1po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po2I_CC0 | friendsIo10po1I wclause1Io10po1po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po2I { label = "wclause1(o10,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po2I | wclause1Io10po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po1I_CC0_CC1 | friendsIo2po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po1I_CC0 | friendsIo10po2I wclause1Io10po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po1I { label = "wclause1(o10,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po1I | wclause1Io10po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po2I_CC0_CC1 | friendsIo2po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po2I_CC0 | friendsIo10po2I wclause1Io10po2po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po2I { label = "wclause1(o10,o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po2I | wclause1Io10po2po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po3I { label = "friends(o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po3I) { data = (0.5 0.5 ); } node wclause1Io10po2po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po3I_CC0_CC1 | friendsIo2po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po3I_CC0 | friendsIo10po2I wclause1Io10po2po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po3I { label = "wclause1(o10,o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po3I | wclause1Io10po2po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po3I_CC0 | friendsIo10po10I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po3I { label = "wclause1(o10,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po3I | wclause1Io10po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po3I_CC0_CC1 | friendsIo10po3I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po3I_CC0 | friendsIo1po10I wclause1Io1po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po3I { label = "wclause1(o1,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po3I | wclause1Io1po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po3I_CC0_CC1 | friendsIo10po3I friendsIo2po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po3I_CC0 | friendsIo2po10I wclause1Io2po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po3I { label = "wclause1(o2,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po3I | wclause1Io2po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po3I_CC0_CC1 | friendsIo10po3I friendsIo3po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po3I_CC0 | friendsIo3po10I wclause1Io3po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po3I { label = "wclause1(o3,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po3I | wclause1Io3po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po3I_CC0_CC1 | friendsIo10po3I friendsIo4po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po3I_CC0 | friendsIo4po10I wclause1Io4po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po3I { label = "wclause1(o4,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po3I | wclause1Io4po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po3I_CC0_CC1 | friendsIo10po3I friendsIo5po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po3I_CC0 | friendsIo5po10I wclause1Io5po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po3I { label = "wclause1(o5,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po3I | wclause1Io5po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po3I_CC0_CC1 | friendsIo10po3I friendsIo6po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po3I_CC0 | friendsIo6po10I wclause1Io6po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po3I { label = "wclause1(o6,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po3I | wclause1Io6po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po3I_CC0_CC1 | friendsIo10po3I friendsIo7po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po3I_CC0 | friendsIo7po10I wclause1Io7po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po3I { label = "wclause1(o7,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po3I | wclause1Io7po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po3I_CC0_CC1 | friendsIo10po3I friendsIo8po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po3I_CC0 | friendsIo8po10I wclause1Io8po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po3I { label = "wclause1(o8,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po3I | wclause1Io8po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po3I_CC0_CC1 | friendsIo10po3I friendsIo9po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po3I_CC0 | friendsIo9po10I wclause1Io9po10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po3I { label = "wclause1(o9,o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po3I | wclause1Io9po10po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po3I_CC0_CC1 | friendsIo1po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po3I_CC0 | friendsIo10po1I wclause1Io10po1po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po3I { label = "wclause1(o10,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po3I | wclause1Io10po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po1I_CC0_CC1 | friendsIo3po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po1I_CC0 | friendsIo10po3I wclause1Io10po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po1I { label = "wclause1(o10,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po1I | wclause1Io10po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po2I_CC0_CC1 | friendsIo3po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po2I_CC0 | friendsIo10po3I wclause1Io10po3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po2I { label = "wclause1(o10,o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po2I | wclause1Io10po3po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po3I_CC0_CC1 | friendsIo3po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po3I_CC0 | friendsIo10po3I wclause1Io10po3po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po3I { label = "wclause1(o10,o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po3I | wclause1Io10po3po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po4I { label = "friends(o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po4I) { data = (0.5 0.5 ); } node wclause1Io10po3po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po4I_CC0_CC1 | friendsIo3po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po4I_CC0 | friendsIo10po3I wclause1Io10po3po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po4I { label = "wclause1(o10,o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po4I | wclause1Io10po3po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po4I_CC0 | friendsIo10po10I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po4I { label = "wclause1(o10,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po4I | wclause1Io10po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po4I_CC0_CC1 | friendsIo10po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po4I_CC0 | friendsIo1po10I wclause1Io1po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po4I { label = "wclause1(o1,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po4I | wclause1Io1po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po4I_CC0_CC1 | friendsIo10po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po4I_CC0 | friendsIo2po10I wclause1Io2po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po4I { label = "wclause1(o2,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po4I | wclause1Io2po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po4I_CC0_CC1 | friendsIo10po4I friendsIo3po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po4I_CC0 | friendsIo3po10I wclause1Io3po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po4I { label = "wclause1(o3,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po4I | wclause1Io3po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po4I_CC0_CC1 | friendsIo10po4I friendsIo4po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po4I_CC0 | friendsIo4po10I wclause1Io4po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po4I { label = "wclause1(o4,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po4I | wclause1Io4po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po4I_CC0_CC1 | friendsIo10po4I friendsIo5po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po4I_CC0 | friendsIo5po10I wclause1Io5po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po4I { label = "wclause1(o5,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po4I | wclause1Io5po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po4I_CC0_CC1 | friendsIo10po4I friendsIo6po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po4I_CC0 | friendsIo6po10I wclause1Io6po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po4I { label = "wclause1(o6,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po4I | wclause1Io6po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po4I_CC0_CC1 | friendsIo10po4I friendsIo7po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po4I_CC0 | friendsIo7po10I wclause1Io7po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po4I { label = "wclause1(o7,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po4I | wclause1Io7po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po4I_CC0_CC1 | friendsIo10po4I friendsIo8po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po4I_CC0 | friendsIo8po10I wclause1Io8po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po4I { label = "wclause1(o8,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po4I | wclause1Io8po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po4I_CC0_CC1 | friendsIo10po4I friendsIo9po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po4I_CC0 | friendsIo9po10I wclause1Io9po10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po4I { label = "wclause1(o9,o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po4I | wclause1Io9po10po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po4I_CC0_CC1 | friendsIo1po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po4I_CC0 | friendsIo10po1I wclause1Io10po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po4I { label = "wclause1(o10,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po4I | wclause1Io10po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po4I_CC0_CC1 | friendsIo2po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po4I_CC0 | friendsIo10po2I wclause1Io10po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po4I { label = "wclause1(o10,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po4I | wclause1Io10po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po1I_CC0_CC1 | friendsIo4po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po1I_CC0 | friendsIo10po4I wclause1Io10po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po1I { label = "wclause1(o10,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po1I | wclause1Io10po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po2I_CC0_CC1 | friendsIo4po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po2I_CC0 | friendsIo10po4I wclause1Io10po4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po2I { label = "wclause1(o10,o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po2I | wclause1Io10po4po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po3I_CC0_CC1 | friendsIo4po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po3I_CC0 | friendsIo10po4I wclause1Io10po4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po3I { label = "wclause1(o10,o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po3I | wclause1Io10po4po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po4I_CC0_CC1 | friendsIo4po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po4I_CC0 | friendsIo10po4I wclause1Io10po4po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po4I { label = "wclause1(o10,o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po4I | wclause1Io10po4po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po5I { label = "friends(o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po5I) { data = (0.5 0.5 ); } node wclause1Io10po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po5I_CC0_CC1 | friendsIo4po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po5I_CC0 | friendsIo10po4I wclause1Io10po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po5I { label = "wclause1(o10,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po5I | wclause1Io10po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po5I_CC0 | friendsIo10po10I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po5I { label = "wclause1(o10,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po5I | wclause1Io10po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po5I_CC0_CC1 | friendsIo10po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po5I_CC0 | friendsIo1po10I wclause1Io1po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po5I { label = "wclause1(o1,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po5I | wclause1Io1po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po5I_CC0_CC1 | friendsIo10po5I friendsIo2po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po5I_CC0 | friendsIo2po10I wclause1Io2po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po5I { label = "wclause1(o2,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po5I | wclause1Io2po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po5I_CC0_CC1 | friendsIo10po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po5I_CC0 | friendsIo3po10I wclause1Io3po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po5I { label = "wclause1(o3,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po5I | wclause1Io3po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po5I_CC0_CC1 | friendsIo10po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po5I_CC0 | friendsIo4po10I wclause1Io4po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po5I { label = "wclause1(o4,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po5I | wclause1Io4po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po5I_CC0_CC1 | friendsIo10po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po5I_CC0 | friendsIo5po10I wclause1Io5po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po5I { label = "wclause1(o5,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po5I | wclause1Io5po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po5I_CC0_CC1 | friendsIo10po5I friendsIo6po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po5I_CC0 | friendsIo6po10I wclause1Io6po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po5I { label = "wclause1(o6,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po5I | wclause1Io6po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po5I_CC0_CC1 | friendsIo10po5I friendsIo7po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po5I_CC0 | friendsIo7po10I wclause1Io7po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po5I { label = "wclause1(o7,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po5I | wclause1Io7po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po5I_CC0_CC1 | friendsIo10po5I friendsIo8po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po5I_CC0 | friendsIo8po10I wclause1Io8po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po5I { label = "wclause1(o8,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po5I | wclause1Io8po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po5I_CC0_CC1 | friendsIo10po5I friendsIo9po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po5I_CC0 | friendsIo9po10I wclause1Io9po10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po5I { label = "wclause1(o9,o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po5I | wclause1Io9po10po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po5I_CC0_CC1 | friendsIo1po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po5I_CC0 | friendsIo10po1I wclause1Io10po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po5I { label = "wclause1(o10,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po5I | wclause1Io10po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po5I_CC0_CC1 | friendsIo2po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po5I_CC0 | friendsIo10po2I wclause1Io10po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po5I { label = "wclause1(o10,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po5I | wclause1Io10po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po5I_CC0_CC1 | friendsIo3po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po5I_CC0 | friendsIo10po3I wclause1Io10po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po5I { label = "wclause1(o10,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po5I | wclause1Io10po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po1I_CC0_CC1 | friendsIo5po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po1I_CC0 | friendsIo10po5I wclause1Io10po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po1I { label = "wclause1(o10,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po1I | wclause1Io10po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po2I_CC0_CC1 | friendsIo5po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po2I_CC0 | friendsIo10po5I wclause1Io10po5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po2I { label = "wclause1(o10,o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po2I | wclause1Io10po5po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po3I_CC0_CC1 | friendsIo5po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po3I_CC0 | friendsIo10po5I wclause1Io10po5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po3I { label = "wclause1(o10,o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po3I | wclause1Io10po5po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po4I_CC0_CC1 | friendsIo5po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po4I_CC0 | friendsIo10po5I wclause1Io10po5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po4I { label = "wclause1(o10,o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po4I | wclause1Io10po5po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po5I_CC0_CC1 | friendsIo5po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po5I_CC0 | friendsIo10po5I wclause1Io10po5po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po5I { label = "wclause1(o10,o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po5I | wclause1Io10po5po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po6I { label = "friends(o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po6I) { data = (0.5 0.5 ); } node wclause1Io10po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po6I_CC0_CC1 | friendsIo5po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po6I_CC0 | friendsIo10po5I wclause1Io10po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po6I { label = "wclause1(o10,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po6I | wclause1Io10po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po6I_CC0 | friendsIo10po10I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po6I { label = "wclause1(o10,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po6I | wclause1Io10po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po6I_CC0_CC1 | friendsIo10po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po6I_CC0 | friendsIo1po10I wclause1Io1po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po6I { label = "wclause1(o1,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po6I | wclause1Io1po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po6I_CC0_CC1 | friendsIo10po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po6I_CC0 | friendsIo2po10I wclause1Io2po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po6I { label = "wclause1(o2,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po6I | wclause1Io2po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po6I_CC0_CC1 | friendsIo10po6I friendsIo3po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po6I_CC0 | friendsIo3po10I wclause1Io3po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po6I { label = "wclause1(o3,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po6I | wclause1Io3po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po6I_CC0_CC1 | friendsIo10po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po6I_CC0 | friendsIo4po10I wclause1Io4po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po6I { label = "wclause1(o4,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po6I | wclause1Io4po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po6I_CC0_CC1 | friendsIo10po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po6I_CC0 | friendsIo5po10I wclause1Io5po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po6I { label = "wclause1(o5,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po6I | wclause1Io5po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po6I_CC0_CC1 | friendsIo10po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po6I_CC0 | friendsIo6po10I wclause1Io6po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po6I { label = "wclause1(o6,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po6I | wclause1Io6po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po6I_CC0_CC1 | friendsIo10po6I friendsIo7po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po6I_CC0 | friendsIo7po10I wclause1Io7po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po6I { label = "wclause1(o7,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po6I | wclause1Io7po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po6I_CC0_CC1 | friendsIo10po6I friendsIo8po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po6I_CC0 | friendsIo8po10I wclause1Io8po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po6I { label = "wclause1(o8,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po6I | wclause1Io8po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po6I_CC0_CC1 | friendsIo10po6I friendsIo9po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po6I_CC0 | friendsIo9po10I wclause1Io9po10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po6I { label = "wclause1(o9,o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po6I | wclause1Io9po10po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po6I_CC0_CC1 | friendsIo1po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po6I_CC0 | friendsIo10po1I wclause1Io10po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po6I { label = "wclause1(o10,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po6I | wclause1Io10po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po6I_CC0_CC1 | friendsIo2po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po6I_CC0 | friendsIo10po2I wclause1Io10po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po6I { label = "wclause1(o10,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po6I | wclause1Io10po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po6I_CC0_CC1 | friendsIo3po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po6I_CC0 | friendsIo10po3I wclause1Io10po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po6I { label = "wclause1(o10,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po6I | wclause1Io10po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po6I_CC0_CC1 | friendsIo4po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po6I_CC0 | friendsIo10po4I wclause1Io10po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po6I { label = "wclause1(o10,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po6I | wclause1Io10po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po1I_CC0_CC1 | friendsIo6po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po1I_CC0 | friendsIo10po6I wclause1Io10po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po1I { label = "wclause1(o10,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po1I | wclause1Io10po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po2I_CC0_CC1 | friendsIo6po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po2I_CC0 | friendsIo10po6I wclause1Io10po6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po2I { label = "wclause1(o10,o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po2I | wclause1Io10po6po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po3I_CC0_CC1 | friendsIo6po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po3I_CC0 | friendsIo10po6I wclause1Io10po6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po3I { label = "wclause1(o10,o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po3I | wclause1Io10po6po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po4I_CC0_CC1 | friendsIo6po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po4I_CC0 | friendsIo10po6I wclause1Io10po6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po4I { label = "wclause1(o10,o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po4I | wclause1Io10po6po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po5I_CC0_CC1 | friendsIo6po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po5I_CC0 | friendsIo10po6I wclause1Io10po6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po5I { label = "wclause1(o10,o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po5I | wclause1Io10po6po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po6I_CC0_CC1 | friendsIo6po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po6I_CC0 | friendsIo10po6I wclause1Io10po6po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po6I { label = "wclause1(o10,o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po6I | wclause1Io10po6po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po7I { label = "friends(o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po7I) { data = (0.5 0.5 ); } node wclause1Io10po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po7I_CC0_CC1 | friendsIo6po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po7I_CC0 | friendsIo10po6I wclause1Io10po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po7I { label = "wclause1(o10,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po7I | wclause1Io10po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po7I_CC0 | friendsIo10po10I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po7I { label = "wclause1(o10,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po7I | wclause1Io10po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po7I_CC0_CC1 | friendsIo10po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po7I_CC0 | friendsIo1po10I wclause1Io1po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po7I { label = "wclause1(o1,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po7I | wclause1Io1po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po7I_CC0_CC1 | friendsIo10po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po7I_CC0 | friendsIo2po10I wclause1Io2po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po7I { label = "wclause1(o2,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po7I | wclause1Io2po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po7I_CC0_CC1 | friendsIo10po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po7I_CC0 | friendsIo3po10I wclause1Io3po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po7I { label = "wclause1(o3,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po7I | wclause1Io3po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po7I_CC0_CC1 | friendsIo10po7I friendsIo4po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po7I_CC0 | friendsIo4po10I wclause1Io4po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po7I { label = "wclause1(o4,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po7I | wclause1Io4po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po7I_CC0_CC1 | friendsIo10po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po7I_CC0 | friendsIo5po10I wclause1Io5po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po7I { label = "wclause1(o5,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po7I | wclause1Io5po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po7I_CC0_CC1 | friendsIo10po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po7I_CC0 | friendsIo6po10I wclause1Io6po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po7I { label = "wclause1(o6,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po7I | wclause1Io6po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po7I_CC0_CC1 | friendsIo10po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po7I_CC0 | friendsIo7po10I wclause1Io7po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po7I { label = "wclause1(o7,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po7I | wclause1Io7po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po7I_CC0_CC1 | friendsIo10po7I friendsIo8po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po7I_CC0 | friendsIo8po10I wclause1Io8po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po7I { label = "wclause1(o8,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po7I | wclause1Io8po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po7I_CC0_CC1 | friendsIo10po7I friendsIo9po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po7I_CC0 | friendsIo9po10I wclause1Io9po10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po7I { label = "wclause1(o9,o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po7I | wclause1Io9po10po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po7I_CC0_CC1 | friendsIo1po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po7I_CC0 | friendsIo10po1I wclause1Io10po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po7I { label = "wclause1(o10,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po7I | wclause1Io10po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po7I_CC0_CC1 | friendsIo2po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po7I_CC0 | friendsIo10po2I wclause1Io10po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po7I { label = "wclause1(o10,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po7I | wclause1Io10po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po7I_CC0_CC1 | friendsIo3po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po7I_CC0 | friendsIo10po3I wclause1Io10po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po7I { label = "wclause1(o10,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po7I | wclause1Io10po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po7I_CC0_CC1 | friendsIo4po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po7I_CC0 | friendsIo10po4I wclause1Io10po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po7I { label = "wclause1(o10,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po7I | wclause1Io10po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po7I_CC0_CC1 | friendsIo5po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po7I_CC0 | friendsIo10po5I wclause1Io10po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po7I { label = "wclause1(o10,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po7I | wclause1Io10po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po1I_CC0_CC1 | friendsIo7po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po1I_CC0 | friendsIo10po7I wclause1Io10po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po1I { label = "wclause1(o10,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po1I | wclause1Io10po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po2I_CC0_CC1 | friendsIo7po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po2I_CC0 | friendsIo10po7I wclause1Io10po7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po2I { label = "wclause1(o10,o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po2I | wclause1Io10po7po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po3I_CC0_CC1 | friendsIo7po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po3I_CC0 | friendsIo10po7I wclause1Io10po7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po3I { label = "wclause1(o10,o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po3I | wclause1Io10po7po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po4I_CC0_CC1 | friendsIo7po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po4I_CC0 | friendsIo10po7I wclause1Io10po7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po4I { label = "wclause1(o10,o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po4I | wclause1Io10po7po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po5I_CC0_CC1 | friendsIo7po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po5I_CC0 | friendsIo10po7I wclause1Io10po7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po5I { label = "wclause1(o10,o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po5I | wclause1Io10po7po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po6I_CC0_CC1 | friendsIo7po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po6I_CC0 | friendsIo10po7I wclause1Io10po7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po6I { label = "wclause1(o10,o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po6I | wclause1Io10po7po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po7I_CC0_CC1 | friendsIo7po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po7I_CC0 | friendsIo10po7I wclause1Io10po7po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po7I { label = "wclause1(o10,o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po7I | wclause1Io10po7po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po8I { label = "friends(o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po8I) { data = (0.5 0.5 ); } node wclause1Io10po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po8I_CC0_CC1 | friendsIo7po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po8I_CC0 | friendsIo10po7I wclause1Io10po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po8I { label = "wclause1(o10,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po8I | wclause1Io10po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po8I_CC0 | friendsIo10po10I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po8I { label = "wclause1(o10,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po8I | wclause1Io10po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po8I_CC0_CC1 | friendsIo10po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po8I_CC0 | friendsIo1po10I wclause1Io1po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po8I { label = "wclause1(o1,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po8I | wclause1Io1po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po8I_CC0_CC1 | friendsIo10po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po8I_CC0 | friendsIo2po10I wclause1Io2po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po8I { label = "wclause1(o2,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po8I | wclause1Io2po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po8I_CC0_CC1 | friendsIo10po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po8I_CC0 | friendsIo3po10I wclause1Io3po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po8I { label = "wclause1(o3,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po8I | wclause1Io3po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po8I_CC0_CC1 | friendsIo10po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po8I_CC0 | friendsIo4po10I wclause1Io4po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po8I { label = "wclause1(o4,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po8I | wclause1Io4po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po8I_CC0_CC1 | friendsIo10po8I friendsIo5po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po8I_CC0 | friendsIo5po10I wclause1Io5po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po8I { label = "wclause1(o5,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po8I | wclause1Io5po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po8I_CC0_CC1 | friendsIo10po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po8I_CC0 | friendsIo6po10I wclause1Io6po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po8I { label = "wclause1(o6,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po8I | wclause1Io6po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po8I_CC0_CC1 | friendsIo10po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po8I_CC0 | friendsIo7po10I wclause1Io7po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po8I { label = "wclause1(o7,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po8I | wclause1Io7po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po8I_CC0_CC1 | friendsIo10po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po8I_CC0 | friendsIo8po10I wclause1Io8po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po8I { label = "wclause1(o8,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po8I | wclause1Io8po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po8I_CC0_CC1 | friendsIo10po8I friendsIo9po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po8I_CC0 | friendsIo9po10I wclause1Io9po10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po8I { label = "wclause1(o9,o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po8I | wclause1Io9po10po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po8I_CC0_CC1 | friendsIo1po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po8I_CC0 | friendsIo10po1I wclause1Io10po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po8I { label = "wclause1(o10,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po8I | wclause1Io10po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po8I_CC0_CC1 | friendsIo2po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po8I_CC0 | friendsIo10po2I wclause1Io10po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po8I { label = "wclause1(o10,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po8I | wclause1Io10po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po8I_CC0_CC1 | friendsIo3po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po8I_CC0 | friendsIo10po3I wclause1Io10po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po8I { label = "wclause1(o10,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po8I | wclause1Io10po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po8I_CC0_CC1 | friendsIo4po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po8I_CC0 | friendsIo10po4I wclause1Io10po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po8I { label = "wclause1(o10,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po8I | wclause1Io10po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po8I_CC0_CC1 | friendsIo5po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po8I_CC0 | friendsIo10po5I wclause1Io10po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po8I { label = "wclause1(o10,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po8I | wclause1Io10po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po8I_CC0_CC1 | friendsIo6po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po8I_CC0 | friendsIo10po6I wclause1Io10po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po8I { label = "wclause1(o10,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po8I | wclause1Io10po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po1I_CC0_CC1 | friendsIo8po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po1I_CC0 | friendsIo10po8I wclause1Io10po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po1I { label = "wclause1(o10,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po1I | wclause1Io10po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po2I_CC0_CC1 | friendsIo8po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po2I_CC0 | friendsIo10po8I wclause1Io10po8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po2I { label = "wclause1(o10,o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po2I | wclause1Io10po8po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po3I_CC0_CC1 | friendsIo8po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po3I_CC0 | friendsIo10po8I wclause1Io10po8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po3I { label = "wclause1(o10,o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po3I | wclause1Io10po8po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po4I_CC0_CC1 | friendsIo8po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po4I_CC0 | friendsIo10po8I wclause1Io10po8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po4I { label = "wclause1(o10,o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po4I | wclause1Io10po8po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po5I_CC0_CC1 | friendsIo8po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po5I_CC0 | friendsIo10po8I wclause1Io10po8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po5I { label = "wclause1(o10,o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po5I | wclause1Io10po8po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po6I_CC0_CC1 | friendsIo8po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po6I_CC0 | friendsIo10po8I wclause1Io10po8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po6I { label = "wclause1(o10,o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po6I | wclause1Io10po8po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po7I_CC0_CC1 | friendsIo8po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po7I_CC0 | friendsIo10po8I wclause1Io10po8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po7I { label = "wclause1(o10,o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po7I | wclause1Io10po8po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po8po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po8I_CC0_CC1 | friendsIo8po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po8I_CC0 | friendsIo10po8I wclause1Io10po8po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po8I { label = "wclause1(o10,o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po8I | wclause1Io10po8po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node friendsIo10po9I { label = "friends(o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (friendsIo10po9I) { data = (0.5 0.5 ); } node wclause1Io10po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po9I_CC0_CC1 | friendsIo8po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po9I_CC0 | friendsIo10po8I wclause1Io10po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po9I { label = "wclause1(o10,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po9I | wclause1Io10po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po9I_CC0 | friendsIo10po10I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io10po10po9I { label = "wclause1(o10,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po10po9I | wclause1Io10po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po9I_CC0_CC1 | friendsIo10po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po9I_CC0 | friendsIo1po10I wclause1Io1po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po9I { label = "wclause1(o1,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po9I | wclause1Io1po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po9I_CC0_CC1 | friendsIo10po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po9I_CC0 | friendsIo2po10I wclause1Io2po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po9I { label = "wclause1(o2,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po9I | wclause1Io2po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po9I_CC0_CC1 | friendsIo10po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po9I_CC0 | friendsIo3po10I wclause1Io3po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po9I { label = "wclause1(o3,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po9I | wclause1Io3po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po9I_CC0_CC1 | friendsIo10po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po9I_CC0 | friendsIo4po10I wclause1Io4po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po9I { label = "wclause1(o4,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po9I | wclause1Io4po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po9I_CC0_CC1 | friendsIo10po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po9I_CC0 | friendsIo5po10I wclause1Io5po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po9I { label = "wclause1(o5,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po9I | wclause1Io5po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po9I_CC0_CC1 | friendsIo10po9I friendsIo6po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po9I_CC0 | friendsIo6po10I wclause1Io6po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po9I { label = "wclause1(o6,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po9I | wclause1Io6po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po9I_CC0_CC1 | friendsIo10po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po9I_CC0 | friendsIo7po10I wclause1Io7po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po10po9I { label = "wclause1(o7,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po10po9I | wclause1Io7po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po9I_CC0_CC1 | friendsIo10po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po9I_CC0 | friendsIo8po10I wclause1Io8po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po9I { label = "wclause1(o8,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po9I | wclause1Io8po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po9I_CC0_CC1 | friendsIo10po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po9I_CC0 | friendsIo9po10I wclause1Io9po10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po9I { label = "wclause1(o9,o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po9I | wclause1Io9po10po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po9I_CC0_CC1 | friendsIo1po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po9I_CC0 | friendsIo10po1I wclause1Io10po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po9I { label = "wclause1(o10,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po9I | wclause1Io10po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po9I_CC0_CC1 | friendsIo2po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po9I_CC0 | friendsIo10po2I wclause1Io10po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po2po9I { label = "wclause1(o10,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po2po9I | wclause1Io10po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po9I_CC0_CC1 | friendsIo3po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po9I_CC0 | friendsIo10po3I wclause1Io10po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po9I { label = "wclause1(o10,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po9I | wclause1Io10po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po9I_CC0_CC1 | friendsIo4po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po9I_CC0 | friendsIo10po4I wclause1Io10po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po9I { label = "wclause1(o10,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po9I | wclause1Io10po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po9I_CC0_CC1 | friendsIo5po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po9I_CC0 | friendsIo10po5I wclause1Io10po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po9I { label = "wclause1(o10,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po9I | wclause1Io10po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po9I_CC0_CC1 | friendsIo6po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po9I_CC0 | friendsIo10po6I wclause1Io10po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po9I { label = "wclause1(o10,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po9I | wclause1Io10po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po9I_CC0_CC1 | friendsIo7po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po9I_CC0 | friendsIo10po7I wclause1Io10po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po9I { label = "wclause1(o10,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po9I | wclause1Io10po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po1I_CC0_CC1 | friendsIo9po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po1I_CC0 | friendsIo10po9I wclause1Io10po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po1I { label = "wclause1(o10,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po1I | wclause1Io10po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po2I_CC0_CC1 | friendsIo9po2I friendsIo10po2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po2I_CC0 | friendsIo10po9I wclause1Io10po9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po2I { label = "wclause1(o10,o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po2I | wclause1Io10po9po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po3I_CC0_CC1 | friendsIo9po3I friendsIo10po3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po3I_CC0 | friendsIo10po9I wclause1Io10po9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po3I { label = "wclause1(o10,o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po3I | wclause1Io10po9po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po4I_CC0_CC1 | friendsIo9po4I friendsIo10po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po4I_CC0 | friendsIo10po9I wclause1Io10po9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po4I { label = "wclause1(o10,o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po4I | wclause1Io10po9po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po5I_CC0_CC1 | friendsIo9po5I friendsIo10po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po5I_CC0 | friendsIo10po9I wclause1Io10po9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po5I { label = "wclause1(o10,o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po5I | wclause1Io10po9po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po6I_CC0_CC1 | friendsIo9po6I friendsIo10po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po6I_CC0 | friendsIo10po9I wclause1Io10po9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po6I { label = "wclause1(o10,o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po6I | wclause1Io10po9po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po7I_CC0_CC1 | friendsIo9po7I friendsIo10po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po7I_CC0 | friendsIo10po9I wclause1Io10po9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po7I { label = "wclause1(o10,o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po7I | wclause1Io10po9po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po8I_CC0_CC1 | friendsIo9po8I friendsIo10po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po8I_CC0 | friendsIo10po9I wclause1Io10po9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po8I { label = "wclause1(o10,o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po8I | wclause1Io10po9po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po9I_CC0_CC1 | friendsIo9po9I friendsIo10po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po9I_CC0 | friendsIo10po9I wclause1Io10po9po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po9I { label = "wclause1(o10,o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po9I | wclause1Io10po9po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po10I_CC0_CC1 | friendsIo9po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po10I_CC0 | friendsIo10po9I wclause1Io10po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po9po10I { label = "wclause1(o10,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po9po10I | wclause1Io10po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node or_friendsIo10po2I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po2I_wclause2Io10I_CC0_CC0_CC0 | friendsIo10po1I friendsIo10po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po3I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po3I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po2I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po4I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po4I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po3I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po5I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po5I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po4I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po6I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po6I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po5I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po7I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po7I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po6I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po8I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po8I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po7I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po9I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po9I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po8I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo10po10I_wclause2Io10I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo10po10I_wclause2Io10I_CC0_CC0_CC0 | or_friendsIo10po9I_wclause2Io10I_CC0_CC0_CC0 friendsIo10po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node smokesIo10I { label = "smokes(o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo10I) { data = (0.5 0.5 ); } node wclause2Io10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io10I_CC0 | or_friendsIo10po10I_wclause2Io10I_CC0_CC0_CC0 smokesIo10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io10I { label = "wclause2(o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io10I | wclause2Io10I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node wclause4Io10po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po10I_CC0 | friendsIo10po10I smokesIo10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io10po10I { label = "wclause4(o10,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po10I | wclause4Io10po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node cancerIo10I { label = "cancer(o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo10I) { data = (0.5 0.5 ); } node wclause3Io10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io10I_CC0 | smokesIo10I cancerIo10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io10I { label = "wclause3(o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io10I | wclause3Io10I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po1I_CC0_CC1 | smokesIo10I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po10I_CC0 | friendsIo1po10I wclause4Io10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po10I { label = "wclause4(o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po10I | wclause4Io1po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po1I_CC0 | friendsIo10po1I wclause4Io10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po1I { label = "wclause4(o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po1I | wclause4Io10po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po2I_CC0_CC1 | smokesIo10I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po10I_CC0 | friendsIo2po10I wclause4Io10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po10I { label = "wclause4(o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po10I | wclause4Io2po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po2I_CC0 | friendsIo10po2I wclause4Io10po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po2I { label = "wclause4(o10,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po2I | wclause4Io10po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo3I { label = "smokes(o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo3I) { data = (0.5 0.5 ); } node wclause4Io10po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po3I_CC0_CC1 | smokesIo10I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po10I_CC0 | friendsIo3po10I wclause4Io10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po10I { label = "wclause4(o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po10I | wclause4Io3po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po3I_CC0 | friendsIo10po3I wclause4Io10po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po3I { label = "wclause4(o10,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po3I | wclause4Io10po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io3po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po3I_CC0 | friendsIo3po3I smokesIo3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io3po3I { label = "wclause4(o3,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po3I | wclause4Io3po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo3po2I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po2I_wclause2Io3I_CC0_CC0_CC0 | friendsIo3po1I friendsIo3po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po3I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po3I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po2I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po4I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po4I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po3I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po5I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po5I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po4I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po6I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po6I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po5I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po7I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po7I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po6I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po8I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po8I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po7I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po9I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po9I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po8I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo3po10I_wclause2Io3I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo3po10I_wclause2Io3I_CC0_CC0_CC0 | or_friendsIo3po9I_wclause2Io3I_CC0_CC0_CC0 friendsIo3po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io3I_CC0 | or_friendsIo3po10I_wclause2Io3I_CC0_CC0_CC0 smokesIo3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io3I { label = "wclause2(o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io3I | wclause2Io3I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo3I { label = "cancer(o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo3I) { data = (0.5 0.5 ); } node wclause3Io3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io3I_CC0 | smokesIo3I cancerIo3I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io3I { label = "wclause3(o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io3I | wclause3Io3I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po1I_CC0_CC1 | smokesIo3I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po3I_CC0 | friendsIo1po3I wclause4Io3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po3I { label = "wclause4(o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po3I | wclause4Io1po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po1I_CC0 | friendsIo3po1I wclause4Io3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po1I { label = "wclause4(o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po1I | wclause4Io3po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io3po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po2I_CC0_CC1 | smokesIo3I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po3I_CC0 | friendsIo2po3I wclause4Io3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po3I { label = "wclause4(o2,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po3I | wclause4Io2po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io3po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po2I_CC0 | friendsIo3po2I wclause4Io3po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po2I { label = "wclause4(o3,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po2I | wclause4Io3po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo4I { label = "smokes(o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo4I) { data = (0.5 0.5 ); } node wclause4Io4po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po3I_CC0_CC1 | smokesIo4I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po4I_CC0 | friendsIo3po4I wclause4Io4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po4I { label = "wclause4(o3,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po4I | wclause4Io3po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io4po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po3I_CC0 | friendsIo4po3I wclause4Io4po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po3I { label = "wclause4(o4,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po3I | wclause4Io4po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io4po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po4I_CC0 | friendsIo4po4I smokesIo4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io4po4I { label = "wclause4(o4,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po4I | wclause4Io4po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo4po2I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po2I_wclause2Io4I_CC0_CC0_CC0 | friendsIo4po1I friendsIo4po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po3I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po3I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po2I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po4I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po4I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po3I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po5I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po5I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po4I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po6I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po6I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po5I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po7I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po7I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po6I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po8I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po8I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po7I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po9I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po9I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po8I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo4po10I_wclause2Io4I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo4po10I_wclause2Io4I_CC0_CC0_CC0 | or_friendsIo4po9I_wclause2Io4I_CC0_CC0_CC0 friendsIo4po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io4I_CC0 | or_friendsIo4po10I_wclause2Io4I_CC0_CC0_CC0 smokesIo4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io4I { label = "wclause2(o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io4I | wclause2Io4I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo4I { label = "cancer(o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo4I) { data = (0.5 0.5 ); } node wclause3Io4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io4I_CC0 | smokesIo4I cancerIo4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io4I { label = "wclause3(o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io4I | wclause3Io4I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po1I_CC0_CC1 | smokesIo4I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po4I_CC0 | friendsIo1po4I wclause4Io4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po4I { label = "wclause4(o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po4I | wclause4Io1po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po1I_CC0 | friendsIo4po1I wclause4Io4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po1I { label = "wclause4(o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po1I | wclause4Io4po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io4po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po2I_CC0_CC1 | smokesIo4I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po4I_CC0 | friendsIo2po4I wclause4Io4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po4I { label = "wclause4(o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po4I | wclause4Io2po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io4po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po2I_CC0 | friendsIo4po2I wclause4Io4po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po2I { label = "wclause4(o4,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po2I | wclause4Io4po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo5I { label = "smokes(o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo5I) { data = (0.5 0.5 ); } node wclause4Io5po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po4I_CC0_CC1 | smokesIo5I smokesIo4I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po5I_CC0 | friendsIo4po5I wclause4Io5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po5I { label = "wclause4(o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po5I | wclause4Io4po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po4I_CC0 | friendsIo5po4I wclause4Io5po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po4I { label = "wclause4(o5,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po4I | wclause4Io5po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po5I_CC0 | friendsIo5po5I smokesIo5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io5po5I { label = "wclause4(o5,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po5I | wclause4Io5po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo5po2I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po2I_wclause2Io5I_CC0_CC0_CC0 | friendsIo5po1I friendsIo5po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po3I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po3I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po2I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po4I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po4I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po3I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po5I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po5I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po4I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po6I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po6I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po5I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po7I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po7I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po6I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po8I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po8I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po7I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po9I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po9I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po8I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo5po10I_wclause2Io5I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo5po10I_wclause2Io5I_CC0_CC0_CC0 | or_friendsIo5po9I_wclause2Io5I_CC0_CC0_CC0 friendsIo5po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io5I_CC0 | or_friendsIo5po10I_wclause2Io5I_CC0_CC0_CC0 smokesIo5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io5I { label = "wclause2(o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io5I | wclause2Io5I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo5I { label = "cancer(o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo5I) { data = (0.5 0.5 ); } node wclause3Io5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io5I_CC0 | smokesIo5I cancerIo5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io5I { label = "wclause3(o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io5I | wclause3Io5I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po1I_CC0_CC1 | smokesIo5I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po5I_CC0 | friendsIo1po5I wclause4Io5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po5I { label = "wclause4(o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po5I | wclause4Io1po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po1I_CC0 | friendsIo5po1I wclause4Io5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po1I { label = "wclause4(o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po1I | wclause4Io5po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po2I_CC0_CC1 | smokesIo5I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po5I_CC0 | friendsIo2po5I wclause4Io5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po5I { label = "wclause4(o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po5I | wclause4Io2po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po2I_CC0 | friendsIo5po2I wclause4Io5po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po2I { label = "wclause4(o5,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po2I | wclause4Io5po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po3I_CC0_CC1 | smokesIo5I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po5I_CC0 | friendsIo3po5I wclause4Io5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po5I { label = "wclause4(o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po5I | wclause4Io3po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io5po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po3I_CC0 | friendsIo5po3I wclause4Io5po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po3I { label = "wclause4(o5,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po3I | wclause4Io5po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo6I { label = "smokes(o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo6I) { data = (0.5 0.5 ); } node wclause4Io6po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po5I_CC0_CC1 | smokesIo6I smokesIo5I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po6I_CC0 | friendsIo5po6I wclause4Io6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po6I { label = "wclause4(o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po6I | wclause4Io5po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po5I_CC0 | friendsIo6po5I wclause4Io6po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po5I { label = "wclause4(o6,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po5I | wclause4Io6po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po6I_CC0 | friendsIo6po6I smokesIo6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io6po6I { label = "wclause4(o6,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po6I | wclause4Io6po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo6po2I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po2I_wclause2Io6I_CC0_CC0_CC0 | friendsIo6po1I friendsIo6po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po3I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po3I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po2I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po4I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po4I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po3I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po5I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po5I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po4I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po6I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po6I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po5I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po7I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po7I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po6I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po8I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po8I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po7I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po9I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po9I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po8I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo6po10I_wclause2Io6I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo6po10I_wclause2Io6I_CC0_CC0_CC0 | or_friendsIo6po9I_wclause2Io6I_CC0_CC0_CC0 friendsIo6po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io6I_CC0 | or_friendsIo6po10I_wclause2Io6I_CC0_CC0_CC0 smokesIo6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io6I { label = "wclause2(o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io6I | wclause2Io6I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo6I { label = "cancer(o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo6I) { data = (0.5 0.5 ); } node wclause3Io6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io6I_CC0 | smokesIo6I cancerIo6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io6I { label = "wclause3(o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io6I | wclause3Io6I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po1I_CC0_CC1 | smokesIo6I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po6I_CC0 | friendsIo1po6I wclause4Io6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po6I { label = "wclause4(o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po6I | wclause4Io1po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po1I_CC0 | friendsIo6po1I wclause4Io6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po1I { label = "wclause4(o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po1I | wclause4Io6po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po2I_CC0_CC1 | smokesIo6I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po6I_CC0 | friendsIo2po6I wclause4Io6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po6I { label = "wclause4(o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po6I | wclause4Io2po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po2I_CC0 | friendsIo6po2I wclause4Io6po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po2I { label = "wclause4(o6,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po2I | wclause4Io6po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po3I_CC0_CC1 | smokesIo6I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po6I_CC0 | friendsIo3po6I wclause4Io6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po6I { label = "wclause4(o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po6I | wclause4Io3po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po3I_CC0 | friendsIo6po3I wclause4Io6po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po3I { label = "wclause4(o6,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po3I | wclause4Io6po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po4I_CC0_CC1 | smokesIo6I smokesIo4I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po6I_CC0 | friendsIo4po6I wclause4Io6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po6I { label = "wclause4(o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po6I | wclause4Io4po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io6po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po4I_CC0 | friendsIo6po4I wclause4Io6po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po4I { label = "wclause4(o6,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po4I | wclause4Io6po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo7I { label = "smokes(o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo7I) { data = (0.5 0.5 ); } node wclause4Io7po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po6I_CC0_CC1 | smokesIo7I smokesIo6I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po7I_CC0 | friendsIo6po7I wclause4Io7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po7I { label = "wclause4(o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po7I | wclause4Io6po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po6I_CC0 | friendsIo7po6I wclause4Io7po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po6I { label = "wclause4(o7,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po6I | wclause4Io7po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po7I_CC0 | friendsIo7po7I smokesIo7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io7po7I { label = "wclause4(o7,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po7I | wclause4Io7po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo7po2I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po2I_wclause2Io7I_CC0_CC0_CC0 | friendsIo7po1I friendsIo7po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po3I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po3I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po2I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po4I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po4I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po3I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po5I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po5I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po4I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po6I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po6I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po5I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po7I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po7I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po6I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po8I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po8I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po7I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po9I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po9I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po8I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo7po10I_wclause2Io7I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo7po10I_wclause2Io7I_CC0_CC0_CC0 | or_friendsIo7po9I_wclause2Io7I_CC0_CC0_CC0 friendsIo7po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io7I_CC0 | or_friendsIo7po10I_wclause2Io7I_CC0_CC0_CC0 smokesIo7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io7I { label = "wclause2(o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io7I | wclause2Io7I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo7I { label = "cancer(o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo7I) { data = (0.5 0.5 ); } node wclause3Io7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io7I_CC0 | smokesIo7I cancerIo7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io7I { label = "wclause3(o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io7I | wclause3Io7I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po1I_CC0_CC1 | smokesIo7I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po7I_CC0 | friendsIo1po7I wclause4Io7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po7I { label = "wclause4(o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po7I | wclause4Io1po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po1I_CC0 | friendsIo7po1I wclause4Io7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po1I { label = "wclause4(o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po1I | wclause4Io7po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po2I_CC0_CC1 | smokesIo7I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po7I_CC0 | friendsIo2po7I wclause4Io7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po7I { label = "wclause4(o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po7I | wclause4Io2po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po2I_CC0 | friendsIo7po2I wclause4Io7po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po2I { label = "wclause4(o7,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po2I | wclause4Io7po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po3I_CC0_CC1 | smokesIo7I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po7I_CC0 | friendsIo3po7I wclause4Io7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po7I { label = "wclause4(o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po7I | wclause4Io3po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po3I_CC0 | friendsIo7po3I wclause4Io7po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po3I { label = "wclause4(o7,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po3I | wclause4Io7po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po4I_CC0_CC1 | smokesIo7I smokesIo4I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po7I_CC0 | friendsIo4po7I wclause4Io7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po7I { label = "wclause4(o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po7I | wclause4Io4po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po4I_CC0 | friendsIo7po4I wclause4Io7po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po4I { label = "wclause4(o7,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po4I | wclause4Io7po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po5I_CC0_CC1 | smokesIo7I smokesIo5I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po7I_CC0 | friendsIo5po7I wclause4Io7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po7I { label = "wclause4(o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po7I | wclause4Io5po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io7po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po5I_CC0 | friendsIo7po5I wclause4Io7po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po5I { label = "wclause4(o7,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po5I | wclause4Io7po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo8I { label = "smokes(o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo8I) { data = (0.5 0.5 ); } node wclause4Io8po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po7I_CC0_CC1 | smokesIo8I smokesIo7I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po8I_CC0 | friendsIo7po8I wclause4Io8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po8I { label = "wclause4(o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po8I | wclause4Io7po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po7I_CC0 | friendsIo8po7I wclause4Io8po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po7I { label = "wclause4(o8,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po7I | wclause4Io8po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po8I_CC0 | friendsIo8po8I smokesIo8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io8po8I { label = "wclause4(o8,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po8I | wclause4Io8po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo8po2I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po2I_wclause2Io8I_CC0_CC0_CC0 | friendsIo8po1I friendsIo8po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po3I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po3I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po2I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po4I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po4I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po3I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po5I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po5I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po4I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po6I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po6I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po5I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po7I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po7I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po6I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po8I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po8I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po7I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po9I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po9I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po8I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo8po10I_wclause2Io8I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo8po10I_wclause2Io8I_CC0_CC0_CC0 | or_friendsIo8po9I_wclause2Io8I_CC0_CC0_CC0 friendsIo8po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io8I_CC0 | or_friendsIo8po10I_wclause2Io8I_CC0_CC0_CC0 smokesIo8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io8I { label = "wclause2(o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io8I | wclause2Io8I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo8I { label = "cancer(o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo8I) { data = (0.5 0.5 ); } node wclause3Io8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io8I_CC0 | smokesIo8I cancerIo8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io8I { label = "wclause3(o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io8I | wclause3Io8I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po1I_CC0_CC1 | smokesIo8I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po8I_CC0 | friendsIo1po8I wclause4Io8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po8I { label = "wclause4(o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po8I | wclause4Io1po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po1I_CC0 | friendsIo8po1I wclause4Io8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po1I { label = "wclause4(o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po1I | wclause4Io8po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po2I_CC0_CC1 | smokesIo8I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po8I_CC0 | friendsIo2po8I wclause4Io8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po8I { label = "wclause4(o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po8I | wclause4Io2po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po2I_CC0 | friendsIo8po2I wclause4Io8po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po2I { label = "wclause4(o8,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po2I | wclause4Io8po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po3I_CC0_CC1 | smokesIo8I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po8I_CC0 | friendsIo3po8I wclause4Io8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po8I { label = "wclause4(o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po8I | wclause4Io3po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po3I_CC0 | friendsIo8po3I wclause4Io8po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po3I { label = "wclause4(o8,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po3I | wclause4Io8po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po4I_CC0_CC1 | smokesIo8I smokesIo4I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po8I_CC0 | friendsIo4po8I wclause4Io8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po8I { label = "wclause4(o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po8I | wclause4Io4po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po4I_CC0 | friendsIo8po4I wclause4Io8po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po4I { label = "wclause4(o8,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po4I | wclause4Io8po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po5I_CC0_CC1 | smokesIo8I smokesIo5I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po8I_CC0 | friendsIo5po8I wclause4Io8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po8I { label = "wclause4(o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po8I | wclause4Io5po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po5I_CC0 | friendsIo8po5I wclause4Io8po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po5I { label = "wclause4(o8,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po5I | wclause4Io8po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po6I_CC0_CC1 | smokesIo8I smokesIo6I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po8I_CC0 | friendsIo6po8I wclause4Io8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po8I { label = "wclause4(o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po8I | wclause4Io6po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io8po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po6I_CC0 | friendsIo8po6I wclause4Io8po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po6I { label = "wclause4(o8,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po6I | wclause4Io8po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node smokesIo9I { label = "smokes(o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (smokesIo9I) { data = (0.5 0.5 ); } node wclause4Io9po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po8I_CC0_CC1 | smokesIo9I smokesIo8I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po9I_CC0 | friendsIo8po9I wclause4Io9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po9I { label = "wclause4(o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po9I | wclause4Io8po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po8I_CC0 | friendsIo9po8I wclause4Io9po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po8I { label = "wclause4(o9,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po8I | wclause4Io9po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po9I_CC0 | friendsIo9po9I smokesIo9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io9po9I { label = "wclause4(o9,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po9I | wclause4Io9po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node or_friendsIo9po2I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po2I_wclause2Io9I_CC0_CC0_CC0 | friendsIo9po1I friendsIo9po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po3I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po3I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po2I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po4I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po4I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po3I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po5I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po5I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po4I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po6I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po6I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po5I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po7I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po7I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po6I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po8I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po8I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po7I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po9I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po9I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po8I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo9po10I_wclause2Io9I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo9po10I_wclause2Io9I_CC0_CC0_CC0 | or_friendsIo9po9I_wclause2Io9I_CC0_CC0_CC0 friendsIo9po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io9I_CC0 | or_friendsIo9po10I_wclause2Io9I_CC0_CC0_CC0 smokesIo9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io9I { label = "wclause2(o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io9I | wclause2Io9I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node cancerIo9I { label = "cancer(o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo9I) { data = (0.5 0.5 ); } node wclause3Io9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io9I_CC0 | smokesIo9I cancerIo9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io9I { label = "wclause3(o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io9I | wclause3Io9I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause4Io9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po1I_CC0_CC1 | smokesIo9I smokesIo1I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po9I_CC0 | friendsIo1po9I wclause4Io9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io1po9I { label = "wclause4(o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io1po9I | wclause4Io1po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po1I_CC0 | friendsIo9po1I wclause4Io9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po1I { label = "wclause4(o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po1I | wclause4Io9po1I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po2I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po2I_CC0_CC1 | smokesIo9I smokesIo2I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po9I_CC0 | friendsIo2po9I wclause4Io9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io2po9I { label = "wclause4(o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po9I | wclause4Io2po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po2I_CC0 | friendsIo9po2I wclause4Io9po2I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po2I { label = "wclause4(o9,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po2I | wclause4Io9po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po3I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po3I_CC0_CC1 | smokesIo9I smokesIo3I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po9I_CC0 | friendsIo3po9I wclause4Io9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io3po9I { label = "wclause4(o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io3po9I | wclause4Io3po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po3I_CC0 | friendsIo9po3I wclause4Io9po3I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po3I { label = "wclause4(o9,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po3I | wclause4Io9po3I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po4I_CC0_CC1 | smokesIo9I smokesIo4I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po9I_CC0 | friendsIo4po9I wclause4Io9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po9I { label = "wclause4(o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po9I | wclause4Io4po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po4I_CC0 | friendsIo9po4I wclause4Io9po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po4I { label = "wclause4(o9,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po4I | wclause4Io9po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po5I_CC0_CC1 | smokesIo9I smokesIo5I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po9I_CC0 | friendsIo5po9I wclause4Io9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po9I { label = "wclause4(o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po9I | wclause4Io5po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po5I_CC0 | friendsIo9po5I wclause4Io9po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po5I { label = "wclause4(o9,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po5I | wclause4Io9po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po6I_CC0_CC1 | smokesIo9I smokesIo6I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po9I_CC0 | friendsIo6po9I wclause4Io9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po9I { label = "wclause4(o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po9I | wclause4Io6po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po6I_CC0 | friendsIo9po6I wclause4Io9po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po6I { label = "wclause4(o9,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po6I | wclause4Io9po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po7I_CC0_CC1 | smokesIo9I smokesIo7I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po9I_CC0 | friendsIo7po9I wclause4Io9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po9I { label = "wclause4(o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po9I | wclause4Io7po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io9po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po7I_CC0 | friendsIo9po7I wclause4Io9po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po7I { label = "wclause4(o9,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po7I | wclause4Io9po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po9I_CC0_CC1 | smokesIo10I smokesIo9I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po10I_CC0 | friendsIo9po10I wclause4Io10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io9po10I { label = "wclause4(o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io9po10I | wclause4Io9po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po9I_CC0 | friendsIo10po9I wclause4Io10po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po9I { label = "wclause4(o10,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po9I | wclause4Io10po9I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po8I_CC0_CC1 | smokesIo10I smokesIo8I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po10I_CC0 | friendsIo8po10I wclause4Io10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io8po10I { label = "wclause4(o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io8po10I | wclause4Io8po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po8I_CC0 | friendsIo10po8I wclause4Io10po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po8I { label = "wclause4(o10,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po8I | wclause4Io10po8I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po7I_CC0_CC1 | smokesIo10I smokesIo7I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po10I_CC0 | friendsIo7po10I wclause4Io10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io7po10I { label = "wclause4(o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io7po10I | wclause4Io7po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po7I_CC0 | friendsIo10po7I wclause4Io10po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po7I { label = "wclause4(o10,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po7I | wclause4Io10po7I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po6I_CC0_CC1 | smokesIo10I smokesIo6I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po10I_CC0 | friendsIo6po10I wclause4Io10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io6po10I { label = "wclause4(o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io6po10I | wclause4Io6po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po6I_CC0 | friendsIo10po6I wclause4Io10po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po6I { label = "wclause4(o10,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po6I | wclause4Io10po6I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po5I_CC0_CC1 | smokesIo10I smokesIo5I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po10I_CC0 | friendsIo5po10I wclause4Io10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io5po10I { label = "wclause4(o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io5po10I | wclause4Io5po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po5I_CC0 | friendsIo10po5I wclause4Io10po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po5I { label = "wclause4(o10,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po5I | wclause4Io10po5I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po4I_CC0_CC1 | smokesIo10I smokesIo4I ) { data = (0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po10I_CC0 | friendsIo4po10I wclause4Io10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io4po10I { label = "wclause4(o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io4po10I | wclause4Io4po10I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause4Io10po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po4I_CC0 | friendsIo10po4I wclause4Io10po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause4Io10po4I { label = "wclause4(o10,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io10po4I | wclause4Io10po4I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause1Io10po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po10I_CC0_CC1 | friendsIo8po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po10I_CC0 | friendsIo10po8I wclause1Io10po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po8po10I { label = "wclause1(o10,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po8po10I | wclause1Io10po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po10I_CC0_CC1 | friendsIo7po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po10I_CC0 | friendsIo10po7I wclause1Io10po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po7po10I { label = "wclause1(o10,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po7po10I | wclause1Io10po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po10I_CC0_CC1 | friendsIo6po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po10I_CC0 | friendsIo10po6I wclause1Io10po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po6po10I { label = "wclause1(o10,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po6po10I | wclause1Io10po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po10I_CC0_CC1 | friendsIo5po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po10I_CC0 | friendsIo10po5I wclause1Io10po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po5po10I { label = "wclause1(o10,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po5po10I | wclause1Io10po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po10I_CC0_CC1 | friendsIo4po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po10I_CC0 | friendsIo10po4I wclause1Io10po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po4po10I { label = "wclause1(o10,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po4po10I | wclause1Io10po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po10I_CC0_CC1 | friendsIo3po10I friendsIo10po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po10I_CC0 | friendsIo10po3I wclause1Io10po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po3po10I { label = "wclause1(o10,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po3po10I | wclause1Io10po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po1I_CC0_CC1 | friendsIo10po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po1I_CC0 | friendsIo1po10I wclause1Io1po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po10po1I { label = "wclause1(o1,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po10po1I | wclause1Io1po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po1I_CC0_CC1 | friendsIo10po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po1I_CC0 | friendsIo2po10I wclause1Io2po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po10po1I { label = "wclause1(o2,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po10po1I | wclause1Io2po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po1I_CC0_CC1 | friendsIo10po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po1I_CC0 | friendsIo3po10I wclause1Io3po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po10po1I { label = "wclause1(o3,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po10po1I | wclause1Io3po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po1I_CC0_CC1 | friendsIo10po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po1I_CC0 | friendsIo4po10I wclause1Io4po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po10po1I { label = "wclause1(o4,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po10po1I | wclause1Io4po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po1I_CC0_CC1 | friendsIo10po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po1I_CC0 | friendsIo5po10I wclause1Io5po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po10po1I { label = "wclause1(o5,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po10po1I | wclause1Io5po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po1I_CC0_CC1 | friendsIo10po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po1I_CC0 | friendsIo6po10I wclause1Io6po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po10po1I { label = "wclause1(o6,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po10po1I | wclause1Io6po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po1I_CC0_CC1 | friendsIo10po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po1I_CC0 | friendsIo8po10I wclause1Io8po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po10po1I { label = "wclause1(o8,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po10po1I | wclause1Io8po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po10po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po1I_CC0_CC1 | friendsIo10po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po1I_CC0 | friendsIo9po10I wclause1Io9po10po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po10po1I { label = "wclause1(o9,o10,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po10po1I | wclause1Io9po10po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io10po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po1I_CC0_CC1 | friendsIo1po1I friendsIo10po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po1I_CC0 | friendsIo10po1I wclause1Io10po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io10po1po1I { label = "wclause1(o10,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io10po1po1I | wclause1Io10po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po10I_CC0_CC1 | friendsIo7po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po10I_CC0 | friendsIo8po7I wclause1Io8po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po7po10I { label = "wclause1(o8,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po7po10I | wclause1Io8po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po10I_CC0_CC1 | friendsIo7po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po10I_CC0 | friendsIo9po7I wclause1Io9po7po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po10I { label = "wclause1(o9,o7,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po10I | wclause1Io9po7po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po10I_CC0_CC1 | friendsIo8po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po10I_CC0 | friendsIo6po8I wclause1Io6po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po10I { label = "wclause1(o6,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po10I | wclause1Io6po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po10I_CC0_CC1 | friendsIo9po10I friendsIo6po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po10I_CC0 | friendsIo6po9I wclause1Io6po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po9po10I { label = "wclause1(o6,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po9po10I | wclause1Io6po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po10I_CC0_CC1 | friendsIo6po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po10I_CC0 | friendsIo8po6I wclause1Io8po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po10I { label = "wclause1(o8,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po10I | wclause1Io8po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po10I_CC0_CC1 | friendsIo6po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po10I_CC0 | friendsIo9po6I wclause1Io9po6po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po10I { label = "wclause1(o9,o6,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po10I | wclause1Io9po6po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po10I_CC0_CC1 | friendsIo8po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po10I_CC0 | friendsIo5po8I wclause1Io5po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po10I { label = "wclause1(o5,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po10I | wclause1Io5po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po10I_CC0_CC1 | friendsIo9po10I friendsIo5po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po10I_CC0 | friendsIo5po9I wclause1Io5po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po10I { label = "wclause1(o5,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po10I | wclause1Io5po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po10I_CC0_CC1 | friendsIo5po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po10I_CC0 | friendsIo8po5I wclause1Io8po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po10I { label = "wclause1(o8,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po10I | wclause1Io8po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po10I_CC0_CC1 | friendsIo5po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po10I_CC0 | friendsIo9po5I wclause1Io9po5po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po10I { label = "wclause1(o9,o5,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po10I | wclause1Io9po5po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po10I_CC0_CC1 | friendsIo8po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po10I_CC0 | friendsIo4po8I wclause1Io4po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po10I { label = "wclause1(o4,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po10I | wclause1Io4po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po10I_CC0_CC1 | friendsIo9po10I friendsIo4po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po10I_CC0 | friendsIo4po9I wclause1Io4po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po10I { label = "wclause1(o4,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po10I | wclause1Io4po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po10I_CC0_CC1 | friendsIo4po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po10I_CC0 | friendsIo8po4I wclause1Io8po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po10I { label = "wclause1(o8,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po10I | wclause1Io8po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po10I_CC0_CC1 | friendsIo4po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po10I_CC0 | friendsIo9po4I wclause1Io9po4po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po10I { label = "wclause1(o9,o4,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po10I | wclause1Io9po4po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po10I_CC0_CC1 | friendsIo8po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po10I_CC0 | friendsIo3po8I wclause1Io3po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po10I { label = "wclause1(o3,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po10I | wclause1Io3po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po10I_CC0_CC1 | friendsIo9po10I friendsIo3po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po10I_CC0 | friendsIo3po9I wclause1Io3po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po10I { label = "wclause1(o3,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po10I | wclause1Io3po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po10I_CC0_CC1 | friendsIo3po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po10I_CC0 | friendsIo8po3I wclause1Io8po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po10I { label = "wclause1(o8,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po10I | wclause1Io8po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po10I_CC0_CC1 | friendsIo3po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po10I_CC0 | friendsIo9po3I wclause1Io9po3po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po10I { label = "wclause1(o9,o3,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po10I | wclause1Io9po3po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po10I_CC0_CC1 | friendsIo8po10I friendsIo2po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po10I_CC0 | friendsIo2po8I wclause1Io2po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po10I { label = "wclause1(o2,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po10I | wclause1Io2po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po10I_CC0_CC1 | friendsIo2po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po10I_CC0 | friendsIo8po2I wclause1Io8po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po10I { label = "wclause1(o8,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po10I | wclause1Io8po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po2po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po10I_CC0_CC1 | friendsIo2po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po10I_CC0 | friendsIo9po2I wclause1Io9po2po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po2po10I { label = "wclause1(o9,o2,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po2po10I | wclause1Io9po2po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node or_friendsIo2po2I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po2I_wclause2Io2I_CC0_CC0_CC0 | friendsIo2po1I friendsIo2po2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po3I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po3I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po2I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po3I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po4I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po4I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po3I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po4I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po5I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po5I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po4I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po5I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po6I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po6I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po5I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po6I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po7I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po7I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po6I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po7I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po8I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po8I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po7I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po8I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po9I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po9I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po8I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po9I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node or_friendsIo2po10I_wclause2Io2I_CC0_CC0_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (or_friendsIo2po10I_wclause2Io2I_CC0_CC0_CC0 | or_friendsIo2po9I_wclause2Io2I_CC0_CC0_CC0 friendsIo2po10I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io2I_CC0 | or_friendsIo2po10I_wclause2Io2I_CC0_CC0_CC0 smokesIo2I ) { data = (1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause2Io2I { label = "wclause2(o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause2Io2I | wclause2Io2I_CC0 ) { data = (0.8998 0.1002 0.0 1.0 ); } node wclause1Io8po9po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po10I_CC0_CC1 | friendsIo9po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po10I_CC0 | friendsIo8po9I wclause1Io8po9po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po10I { label = "wclause1(o8,o9,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po10I | wclause1Io8po9po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po10I_CC0_CC1 | friendsIo1po10I friendsIo9po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po10I_CC0 | friendsIo9po1I wclause1Io9po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po10I { label = "wclause1(o9,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po10I | wclause1Io9po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po10I_CC0 | friendsIo8po8I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io8po8po10I { label = "wclause1(o8,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po8po10I | wclause1Io8po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po10I_CC0_CC1 | friendsIo8po10I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po10I_CC0 | friendsIo1po8I wclause1Io1po8po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po10I { label = "wclause1(o1,o8,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po10I | wclause1Io1po8po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po10I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po10I_CC0_CC1 | friendsIo1po10I friendsIo8po10I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po10I_CC0 | friendsIo8po1I wclause1Io8po1po10I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po10I { label = "wclause1(o8,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po10I | wclause1Io8po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po9I_CC0_CC1 | friendsIo7po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po9I_CC0 | friendsIo9po7I wclause1Io9po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po7po9I { label = "wclause1(o9,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po7po9I | wclause1Io9po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po9I_CC0_CC1 | friendsIo6po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po9I_CC0 | friendsIo9po6I wclause1Io9po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po6po9I { label = "wclause1(o9,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po6po9I | wclause1Io9po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po9I_CC0_CC1 | friendsIo5po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po9I_CC0 | friendsIo9po5I wclause1Io9po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po5po9I { label = "wclause1(o9,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po5po9I | wclause1Io9po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po9I_CC0_CC1 | friendsIo4po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po9I_CC0 | friendsIo9po4I wclause1Io9po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po4po9I { label = "wclause1(o9,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po4po9I | wclause1Io9po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po9I_CC0_CC1 | friendsIo3po9I friendsIo9po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po9I_CC0 | friendsIo9po3I wclause1Io9po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po3po9I { label = "wclause1(o9,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po3po9I | wclause1Io9po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po1I_CC0_CC1 | friendsIo9po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po1I_CC0 | friendsIo1po9I wclause1Io1po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po9po1I { label = "wclause1(o1,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po9po1I | wclause1Io1po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po1I_CC0_CC1 | friendsIo9po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po1I_CC0 | friendsIo2po9I wclause1Io2po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po9po1I { label = "wclause1(o2,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po9po1I | wclause1Io2po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po1I_CC0_CC1 | friendsIo9po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po1I_CC0 | friendsIo3po9I wclause1Io3po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po9po1I { label = "wclause1(o3,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po9po1I | wclause1Io3po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po1I_CC0_CC1 | friendsIo9po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po1I_CC0 | friendsIo4po9I wclause1Io4po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po9po1I { label = "wclause1(o4,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po9po1I | wclause1Io4po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po1I_CC0_CC1 | friendsIo9po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po1I_CC0 | friendsIo5po9I wclause1Io5po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po9po1I { label = "wclause1(o5,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po9po1I | wclause1Io5po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po1I_CC0_CC1 | friendsIo9po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po1I_CC0 | friendsIo7po9I wclause1Io7po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po9po1I { label = "wclause1(o7,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po9po1I | wclause1Io7po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po9po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po1I_CC0_CC1 | friendsIo9po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po1I_CC0 | friendsIo8po9I wclause1Io8po9po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po9po1I { label = "wclause1(o8,o9,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po9po1I | wclause1Io8po9po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io9po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po1I_CC0_CC1 | friendsIo1po1I friendsIo9po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po1I_CC0 | friendsIo9po1I wclause1Io9po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io9po1po1I { label = "wclause1(o9,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io9po1po1I | wclause1Io9po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po9I_CC0_CC1 | friendsIo6po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po9I_CC0 | friendsIo7po6I wclause1Io7po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po6po9I { label = "wclause1(o7,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po6po9I | wclause1Io7po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po9I_CC0_CC1 | friendsIo6po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po9I_CC0 | friendsIo8po6I wclause1Io8po6po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po9I { label = "wclause1(o8,o6,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po9I | wclause1Io8po6po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po9I_CC0_CC1 | friendsIo7po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po9I_CC0 | friendsIo5po7I wclause1Io5po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po9I { label = "wclause1(o5,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po9I | wclause1Io5po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po9I_CC0_CC1 | friendsIo8po9I friendsIo5po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po9I_CC0 | friendsIo5po8I wclause1Io5po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po8po9I { label = "wclause1(o5,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po8po9I | wclause1Io5po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po9I_CC0_CC1 | friendsIo5po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po9I_CC0 | friendsIo7po5I wclause1Io7po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po9I { label = "wclause1(o7,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po9I | wclause1Io7po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po9I_CC0_CC1 | friendsIo5po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po9I_CC0 | friendsIo8po5I wclause1Io8po5po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po9I { label = "wclause1(o8,o5,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po9I | wclause1Io8po5po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po9I_CC0_CC1 | friendsIo7po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po9I_CC0 | friendsIo4po7I wclause1Io4po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po9I { label = "wclause1(o4,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po9I | wclause1Io4po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po9I_CC0_CC1 | friendsIo8po9I friendsIo4po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po9I_CC0 | friendsIo4po8I wclause1Io4po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po9I { label = "wclause1(o4,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po9I | wclause1Io4po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po9I_CC0_CC1 | friendsIo4po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po9I_CC0 | friendsIo7po4I wclause1Io7po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po9I { label = "wclause1(o7,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po9I | wclause1Io7po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po9I_CC0_CC1 | friendsIo4po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po9I_CC0 | friendsIo8po4I wclause1Io8po4po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po9I { label = "wclause1(o8,o4,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po9I | wclause1Io8po4po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po9I_CC0_CC1 | friendsIo7po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po9I_CC0 | friendsIo3po7I wclause1Io3po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po9I { label = "wclause1(o3,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po9I | wclause1Io3po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po9I_CC0_CC1 | friendsIo8po9I friendsIo3po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po9I_CC0 | friendsIo3po8I wclause1Io3po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po9I { label = "wclause1(o3,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po9I | wclause1Io3po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po9I_CC0_CC1 | friendsIo3po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po9I_CC0 | friendsIo7po3I wclause1Io7po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po9I { label = "wclause1(o7,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po9I | wclause1Io7po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po9I_CC0_CC1 | friendsIo3po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po9I_CC0 | friendsIo8po3I wclause1Io8po3po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po9I { label = "wclause1(o8,o3,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po9I | wclause1Io8po3po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po9I_CC0_CC1 | friendsIo7po9I friendsIo2po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po9I_CC0 | friendsIo2po7I wclause1Io2po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po9I { label = "wclause1(o2,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po9I | wclause1Io2po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po9I_CC0_CC1 | friendsIo2po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po9I_CC0 | friendsIo7po2I wclause1Io7po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po9I { label = "wclause1(o7,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po9I | wclause1Io7po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po2po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po9I_CC0_CC1 | friendsIo2po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po9I_CC0 | friendsIo8po2I wclause1Io8po2po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po2po9I { label = "wclause1(o8,o2,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po2po9I | wclause1Io8po2po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po9I_CC0_CC1 | friendsIo8po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po9I_CC0 | friendsIo7po8I wclause1Io7po8po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po9I { label = "wclause1(o7,o8,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po9I | wclause1Io7po8po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po9I_CC0_CC1 | friendsIo1po9I friendsIo8po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po9I_CC0 | friendsIo8po1I wclause1Io8po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po9I { label = "wclause1(o8,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po9I | wclause1Io8po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po9I_CC0 | friendsIo7po7I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io7po7po9I { label = "wclause1(o7,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po7po9I | wclause1Io7po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po9I_CC0_CC1 | friendsIo7po9I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po9I_CC0 | friendsIo1po7I wclause1Io1po7po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po9I { label = "wclause1(o1,o7,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po9I | wclause1Io1po7po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po9I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po9I_CC0_CC1 | friendsIo1po9I friendsIo7po9I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po9I_CC0 | friendsIo7po1I wclause1Io7po1po9I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po9I { label = "wclause1(o7,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po9I | wclause1Io7po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po8I_CC0_CC1 | friendsIo6po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po8I_CC0 | friendsIo8po6I wclause1Io8po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po6po8I { label = "wclause1(o8,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po6po8I | wclause1Io8po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po8I_CC0_CC1 | friendsIo5po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po8I_CC0 | friendsIo8po5I wclause1Io8po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po5po8I { label = "wclause1(o8,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po5po8I | wclause1Io8po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po8I_CC0_CC1 | friendsIo4po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po8I_CC0 | friendsIo8po4I wclause1Io8po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po4po8I { label = "wclause1(o8,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po4po8I | wclause1Io8po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po8I_CC0_CC1 | friendsIo3po8I friendsIo8po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po8I_CC0 | friendsIo8po3I wclause1Io8po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po3po8I { label = "wclause1(o8,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po3po8I | wclause1Io8po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po1I_CC0_CC1 | friendsIo8po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po1I_CC0 | friendsIo1po8I wclause1Io1po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po8po1I { label = "wclause1(o1,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po8po1I | wclause1Io1po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po1I_CC0_CC1 | friendsIo8po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po1I_CC0 | friendsIo2po8I wclause1Io2po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po8po1I { label = "wclause1(o2,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po8po1I | wclause1Io2po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po1I_CC0_CC1 | friendsIo8po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po1I_CC0 | friendsIo3po8I wclause1Io3po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po8po1I { label = "wclause1(o3,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po8po1I | wclause1Io3po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po1I_CC0_CC1 | friendsIo8po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po1I_CC0 | friendsIo4po8I wclause1Io4po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po8po1I { label = "wclause1(o4,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po8po1I | wclause1Io4po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po1I_CC0_CC1 | friendsIo8po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po1I_CC0 | friendsIo6po8I wclause1Io6po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po8po1I { label = "wclause1(o6,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po8po1I | wclause1Io6po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po8po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po1I_CC0_CC1 | friendsIo8po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po1I_CC0 | friendsIo7po8I wclause1Io7po8po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po8po1I { label = "wclause1(o7,o8,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po8po1I | wclause1Io7po8po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io8po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po1I_CC0_CC1 | friendsIo1po1I friendsIo8po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po1I_CC0 | friendsIo8po1I wclause1Io8po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io8po1po1I { label = "wclause1(o8,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io8po1po1I | wclause1Io8po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po8I_CC0_CC1 | friendsIo5po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po8I_CC0 | friendsIo6po5I wclause1Io6po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po5po8I { label = "wclause1(o6,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po5po8I | wclause1Io6po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po8I_CC0_CC1 | friendsIo5po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po8I_CC0 | friendsIo7po5I wclause1Io7po5po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po8I { label = "wclause1(o7,o5,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po8I | wclause1Io7po5po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po8I_CC0_CC1 | friendsIo6po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po8I_CC0 | friendsIo4po6I wclause1Io4po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po8I { label = "wclause1(o4,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po8I | wclause1Io4po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po8I_CC0_CC1 | friendsIo7po8I friendsIo4po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po8I_CC0 | friendsIo4po7I wclause1Io4po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po7po8I { label = "wclause1(o4,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po7po8I | wclause1Io4po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po8I_CC0_CC1 | friendsIo4po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po8I_CC0 | friendsIo6po4I wclause1Io6po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po8I { label = "wclause1(o6,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po8I | wclause1Io6po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po8I_CC0_CC1 | friendsIo4po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po8I_CC0 | friendsIo7po4I wclause1Io7po4po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po8I { label = "wclause1(o7,o4,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po8I | wclause1Io7po4po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po8I_CC0_CC1 | friendsIo6po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po8I_CC0 | friendsIo3po6I wclause1Io3po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po8I { label = "wclause1(o3,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po8I | wclause1Io3po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po8I_CC0_CC1 | friendsIo7po8I friendsIo3po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po8I_CC0 | friendsIo3po7I wclause1Io3po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po8I { label = "wclause1(o3,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po8I | wclause1Io3po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po8I_CC0_CC1 | friendsIo3po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po8I_CC0 | friendsIo6po3I wclause1Io6po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po8I { label = "wclause1(o6,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po8I | wclause1Io6po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po8I_CC0_CC1 | friendsIo3po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po8I_CC0 | friendsIo7po3I wclause1Io7po3po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po8I { label = "wclause1(o7,o3,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po8I | wclause1Io7po3po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po8I_CC0_CC1 | friendsIo6po8I friendsIo2po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po8I_CC0 | friendsIo2po6I wclause1Io2po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po8I { label = "wclause1(o2,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po8I | wclause1Io2po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po8I_CC0_CC1 | friendsIo2po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po8I_CC0 | friendsIo6po2I wclause1Io6po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po8I { label = "wclause1(o6,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po8I | wclause1Io6po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po2po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po8I_CC0_CC1 | friendsIo2po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po8I_CC0 | friendsIo7po2I wclause1Io7po2po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po2po8I { label = "wclause1(o7,o2,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po2po8I | wclause1Io7po2po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po8I_CC0_CC1 | friendsIo7po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po8I_CC0 | friendsIo6po7I wclause1Io6po7po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po8I { label = "wclause1(o6,o7,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po8I | wclause1Io6po7po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po8I_CC0_CC1 | friendsIo1po8I friendsIo7po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po8I_CC0 | friendsIo7po1I wclause1Io7po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po8I { label = "wclause1(o7,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po8I | wclause1Io7po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po8I_CC0 | friendsIo6po6I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io6po6po8I { label = "wclause1(o6,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po6po8I | wclause1Io6po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po8I_CC0_CC1 | friendsIo6po8I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po8I_CC0 | friendsIo1po6I wclause1Io1po6po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po8I { label = "wclause1(o1,o6,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po8I | wclause1Io1po6po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po8I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po8I_CC0_CC1 | friendsIo1po8I friendsIo6po8I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po8I_CC0 | friendsIo6po1I wclause1Io6po1po8I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po8I { label = "wclause1(o6,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po8I | wclause1Io6po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po7I_CC0_CC1 | friendsIo5po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po7I_CC0 | friendsIo7po5I wclause1Io7po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po5po7I { label = "wclause1(o7,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po5po7I | wclause1Io7po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po7I_CC0_CC1 | friendsIo4po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po7I_CC0 | friendsIo7po4I wclause1Io7po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po4po7I { label = "wclause1(o7,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po4po7I | wclause1Io7po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po7I_CC0_CC1 | friendsIo3po7I friendsIo7po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po7I_CC0 | friendsIo7po3I wclause1Io7po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po3po7I { label = "wclause1(o7,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po3po7I | wclause1Io7po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po1I_CC0_CC1 | friendsIo7po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po1I_CC0 | friendsIo1po7I wclause1Io1po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po7po1I { label = "wclause1(o1,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po7po1I | wclause1Io1po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po1I_CC0_CC1 | friendsIo7po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po1I_CC0 | friendsIo2po7I wclause1Io2po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po7po1I { label = "wclause1(o2,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po7po1I | wclause1Io2po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po1I_CC0_CC1 | friendsIo7po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po1I_CC0 | friendsIo3po7I wclause1Io3po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po7po1I { label = "wclause1(o3,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po7po1I | wclause1Io3po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po1I_CC0_CC1 | friendsIo7po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po1I_CC0 | friendsIo5po7I wclause1Io5po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po7po1I { label = "wclause1(o5,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po7po1I | wclause1Io5po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po7po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po1I_CC0_CC1 | friendsIo7po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po1I_CC0 | friendsIo6po7I wclause1Io6po7po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po7po1I { label = "wclause1(o6,o7,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po7po1I | wclause1Io6po7po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io7po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po1I_CC0_CC1 | friendsIo1po1I friendsIo7po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po1I_CC0 | friendsIo7po1I wclause1Io7po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io7po1po1I { label = "wclause1(o7,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io7po1po1I | wclause1Io7po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po7I_CC0_CC1 | friendsIo4po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po7I_CC0 | friendsIo5po4I wclause1Io5po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po4po7I { label = "wclause1(o5,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po4po7I | wclause1Io5po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po7I_CC0_CC1 | friendsIo4po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po7I_CC0 | friendsIo6po4I wclause1Io6po4po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po7I { label = "wclause1(o6,o4,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po7I | wclause1Io6po4po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po7I_CC0_CC1 | friendsIo5po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po7I_CC0 | friendsIo3po5I wclause1Io3po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po7I { label = "wclause1(o3,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po7I | wclause1Io3po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po7I_CC0_CC1 | friendsIo6po7I friendsIo3po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po7I_CC0 | friendsIo3po6I wclause1Io3po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po6po7I { label = "wclause1(o3,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po6po7I | wclause1Io3po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po7I_CC0_CC1 | friendsIo3po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po7I_CC0 | friendsIo5po3I wclause1Io5po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po7I { label = "wclause1(o5,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po7I | wclause1Io5po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po7I_CC0_CC1 | friendsIo3po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po7I_CC0 | friendsIo6po3I wclause1Io6po3po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po7I { label = "wclause1(o6,o3,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po7I | wclause1Io6po3po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po7I_CC0_CC1 | friendsIo5po7I friendsIo2po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po7I_CC0 | friendsIo2po5I wclause1Io2po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po5po7I { label = "wclause1(o2,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po5po7I | wclause1Io2po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po7I_CC0_CC1 | friendsIo2po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po7I_CC0 | friendsIo5po2I wclause1Io5po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po7I { label = "wclause1(o5,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po7I | wclause1Io5po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po2po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po7I_CC0_CC1 | friendsIo2po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po7I_CC0 | friendsIo6po2I wclause1Io6po2po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po2po7I { label = "wclause1(o6,o2,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po2po7I | wclause1Io6po2po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po7I_CC0_CC1 | friendsIo6po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po7I_CC0 | friendsIo5po6I wclause1Io5po6po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po7I { label = "wclause1(o5,o6,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po7I | wclause1Io5po6po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po7I_CC0_CC1 | friendsIo1po7I friendsIo6po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po7I_CC0 | friendsIo6po1I wclause1Io6po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po7I { label = "wclause1(o6,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po7I | wclause1Io6po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po7I_CC0 | friendsIo5po5I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io5po5po7I { label = "wclause1(o5,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po5po7I | wclause1Io5po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po7I_CC0_CC1 | friendsIo5po7I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po7I_CC0 | friendsIo1po5I wclause1Io1po5po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po7I { label = "wclause1(o1,o5,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po7I | wclause1Io1po5po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po7I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po7I_CC0_CC1 | friendsIo1po7I friendsIo5po7I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po7I_CC0 | friendsIo5po1I wclause1Io5po1po7I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po7I { label = "wclause1(o5,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po7I | wclause1Io5po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po6I_CC0_CC1 | friendsIo4po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po6I_CC0 | friendsIo6po4I wclause1Io6po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po4po6I { label = "wclause1(o6,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po4po6I | wclause1Io6po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po6I_CC0_CC1 | friendsIo3po6I friendsIo6po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po6I_CC0 | friendsIo6po3I wclause1Io6po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po3po6I { label = "wclause1(o6,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po3po6I | wclause1Io6po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po1I_CC0_CC1 | friendsIo6po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po1I_CC0 | friendsIo1po6I wclause1Io1po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po6po1I { label = "wclause1(o1,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po6po1I | wclause1Io1po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po1I_CC0_CC1 | friendsIo6po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po1I_CC0 | friendsIo2po6I wclause1Io2po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po6po1I { label = "wclause1(o2,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po6po1I | wclause1Io2po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po1I_CC0_CC1 | friendsIo6po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po1I_CC0 | friendsIo4po6I wclause1Io4po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po6po1I { label = "wclause1(o4,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po6po1I | wclause1Io4po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po6po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po1I_CC0_CC1 | friendsIo6po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po1I_CC0 | friendsIo5po6I wclause1Io5po6po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po6po1I { label = "wclause1(o5,o6,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po6po1I | wclause1Io5po6po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io6po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po1I_CC0_CC1 | friendsIo1po1I friendsIo6po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po1I_CC0 | friendsIo6po1I wclause1Io6po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io6po1po1I { label = "wclause1(o6,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io6po1po1I | wclause1Io6po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po6I_CC0_CC1 | friendsIo3po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po6I_CC0 | friendsIo4po3I wclause1Io4po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po3po6I { label = "wclause1(o4,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po3po6I | wclause1Io4po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po6I_CC0_CC1 | friendsIo3po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po6I_CC0 | friendsIo5po3I wclause1Io5po3po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po6I { label = "wclause1(o5,o3,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po6I | wclause1Io5po3po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po6I_CC0_CC1 | friendsIo4po6I friendsIo2po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po6I_CC0 | friendsIo2po4I wclause1Io2po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po6I { label = "wclause1(o2,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po6I | wclause1Io2po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po6I_CC0_CC1 | friendsIo2po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po6I_CC0 | friendsIo4po2I wclause1Io4po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po6I { label = "wclause1(o4,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po6I | wclause1Io4po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po2po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po6I_CC0_CC1 | friendsIo2po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po6I_CC0 | friendsIo5po2I wclause1Io5po2po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po2po6I { label = "wclause1(o5,o2,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po2po6I | wclause1Io5po2po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po6I_CC0_CC1 | friendsIo5po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po6I_CC0 | friendsIo4po5I wclause1Io4po5po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po6I { label = "wclause1(o4,o5,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po6I | wclause1Io4po5po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po6I_CC0_CC1 | friendsIo1po6I friendsIo5po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po6I_CC0 | friendsIo5po1I wclause1Io5po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po6I { label = "wclause1(o5,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po6I | wclause1Io5po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po6I_CC0 | friendsIo4po4I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io4po4po6I { label = "wclause1(o4,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po4po6I | wclause1Io4po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po6I_CC0_CC1 | friendsIo4po6I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po6I_CC0 | friendsIo1po4I wclause1Io1po4po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po6I { label = "wclause1(o1,o4,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po6I | wclause1Io1po4po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po6I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po6I_CC0_CC1 | friendsIo1po6I friendsIo4po6I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po6I_CC0 | friendsIo4po1I wclause1Io4po1po6I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po6I { label = "wclause1(o4,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po6I | wclause1Io4po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po5I_CC0_CC1 | friendsIo3po5I friendsIo5po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po5I_CC0 | friendsIo5po3I wclause1Io5po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po3po5I { label = "wclause1(o5,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po3po5I | wclause1Io5po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po1I_CC0_CC1 | friendsIo5po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po1I_CC0 | friendsIo1po5I wclause1Io1po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po5po1I { label = "wclause1(o1,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po5po1I | wclause1Io1po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po1I_CC0_CC1 | friendsIo5po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po1I_CC0 | friendsIo3po5I wclause1Io3po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po5po1I { label = "wclause1(o3,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po5po1I | wclause1Io3po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po5po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po1I_CC0_CC1 | friendsIo5po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po1I_CC0 | friendsIo4po5I wclause1Io4po5po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po5po1I { label = "wclause1(o4,o5,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po5po1I | wclause1Io4po5po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io5po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po1I_CC0_CC1 | friendsIo1po1I friendsIo5po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po1I_CC0 | friendsIo5po1I wclause1Io5po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io5po1po1I { label = "wclause1(o5,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io5po1po1I | wclause1Io5po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po5I_CC0_CC1 | friendsIo2po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po5I_CC0 | friendsIo3po2I wclause1Io3po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po2po5I { label = "wclause1(o3,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po2po5I | wclause1Io3po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po2po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po5I_CC0_CC1 | friendsIo2po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po5I_CC0 | friendsIo4po2I wclause1Io4po2po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po2po5I { label = "wclause1(o4,o2,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po2po5I | wclause1Io4po2po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po4po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po5I_CC0_CC1 | friendsIo4po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po5I_CC0 | friendsIo3po4I wclause1Io3po4po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po4po5I { label = "wclause1(o3,o4,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po4po5I | wclause1Io3po4po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po5I_CC0_CC1 | friendsIo1po5I friendsIo4po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po5I_CC0 | friendsIo4po1I wclause1Io4po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po5I { label = "wclause1(o4,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po5I | wclause1Io4po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po5I_CC0 | friendsIo3po3I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io3po3po5I { label = "wclause1(o3,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po3po5I | wclause1Io3po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po5I_CC0_CC1 | friendsIo3po5I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po5I_CC0 | friendsIo1po3I wclause1Io1po3po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po5I { label = "wclause1(o1,o3,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po5I | wclause1Io1po3po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po5I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po5I_CC0_CC1 | friendsIo1po5I friendsIo3po5I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po5I_CC0 | friendsIo3po1I wclause1Io3po1po5I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po5I { label = "wclause1(o3,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po5I | wclause1Io3po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po1I_CC0_CC1 | friendsIo4po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po1I_CC0 | friendsIo1po4I wclause1Io1po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po4po1I { label = "wclause1(o1,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po4po1I | wclause1Io1po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po4po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po1I_CC0_CC1 | friendsIo4po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po1I_CC0 | friendsIo2po4I wclause1Io2po4po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po4po1I { label = "wclause1(o2,o4,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po4po1I | wclause1Io2po4po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io4po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po1I_CC0_CC1 | friendsIo1po1I friendsIo4po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po1I_CC0 | friendsIo4po1I wclause1Io4po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io4po1po1I { label = "wclause1(o4,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io4po1po1I | wclause1Io4po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po4I_CC0 | friendsIo2po2I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io2po2po4I { label = "wclause1(o2,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po2po4I | wclause1Io2po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po2po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po4I_CC0_CC1 | friendsIo2po4I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po4I_CC0 | friendsIo1po2I wclause1Io1po2po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po4I { label = "wclause1(o1,o2,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po4I | wclause1Io1po2po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po4I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po4I_CC0_CC1 | friendsIo1po4I friendsIo2po4I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po4I_CC0 | friendsIo2po1I wclause1Io2po1po4I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po4I { label = "wclause1(o2,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po4I | wclause1Io2po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po3po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po1I_CC0_CC1 | friendsIo3po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po1I_CC0 | friendsIo1po3I wclause1Io1po3po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po3po1I { label = "wclause1(o1,o3,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po3po1I | wclause1Io1po3po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io3po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po1I_CC0_CC1 | friendsIo1po1I friendsIo3po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po1I_CC0 | friendsIo3po1I wclause1Io3po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io3po1po1I { label = "wclause1(o3,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io3po1po1I | wclause1Io3po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause4Io2po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po2I_CC0 | friendsIo2po2I smokesIo2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause4Io2po2I { label = "wclause4(o2,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause4Io2po2I | wclause4Io2po2I_CC0 ) { data = (0.66713 0.33287 0.0 1.0 ); } node wclause1Io1po2po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po1I_CC0_CC1 | friendsIo2po1I friendsIo1po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po1I_CC0 | friendsIo1po2I wclause1Io1po2po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io1po2po1I { label = "wclause1(o1,o2,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po2po1I | wclause1Io1po2po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io2po1po1I_CC0_CC1 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po1I_CC0_CC1 | friendsIo1po1I friendsIo2po1I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po1I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po1I_CC0 | friendsIo2po1I wclause1Io2po1po1I_CC0_CC1 ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause1Io2po1po1I { label = "wclause1(o2,o1,o1)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io2po1po1I | wclause1Io2po1po1I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node cancerIo2I { label = "cancer(o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (cancerIo2I) { data = (0.5 0.5 ); } node wclause3Io2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io2I_CC0 | smokesIo2I cancerIo2I ) { data = (0.0 1.0 0.0 1.0 1.0 0.0 0.0 1.0 ); } node wclause3Io2I { label = "wclause3(o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause3Io2I | wclause3Io2I_CC0 ) { data = (0.77687 0.22313 0.0 1.0 ); } node wclause1Io1po1po10I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po10I_CC0 | friendsIo1po1I friendsIo1po10I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po10I { label = "wclause1(o1,o1,o10)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po10I | wclause1Io1po1po10I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po9I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po9I_CC0 | friendsIo1po1I friendsIo1po9I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po9I { label = "wclause1(o1,o1,o9)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po9I | wclause1Io1po1po9I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po8I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po8I_CC0 | friendsIo1po1I friendsIo1po8I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po8I { label = "wclause1(o1,o1,o8)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po8I | wclause1Io1po1po8I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po7I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po7I_CC0 | friendsIo1po1I friendsIo1po7I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po7I { label = "wclause1(o1,o1,o7)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po7I | wclause1Io1po1po7I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po6I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po6I_CC0 | friendsIo1po1I friendsIo1po6I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po6I { label = "wclause1(o1,o1,o6)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po6I | wclause1Io1po1po6I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po5I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po5I_CC0 | friendsIo1po1I friendsIo1po5I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po5I { label = "wclause1(o1,o1,o5)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po5I | wclause1Io1po1po5I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po4I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po4I_CC0 | friendsIo1po1I friendsIo1po4I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po4I { label = "wclause1(o1,o1,o4)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po4I | wclause1Io1po1po4I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po3I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po3I_CC0 | friendsIo1po1I friendsIo1po3I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po3I { label = "wclause1(o1,o1,o3)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po3I | wclause1Io1po1po3I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); } node wclause1Io1po1po2I_CC0 { label = "aux"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po2I_CC0 | friendsIo1po1I friendsIo1po2I ) { data = (0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ); } node wclause1Io1po1po2I { label = "wclause1(o1,o1,o2)"; position = (0 100); states = ("false" "true"); subtype = boolean; } potential (wclause1Io1po1po2I | wclause1Io1po1po2I_CC0 ) { data = (0.50342 0.49658 0.0 1.0 ); }
811,748
Common Lisp
.l
44,793
16.424553
122
0.693256
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
8b1d81fb13eee7399cc0a072e07aa68c3e97136364629c00990b36a7cf3f1e5f
6,314
[ -1 ]
6,315
simple.dne
lhope_cl-bayesnet/nets/simple.dne
// ~->[DNET-1]->~ // File created by someone at MonashU using Netica 3.19 on Aug 31, 2007 at 19:01:05. bnet simple { AutoCompile = TRUE; autoupdate = TRUE; whenchanged = 1188550832; visual V1 { defdispform = BELIEFBARS; nodelabeling = TITLE; NodeMaxNumEntries = 50; nodefont = font {shape= "Arial"; size= 10;}; linkfont = font {shape= "Arial"; size= 9;}; windowposn = (44, 44, 756, 513); resolution = 72; drawingbounds = (1044, 769); showpagebreaks = FALSE; usegrid = TRUE; gridspace = (6, 6); NodeSet Node {BuiltIn = 1; Color = 0xc0c0c0;}; NodeSet Nature {BuiltIn = 1; Color = 0xf8eed2;}; NodeSet Deterministic {BuiltIn = 1; Color = 0xd3caa6;}; NodeSet Finding {BuiltIn = 1; Color = 0xc8c8c8;}; NodeSet Constant {BuiltIn = 1; Color = 0xffffff;}; NodeSet ConstantValue {BuiltIn = 1; Color = 0xffffb4;}; NodeSet Utility {BuiltIn = 1; Color = 0xffbdbd;}; NodeSet Decision {BuiltIn = 1; Color = 0xdee8ff;}; NodeSet Documentation {BuiltIn = 1; Color = 0xf0fafa;}; NodeSet Title {BuiltIn = 1; Color = 0xffffff;}; PrinterSetting A { margins = (1270, 1270, 1270, 1270); landscape = FALSE; magnify = 1; }; }; node A { kind = NATURE; discrete = TRUE; chance = CHANCE; numstates = 2; parents = (); probs = // state0 state1 (0.5, 0.5); whenchanged = 1188550827; belief = (0.5, 0.5); visual V1 { center = (288, 108); height = 1; }; }; node B { kind = NATURE; discrete = TRUE; chance = CHANCE; numstates = 2; parents = (A); probs = // state0 state1 // A ((0.8, 0.2), // state0 (0.2, 0.8)); // state1 ; whenchanged = 1188550832; belief = (0.5, 0.5); visual V1 { center = (138, 270); height = 3; }; }; node C { kind = NATURE; discrete = TRUE; chance = CHANCE; numstates = 2; parents = (A); probs = // state0 state1 // A ((0.4, 0.6), // state0 (0.6, 0.4)); // state1 ; whenchanged = 1188550819; belief = (0.5, 0.5); visual V1 { center = (438, 270); height = 2; }; }; ElimOrder = (B, A, C); };
2,210
Common Lisp
.l
86
22.081395
85
0.576231
lhope/cl-bayesnet
26
9
1
LGPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
14e5ad8759efcfa9ac453076f73a625de7a5b9cdbfe0e4f9ff2ea30a0c9a034d
6,315
[ -1 ]
6,330
ontolisp.asd
lambdamikel_OntoLisp/ontolisp-0.9/ontolisp.asd
;;; -*- Mode: LISP; Syntax: Common-Lisp; Package: asdf -*- (in-package :asdf) ;;; ;;;; ontolisp.asd ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Provides the ASDF system definition of OntoLisp (NOSA) ;;; (defsystem :ontolisp :name "OntoLisp (NOSA)" :author "Michael Wessel" :version "0.9" :maintainer "Michael Wessel <[email protected]>" :licence "Lisp Lesser GNU Public License (LLGPL)" :description "A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp" :long-description "Offers parsers and renderers for OWL 2 as well as an OWLlink implementation. Contains an ontology management framework inspired by the Java OWLAPI (v2.2). Tested with: LispWorks 5.2, ACL 8.2, SBCL 1.0.40" :depends-on (:dexador :wilbur) :components ((:module "owlapi" :serial t :pathname "" :components ((:file "owlapi-package") (:file "owlapi-tools") (:file "owlapi") (:file "owlapi-synonyms"))) #+:ignore (:module reasoner-bridge-for-owlapi :serial t :pathname "" :components ((:file "owlapi-reasoner-bridge")) :depends-on (:owlapi)) (:module "owl-syntaxes" :serial t :pathname "" :components ((:file "owl-syntaxes-package") (:file "http-stream") (:file "owl-import") (:file "owl-functional") (:file "functional-renderer") (:file "owllink-parsers") (:file "owllink-functional") (:file "xml-renderer") (:file "owl-renderer") (:file "owllink-xml") (:file "import-export") (:file "owllink-converter") (:file "owlapi-test")) :depends-on (:owlapi)) #+:ignore (:module reasoner-bridge-for-owllink :serial t :pathname "" :components ((:file "owllink-reasoner-bridge")) :depends-on (:owl-syntaxes)) (:file "dummy-functions" :depends-on (:owlapi :owl-syntaxes)) (:module "tests" :serial t :pathname "" :components ((:file "ontolisp") (:file "owlapi-test") (:file "owl-syntaxes-test")) :depends-on (:owl-syntaxes "dummy-functions"))))
7,164
Common Lisp
.lisp
141
45.64539
101
0.649558
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
8fa22a3b8a5b10c3f9976893a38c1929740f193f946a00424c22916e92e3e8a0
6,330
[ -1 ]
6,331
owlapi-tools.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owlapi-tools.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWLAPI; Base: 10 -*- (in-package :owlapi) ;;; ;;;; owlapi-tools.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Some auxiliary functions for the OWLAPI ;;; (defvar *sym-count* 0) (defconstant +secret-prefix+ 'secret-cdsc7897qcjk) (defconstant +default-hash-table-size+ 100) (defun set-equal (a b &rest args) (and (apply #'subsetp a b args) (apply #'subsetp b a args))) #-:racer-server (defun to-keyword (x) (intern (format nil "~A" x) :keyword)) (defun ensure-list (arg) (if (listp arg) arg (list arg))) (defun ensure-string (string) (if (stringp string) string (if (symbolp string) (symbol-name string) (format nil "~A" string)))) ;;; ;;; ;;; (defun ends-with-#-p (prefix) (let ((string (ensure-string prefix))) (unless (zerop (length string)) (char= #\# (elt string (1- (length string))))))) (defun starts-with-#-p (prefix) (let ((string (ensure-string prefix))) (unless (zerop (length string)) (char= #\# (elt string 0))))) (defun without-# (string) (if (stringp string) (let ((n (length string))) (if (char= #\# (elt string (1- n))) (subseq string 0 (1- n)) string)) string)) (defun without-starting-# (string) (if (stringp string) (if (char= #\# (elt string 0)) (subseq string 1) string) string)) (defun with-# (string) (format nil "~A#" (without-# string))) ;;; ;;; ;;; (defun ends-with-colon-p (prefix) (let ((string (ensure-string prefix))) (unless (zerop (length string)) (char= #\: (elt string (1- (length string))))))) (defun ensure-ends-with-colon (prefix) (if (ends-with-colon-p prefix) prefix (let ((res (concatenate 'string (ensure-string prefix) ":"))) (etypecase prefix (keyword (to-keyword res)) (symbol (intern res)) (string res))))) (defun without-colon (prefix) (let ((prefix (ensure-string prefix))) (if (ends-with-colon-p prefix) (subseq prefix 0 (1- (length prefix))) prefix))) (defun get-prefix-postfix (symbol) (let* ((name (ensure-string symbol)) (pos (position #\: name))) (if pos (values (intern (subseq name 0 (1+ pos))) (intern (subseq name (1+ pos)))) (values nil symbol)))) ;;; ;;; ;;; #+:racer (defun mht (&key (size +default-hash-table-size+) (test #'eql)) (racer::racer-make-hash-table :size size :rehash-size 2.0 :test test)) #-:racer (defun mht (&key (size +default-hash-table-size+) (test #'eql)) (make-hash-table :size size :rehash-size 2.0 :test test)) (defun create-marker (&optional sym (new-p t)) (if sym (if new-p (intern (format nil "~A-~A-~A" +secret-prefix+ sym (incf *sym-count*)) :cl-user) (intern (format nil "~A-~A" +secret-prefix+ sym) :cl-user)) (intern (format nil "~A-~A" +secret-prefix+ (incf *sym-count*)) :cl-user))) #+:racer-server (defun owlapi-warning (string &rest args) (apply #'ts::nrql-warning (concatenate 'string "~%~%OWLAPI Warning: " (ensure-string string)) args)) #-:racer-server (defun owlapi-warning (string &rest args) (apply #'format t (concatenate 'string "~%~%OWLAPI Warning: " (ensure-string string)) args)) (defun owlapi-runtime-error (string &rest args) (apply #+:racer-server #'ts::nrql-error #-:racer-server #'error (concatenate 'string "OWLAPI Runtime Error: " (ensure-string string)) args)) (defun owlapi-parser-error (string &rest args) (apply #+:racer-server #'ts::nrql-error #-:racer-server #'error (concatenate 'string "OWLAPI Parser Error: " (ensure-string string)) args)) ;;; ;;; ;;; (eval-when (:compile-toplevel :load-toplevel :execute) (defun string-transform (string) (ecase (readtable-case *readtable*) (:upcase (if (char= (aref string 0) #\|) string (string-upcase string))) (:preserve string) (:downcase (string-downcase string))))) ;;; ;;; ;;; #+(or :racer-server (and :dlmaps (not :midelora))) (defmacro defpersistentclass (&rest rest) `(progn ,@(let ((name (first rest))) (list `(persistence-manager:defclass ,@rest) `(defun ,(intern (format nil "~A-~A-~A" (string-transform "is") name (string-transform "p"))) (obj) (typep obj ',name)))))) #-(or :racer-server (and :dlmaps (not :midelora))) (defmacro defpersistentclass (&rest rest) `(defclass ,@rest)) ;;; ;;; ;;; #+(or :racer-server (and :dlmaps (not :midelora))) (defmacro defpersistentstruct (name &rest args) `(persistence-manager::defstruct ,name ,@args)) #-(or :racer-server (and :dlmaps (not :midelora))) (defmacro defpersistentstruct (name &rest args) (let ((name (if (consp name) (remove-if (lambda (x) (and (consp x) (eq (first x) :package))) name) name))) `(defstruct ,name ,@args))) ;;; ;;; ;;; (defmacro owlapi-defun ((name &key doc dont-export) lambda-list &body body) #-:racer-server (declare (ignorable doc dont-export)) #+:racer-server `(nrql-defun (,name :doc ,doc :dont-export ,dont-export) ,lambda-list ,@body) #-:racer-server `(defun ,name ,lambda-list ,@body)) (defmacro owlapi-defmethod ((name &key doc dont-export) lambda-list &body body) #-:racer-server (declare (ignorable doc dont-export)) #+:racer-server `(nrql-defmethod (,name :doc ,doc :dont-export ,dont-export) ,lambda-list ,@body) #-:racer-server `(defmethod ,name ,lambda-list ,@body)) (defmacro => (a b) `(or (not ,a) ,b)) (defun is-url-p (x) (let ((name (if (symbolp x) (symbol-name x) x))) (or (and (> (length name) 6) (or (string-equal "http://" (subseq name 0 7)) (string-equal "file://" (subseq name 0 7)))) (and (> (length name) 7) (or (string-equal "https://" (subseq name 0 8))))))) (defun is-file-url-p (x) (let ((name (if (symbolp x) (symbol-name x) x))) (and (is-url-p x) (> (length name) 6) (string-equal "file://" (subseq name 0 7))))) (defun is-http-url-p (x) (let ((name (if (symbolp x) (symbol-name x) x))) (and (is-url-p x) (or (and (> (length name) 6) (string-equal "http://" (subseq name 0 7))) (and (> (length name) 7) (string-equal "https://" (subseq name 0 8))))))) (defparameter *replacements* `(("&" "&amp;" nil) ("!empty" "&nbsp;" nil) ("ä" "&auml;" nil) ("ö" "&ouml;" nil) ("ü" "&uuml;" nil) ("Ä" "&Auml;" nil) ("Ö" "&Ouml;" nil) ("Ü" "&Uuml;" nil) ("ß" "&szlig;" nil) ("<" "&lt;" nil) (">" "&gt;" nil) ("\\@" "&#64;" nil))) #-:racer-server (defun whitespace-char-p (char) #+:lispworks (lispworks:whitespace-char-p char) #+:allegro (stream::whitespace-char-p char) #+:sbcl (sb-impl:whitespace[2]p char) #+(and (not :allegro) (not :lispworks) (not :sbcl)) (to-be-implemented 'whitespace-char-p)) #-:racer-server (defun blank-line-p (line) (or (eq line 'newline) (and (typep line 'string) (not (position-if-not #'(lambda (i) (char= i #\space)) line))))) #-:racer-server (defun string-substitute (string &optional (rules *replacements*) &key add-spaces) (labels ((do-it (string akku) (cond ((blank-line-p string) akku) (t (let ((min-pos nil) (min-from-to)) (dolist (from-to rules) (let* ((from (first from-to)) (pos (search from string))) (when pos (if (or (not min-pos) (< pos min-pos)) (setf min-from-to from-to min-pos pos))))) (let ((from (first min-from-to)) (to (second min-from-to)) (replaced-as-new-input-p (third min-from-to))) (if min-pos (if replaced-as-new-input-p (do-it (concatenate 'string to (subseq string (+ min-pos (length from)))) (append akku (list (subseq string 0 min-pos)))) (do-it (subseq string (+ min-pos (length from))) (append akku (list (subseq string 0 min-pos)) (list to)))) (append akku (list string))))))))) (let ((res (do-it (if add-spaces (concatenate 'string " " string " ") string) nil))) (if res (reduce #'(lambda (x y) (concatenate 'string x y)) res) "")))) (defmacro defmethod1 (name lambda-list &body body) `(owlapi-defmethod (,name :dont-export t) ,lambda-list ,@body)) (defmacro defun1 (name lambda-list &body body) `(owlapi-defun (,name :dont-export t) ,lambda-list ,@body)) (defun string-to-boolean (x) (if (member x '(nil t)) x (when (stringp x) (cond ((string= x "true") t) ((string= x "false") nil) ((string= x "t") t) ((string= x "T") t) ((string= x "nil") nil) ((string= x "NIL") nil) (t nil))))) #+:racer-server (defun to-be-implemented (method) (nrql-error "~A: To be implemented" method)) #-:racer-server (defun to-be-implemented (method) (error "~A: To be implemented" method)) ;;; ;;; ;;; #-:racer-server (defun shrink-whitespaces (string) (if (stringp string) (if (every #'whitespace-char-p string) "" (let ((pos (or (position-if-not #'whitespace-char-p string) 0)) (pos2 (or (position-if-not #'whitespace-char-p string :from-end t) (1- (length string))))) (subseq string pos (1+ pos2)))) string)) (defun clean-url (url) (if url (let ((pos (position #\space url))) (if pos (concatenate 'string (subseq url 0 pos) "%20" (clean-url (subseq url (1+ pos)))) url)) "")) (defun decode-month (m) (case m (1 "January") (2 "February") (3 "March") (4 "April") (5 "May") (6 "June") (7 "July") (8 "August") (9 "September") (10 "October") (11 "November") (12 "December"))) (defun get-current-date () #+:racer-server (licgen::decode-date1 (get-universal-time) t) #-:racer-server (multiple-value-bind (s mi h d mo year) (decode-universal-time (get-universal-time)) (declare (ignorable s)) (format nil "~2,'0D ~2,'0D ~2,'0D, ~2,'0D:~2,'0D" (decode-month mo) d year h mi))) ;;; ;;; ;;; (defmacro define-constant (name value &optional doc) `(defconstant ,name (if (boundp ',name) (symbol-value ',name) ,value) ,@(when doc (list doc))))
16,793
Common Lisp
.lisp
452
29.659292
93
0.566564
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
68e71a252080828f9ba7598576c7c0dd32aa3857743ca78a30cce1605f2f8059
6,331
[ -1 ]
6,332
owllink-converter.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owllink-converter.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owllink-converter.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: A converter between the three different OWLlink syntaxes. ;;; And an OWLlink batch processor. ;;; (defun owllink-converter (directory &key (from :owllink-xml) (to :owllink-functional) (only-requests-p t)) (let ((owl-syntaxes:*owllink2-input-syntax* from) (owl-syntaxes:*owllink2-output-syntax* to) (*converter-mode* t)) (dolist (file (directory (format nil (if only-requests-p "~A/*request*.~A" "~A/*.~A") directory (case from ((:xml :owllink-xml) "xml") ((:owllink-functional) "funct") ((:owllink-sexpr) "sexpr"))))) (when (=> only-requests-p (not (search "response" (namestring file)))) (let ((file2 (format nil "~A/~A.~A.~A" directory (pathname-name file) (pathname-type file) (case to ((:xml :owllink-xml) "xml") ((:owllink-functional) "funct") ((:owllink-sexpr) "sexpr"))))) (format t "~%~%***********************************************************~%") (format t "~A~% ==>~%~A~%~%(~A ==> ~A)~%" (namestring file) (namestring file2) from to) (full-reset) (owllink-read-file1 file :input-syntax from :output-syntax to) ;; (pprint (result *my-owllink2-parser*)) (with-open-file (stream file2 :direction :output :if-exists :supersede :if-does-not-exist :create) (let ((*standard-output* stream)) (full-reset) (owllink-read-file1 file :input-syntax from :output-syntax to)))))))) (defun convert-all (directory &optional (only-requests-p t)) (dolist (output-syntax '(;:owllink-xml :owllink-functional :owllink-sexpr)) (owllink-converter directory :to output-syntax :only-requests-p only-requests-p))) (defun process-all (directory &optional output-syntax) (let (#+:racer-server (*tbox-verbose* nil) #+:racer-server (*abox-verbose* nil)) (dolist (from '(:owllink-xml :owllink-functional :owllink-sexpr)) (let ((to (or output-syntax from))) (dolist (file (directory (format nil "~A/*request*.~A" directory (case from ((:xml :owllink-xml) "xml") ((:owllink-functional) "funct") ((:owllink-sexpr) "sexpr"))))) (unless (search "response" (namestring file)) (let ((file2 (format nil "~A.response.~A" (namestring file) (case to ((:xml :owllink-xml) "xml") ((:owllink-functional) "funct") ((:owllink-sexpr) "sexpr"))))) (with-open-file (stream file2 :direction :output :if-exists :supersede :if-does-not-exist :create) (format t "~%~%***********************************************************~%") (format t "~A~% ==>~%~A~%~%(~A ==> ~A)~%" (namestring file) (namestring file2) from to) (full-reset) (owllink-read-file1 file :input-syntax from :output-syntax to) (let ((*standard-output* stream)) (full-reset) (owllink-read-file1 file :input-syntax from :output-syntax to))))))))))
9,595
Common Lisp
.lisp
171
43.076023
94
0.539532
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
6da5569d5e21ae57295544c86e7f4069693bf8b1c9ec7df044581e9db7c292d9
6,332
[ -1 ]
6,333
owllink-functional.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owllink-functional.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owllink-functional.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: The OWLlink functional processor. Core of the OWLlink implementation. ;;; (defparameter *owllink-major* "1") (defparameter *owllink-minor* "0") (defparameter *debug-p* nil) (defparameter *product-name* #+:racer-server (user:get-product-name) #-:racer-server "OntoLisp") (defparameter *product-version* #+:racer-server (user:get-product-version) #-:racer-server "0.9") (defparameter *product-build* #+:racer-server (user:get-build-id) #-:racer-server "2010-07-04") ;;; ;;; ;;; (defvar *owllink-reasoners* nil) (defvar *owllink-kb-and-reasoner* nil) #-:racer-server (defvar *use-unique-name-assumption* nil) ;;; ;;; ;;; (defparameter *owllink2-output-syntax* :owllink-xml) (defparameter *owllink2-input-syntax* :owllink-xml) ;;; ;;; ;;; (defvar *telling-active* nil) (defvar *last-request-xml-and-functional-namespaces* nil) (defvar *last-request-rendering-options* nil) (defvar *last-request-xml-base* nil) (defvar *owllink-kb-settings* (owlapi:mht :test #'equal)) (defvar *owllink-kb-names* (owlapi:mht :test #'equal)) ;;; ;;; ;;; (defvar *additional-answer-namespaces-used* nil) ;;; ;;; ;;; (defun get-default-kb-settings () (copy-tree ; will be changed with setf! `(("uniqueNameAssumption" ,(if *use-unique-name-assumption* "true" "false")) #+:racer-server ("verbose" ,(if *tbox-verbose* "true" "false")) ("leanMode" "false") ("keepsAxioms" "true") ("usesLessMemory" "false") ("ignoresAnnotations" "false") ("ignoresDeclarations" "false") ("incremental" "true") ("selectedProfile" (one-of "OWL 2 DL" "OWL DL" "SHIQ(D-)" ;;; last = default wert "OWL 2 DL")) ("abbreviatesIRIs" ,(if *abbreviate-iris* "true" "false"))))) ;;; ;;; ;;; (defvar *kb* nil) (defvar *name* nil) (defvar *ano-kb-counter* 0) (defvar *full-iri* nil) (defvar *key* nil) (defvar *value* nil) (defvar *consider-imports* nil) (defvar *iri* nil) (defvar *direct* nil) (defvar *negative* nil) (defvar *command* nil) (defvar *as-warning* nil) ;;; ;;; ;;; (defun error-message (string &rest args) (substitute #\' #\" (apply #'format nil string args))) (defun get-attribute-value (attribute attributes) (second (assoc attribute attributes))) (defun get-attribute-value1 (attribute attributes) (assoc attribute attributes)) (defun get-attributes (expressions attributes) ;;; starts with message name! (if (and expressions attributes) (let ((matched-attributes nil) (other-attributes nil)) (loop as (key1 val) in (second expressions) as key = (expand-functional-tag-name key1) do (if (member key attributes) (push (list key val) matched-attributes) (push (list key1 val) other-attributes))) (values matched-attributes `(,(first expressions) ,other-attributes ,@(cddr expressions)))) (values nil expressions))) (defun get-all-attributes (expressions) (values (second expressions) (list* (first expressions) nil (cddr expressions)))) (defun map-attributes (attributes) ; assoc-list attributes) ;;; ;;; ;;; (defun make-owllink-message (tag attributes &optional content) (if (listp content) `(,tag ,(map-attributes attributes) ,@content) `(,tag ,(map-attributes attributes) ,content))) (defun owllink-ok-message (&key warning) (make-owllink-message '|OK| (when warning `((|warning| ,warning))))) (defun owllink-error-message (&key error) (make-owllink-message '|Error| (when error `((|error| ,error))))) (defun owllink-syntax-error-message (&key error) (make-owllink-message '|SyntaxError| (when error `((|error| ,error))))) (defun owllink-kb-error-message (&key error warning) (make-owllink-message '|KBError| `(,@(when error `((|error| ,error))) ,@(when warning `((|warning| ,warning)))))) (defun owllink-semantic-error-message (&key error warning) (make-owllink-message '|SemanticError| `(,@(when error `((|error| ,error))) ,@(when warning `((|warning| ,warning)))))) (defun owllink-kb-message (&key warning) (make-owllink-message '|KB| (when warning `((|warning| ,warning))))) (defun owllink-unsatisfiable-kb-error-message (&key error) (make-owllink-message '|UnsatisfiableKBError| (when error `((|error| ,error))))) (defun owllink-not-supported-datatype-error (&key error) (make-owllink-message '|NotSupportedDatatypeError| (when error `((|error| ,error))))) ;;; ;;; ;;; (defun owllink-boolean-response-message (result &key warning) (make-owllink-message '|BooleanResponse| `((|result| ,(if result "true" "false")) ,@(when warning `((|warning| ,warning)))))) (defun owllink-string-response-message (result &key warning) (make-owllink-message '|StringResponse| `((|result| ,result) ,@(when warning `((|warning| ,warning)))))) (defun owllink-unknown-message (&key warning) (make-owllink-message '|Unknown| `(,@(when warning `((|warning| ,warning)))))) (defun owllink-to-be-implemented-message (type) (owllink-error-message :error (error-message "OWLlink request ~A not yet implemented" type))) ;;; ;;; ;;; (defun owllink-init () (clrhash *owllink-kb-settings*) (dolist (reasoner *owllink-reasoners*) (unregister-owllink-reasoner reasoner)) (setf *owllink-kb-and-reasoner* nil *owllink-reasoners* nil)) (defmethod register-owllink-reasoner ((reasoner symbol)) (push reasoner *owllink-reasoners*)) (defmethod register-owllink-reasoner ((reasoner owlapi:reasoner)) (register-owllink-reasoner (owlapi:owlapi-reasoner-name reasoner))) (defmethod unregister-owllink-reasoner ((reasoner symbol)) (let ((reasoner (find-reasoner reasoner nil))) (when reasoner (unregister-owllink-reasoner reasoner)))) (defmethod unregister-owllink-reasoner ((reasoner owlapi:reasoner)) (setf *owllink-reasoners* (delete (owlapi:owlapi-reasoner-name reasoner) *owllink-reasoners*)) (unregister-kb-name reasoner) (clear-kb-settings reasoner)) (defun owllink-create-kb (kb &optional name) (|OWLAPI-newReasoner| kb) (|OWLAPI-newOntology| kb kb) (|OWLAPI-registerReferencedEntities| kb) (|OWLAPI-registerDeclaredEntities| kb) (register-owllink-reasoner kb) (when name (register-kb-name kb name)) (setf (gethash kb *owllink-kb-settings*) (get-default-kb-settings) ) kb) (defun owllink-release-kb (&optional (kb *owllink-kb-and-reasoner*)) (unregister-owllink-reasoner kb) (|OWLAPI-disposeReasoner| kb)) ;;; ;;; ;;; (defun register-kb-name (kb name) (setf (gethash kb *owllink-kb-names*) name)) (defun unregister-kb-name (&optional (kb *owllink-kb-and-reasoner*)) (remhash kb *owllink-kb-names*)) (defun get-kb-name (&optional (kb *owllink-kb-and-reasoner*)) (gethash kb *owllink-kb-names*)) ;;; ;;; ;;; (defun normalize-prefix (prefix) (when prefix (let ((string (owlapi:ensure-string prefix))) (if (member string '("default" "" "nil" "NIL") :test #'string-equal) "" string)))) (defun normalize-url (url) (when url ; nil bleibt nil! (remove-sharp-brackets (owlapi:ensure-string url)))) (defun get-kb-prefixes (&optional (kb *owllink-kb-and-reasoner*)) (gethash (list kb :prefixes) *owllink-kb-settings*)) (defun set-kb-prefixes (prefixes &optional (kb *owllink-kb-and-reasoner*)) (setf (gethash (list kb :prefixes) *owllink-kb-settings*) prefixes)) ;;; ;;; ;;; (defun clear-kb-settings (&optional (kb *owllink-kb-and-reasoner*)) (remhash kb *owllink-kb-settings*) (remhash (list kb :prefixes) *owllink-kb-settings*)) (defun set-kb-setting (key val &optional (kb *owllink-kb-and-reasoner*)) (let* ((settings (gethash kb *owllink-kb-settings*) ) (pos (position key settings :test #'string-equal :key #'first))) (if pos (setf (nth pos settings) (let* ((entry (nth pos settings)) (old-key (second entry))) (if (and (consp old-key) (eq (first old-key) 'one-of)) (let ((new (list key (append (butlast old-key) (list val))))) new) (list key val)))) (if settings (nconc settings (list (list key val))) (setf (gethash kb *owllink-kb-settings*) (list (list key val)))))) (case (intern (owlapi:ensure-string key)) (|una| ) ; (|verbose| ) ; (|abbreviatesIRIs| ) ; (|selectedProfile| ); (|keepsAxioms| (if (string-to-boolean val) (|OWLAPI-disableMemorySavingMode| kb) (|OWLAPI-enableMemorySavingMode| kb kb))) (|leanMode| (if (not (string-to-boolean val)) (|OWLAPI-disableMemorySavingMode| kb) (|OWLAPI-enableMemorySavingMode| kb kb))) (|ignoresAnnotations| (if (string-to-boolean val) (|OWLAPI-ignoreAnnotations| kb) (|OWLAPI-keepAnnotations| kb))) (|ignoresDeclarations| (if (string-to-boolean val) (|OWLAPI-ignoreDeclarations| kb) (|OWLAPI-considerDeclarations| kb))) (|incremental| (if (string-to-boolean val) (|OWLAPI-enableIncrementalUpdates| kb) (|OWLAPI-disableIncrementalUpdates| kb))))) (defun unset-kb-setting (key &optional (kb *owllink-kb-and-reasoner*)) (let* ((settings (gethash kb *owllink-kb-settings*) )) (setf (gethash kb *owllink-kb-settings*) (delete key settings :key #'first)))) (defun get-kb-setting (key &optional (kb *owllink-kb-and-reasoner*)) (let* ((settings (gethash kb *owllink-kb-settings*))) (second (assoc key settings :test #'equal)))) (defun get-kb-settings (&optional (kb *owllink-kb-and-reasoner*)) (gethash kb *owllink-kb-settings*)) ;;; ;;; ;;; (defmacro with-consistent-kb (&body body) (let ((unsat-concepts (gensym)) (tbox-unsat (gensym)) (abox-sat (gensym)) (sat (gensym))) `(let* ((,unsat-concepts (reasoner-atomic-concept-synonyms 'bottom *owllink-kb-and-reasoner*)) (,tbox-unsat (member 'top ,unsat-concepts)) (,abox-sat (reasoner-abox-consistent-p *owllink-kb-and-reasoner*)) (,sat (and (not ,tbox-unsat) ,abox-sat))) (cond (,sat ,@body) (t (values (owllink-unsatisfiable-kb-error-message :error (format nil "TBox satisfiable: ~A. ABox satisfiable: ~A. Unsatisfiable classes: ~A" (yes-or-no-string (not ,tbox-unsat)) (yes-or-no-string ,abox-sat) ,unsat-concepts)) expressions)))))) (defmacro with-consistent-abox (&body body) (let ((abox-sat (gensym))) `(let* ((,abox-sat (reasoner-abox-consistent-p *owllink-kb-and-reasoner*))) (cond (,abox-sat ,@body) (t (values (owllink-unsatisfiable-kb-error-message :error (format nil "ABox satisfiable: ~A." (yes-or-no-string ,abox-sat))) expressions)))))) (defmacro with-consistent-tbox (&body body) ; = satisfiable (let ((unsat-concepts (gensym)) (tbox-unsat (gensym))) `(let* ((,unsat-concepts (reasoner-atomic-concept-synonyms 'bottom *owllink-kb-and-reasoner*)) (,tbox-unsat (member 'top ,unsat-concepts))) (cond ((not ,tbox-unsat) ,@body) (t (values (owllink-unsatisfiable-kb-error-message :error (format nil "TBox satisfiable: ~A. Unsatisfiable classes: ~A" (yes-or-no-string (not ,tbox-unsat)) ,unsat-concepts)) expressions)))))) (defmacro with-present-kb (&body body) `(if *owllink-kb-and-reasoner* (handler-case (let* ((*use-unique-name-assumption* (string-to-boolean (get-kb-setting "uniqueNameAssumption"))) #+:racer-server (*tbox-verbose* (string-to-boolean (get-kb-setting "verbose"))) #+:racer-server (*abox-verbose* *tbox-verbose*) #+:racer-server (racer::*use-less-tbox-memory* (string-to-boolean (get-kb-setting "usesLessMemory"))) (*abbreviate-iris* t)) (with-reasoner (*owllink-kb-and-reasoner*) ,@body)) (error (error) (owllink-semantic-error-message :error (error-message "Reasoning error ~A occured" error)))) (values (owllink-kb-error-message :error (if *kb* (error-message "KB ~A not found. Request denied" *kb*) (error-message "No 'kb' attribute specified for request. Request denied"))) (rest expressions)))) ;;; ;;; ;;; (dummy-tag-parser |FunctionalRequestMessageWithHeader| (multiple-value-bind (result expressions) (|owllink-parse-FunctionalHeaders| expressions) (declare (ignore result)) (|owllink-parse-RequestMessage| expressions))) (ano-optional-loop-parser |FunctionalHeaders| |FunctionalHeader|) (optional-choice-parser |FunctionalHeader| nil (|NamespacePrefix| |RenderingOption|)) ;;; ;;; ;;; (loop-parser |Ontologies| () |owl.Ontology| nil (owllink-ok-message)) (dummy-tag-parser |owl.Ontology| (parse-ontology expressions)) ;;; ;;; ;;; (loop-parser |RequestMessage| (nil (let ((*owl-xml-mode* t) (*use-xml-base* *last-request-xml-base*)))) |Request| (setf *additional-answer-namespaces-used* nil) (make-owllink-message '|ResponseMessage| `((|INT-abbreviatesIRIs| "true") (|INT-prefixes| ,(loop as ns in *additional-answer-namespaces-used* as prefix = (first (find ns *last-request-xml-and-functional-namespaces* :test #'string= :key #'cdr ; !! )) when prefix collect (list prefix ns)))) (nconc #+:ignore (mapcar #'(lambda (x) (make-owllink-message '|NamespacePrefix| nil (list (car x) (cdr x)))) *last-request-xml-and-functional-namespaces*) response))) (choice-parser-with-timeout |Request| nil (#+:racer-server |http://www.racer-systems.com/owllink/ext/racer#Racer| #+:racer-server |http://www.racer-systems.com/owllink/ext/racer#FullReset| |GetDescription| |CreateKB| |KBRequest| )) (choice-parser |KBRequest| ((|kb| |http://www.owllink.org/ext/retraction#kb| |<http://www.owllink.org/ext/retraction#kb>|) (let* ((*kb* (or (get-attribute-value '|kb| attributes) (get-attribute-value '|http://www.owllink.org/ext/retraction#kb| attributes) (get-attribute-value '|<http://www.owllink.org/ext/retraction#kb>| attributes))) (*kb* (normalize-url *kb*)) (*owllink-kb-and-reasoner* (find-reasoner (intern *kb*) nil))) (when *owllink-kb-and-reasoner* (setf *owllink-kb-and-reasoner* (owlapi:owlapi-reasoner-name *owllink-kb-and-reasoner*))))) (|http://www.owllink.org/ext/retraction#Retract| ;;; |GetPrefixes| |GetSettings| |Set| |ReleaseKB| |Tell| |LoadOntologies| |Classify| |Realize| |GetAllObjectProperties| |GetAllDataProperties| |GetAllAnnotationProperties| |GetAllDatatypes| |GetAllIndividuals| |GetAllClasses| |IsKBSatisfiable| |IsKBConsistentlyDeclared| |GetKBLanguage| |IsClassSatisfiable| |IsClassSubsumedBy| |AreClassesEquivalent| |AreClassesDisjoint| |GetDisjointClasses| |GetFlattenedDisjointClasses| |GetSubClasses| |GetSuperClasses| |GetFlattenedSubClasses| |GetFlattenedSuperClasses| |GetEquivalentClasses| |GetSubClassHierarchy| |GetSuperClassHierarchy| |AreObjectPropertiesEquivalent| |IsObjectPropertySatisfiable| |IsObjectPropertySubsumedBy| |AreObjectPropertiesDisjoint| |IsObjectPropertyFunctional| |IsObjectPropertyInverseFunctional| |IsObjectPropertyReflexive| |IsObjectPropertyIrreflexive| |IsObjectPropertySymmetric| |IsObjectPropertyAsymmetric| |IsObjectPropertyTransitive| |GetSubObjectProperties| |GetSuperObjectProperties| |GetEquivalentObjectProperties| |GetDisjointObjectProperties| |GetFlattenedDisjointObjectProperties| |GetFunctionalObjectProperties| |GetInverseFunctionalObjectProperties| |GetReflexiveObjectProperties| |GetIrreflexiveObjectProperties| |GetSymmetricObjectProperties| |GetAsymmetricObjectProperties| |GetTransitiveObjectProperties| |GetSubObjectPropertyHierarchy| |GetSuperObjectPropertyHierarchy| |AreDataPropertiesEquivalent| |AreDataPropertiesDisjoint| |IsDataPropertySatisfiable| |IsDataPropertySubsumedBy| |IsDataPropertyFunctional| |GetSubDataProperties| |GetSuperDataProperties| |GetEquivalentDataProperties| |GetFunctionalDataProperties| |GetDisjointDataProperties| |GetFlattenedDisjointDataProperties| |GetSubDataPropertyHierarchy| |GetSuperDataPropertyHierarchy| |AreIndividualsEquivalent| |AreIndividualsDisjoint| |IsInstanceOf| |GetTypes| |GetFlattenedTypes| |GetDisjointIndividuals| |GetDifferentIndividuals| |GetFlattenedDisjointIndividuals| |GetFlattenedDifferentIndividuals| |GetEquivalentIndividuals| |GetSameIndividuals| |GetObjectPropertiesBetween| |GetFlattenedObjectPropertiesBetween| |GetObjectPropertiesOfSource| |GetFlattenedObjectPropertiesOfSource| |GetObjectPropertiesOfTarget| |GetFlattenedObjectPropertiesOfTarget| |AreIndividualsRelated| |IsIndividualRelatedWithLiteral| |GetDataPropertiesBetween| |GetFlattenedDataPropertiesBetween| |GetDataPropertiesOfSource| |GetFlattenedDataPropertiesOfSource| |GetDataPropertiesOfLiteral| |GetFlattenedDataPropertiesOfLiteral| |GetInstances| |GetFlattenedInstances| |GetObjectPropertyTargets| |GetFlattenedObjectPropertyTargets| |GetObjectPropertySources| |GetFlattenedObjectPropertySources| |GetDataPropertyTargets| |GetDataPropertySources| |GetFlattenedDataPropertySources| ;;; |IsEntailedDirect| |IsEntailed| ) (values (if (third response) ; content? (make-owllink-message (first response) (nconc (second response) `((|INT-abbreviatesIRIs| ,(get-kb-setting "abbreviatesIRIs")) (|INT-kb| ,*kb*) (|INT-prefixes| ,(get-kb-prefixes *owllink-kb-and-reasoner*)))) (when (third response) (cddr response))) (make-owllink-message (first response) (second response))) expressions)) ;;; ;;; ;;; (defun boolean-type-p (x) (or (eq x t) (eq x nil) (string= x "true") (string= x "false"))) (defun guess-type (value) (typecase value ((satisfies boolean-type-p) '|xsd:boolean|) (string '|xsd:string|) (otherwise '|xsd:anyURI|))) (defun map-configuration (type key values) (let ((values (owlapi:ensure-list values))) (make-owllink-message type `((|key| ,(if (symbolp key) (symbol-name key) key))) (cons (if (cdr values) (if (eq (first values) 'one-of) (make-owllink-message '|OneOf| `((|type| ,(guess-type (second values)))) (mapcar #'(lambda (x) (make-owllink-message '|Literal| `((|value| ,(format nil "~A" x))))) (butlast (cdr values)))) ; last = default! (make-owllink-message '|List| `((|type| ,(guess-type (first values)))))) (make-owllink-message '|Datatype| `((|IRI| ,(guess-type (first values)))))) (mapcar #'(lambda (x) (make-owllink-message '|Literal| `((|value| ,(format nil "~A" x))))) (if (eq (first values) 'one-of) (last values) values)))))) (defun map-property (key values) (map-configuration '|Property| key values)) (defun map-setting (key values) (map-configuration '|Setting| key values)) (tag-parser |GetDescription| nil (let ((name *product-name*) (message nil) (warning nil)) (values (make-owllink-message '|Description| `(,@(when warning `((|warning| ,warning))) ,@(when name `((|name| ,name))) ,@(when message `((|message| ,message)))) (nconc (list (make-owllink-message '|ProtocolVersion| `((|major| ,*owllink-major*) (|minor| ,*owllink-minor*)))) (list (make-owllink-message '|ReasonerVersion| `((|major| ,(subseq *product-version* 0 (position #\. *product-version*))) (|minor| ,(subseq *product-version* (1+ (position #\. *product-version*)))) (|build| ,*product-build*)))) (mapcar #'(lambda (prop) (apply #'map-property prop)) `((|appliedSemantics| (one-of "direct" "direct")) (|supportedDatatypes| ,(mapcar #'(lambda (dtp) (owlapi:make-uri "xsd" dtp)) '(|negativeInteger| |nonNegativeInteger| |positiveInteger| |nonPositiveInteger| |integer| |byte| |unsignedByte| |unsignedShort| |unsignedInt| |unsignedLong| |short| |int| |long| |float| |double| |decimal| |string| |boolean|))))) (mapcar #'(lambda (prop) (apply #'map-setting (list (intern (owlapi:ensure-string (first prop))) (second prop)))) (get-default-kb-settings)) (list (make-owllink-message '|SupportedExtension| '((|identifier| "http://www.racer-systems.com/owllink/ext/racer")))) (list (make-owllink-message '|SupportedExtension| '((|identifier| "http://www.owllink.org/ext/retraction")))) (mapcar #'(lambda (kb) (make-owllink-message '|PublicKB| `((|name| ,(get-kb-name kb)) (|kb| ,kb)))) (remove-if-not #'get-kb-name *owllink-reasoners*)))) expressions))) ;;; ;;; ;;; (tag-parser |CreateKB| ((|kb| |name|) (let ((*kb* (normalize-url (get-attribute-value '|kb| attributes))) (*name* (get-attribute-value '|name| attributes))))) (with-parser-call (|Prefixes| expressions) (let ((prefixes response) (kb (intern (or *kb* (format nil "http://www.racer-systems.com/kb-~A/" (incf *ano-kb-counter*)))))) (if (find-reasoner kb nil) (owllink-kb-error-message :error (error-message "KB ~A already exists, request denied" kb)) (progn (owllink-create-kb kb *name*) (let ((prefixes (nconc (loop as (prefix . namespace) in *last-request-xml-and-functional-namespaces* unless (member prefix '("owl" "xsd" "rdf" "rdfs") :test #'string-equal) collect (list (or prefix "defaultnamespace") namespace)) prefixes))) (set-kb-prefixes prefixes kb) (loop as (prefix namespace) in prefixes do (owlapi:|OWLAPI-addPrefix| prefix namespace kb))) (make-owllink-message '|KB| `((|kb| ,kb) #+:ignore ,@(when *name* `((|name| ,*name*))) ))))))) (ano-loop-parser |Prefixes| |Prefix|) (tag-parser |Prefix| ((|name| |fullIRI|) (let ((*name* (get-attribute-value '|name| attributes)) (*full-iri* (get-attribute-value '|fullIRI| attributes))))) (list (normalize-prefix *name*) (normalize-url *full-iri*))) ;;; ;;; ;;; (tag-parser |GetSettings| nil (with-present-kb (make-owllink-message '|Settings| nil (mapcar #'(lambda (setting) (apply #'map-setting setting)) (get-kb-settings))))) ;;; ;;; ;;; (tag-parser |GetPrefixes| nil (with-present-kb (make-owllink-message '|Prefixes| nil (mapcar #'(lambda (prefix) (make-owllink-message '|Prefix| `((|name| ,(first prefix)) (|fullIRI| ,(second prefix))))) (remove-if #'(lambda (x) (or (member (first x) '("xsi" "defaultnamespace" "NIL" "nil") :test #'string-equal) #+:ignore (find (cons (first x) (second x)) *last-request-xml-and-functional-namespaces* :test #'equal))) (append (remove-duplicates (append (get-kb-prefixes *owllink-kb-and-reasoner*) +owl2-standard-prefixes+) :test #'equal))))))) ;;; ;;; ;;; (tag-parser |Set| ((|key|) (let ((*key* (get-attribute-value '|key| attributes))))) (with-present-kb (with-parser-call (|Literals| expressions) (let ((cur (get-kb-setting *key*)) (lit (first (owlapi:ensure-list response)))) (if cur (progn (typecase cur (cons ; one-of? (if (member lit cur :test #'string-equal) (progn (set-kb-setting *key* lit) (owllink-ok-message)) (owllink-kb-error-message :error (error-message "Setting ~A cannot be set for KB ~A - ~A is not a valid value for ~S. Request denied" *key* *owllink-kb-and-reasoner* lit (butlast cur))))) (otherwise (set-kb-setting *key* lit) (owllink-ok-message)))) (owllink-kb-error-message :error (error-message "Setting ~A cannot be set for KB ~A. Request denied" *key* *owllink-kb-and-reasoner*))))))) (ano-loop-parser |Literals| |Literal|) (tag-parser |Literal| ((|value|) ; Special treatment f. Literal: Value = Content! (let ((*value* (get-attribute-value '|value| attributes))))) (or *value* (first expressions) ; content ! )) (tag-parser |ReleaseKB| nil (with-present-kb (owllink-release-kb) (owllink-ok-message))) ;;; ;;; ;;; (loop-parser |Tell| nil |owl.Axiom| (with-present-kb (|OWLAPI-autoBatchAddAxiomsTo| *owllink-kb-and-reasoner* *owllink-kb-and-reasoner*)) (with-present-kb (let ((errors (remove-if #'numberp response))) (cond ((not (owlapi:dont-keep-axioms-p (find-reasoner *owllink-kb-and-reasoner*))) (|OWLAPI-loadOntology| *owllink-kb-and-reasoner* *owllink-kb-and-reasoner*)) (t )) (|OWLAPI-batchSynchronize| *owllink-kb-and-reasoner* *owllink-kb-and-reasoner*) (if errors (owllink-syntax-error-message :error (error-message "Ignored non-valid OWLlink Tell requests: ~S" errors)) (owllink-ok-message))))) (loop-parser |http://www.owllink.org/ext/retraction#Retract| nil |owl.Axiom| (with-present-kb (when (owlapi:dont-keep-axioms-p (find-reasoner *owllink-kb-and-reasoner*)) (return-from parser (values (owllink-semantic-error-message :error "Retraction is only possible if memory saving mode is disabled.") (rest expressions1)))) (|OWLAPI-autoBatchRemoveAxiomsFrom| *owllink-kb-and-reasoner*)) (with-present-kb (let ((errors (remove-if #'numberp response))) (cond ((not (owlapi:dont-keep-axioms-p (find-reasoner *owllink-kb-and-reasoner*))) ) (t )) (|OWLAPI-batchSynchronize| *owllink-kb-and-reasoner* *owllink-kb-and-reasoner*) (|OWLAPI-disableAutoMode| *owllink-kb-and-reasoner*) (if errors (owllink-syntax-error-message :error (error-message "Ignored non-valid OWLlink Tell requests: ~S" errors)) (owllink-ok-message))))) (dummy-tag-parser |owl.Axiom| (with-present-kb (multiple-value-bind (axiom-id expressions) (handler-case (parse-axiom expressions) (error () (values (first expressions) (rest expressions)))) (values axiom-id expressions)))) (defun substitute-name (name mappings) (loop as (source target) in mappings when (let ((pos (search source name))) (and (numberp pos) (= 0 pos))) return (concatenate 'string target (subseq name (length source))))) (tag-parser |LoadOntologies| ((|considerImports|) (let ((*consider-imports* (let ((res (get-attribute-value1 '|considerImports| attributes))) (if res (second (string-to-boolean res)) t)))))) (with-present-kb (with-parser-call (|IRIMappings-OntologyIRIs| expressions) (let* ((load (remove-if #'consp response)) (mappings (remove-if-not #'consp response)) (*owllink-mirror-mappings* (append mappings *owllink-mirror-mappings*)) (error (find '|SyntaxError| mappings :key #'first))) (if error (values error (rest expressions)) (progn (let* ((error-p nil) (answers nil) (table nil)) (declare (ignorable table)) #+:racer-server (maphash #'(lambda (key val) (push (list key val) table)) racer::*uri-mirror-table*) #+:racer-server (clear-mirror-table) #+:racer-server (loop as (source target) in mappings do (mirror source target)) (dolist (ont load) (let* ((ont (or (substitute-name ont *owllink-mirror-mappings*) ont))) (push (list ont '--> (handler-case (let ((*package* (find-package :owl-syntaxes))) (owlapi-import-ontology ont :maintain-owlapi-axioms (not (owlapi:dont-keep-axioms-p *cur-reasoner*)) :init nil :reasoner-name *owllink-kb-and-reasoner*)) (error (error) (setf error-p t) (error-message "In LoadOntologies of ~S: ~A" ont error)))) answers))) #+:racer-server (loop as (prefix url) in table do (mirror prefix url)) (if error-p (values (owllink-error-message :error (error-message "~S" answers)) (rest expressions)) (values (owllink-ok-message :warning (format nil "~A" answers)) (rest expressions)))))))))) (ano-loop-parser |IRIMappings-OntologyIRIs| |IRIMapping-OntologyIRI|) (choice-parser |IRIMapping-OntologyIRI| nil (|IRIMapping| |OntologyIRI|)) (tag-parser |IRIMapping| ((|key| |value| |IRI|) (let* ((*key* (get-attribute-value '|key| attributes)) (*value* (or (get-attribute-value '|value| attributes) (get-attribute-value '|IRI| attributes))) (*key* (normalize-prefix *key*)) (*value* (normalize-url *value*))))) (if (not (and *key* *value*)) (values (owllink-syntax-error-message :error (error-message "Incomplete IRIMapping specification in ~S" (first expressions))) expressions) (values `(,*key* ,*value*) expressions))) (tag-parser |OntologyIRI| ((|IRI|) (let ((*iri* (normalize-url (get-attribute-value '|IRI| attributes)))))) (values *iri* expressions)) ;;; ;;; ;;; (tag-parser |Classify| () (with-present-kb (reasoner-taxonomy *owllink-kb-and-reasoner*) (values (owllink-ok-message) expressions))) (tag-parser |Realize| () (with-present-kb (with-consistent-abox (reasoner-realize *owllink-kb-and-reasoner*) (values (owllink-ok-message) expressions)))) ;;; ;;; ;;; (tag-parser |IsEntailedDirect| () (with-present-kb (owlapi:with-transient-axiom-mode (*owllink-kb-and-reasoner*) (let ((old-expressions expressions)) (handler-case (multiple-value-bind (axiom expressions) (parse-axiom expressions) (declare (ignorable expressions)) (if (not (typep axiom '|OWLAxiom|)) (owllink-syntax-error-message :error (error-message "Bad Axiom in ~S" (first old-expressions))) (with-consistent-kb (values (let ((res (or (and (owlapi:axiom-id axiom) ; old and loaded? entailed! (owlapi:loaded-p axiom)) (owllink-direct-entailed-p axiom)))) (if (eq res :unknown) (owllink-unknown-message :warning (format nil "Request IsEntailedDirect is not yet implemented for axioms of type ~A" (type-of axiom))) (owllink-boolean-response-message res))) expressions)))) (error (error) (values (owllink-semantic-error-message :error (error-message "Reasoning error ~A occured" error)) expressions))))))) (tag-parser |IsEntailed| () (with-present-kb (owlapi:with-transient-axiom-mode (*owllink-kb-and-reasoner*) (let ((old-expressions expressions)) (handler-case (multiple-value-bind (axiom expressions) (parse-axiom expressions) (declare (ignorable expressions)) (if (not (typep axiom '|OWLAxiom|)) (owllink-syntax-error-message :error (error-message "Bad Axiom in ~S" (first old-expressions))) (with-consistent-kb (values (let ((res (or (and (owlapi:axiom-id axiom) ; old and loaded? entailed! (owlapi:loaded-p axiom)) (owllink-entailed-p axiom)))) (if (eq res :unknown) (owllink-unknown-message :warning (format nil "Request IsEntailed is not yet implemented for axioms of type ~A" (type-of axiom))) (owllink-boolean-response-message res))) expressions)))) (error (error) (values (owllink-semantic-error-message :error (error-message "Reasoning error ~A occured" error)) expressions))))))) ;;; ;;; ;;; (defun make-set-of (plural singular set &optional (form (format nil "SetOf~A" plural))) (make-owllink-message (if (symbolp form) form (intern form)) nil (mapcar #'(lambda (x) (if (consp x) (if (eq (first x) singular) x :error) (make-owllink-message singular nil x))) (remove-duplicates set :test #'equal)))) (defun make-set-of-synsets (type set-of-synsets &optional set-of-syntax-p) (make-owllink-message (if set-of-syntax-p (intern (format nil "SetOf~ASynsets" type)) (intern (format nil "~ASynsets" type))) nil (remove-duplicates set-of-synsets :test #'equal))) (defun make-synset (type set &optional marker) (when set (make-owllink-message (or marker (intern (format nil "~ASynset" type))) nil (mapcar #'(lambda (x) (if (consp x) (if (eq (first x) type) x :error) (make-owllink-message type nil x))) (remove-duplicates set :test #'equal))))) (defun make-equi-set (type set &optional marker) (when set (make-owllink-message (or marker (intern (format nil "Equivalent~A" type))) nil (mapcar #'(lambda (x) (make-owllink-message type nil x)) set)))) (defun make-set-of-individuals (set) (make-owllink-message '|SetOfIndividuals| nil (mapcar #'(lambda (x) (if (is-ano-ind-p x) (make-owllink-message '|AnonymousIndividual| nil (without-ano-ind-prefix x)) (make-owllink-message '|NamedIndividual| nil x))) set))) (defun make-individual-synset (set) (when set (make-owllink-message '|IndividualSynset| nil (mapcar #'(lambda (x) (if (is-ano-ind-p x) (make-owllink-message '|AnonymousIndividual| nil (without-ano-ind-prefix x)) (make-owllink-message '|NamedIndividual| nil x))) set)))) (defun make-individual-synonyms (set) (when set (make-owllink-message '|IndividualSynonyms| nil (mapcar #'(lambda (x) (if (is-ano-ind-p x) (make-owllink-message '|AnonymousIndividual| nil (without-ano-ind-prefix x)) (make-owllink-message '|NamedIndividual| nil x))) set)))) ;;; ;;; ;;; (defun remove-concept-by-synset (concept concepts) (let ((syns (reasoner-atomic-concept-synonyms concept *owllink-kb-and-reasoner*))) (remove-if #'(lambda (x) (find x syns)) concepts))) (defun remove-role-by-synset (role roles) (cond ((or (eq role owlapi:+owlapi-owl-top-object-role+) (eq role owlapi:+owlapi-owl-bottom-object-role+) (eq role owlapi:+owlapi-owl-top-data-role+) (eq role owlapi:+owlapi-owl-bottom-data-role+)) (remove role roles)) (t (let ((syns (reasoner-equivalent-roles role *owllink-kb-and-reasoner*))) (remove-if #'(lambda (x) (find x syns)) roles))))) (defun remove-ind-by-synset (ind inds) (let ((syns (reasoner-individual-synonyms ind *owllink-kb-and-reasoner*))) (remove-if #'(lambda (x) (find x syns)) inds))) ;;; ;;; ;;; (tag-parser |GetAllObjectProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (make-set-of '|ObjectProperties| '|ObjectProperty| #+:ignore (owllink-get-object-properties) (remove-duplicates (let ((res nil)) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as p being the hash-key in (owlapi:declared-object-properties ont) do (if (consp p) (push (second p) res) (push p res))) (loop as p being the hash-key in (owlapi:referenced-object-properties ont) do (if (consp p) (push (second p) res) (push p res)))) res))) expressions))) (tag-parser |GetAllDataProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (make-set-of '|DataProperties| '|DataProperty| #+:ignore (owllink-get-data-properties) (remove-duplicates (let ((res nil)) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as p being the hash-key in (owlapi:declared-data-properties ont) do (if (consp p) (push (second p) res) (push p res))) (loop as p being the hash-key in (owlapi:referenced-data-properties ont) do (if (consp p) (push (second p) res) (push p res)))) res))) expressions))) (tag-parser |GetAllAnnotationProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (make-set-of '|AnnotationProperties| '|AnnotationProperty| #+:ignore (owllink-get-annotation-properties) (remove-duplicates (let ((res nil)) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as p being the hash-key in (owlapi:declared-annotation-properties ont) do (if (consp p) (push (second p) res) (push p res))) (loop as p being the hash-key in (owlapi:referenced-annotation-properties ont) do (if (consp p) (push (second p) res) (push p res)))) res))) expressions))) (tag-parser |GetAllDatatypes| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (make-set-of '|Datatypes| '|owl:Datatype| (remove-duplicates (let ((res nil)) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as d being the hash-key in (owlapi:declared-datatypes ont) do (when (symbolp d) (push d res))) (loop as d being the hash-key in (owlapi:referenced-datatypes ont) do (when (symbolp d) (push d res)))) res))) expressions))) (tag-parser |GetAllIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (make-set-of-individuals #+:ignore (reasoner-all-individuals *owllink-kb-and-reasoner*) (remove-duplicates (let ((res nil)) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as i being the hash-key in (owlapi:declared-individuals ont) do (push i res)) (loop as i being the hash-key in (owlapi:referenced-individuals ont) do (push i res))) res))) expressions))) (tag-parser |GetAllClasses| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (make-set-of '|Classes| '|Class| #+:ignore (cons owlapi:+owlapi-owl-thing+ (cons owlapi:+owlapi-owl-nothing+ (without-top-and-bottom (reasoner-all-atomic-concepts *owllink-kb-and-reasoner*)))) (remove-duplicates (let ((res nil)) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as c being the hash-key in (owlapi:declared-concepts ont) do (push c res))) (dolist (ont (owlapi:get-ontologies *owllink-kb-and-reasoner*)) (loop as c being the hash-key in (owlapi:referenced-concepts ont) do (push c res))) res))) expressions))) ;;; ;;; ;;; (defun yes-or-no-string (boolean) (if boolean "yes" "no")) (tag-parser |IsKBSatisfiable| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (let* ((unsat-concepts (reasoner-atomic-concept-synonyms 'bottom *owllink-kb-and-reasoner*)) (tbox-unsat (member 'top unsat-concepts)) (abox-sat (reasoner-abox-consistent-p *owllink-kb-and-reasoner*)) (sat (and (not tbox-unsat) abox-sat))) (values (if sat (if (cddr unsat-concepts) (owllink-boolean-response-message t :warning (format nil "Unsatisfiable classes: ~A" unsat-concepts)) (owllink-boolean-response-message t)) (owllink-boolean-response-message nil :warning (format nil "TBox satisfiable: ~A. ABox satisfiable: ~A. Unsatisfiable classes: ~A" (yes-or-no-string (not tbox-unsat)) (yes-or-no-string abox-sat) unsat-concepts))) expressions)))) (tag-parser |IsKBConsistentlyDeclared| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (owllink-to-be-implemented-message '|IsKBConsistentlyDeclared|) expressions))) (tag-parser |GetKBLanguage| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (values (owllink-string-response-message (reasoner-get-abox-language *owllink-kb-and-reasoner*) :warning (format nil "But TBox language is: ~A" (reasoner-get-tbox-language *owllink-kb-and-reasoner*))) expressions))) (defmacro no-class-expression-error () `(values (owllink-syntax-error-message :error (error-message "No ClassExpression in ~S" (first expressions))) expressions)) (defmacro bad-class-expressions-error () `(values (owllink-syntax-error-message :error (error-message "Bad ClassExpressions in ~S" response)) expressions)) (tag-parser |IsClassSatisfiable| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if concept (with-consistent-tbox (values (owllink-boolean-response-message (reasoner-concept-satisfiable-p concept *owllink-kb-and-reasoner*)) expressions)) (no-class-expression-error)))))) (dummy-tag-parser |owl.ClassExpression| (multiple-value-bind (concept expressions) (parse-class-expression expressions) (values concept expressions))) ;;; ;;; ;;; (tag-parser |IsClassSubsumedBy| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((subclass response)) (if (not subclass) (no-class-expression-error) (with-parser-call (|owl.ClassExpression| expressions) (let ((superclass response)) (if (not superclass) (no-class-expression-error) (with-consistent-tbox (values (owllink-boolean-response-message (reasoner-concept-subsumes-p superclass subclass *owllink-kb-and-reasoner*)) expressions)))))))))) (tag-parser |AreClassesEquivalent| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|ClassExpressions| expressions) (let ((concepts response)) (if (member nil concepts) (bad-class-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owlapi:pairwise-equivalent-p concepts #'(lambda (x y) (reasoner-concepts-equivalent-p x y *owllink-kb-and-reasoner*)))) expressions))))))) (ano-loop-parser |ClassExpressions| |owl.ClassExpression|) (tag-parser |AreClassesDisjoint| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|ClassExpressions| expressions) (let ((concepts response)) (if (member nil concepts) (bad-class-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owlapi:for-all-pairs-holds-p concepts #'(lambda (a b) (reasoner-concepts-disjoint-p a b *owllink-kb-and-reasoner*)))) expressions))))))) ;;; ;;; ;;; (defun concept-list-result (set &optional single-p set-of-syntax-p) (if (not single-p) (let ((set (mapcar #'(lambda (x) (make-synset '|Class| x)) (delete nil (delete-duplicates (loop as c in set collect (let ((c (if (consp c) (first c) c))) (owllink-concept-synonyms c))) :test #'equal))))) (make-set-of-synsets '|Class| set set-of-syntax-p)) (let ((set (owllink-concept-synonyms set))) (make-set-of '|Classes| '|Class| set)))) (defun flat-concept-list-result (set &optional single-p) (let ((set (if single-p (owllink-concept-synonyms set) (delete nil (delete-duplicates (apply #'append (loop as c in set collect (let ((c (if (consp c) (first c) c))) (owllink-concept-synonyms c))))))))) ;;(make-set-of '|Classes| '|Class| set) (make-set-of nil '|Class| set '|Classes|))) ;;; ;;; ;;; (tag-parser |GetDisjointClasses| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (owllink-get-disjoint-classes concept) expressions))))))) (tag-parser |GetFlattenedDisjointClasses| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (owllink-get-disjoint-classes concept t) expressions))))))) (tag-parser |GetSubClasses| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (owllink-get-sub-classes concept) expressions))))))) (tag-parser |GetFlattenedSubClasses| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (owllink-get-sub-classes concept t) expressions))))))) (tag-parser |GetSuperClasses| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (owllink-get-super-classes concept) expressions))))))) (tag-parser |GetFlattenedSuperClasses| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (owllink-get-super-classes concept t) expressions))))))) ;;; ;;; ;;; (tag-parser |GetEquivalentClasses| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-tbox (values (concept-list-result concept t) expressions))))))) (tag-parser |GetSubClassHierarchy| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept (or response 'top))) (with-consistent-tbox (let ((res (owllink-class-hierarchy2 concept))) (values res expressions))))))) (tag-parser |GetSuperClassHierarchy| () (with-present-kb (reasoner-tbox-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept (or response 'bottom))) (with-consistent-tbox (let ((res (owllink-class-hierarchy2 concept t))) (values res expressions))))))) ;;; ;;; ;;; (defmacro no-object-property-expression-error () `(values (owllink-syntax-error-message :error (error-message "No ObjectPropertyExpression in ~S" (first expressions))) expressions)) (defmacro no-data-property-error () `(values (owllink-syntax-error-message :error (error-message "No DataProperty in ~S" (first expressions))) expressions)) (defmacro no-individual-error () `(values (owllink-syntax-error-message :error (error-message "No Individual in ~S" (first expressions))) expressions)) (defmacro no-literal-error () `(values (owllink-syntax-error-message :error (error-message "No Literal in ~S" (first expressions))) expressions)) (defmacro bad-object-property-expressions-error () `(values (owllink-syntax-error-message :error (error-message "Bad ObjectPropertyExpressions in ~S" response)) expressions)) (defmacro bad-data-properties-error () `(values (owllink-syntax-error-message :error (error-message "Bad DataProperties in ~S" response)) expressions)) (defmacro bad-individuals-error () `(values (owllink-syntax-error-message :error (error-message "Bad Individuals in ~S" response)) expressions)) (defmacro not-all-object-property-expressions-error () `(values (owllink-semantic-error-message :error (error-message "Found strange ObjectPropertyExpressions in ~S" response)) expressions)) (defmacro not-all-data-properties-error () `(values (owllink-semantic-error-message :error (error-message "Found strange DataProperty in ~S" response)) expressions)) (defmacro not-all-individuals-error () `(values (owllink-semantic-error-message :error (error-message "Found strange Individuals in ~S" response)) expressions)) ;;; ;;; ;;; (tag-parser |AreObjectPropertiesEquivalent| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|ObjectPropertyExpressions| expressions) (let ((roles response)) (if (member nil roles) (bad-object-property-expressions-error) (if (not (every #'owllink-object-property-p roles)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owlapi:pairwise-equivalent-p roles #'owllink-roles-equivalent-p)) expressions)))))))) (tag-parser |AreObjectPropertiesDisjoint| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|ObjectPropertyExpressions| expressions) (let ((roles response)) (if (member nil roles) (bad-object-property-expressions-error) (if (not (every #'owllink-object-property-p roles)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owlapi:for-all-pairs-holds-p roles #'owllink-roles-disjoint-p)) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|AreObjectPropertiesDisjoint|) expressions))))))) ;;; ;;; ;;; (ano-loop-parser |ObjectPropertyExpressions| |owl.ObjectPropertyExpression|) (dummy-tag-parser |owl.ObjectPropertyExpression| (multiple-value-bind (role expressions) (parse-object-property-expression expressions nil) (values role expressions))) (dummy-tag-parser |owl.ObjectProperty| (multiple-value-bind (role expressions) (parse-object-property expressions) (values role expressions))) (tag-parser |IsObjectPropertySatisfiable| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-satisfiable-p role)) expressions)))))))) (tag-parser |IsObjectPropertyFunctional| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-functional-p role)) expressions)))))))) (tag-parser |IsObjectPropertyInverseFunctional| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-inverse-functional-p role)) expressions)))))))) (tag-parser |IsObjectPropertyReflexive| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-reflexive-p role)) expressions)))))))) (tag-parser |IsObjectPropertyIrreflexive| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-irreflexive-p role)) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|IsObjectPropertyIrreflexive|) expressions))))))) (tag-parser |IsObjectPropertySymmetric| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-symmetric-p role)) expressions)))))))) (tag-parser |IsObjectPropertyAsymmetric| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-asymmetric-p role)) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|IsObjectPropertyAsymmetric|) expressions))))))) (tag-parser |IsObjectPropertyTransitive| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-transitive-p role)) expressions)))))))) (tag-parser |IsObjectPropertySubsumedBy| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((subproperty response)) (if (not subproperty) (no-object-property-expression-error) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((superproperty response)) (if (not superproperty) (no-object-property-expression-error) (if (not (and (owllink-object-property-p superproperty) (owllink-object-property-p subproperty))) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-subsumes-p superproperty subproperty)) expressions))))))))))) ;;; ;;; ;;; (defun object-property-list-result (set &optional single-p synset-p set-of-syntax-p) (if (not single-p) (let ((set (mapcar #'(lambda (x) (make-synset '|ObjectProperty| x)) (mapcar #'(lambda (x) (reasoner-only-object-properties x *owllink-kb-and-reasoner*)) (remove nil (remove-duplicates (loop as r in (reasoner-only-object-properties set *owllink-kb-and-reasoner*) collect (let ((r (if (consp r) (first r) r))) (owllink-object-property-synonyms r)))) :test #'equal))))) (make-set-of-synsets '|ObjectProperty| set set-of-syntax-p)) (let ((set (when (owllink-object-property-p set) (reasoner-only-object-properties (owllink-object-property-synonyms set) *owllink-kb-and-reasoner*)))) (if synset-p (make-synset '|ObjectProperty| set) (make-set-of '|ObjectProperties| '|ObjectProperty| set))))) (defun flat-object-property-list-result (set &optional single-p) (let ((set (if single-p (when (owllink-object-property-p set) (reasoner-only-object-properties (owllink-object-property-synonyms set) *owllink-kb-and-reasoner*)) (remove nil (remove-duplicates (apply #'append (loop as r in (reasoner-only-object-properties set *owllink-kb-and-reasoner*) collect (let ((r (if (consp r) (first r) r))) (owllink-object-property-synonyms r))))))))) (make-set-of '|ObjectProperties| '|ObjectProperty| set))) ;;; ;;; ;;; (tag-parser |GetSubObjectProperties| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (object-property-list-result (if *direct* (owllink-role-children role) (owllink-role-descendants role)) nil nil t) expressions)))))))) (tag-parser |GetSuperObjectProperties| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (object-property-list-result (if *direct* (owllink-role-parents role) (owllink-role-ancestors role)) nil nil t) expressions)))))))) ;;; ;;; ;;; (tag-parser |GetEquivalentObjectProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (values (object-property-list-result role t nil) ; nil ist korrekt hier! expressions))))))) (tag-parser |GetDisjointObjectProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if nil ; (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-get-disjoint-object-properties role) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|GetDisjointObjectProperties|) expressions))))))) (tag-parser |GetFlattenedDisjointObjectProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (values (owllink-get-disjoint-object-properties role t) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|GetFlattenDisjointObjectProperties|) expressions))))))) ;;; ;;; ;;; (defun get-object-properties-with-property (predicate expressions) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-consistent-tbox (values (object-property-list-result (remove-if-not predicate (reasoner-get-object-properties *owllink-kb-and-reasoner*)) nil nil t) expressions)))) (tag-parser |GetFunctionalObjectProperties| () (get-object-properties-with-property #'owllink-role-functional-p expressions)) (tag-parser |GetInverseFunctionalObjectProperties| () (get-object-properties-with-property #'owllink-role-inverse-functional-p expressions)) (tag-parser |GetSymmetricObjectProperties| () (get-object-properties-with-property #'owllink-role-symmetric-p expressions)) (tag-parser |GetAsymmetricObjectProperties| () (get-object-properties-with-property #'owllink-role-asymmetric-p expressions) #+:ignore (values (owllink-to-be-implemented-message '|GetAsymmetricObjectProperties|) expressions)) (tag-parser |GetReflexiveObjectProperties| () (get-object-properties-with-property #'owllink-role-reflexive-p expressions)) (tag-parser |GetIrreflexiveObjectProperties| () (get-object-properties-with-property #'owllink-role-irreflexive-p expressions) #+:ignore (values (owllink-to-be-implemented-message '|GetIrreflexiveObjectProperties|) expressions)) (tag-parser |GetTransitiveObjectProperties| () (get-object-properties-with-property #'owllink-role-transitive-p expressions)) ;;; ;;; ;;; (tag-parser |GetSubObjectPropertyHierarchy| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectProperty| expressions) (let ((role (or response owlapi:+owlapi-owl-top-object-role+))) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (let ((res (owllink-object-property-hierarchy2 role))) (values res expressions)))))))) (tag-parser |GetSuperObjectPropertyHierarchy| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectProperty| expressions) (let ((role (or response owlapi:+owlapi-owl-bottom-object-role+))) (if (not (owllink-object-property-p role)) (not-all-object-property-expressions-error) (with-consistent-tbox (let ((res (owllink-object-property-hierarchy2 role t))) (values res expressions)))))))) ;;; ;;; ;;; (tag-parser |AreDataPropertiesEquivalent| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|DataProperties| expressions) (let ((roles response)) (if (member nil roles) (bad-data-properties-error) (if (not (every #'owllink-data-property-p roles)) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-boolean-response-message (owlapi:pairwise-equivalent-p roles #'owllink-roles-equivalent-p)) expressions)))))))) (tag-parser |AreDataPropertiesDisjoint| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|DataProperties| expressions) (let ((roles response)) (if (member nil roles) (bad-data-properties-error) (if (not (every #'owllink-data-property-p roles)) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-boolean-response-message (owlapi:pairwise-equivalent-p roles #'owllink-roles-disjoint-p)) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|AreDataPropertiesDisjoint|) expressions))))))) (ano-loop-parser |DataProperties| |owl.DataProperty|) (dummy-tag-parser |owl.DataProperty| (multiple-value-bind (dtp-role expressions) (parse-data-property expressions) (values dtp-role expressions))) (tag-parser |IsDataPropertySatisfiable| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-satisfiable-p role)) expressions)))))))) (tag-parser |IsDataPropertyFunctional| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-functional-p role)) expressions)))))))) (tag-parser |IsDataPropertySubsumedBy| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((subproperty response)) (if (not subproperty) (no-data-property-error) (with-parser-call (|owl.DataProperty| expressions) (let ((superproperty response)) (if (not superproperty) (no-data-property-error) (if (not (and (owllink-data-property-p superproperty) (owllink-data-property-p subproperty))) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-boolean-response-message (owllink-role-subsumes-p superproperty subproperty)) expressions))))))))))) ;;; ;;; ;;; (defun get-data-properties-with-property (predicate expressions) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-consistent-tbox (values (data-property-list-result (remove-if-not predicate (reasoner-get-data-properties *owllink-kb-and-reasoner*)) nil nil t) expressions)))) (tag-parser |GetFunctionalDataProperties| () (get-data-properties-with-property #'owllink-role-functional-p expressions)) ;;; ;;; ;;; (defun data-property-list-result (set &optional single-p synset set-of-syntax-p) (if (not single-p) (let ((set (mapcar #'(lambda (x) (make-synset '|DataProperty| x)) (mapcar #'(lambda (x) (reasoner-only-data-properties x *owllink-kb-and-reasoner*)) (remove nil (remove-duplicates (loop as r in (reasoner-only-data-properties set *owllink-kb-and-reasoner*) collect (let ((r (if (consp r) (first r) r))) (owllink-data-property-synonyms r))) :test #'equal)))))) (make-set-of-synsets '|DataProperty| set set-of-syntax-p)) (let ((set (when (owllink-data-property-p set) (reasoner-only-data-properties (owllink-data-property-synonyms set) *owllink-kb-and-reasoner*)))) (if synset (if (eq synset :equi) (make-equi-set '|DataProperty| set ;;'|nil:EquivalentDataProperties| '|DataPropertySynonyms|) (make-synset '|DataProperty| set)) (make-set-of '|DataProperties| '|DataProperty| set))))) (defun flat-data-property-list-result (set &optional single-p) (let ((set (if single-p (when (owllink-data-property-p set) (reasoner-only-data-properties (owllink-data-property-synonyms set) *owllink-kb-and-reasoner*)) (remove nil (remove-duplicates (apply #'append (loop as r in (reasoner-only-data-properties set *owllink-kb-and-reasoner*) collect (let ((r (if (consp r) (first r) r))) (owllink-data-property-synonyms r)))) :test #'equal))))) (make-set-of '|DataProperties| '|DataProperty| set))) ;;; ;;; ;;; (tag-parser |GetSubDataProperties| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (data-property-list-result (if *direct* (owllink-role-children role) (owllink-role-descendants role)) nil nil t) expressions)))))))) (tag-parser |GetSuperDataProperties| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (data-property-list-result (if *direct* (owllink-role-parents role) (owllink-role-ancestors role)) nil nil t) expressions)))))))) ;;; ;;; ;;; (tag-parser |GetEquivalentDataProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (data-property-list-result role t :equi) expressions)))))))) (tag-parser |GetDisjointDataProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if nil ; (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-get-disjoint-data-properties role) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|GetDisjointDataProperties|) expressions))))))) (tag-parser |GetFlattenedDisjointDataProperties| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (values (owllink-get-disjoint-data-properties role t) expressions)) #+:ignore (values (owllink-to-be-implemented-message '|GetFlattenedDisjointDataProperties|) expressions))))))) ;;; ;;; ;;; (tag-parser |GetSubDataPropertyHierarchy| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role (or response owlapi:+owlapi-owl-top-data-role+))) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (let ((res (owllink-data-property-hierarchy2 role))) (values res expressions)))))))) (tag-parser |GetSuperDataPropertyHierarchy| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.DataProperty| expressions) (let ((role (or response owlapi:+owlapi-owl-bottom-data-role+))) (if (not (owllink-data-property-p role)) (not-all-data-properties-error) (with-consistent-tbox (let ((res (owllink-data-property-hierarchy2 role t))) (values res expressions)))))))) ;;; ;;; ;;; (tag-parser |AreIndividualsEquivalent| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|Individuals| expressions) (let ((inds response)) (if (member nil inds) (bad-individuals-error) (with-consistent-abox (values (owllink-boolean-response-message (owlapi:pairwise-equivalent-p inds #'(lambda (x y) (member x (reasoner-individual-synonyms y *owllink-kb-and-reasoner*))))) expressions))))))) (tag-parser |AreIndividualsDisjoint| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|Individuals| expressions) (let ((inds response)) (if (member nil inds) (bad-individuals-error) (with-consistent-abox (values (owllink-boolean-response-message (owlapi:for-all-pairs-holds-p inds #'(lambda (x y) (member x (reasoner-individual-antonyms y *owllink-kb-and-reasoner*))))) expressions))))))) (ano-loop-parser |Individuals| |owl.Individual|) (dummy-tag-parser |owl.Individual| (multiple-value-bind (ind expressions) (parse-individual expressions) (values ind expressions))) (tag-parser |IsInstanceOf| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-abox (values (owllink-boolean-response-message (owllink-is-instance-of ind concept *direct*)) expressions)))))))))) ;;; ;;; ;;; (tag-parser |GetTypes| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-types ind) expressions))))))) (tag-parser |GetFlattenedTypes| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-types ind t) expressions))))))) ;;; ;;; ;;; (defun individual-list-result (set &optional single-p synset-p set-of-syntax-p) (if (not single-p) (let ((set (mapcar #'(lambda (x) (make-individual-synset x)) (remove nil (remove-duplicates (loop as c in set collect (reasoner-individual-synonyms c *owllink-kb-and-reasoner*))))))) (make-set-of-synsets '|Individual| set set-of-syntax-p)) (let ((set (reasoner-individual-synonyms set *owllink-kb-and-reasoner*))) (if synset-p (make-individual-synonyms set) (make-set-of-individuals set))))) (defun flat-individual-list-result (set &optional single-p) (let ((set (if single-p (reasoner-individual-synonyms set *owllink-kb-and-reasoner*) (remove nil (remove-duplicates (apply #'append (loop as c in set collect (reasoner-individual-synonyms c *owllink-kb-and-reasoner*)))))))) (make-set-of-individuals set))) (tag-parser |GetDisjointIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-disjoint-individuals ind) expressions))))))) (tag-parser |GetDifferentIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-disjoint-individuals ind) expressions))))))) ;;; ;;; ;;; (tag-parser |GetFlattenedDisjointIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-disjoint-individuals ind t) expressions))))))) (tag-parser |GetFlattenedDifferentIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-disjoint-individuals ind t) expressions))))))) (tag-parser |GetEquivalentIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (individual-list-result ind t t)))))))) (tag-parser |GetSameIndividuals| () (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (individual-list-result ind t t)))))))) ;;; ;;; ;;; (tag-parser |GetObjectPropertiesBetween| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-parser-call (|owl.Individual| expressions) (let ((target response)) (if (not source) (no-individual-error) (with-consistent-abox (values (owllink-get-object-properties-between source target) expressions)))))))))) (tag-parser |GetFlattenedObjectPropertiesBetween| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-parser-call (|owl.Individual| expressions) (let ((target response)) (if (not source) (no-individual-error) (with-consistent-abox (values (owllink-get-object-properties-between source target t) expressions)))))))))) (tag-parser |GetObjectPropertiesOfSource| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-consistent-abox (values (owllink-get-object-properties-of-source source) expressions))))))) (tag-parser |GetFlattenedObjectPropertiesOfSource| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-consistent-abox (values (owllink-get-object-properties-of-source source t) expressions))))))) (tag-parser |GetObjectPropertiesOfTarget| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((target response)) (if (not target) (no-individual-error) (with-consistent-abox (values (owllink-get-object-properties-of-target target) expressions))))))) (tag-parser |GetFlattenedObjectPropertiesOfTarget| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.Individual| expressions) (let ((target response)) (if (not target) (no-individual-error) (with-consistent-abox (values (owllink-get-object-properties-of-target target t) expressions))))))) ;;; ;;; ;;; (tag-parser |AreIndividualsRelated| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (owllink-data-property-p role) (bad-object-property-expressions-error) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-parser-call (|owl.Individual| expressions) (let ((target response)) (if (not target) (no-individual-error) (with-consistent-abox (values (owllink-boolean-response-message (reasoner-individuals-related-p source target (if *negative* `(not ,role) role) *owllink-kb-and-reasoner*)) expressions)))))))))))))) (tag-parser |IsIndividualRelatedWithLiteral| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (bad-data-properties-error) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-boolean-response-message (find literal (reasoner-get-individual-datatype-fillers source *owllink-kb-and-reasoner*) :key #'second :test (lambda (literal literal-list) (find literal literal-list :test #'equal)))) expressions))))))))))))))) (dummy-tag-parser |owl.Literal| (multiple-value-bind (literal expressions) (parse-literal expressions) (values literal expressions))) ;;; ;;; ;;; (tag-parser |GetDataPropertiesBetween| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-get-data-properties-between source literal) expressions))))))))))) (tag-parser |GetFlattenedDataPropertiesBetween| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-get-data-properties-between source literal t) expressions))))))))))) (tag-parser |GetDataPropertiesOfSource| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-consistent-abox (values (owllink-get-data-properties-of-source source) expressions)))))))) (tag-parser |GetFlattenedDataPropertiesOfSource| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.Individual| expressions) (let ((source response)) (if (not source) (no-individual-error) (with-consistent-abox (values (owllink-get-data-properties-of-source source t) expressions)))))))) (tag-parser |GetDataPropertiesOfLiteral| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-get-data-properties-of-literal literal) expressions)))))))) (tag-parser |GetFlattenedDataPropertiesOfLiteral| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-get-data-properties-of-literal literal t) expressions)))))))) ;;; ;;; ;;; (tag-parser |GetInstances| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-abox (values (owllink-get-instances concept *direct*) expressions))))))) (tag-parser |GetObjectPropertyTargets| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (owllink-data-property-p role) (bad-object-property-expressions-error) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-object-property-targets ind role) expressions))))))))))) (tag-parser |GetObjectPropertySources| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (owllink-data-property-p role) (bad-object-property-expressions-error) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-object-property-sources ind role) expressions))))))))))) ;;; ;;; ;;; (tag-parser |GetFlattenedInstances| ((|direct|) (let ((*direct* (string-to-boolean (get-attribute-value '|direct| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ClassExpression| expressions) (let ((concept response)) (if (not concept) (no-class-expression-error) (with-consistent-abox (values (owllink-get-instances concept *direct* t) expressions))))))) (tag-parser |GetFlattenedObjectPropertyTargets| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (owllink-data-property-p role) (bad-object-property-expressions-error) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-object-property-targets ind role t) expressions))))))))))) (tag-parser |GetFlattenedObjectPropertySources| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (with-parser-call (|owl.ObjectPropertyExpression| expressions) (let ((role response)) (if (not role) (no-object-property-expression-error) (if (owllink-data-property-p role) (bad-object-property-expressions-error) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-object-property-sources ind role t) expressions))))))))))) ;;; ;;; ;;; (tag-parser |GetDataPropertySources| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (bad-data-properties-error) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-get-data-property-sources literal role) expressions)))))))))))) (defun flat-literal-list-result (set) (make-set-of '|Literals| '|Literal| set)) (tag-parser |GetDataPropertyTargets| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (bad-data-properties-error) (with-parser-call (|owl.Individual| expressions) (let ((ind response)) (if (not ind) (no-individual-error) (with-consistent-abox (values (owllink-get-data-property-targets ind role) expressions)))))))))))) ;;; ;;; ;;; (tag-parser |GetFlattenedDataPropertySources| ((|negative|) (let ((*negative* (string-to-boolean (get-attribute-value '|negative| attributes)))))) (with-present-kb (reasoner-sync *owllink-kb-and-reasoner*) (if *negative* (owllink-semantic-error-message :error (error-message "Cannot deal with negated DataProperties yet. To be implemented")) (with-parser-call (|owl.DataProperty| expressions) (let ((role response)) (if (not role) (no-data-property-error) (if (not (owllink-data-property-p role)) (bad-data-properties-error) (with-parser-call (|owl.Literal| expressions) (let ((literal response)) (if (not literal) (no-literal-error) (with-consistent-abox (values (owllink-get-data-property-sources literal role t) expressions)))))))))))) ;;; ;;; ;;; #+:racer-server (tag-parser |http://www.racer-systems.com/owllink/ext/racer#Racer| ((|http://www.racer-systems.com/owllink/ext/racer#command|) (let ((*command* (get-attribute-value '|http://www.racer-systems.com/owllink/ext/racer#command| attributes)) (reasoner (or *owllink-kb-and-reasoner* owlapi:*default-reasoner-name*))))) (with-reasoner (reasoner) (let ((string1 nil) (string2 nil) (command (or *command* (if (stringp (first expressions)) (first expressions) (with-output-to-string (stream) (pprint (first expressions) stream)))))) (declare (ignorable string2)) (reasoner-sync *owllink-kb-and-reasoner*) (setf string1 (with-output-to-string (stream1) (setf string2 (with-output-to-string (stream2) (let ((cl-user::*one-simple-output* t)) (cl-user::process-racer-string stream1 command 0 (find-package :cl-user) stream2)))))) (if (and (>= (length string1) 6) (string-equal (subseq string1 0 6) ":error")) (owllink-error-message :error (error-message "Problems with Racer request: ~S" command)) (progn (pushnew "http://www.racer-systems.com/owllink/ext/racer#" *additional-answer-namespaces-used* :test #'string=) (make-owllink-message '|http://www.racer-systems.com/owllink/ext/racer#RacerAnswer| nil string1)))))) #+:racer-server (tag-parser |http://www.racer-systems.com/owllink/ext/racer#FullReset| () (full-reset) (values (owllink-ok-message) expressions)) ;;; ;;; ;;; #+:ignore (defun add-package-nickname (name nickname) (let ((p (find-package name))) (rename-package p (package-name p) (cons nickname (package-nicknames name))))) (tag-parser |NamespacePrefix| () (let ((prefix (normalize-prefix (first expressions))) (namespace (normalize-url (second expressions)))) (pushnew (cons prefix namespace) *last-request-xml-and-functional-namespaces* :test #'equal) ;;; (add-package-nickname namespace prefix) (values (owllink-ok-message :warning (format nil "Prefix ~A = ~A" prefix namespace)) expressions))) (tag-parser |RenderingOption| () (let ((key (first expressions)) (value (second expressions))) (pushnew (list (owlapi:ensure-string key) (owlapi:ensure-string value)) *last-request-rendering-options* :test #'equal) (values (owllink-ok-message :warning (format nil "RenderingOption ~A = ~A" key value)) expressions))) ;;; ;;; ;;; (defun expand-functional-tag-name (name1) (if (symbolp name1) (let* ((name (symbol-name name1)) (pos (position #\. name))) (if pos (let* ((prefix (subseq name 0 pos))) (if (or (string= prefix "owl") ; only extensions have full qualified name in this implementation (string= prefix "ol")) (intern (subseq name (1+ pos))) (let ((ns (cdr (assoc prefix *last-request-xml-and-functional-namespaces* :test #'string=)))) (if ns (intern (format nil "~A~A" ns (subseq name (1+ pos)))) name1)))) name1)) name1)) (defun get-tag-and-prefix (name1) (if (symbolp name1) (let* ((name (symbol-name name1)) (pos (position #\. name))) (if pos (values (intern (subseq name (1+ pos))) (intern (subseq name 0 pos))) name1)) name1))
120,819
Common Lisp
.lisp
3,118
27.87492
174
0.565947
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
f2cc94dda7c1b79fe6f8b442ebec10fd209303ab4514fc28cc51a2cfea226b4b
6,333
[ -1 ]
6,334
import-export.lisp
lambdamikel_OntoLisp/ontolisp-0.9/import-export.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; import-export.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Top-level interface for OWL 2 import and export functionality. ;;; (owlapi:defmethod1 write-owl-file ((ontology owlapi:ontology) (fn pathname) (syntax symbol) &rest args) (apply #'write-owl-file ontology (namestring fn) syntax args)) (owlapi:defmethod1 write-owl-file ((ontology owlapi:ontology) (fn string) (syntax symbol) &key prefixes (p4-mode *p4-mode*) (comments *comments*) &allow-other-keys) (with-open-file (stream fn :direction :output :if-exists :supersede :if-does-not-exist :create) (let* ((*add-prefixes* prefixes) (*p4-mode* p4-mode) (*comments* comments) (axioms (render stream ontology syntax))) (when #+:racer-server *tbox-verbose* #-:racer-server t (format t "~%Rendered ~A axioms." axioms) (when (zerop axioms) (format t "~%Note that OWLAPI rendering only works if axiom objects were maintained! Please make sure that the ontology was loading using \"(owlapi-read-ontology <filename> :maintain-owlapi-axioms t)\"."))) (if (zerop axioms) (list fn :warning-no-renderable-axioms-found) fn)))) ;;; ;;; ;;; (owlapi:owlapi-defun (|OWLAPI-writeOntologyFile|) (ontology fn &rest args) (#+:racer-server racer:without-duplicate-warnings #-:racer-server progn #+:racer-server (ts:check-if-unsafe) (let ((ont (owlapi:find-owl-ontology ontology))) (apply #'write-owl-file ont fn :owl-rdf args)))) (owlapi:owlapi-defun (|OWLAPI-writeFunctionalOntologyFile|) (ontology fn &rest args) (#+:racer-server racer:without-duplicate-warnings #-:racer-server progn #+:racer-server (ts:check-if-unsafe) (let ((ont (owlapi:find-owl-ontology ontology))) (apply #'write-owl-file ont fn :owl-functional args)))) (owlapi:owlapi-defun (|OWLAPI-writeXMLOntologyFile|) (ontology fn &rest args) (#+:racer-server racer::without-duplicate-warnings #-:racer-server progn #+:racer-server (ts::check-if-unsafe) (let ((ont (owlapi:find-owl-ontology ontology))) (apply #'write-owl-file ont fn :owl-xml args)))) ;;; ;;; Export Master ;;; (owlapi:owlapi-defun (|OWLAPI-saveOntology|) (ontology fn &rest args &key reasoner (syntax :owl-rdf) prefixes (p4-mode *p4-mode*) (comments *comments*) &allow-other-keys) (declare (ignorable prefixes p4-mode comments)) (#+:racer-server racer::without-duplicate-warnings #-:racer-server progn (with-reasoner (reasoner) (ecase syntax ((:owl-rdf :rdf-xml :owl) (apply #'|OWLAPI-writeOntologyFile| ontology fn args)) ((:owl-functional :ofn :owf :funct :functional) (apply #'|OWLAPI-writeFunctionalOntologyFile| ontology fn args)) ((:owl-xml :xml :owx) (apply #'|OWLAPI-writeXMLOntologyFile| ontology fn args)))))) ;;; ;;; Import Master ;;; (owlapi:owlapi-defun (|OWLAPI-readOntology|) (url &rest args &key (ignore-import *ignore-import-p*) &allow-other-keys) (let ((*imported-ontologies* nil) (*import-level* -1) ; richtig! (*ignore-import-p* ignore-import)) (if (not (owlapi:is-url-p url)) (apply #'owlapi-import-ontology (make-url-from-filename url) :allow-other-keys t args) (apply #'owlapi-import-ontology url :allow-other-keys t args))))
9,047
Common Lisp
.lisp
183
42.163934
95
0.627717
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
a09de35a1c3f49c573b1ce91bf3e948c7f8cff936439f1ab4cc56736c6056e7b
6,334
[ -1 ]
6,335
owl-functional.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owl-functional.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owl-functional.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Parser for OWL 2 functional syntax. ;;; (define-constant +start-sym+ (gensym)) (define-constant +end-sym+ (gensym)) (define-constant +continue-sym+ (gensym)) (define-constant +ano-ind-prefix+ '|@#?ano|) (define-constant +xsd-uri+ #+:racer-server nox:-xsd-uri- #-:racer-server "http://www.w3.org/2001/XMLSchema#") ;;; ;;; ;;; (defvar *use-owlapi-flipped-class-assertions-p* nil) (defvar *strict-owl-functional* nil) (defvar *ano-ind-counter* 0) (defvar *merge-imported-ontologies-p* nil) (defvar *indent* 0) ;;; ;;; ;;; (defvar *use-xml-base* nil) (defvar *owl-xml-mode* nil) ;;; ;;; ;;; (defvar *producer* nil) (defvar *use-chopper-p* nil) (defclass owl-producer () ((char-count :initform 0) (has-more-p :initform t) (eof-p :initform nil) (stream-closed-p :initform nil) (stream :initarg :stream) (n :initarg :n) (m :initarg :m) (cdr-stack :initform (list (list +start-sym+))) (first-token-p :initform t) (token :initform nil) (literal :initform nil) (last-was-whitespace-p :initform nil) (reading-comment-p :initform nil) (single-escape-p :initform nil) (reading-string-p :initform nil) (reading-number-p :initform nil) (reading-uri-p :initform nil) (reading-type-p :initform nil) (reading-language-tag-p :initform nil) (g-cell :initform nil) (first-cell :initform nil))) (defun get-owl-producer (stream) (let* ((n (or (if (typep stream 'file-stream) (file-length stream) 0))) (m (floor (/ n 100))) (m (if (zerop m) 1 m)) (producer (make-instance 'owl-producer :stream stream :n n :m m))) producer)) (defun get-token (self) (with-slots (has-more-p stream-closed-p stream char-count m n first-token-p token literal last-was-whitespace-p reading-comment-p single-escape-p reading-string-p reading-number-p reading-uri-p reading-type-p reading-language-tag-p) self (declare (ignorable m n)) (macrolet ((get-char (&optional keep-in-buffer-p) `(unless stream-closed-p (let ((char (read-char stream nil nil))) (when char (when ,keep-in-buffer-p (unread-char char stream))) (cond (char (incf char-count) #+:racer-server (when (zerop (mod char-count m)) (user::set-progress-value (file-position stream))) (setf has-more-p t) #+:ignore (setf has-more-p (or ,keep-in-buffer-p (< (file-position stream) n))) char) (t (setf stream-closed-p t) (setf has-more-p nil) (close stream) nil))))) (next-char () `(get-char t)) (clear () `(prog1 (if reading-string-p (shrink-whitespaces (coerce (nreverse token) 'string)) (when token (cond (reading-number-p (read-from-string (coerce (nreverse token) 'string))) (reading-type-p `(,+start-sym+ |OWLLiteral| ,(shrink-whitespaces (coerce (nreverse token) 'string)) ,literal :no-language-tag ,+end-sym+)) (reading-language-tag-p `(,+start-sym+ |OWLLiteral| :no-type ,literal ,(shrink-whitespaces (coerce (nreverse token) 'string)) ,+end-sym+)) (t (intern (shrink-whitespaces (coerce (nreverse token) 'string))))))) (setf token nil literal nil reading-number-p nil reading-comment-p nil single-escape-p nil reading-type-p nil reading-language-tag-p nil reading-string-p nil reading-uri-p nil)))) (cond (first-token-p #+:racer-server (user::set-progress-100% n) (setf first-token-p nil) (values nil :open)) (t (loop (let ((char (get-char))) (cond ((not char) (return (values nil :eof))) (t (cond (single-escape-p (setf single-escape-p nil last-was-whitespace-p nil) (push char token)) ((char= char #\\) (setf single-escape-p t last-was-whitespace-p nil)) ((and (char= char #\/) ; Kommentar! (char= (next-char) #\/) (not reading-uri-p) (not reading-string-p)) (setf last-was-whitespace-p nil reading-comment-p t) (when token (return-from nil (values (clear) :comment)))) (reading-comment-p (setf reading-comment-p nil) (loop (let ((char (next-char))) (when (or (not char) (char= char #\Newline)) (return)) (get-char)))) ((and (owlapi:whitespace-char-p char) (not reading-string-p)) (setf last-was-whitespace-p t) (let ((tk (clear))) (when tk (return-from nil tk)))) ((and (digit-char-p char) (not reading-number-p) (not reading-string-p) (not reading-uri-p) (not token)) (let ((tk (clear))) (setf last-was-whitespace-p nil reading-number-p t) (push char token) (when tk (return-from nil tk)))) ((and (char= char #\") reading-string-p) (let ((next (next-char))) (cond ((or (char= next #\^) (char= next #\@)) (setf reading-string-p nil)) (t (let ((tk (clear))) (setf last-was-whitespace-p nil) (when tk (return-from nil tk))))))) ((and (char= char #\") (not reading-string-p)) (setf reading-string-p t last-was-whitespace-p nil)) ((and (char= char #\>) reading-uri-p) (unless (char= (next-char) #\() (let ((tk (clear))) (setf last-was-whitespace-p nil) (when tk (return-from nil tk))))) ((and (char= char #\<) (not reading-uri-p) (not reading-string-p)) (setf reading-uri-p t last-was-whitespace-p nil)) ((and (char= char #\^) (char= (next-char) #\^) (not reading-string-p)) (get-char) (setf reading-string-p t) (let ((tk (clear))) (setf reading-string-p nil) (setf literal tk reading-type-p t last-was-whitespace-p nil))) ((and (char= char #\@) (not reading-string-p)) (setf reading-string-p t) (let ((tk (clear))) (setf reading-string-p nil) (setf literal tk reading-language-tag-p t last-was-whitespace-p nil))) ((and (char= char #\() (not reading-string-p)) (let ((tk (clear))) (setf last-was-whitespace-p nil) (return-from nil (values tk :open)))) ((and (char= char #\)) (not reading-string-p)) (let ((tk (clear))) (setf last-was-whitespace-p nil) (return-from nil (values tk :close)))) (t (setf last-was-whitespace-p nil) (push char token)))))))))))) (defun get-expression (self) (with-slots (has-more-p g-cell first-cell cdr-stack eof-p) self (cond (eof-p :eof) (t (multiple-value-bind (token bracket-or-comment) (get-token self) ;; (pprint token) ;; (pprint first-cell) (case bracket-or-comment (:eof (setf eof-p t)) (:comment (get-expression self)) (:open (let ((cell (if has-more-p (if token (list +start-sym+ token +continue-sym+) (list +start-sym+ +continue-sym+)) (if token (list +start-sym+ token) (list +start-sym+))))) (when cdr-stack (let ((cell (list cell +continue-sym+))) (setf (cdr (last (first cdr-stack))) cell) ;; advance last pointer ;; keep "last" efficent (small list) (setf (first cdr-stack) cell))) (setf g-cell cell) (push cell cdr-stack))) (:close (let ((cell (if token (list token +end-sym+) (list +end-sym+)))) (when cdr-stack (setf (cdr (last (first cdr-stack))) cell)) (setf g-cell cell)) (pop cdr-stack)) (otherwise (let ((cell (if has-more-p (list token +continue-sym+) (list token)))) (when cdr-stack (setf (cdr (last (first cdr-stack))) cell) ;; advance last pointer ;; keep "last" efficent (small list) (setf (first cdr-stack) cell)) (setf g-cell cell))))) (cond (eof-p (when (eq (first (last (first cdr-stack))) +continue-sym+) (setf (cdr (last (first cdr-stack))) (list +end-sym+))) :eof) (t (unless first-cell (setf first-cell (list self g-cell))) first-cell)))))) ;;; ;;; ;;; (defmacro f-list-p (arg) (let ((g (gensym))) `(let ((,g ,arg)) (and (consp ,g) (typep (first ,g) 'owl-producer) (cdr ,g))))) (defmacro f-first (arg) (let ((g (gensym))) `(let ((,g ,arg)) (cond ((f-list-p ,g) (let* ((self (first ,g)) (arg (second ,g)) (pos (position-if-not #'(lambda (x) (or (eq x +start-sym+) (eq x +continue-sym+))) arg)) (return (cond (pos ; token oder +end-sym+ (let ((item (nth pos arg))) (if (eq item +end-sym+) nil item))) ((not arg) nil) (t (let ((last (first (last arg))) (n (length arg))) (unless (eq last +continue-sym+) (break "f-first problem: ~S ~S!" arg last)) (loop (get-expression self) (let ((res (first (nthcdr n arg)))) (when res (return (if (eq res +end-sym+) nil res)))))))))) (if (consp return) (list self return) return))) (t (first ,g)))))) (defmacro f-rest (arg) (let ((g (gensym))) `(let ((,g ,arg)) (cond ((f-list-p ,g) (let* ((self (first ,g)) (arg (second ,g)) (pos (position-if-not #'(lambda (x) (or (eq x +start-sym+) (eq x +continue-sym+))) arg)) (return (cond (pos ; token oder +end-sym+ (let ((item (nth pos arg))) (if (eq item +end-sym+) nil (let ((item (nthcdr (1+ pos) arg))) (cond ((eq (first item) +end-sym+) nil) ((eq (first item) +continue-sym+) (loop (get-expression self) (let ((item (nthcdr (+ 2 pos) arg))) (when item (return (if (eq (first item) +end-sym+) nil item)))))) (t item)))))) ((not arg) nil) (t (let ((last (first (last arg))) (n (length arg))) (unless (eq last +continue-sym+) (break "f-rest problem: ~S ~S!" arg last)) (loop (get-expression self) (let ((res (nthcdr (1+ n) arg))) (when res (return res))))))))) (if (consp return) (list self return) return))) (t (rest ,g)))))) (defmacro f-second (arg) (let ((g (gensym))) `(let ((,g ,arg)) (f-first ,g) (f-first (f-rest ,g))))) (defmacro f-third (arg) (let ((g (gensym))) `(let ((,g ,arg)) (f-second ,g) (f-first (f-rest (f-rest ,g)))))) (defmacro f-fourth (arg) (let ((g (gensym))) `(let ((,g ,arg)) (f-third ,g) (f-first (f-rest (f-rest (f-rest ,g))))))) (defmacro f-consp (arg) (let ((g (gensym))) `(let ((,g ,arg)) (cond ((f-list-p ,g) (let ((self (first ,g)) (arg (second ,g))) (declare (ignorable self)) (cond ((consp arg) (let* ((pos (position-if-not #'(lambda (x) (or (eq x +start-sym+) (eq x +continue-sym+))) arg))) (cond (pos ; end-sym or token (let ((token (nth pos arg))) (if (eq token +end-sym+) nil t))) (t ; start-sym or continue-sym (let ((token (first (last arg)))) (unless (eq token +continue-sym+) (break "f-consp problem: ~S ~S!" arg token)) (loop (get-expression self) (when (first (last arg)) (return))) (not (eq (first (last arg)) +end-sym+))))))) (t nil)))) (t (consp ,g)))))) (defmacro f-null (arg) (let ((g (gensym))) `(let ((,g ,arg)) (cond ((f-list-p ,g) (null (f-first ,g))) (t (null ,g)))))) (defmacro f-length (arg) (let ((g (gensym))) `(let ((,g ,arg)) (cond ((f-list-p ,g) (let ((count 0)) (loop (let ((first (f-first ,g))) (cond (first (incf count) (setf ,g (f-rest ,g)) (unless ,g (return))) (t (return))))) count)) (t (length ,g)))))) ;;; ;;; ;;; (defun make-url-from-filename (fn) (let ((fn (if (symbolp fn) (symbol-name fn) fn))) (owlapi:string-substitute (if (owlapi:is-url-p fn) fn (let ((pos (search "~/" fn))) ;;; ~ not sufficent here - Windows: "C:\\DOKUME~1\\.." (if pos (format nil "file://~A~A~A" (subseq fn 0 pos) (let ((home (namestring (user-homedir-pathname)))) (subseq home 0 (1- (length home)))) (subseq fn (1+ pos))) (format nil "file://~A" fn)))) '(("\\" "/"))))) ;;; ;;; ;;; (defun is-ano-ind-p (ind) (let* ((ind (symbol-name ind)) (n (length ind))) (and (> n 6) (string= (symbol-name +ano-ind-prefix+) (subseq ind 0 6))))) (defun without-ano-ind-prefix (ind) (let ((ind (symbol-name ind))) (intern (let ((pos (position #\* ind :from-end t))) (subseq ind 6 pos))))) ;;; ;;; ;;; (defmacro check-for (args type) `(or (eq (f-first (f-first ,args)) ',type) (eq (f-first (f-first ,args)) (quote ,(intern (format nil "owl.~A" type)))))) (defun remove-sharp-brackets (string) (if (string-equal string "") string (progn (when (char= (elt string 0) #\<) (setf string (subseq string 1))) (when (char= (elt string (1- (length string))) #\>) (setf string (subseq string 0 (1- (length string))))) string))) (defun parse-iri (args &optional ano-ind-p) (with-slots (id-to-object-table) *cur-reasoner* (cond ((and (f-first args) (symbolp (f-first args))) (let* ((name (symbol-name (f-first args))) (name (remove-sharp-brackets name)) (name (if (char= #\: (elt name 0)) (subseq name 1) name)) (rest (f-rest args)) (pos (position #\: name)) (name1 (if pos (subseq name (1+ pos)) name))) (if (or ano-ind-p (string= "_" (subseq name 0 pos))) ; ano ind? (values (or (gethash name id-to-object-table) (setf (gethash name id-to-object-table) (intern (format nil "~A~A*~A" +ano-ind-prefix+ name1 ;;; must be global! (incf *ano-ind-counter*))))) (f-rest args)) (let* ((prefix (when pos (owlapi:to-keyword (subseq name 0 (1+ pos)))))) (case prefix ((:|http:| :|file:|) (values (intern (owlapi:ensure-string name)) rest)) (otherwise (values (if (and *use-xml-base* ;;; may be NIL ;;; use xml-base only as prefix if no default prefix ;;; was defined (not (owlapi:expand-prefix prefix))) (intern (format nil "~A~A" *use-xml-base* name1)) (owlapi:make-uri (or prefix :defaultnamespace) name1)) rest))))))) ((and (stringp (f-first args)) (char= #\< (elt (f-first args) 0))) (let ((string (f-first args))) (values (remove-sharp-brackets string) (f-rest args)))) ((stringp (f-first args)) (parse-iri (cons (intern (f-first args)) (f-rest args)) ano-ind-p)) ((and (f-consp (f-first args)) (member (f-first (f-first args)) '(IRI |abbreviatedIRI| |AbbreviatedIRI| |abreviatedIRI| |AbreviatedIRI| |datatypeIRI| |DatatypeIRI|))) (parse-iri (cons (f-second (f-first args)) (f-rest args)) ano-ind-p)) (t (values nil args))))) (defun parse-literal (args) (if (and (f-consp args) (member (f-first args) '(|Literal| |Constant|))) ;;; wants a LIST of Literals... (progn (parse-literal (list args))) (let* ((args (if (stringp args) (list args) args)) (val (f-first args)) (rest (f-rest args)) (val2 nil) (language nil) (type nil)) (declare (ignorable language)) (cond ((and (f-consp val) (member (f-first val) '(|Literal| |Constant|)) (= (f-length val) 3)) (if (and (f-consp (f-second val)) (equal (butlast (f-second val)) '(|Attribute| |datatypeIRI|))) (progn (setf type (f-third (f-second val)) val2 (f-third val))) (progn (setf type (f-second val)) (setf val2 (f-third val))) )) ((and (f-consp val) (member (f-first val) '(|Literal| |Constant|)) (= (f-length val) 2)) (setf type nil) (setf val2 (f-second val))) ((and (f-consp val) (member (f-first val) '(|OWLLiteral|)) (= (f-length val) 3)) (setf type (f-third val)) (setf val2 (f-second val))) ((and (f-consp val) (member (f-first val) '(|OWLLiteral|)) (= (f-length val) 4)) (setf language (f-fourth val)) (setf type (if (not (eq language :no-language-tag)) "xsd:string" (f-second val))) (setf val2 (f-third val))) ((stringp val) #| (if val-type (let* ((pos1 (search "^^" val-type))) (when pos1 (setf type (when pos1 (subseq val-type (+ 2 pos1)))) (when pos1 (setf rest (f-rest rest))) (setf val2 val))) (let* ((pos1 (position #\^ val)) (pos2 (position #\@ val)) (args (remove nil (list pos1 pos2))) (pos (when args (apply #'min args)))) (setf type (when pos1 (subseq val (+ 2 pos1)))) (setf val2 (if pos (subseq val 0 pos) val)))) |# (setf val2 val)) (t (return-from parse-literal (values nil args)))) (values `(d-literal ,val2 ,(convert-owl-base-type type)) rest)))) (defun convert-owl-base-type (type) (cond ((not type) nil ; "Racer Auto Typing" ) ((and (> (length type) 5) (string-equal "<http:" (subseq type 0 6))) `(d-base-type ,(intern (subseq type 1 (1- (length type)))))) ((and (> (length type) 4) (string-equal "http:" (subseq type 0 5))) `(d-base-type ,(intern (subseq type 0 (length type))))) (t (let* ((pos (position #\: type)) (res ;;(racer::transform-type `(d-base-type ,(intern (if pos (concatenate 'string +xsd-uri+ (subseq type (1+ pos))) (concatenate 'string +xsd-uri+ type)))))) res)))) (defun convert-owl-data-range (owl-range) (cond ((symbolp owl-range) ;;; datatypeURI `(d-base-type ,owl-range)) ((consp owl-range) (let ((op (first owl-range))) (ecase op (|DataComplementOf| `(d-complement ,(convert-owl-data-range (second owl-range)))) (|DataIntersectionOf| `(d-and ,@(mapcar #'convert-owl-data-range (rest owl-range)))) (|DataUnionOf| `(d-or ,@(mapcar #'convert-owl-data-range (rest owl-range)))) (|DataOneOf| `(d-possible-values ,@(mapcar #'convert-owl-data-range (rest owl-range)))) (|DatatypeRestriction| (let* ((basetype (convert-owl-data-range (second owl-range))) (facets-and-values (cddr owl-range)) (owl-facets-and-values (loop as facet in facets-and-values by #'cddr as value in (cdr facets-and-values) by #'cddr collect (convert-owl-data-facet facet value)))) `(d-restriction (d-base-type ,basetype) ,@owl-facets-and-values))) (t (owlapi:owlapi-parser-error "Bad data range: ~A" owl-range))))) (t owl-range))) (defun convert-owl-data-facet (facet value) (if (owlapi:is-url-p facet) `(d-facet ,(if (stringp facet) (intern facet) facet) ,(if (consp value) value `(d-literal ,value nil))) (multiple-value-bind (prefix postfix) (owlapi:get-prefix-postfix facet) (declare (ignorable prefix)) `(d-facet ,(ecase postfix (|length| (intern (format nil "~Alength" +xsd-uri+))) (|minLength| (intern (format nil "~AminLength" +xsd-uri+))) (|maxLength| (intern (format nil "~AmaxLength" +xsd-uri+))) (|pattern| (intern (format nil "~Apattern" +xsd-uri+))) (|minInclusive| (intern (format nil "~AminInclusive" +xsd-uri+))) (|maxInclusive| (intern (format nil "~AmaxInclusive" +xsd-uri+))) (|minExclusive| (intern (format nil "~AminExclusive" +xsd-uri+))) (|maxExclusive| (intern (format nil "~AmaxExclusive" +xsd-uri+))) (|totalDigits| (intern (format nil "~AtotalDigits" +xsd-uri+))) (|fractionDigits| (intern (format nil "~AfractionDigits" +xsd-uri+)))) ,(if (consp value) value `(d-literal ,value nil)))))) ;;; ;;; ;;; (defun create-annotations (constructor annotations) (let ((prev nil)) (dolist (annotation-annotations annotations) (dolist (annotation annotation-annotations) (setf prev (if prev (|OWLAPI-getOWLAxiomAnnotationAxiom| prev annotation) (funcall constructor annotation))))))) ;;; ;;; ;;; (defun parse-ontology-document (args &key uri (error-p t)) (let ((ontology nil) (namespaces nil) (additional-namespaces nil)) (cond ((f-consp args) (multiple-value-setq (namespaces args) (parse-ontology-prefixes args)) (multiple-value-setq (ontology additional-namespaces ;;; for OWL XML -> OWL Functional Converter ) (parse-ontology args :uri uri :namespaces namespaces)) (unless ontology (when error-p (owlapi:owlapi-parser-error "parse-ontology-document: no ontology in ~A" args)) (return-from parse-ontology-document nil)) (values ontology (append namespaces additional-namespaces))) (t (values nil args))))) ;;; ;;; ;;; (defun parse-ontology-prefixes (args) (let ((namespace nil) (namespaces nil) (done nil)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (namespace args) (parse-prefix-declaration args)) (when namespace (push namespace namespaces) (setf done nil))) (values namespaces args))) (defun parse-prefix-declaration (args &optional (error-p t)) (labels ((register-prefix (prefix ns) (let* ((prefix (owlapi:ensure-string prefix)) (ns (owlapi:ensure-string ns)) (prefix (when (and prefix (not (string= prefix ""))) (owlapi:ensure-ends-with-colon prefix))) (ns (remove-sharp-brackets ns)) (hte (if (and prefix (not (string= prefix ""))) (list prefix ns) (list :defaultnamespace ns)))) (|OWLAPI-getOWLPrefixDeclarationAxiom| prefix ns) (values (cons '|Namespace| hte) (f-rest args))))) (if (and (f-consp (f-first args)) (or (check-for args |Namespace|) (check-for args |Prefix|))) (cond ((= 2 (f-length (f-first args))) (cond ((consp (f-second (f-first args))) ;;; Syntax we get from OWL XML -> OWL Functional (let ((prefix (second (assoc '|name| (f-second (f-first args))))) (ns (second (assoc '|IRI| (f-second (f-first args)))))) (unless ns (when error-p (owlapi:owlapi-parser-error "parse-namespace: no namespace in ~A" args)) (return-from parse-prefix-declaration (values nil (f-rest args)))) (register-prefix prefix ns))) (t (let ((ns (symbol-name (f-second (f-first args))))) (unless ns (when error-p (owlapi:owlapi-parser-error "parse-namespace: no namespace in ~A" args)) (return-from parse-prefix-declaration (values nil (f-rest args)))) (let* ((pos (position #\= ns)) (prefix (and pos (subseq ns 0 pos))) (ns (or (and pos (subseq ns (1+ pos))) ns))) (register-prefix prefix ns)))))) ((member '= (f-first args)) (let* ((pos (position '= (f-first args))) (prefix (first (cdr (subseq (f-first args) 0 pos)))) (ns (first (cdr (subseq (f-first args) pos))))) (register-prefix (when prefix (symbol-name prefix)) (symbol-name ns)))) ((= 3 (length (f-first args))) (register-prefix (f-second (f-first args)) (f-third (f-first args)))) ((and (= 4 (f-length (f-first args))) (eq '= (f-third (f-first args)))) ;;; OWLAPI 3.3: now correctly uses spaces ;;; Prefix( owl: = <http://www.w3.org/2002/07/owl#> ) ;;; Prefix( : = <http://example.org/> ) (register-prefix (f-second (f-first args)) (f-fourth (f-first args)))) (t (when error-p (owlapi:owlapi-parser-error "parse-namespace: no namespace in ~A" args)) (return-from parse-prefix-declaration (values nil (f-rest args))))) (values nil args)))) (defun parse-ontology (args &key uri (error-p t) namespaces) ;;; (setf *x* args) (if (and (f-consp (f-first args)) (check-for args |Ontology|)) (let ((args (f-rest (f-first args))) (imports nil) (annotations nil) (axioms nil) (uri1 nil) (uri2 nil) (version nil) (additional-namespaces nil)) (declare (ignorable imports annotations uri2 axioms version)) (multiple-value-setq (uri1 args) (parse-ontology-iri args)) (setf uri (or uri1 uri)) ;;; Reasoner name = file name ;;; Ontology name = from ontology file ;;; Consistent with owl-read-file/document behaviour #| (when (=> *merge-imported-ontologies-p* (not (cdr *imported-ontologies*))) (if (owlapi:find-owl-ontology uri) (progn (|OWLAPI-mergeOntologies| (|OWLAPI-getAutoOntology|) uri) (owlapi:set-primary-ontology-name (|OWLAPI-getAutoOntology|) uri)) ;;; wenn merge, dann bestimmt die 1. Ontology ;;; den primary ontology name (owlapi:set-primary-ontology-name (|OWLAPI-getAutoOntology|) uri))) |# (if (owlapi:find-owl-ontology uri nil) (progn (|OWLAPI-mergeOntologies| (|OWLAPI-getAutoOntology|) uri) (owlapi:set-primary-ontology-name (|OWLAPI-getAutoOntology|) uri)) (let ((auto (|OWLAPI-getAutoOntology|))) (if (eq auto :void) (progn ;;; may be caused by parseNative (Ontology) (owlapi-warning "No ontology container specified. Creating ontology container ~A in reasoner container ~A. Defined prefixes will be ignored - this can be avoided by creating the reasoner and ontology containers manually beforehand, and enabling auto-addition of axioms to it." uri uri) (|OWLAPI-newReasoner| uri) (|OWLAPI-newOntology| uri uri) (|OWLAPI-autoAddAxiomsTo| uri uri)) (owlapi:set-primary-ontology-name auto uri)))) ;;; ;;; ;;; (unless uri (when error-p (owlapi:owlapi-parser-error "parse-ontology: no ontology URI in ~A" uri)) (return-from parse-ontology (values nil (f-rest args)))) ;;; Syntax we get from OWL XML -> OWL Functional transformation (multiple-value-setq (additional-namespaces args) (parse-ontology-prefixes args)) ;;; ;;; ;;; (when (and (not (find-if #'owlapi:is-default-prefix-p namespaces :key #'second)) (not (find-if #'owlapi:is-default-prefix-p additional-namespaces :key #'second))) (owlapi-warning "No default OWL \"Prefix\" found. Using ontology name ~A" uri) (|OWLAPI-getOWLPrefixDeclarationAxiom| :defaultnamespace (if (char= #\# (elt (symbol-name uri) (1- (length (symbol-name uri))))) uri (intern (format nil "~A#" uri))))) ;;; ;;; ;;; (multiple-value-setq (uri2 args) (parse-ontology-version-iri args)) (multiple-value-setq (imports args) (parse-directly-imports-documents args)) (multiple-value-setq (annotations args) (parse-annotations args)) (create-annotations (lambda (x) (|OWLAPI-getOWLOntologyAnnotationAxiom| x)) annotations) (multiple-value-setq (axioms args) (parse-axioms args)) (values uri additional-namespaces)) (values nil args))) (defun parse-ontology-iri (args) (parse-iri args)) (defun parse-ontology-version-iri (args) (multiple-value-bind (iri args) (parse-iri args) (when iri (|OWLAPI-getOWLOntologyVersionDeclarationAxiom| iri)) (values iri args))) (defun parse-directly-imports-documents (args &optional (error-p t)) (let ((done nil) (import nil) (imports nil)) (labels ((parse-directly-imports-document (args) (if (and (f-consp (f-first args)) (check-for args |Import|)) (let* ((uri2 (parse-iri (list (f-second (f-first args))))) #+:ignore (uri (check-for-url-mirror uri2)) (uri uri2)) (unless (equalp uri uri2) (format t "~V@TURL ~A mirrored to ~A." #+:racer-server racer::*indent* #-:racer-server *indent* uri uri2)) (unless uri (when error-p (owlapi:owlapi-parser-error "parse-import: no URI in ~A" args)) (return-from parse-directly-imports-documents (values nil (f-rest args)))) (let ((axiom (when (or (and (not *merge-imported-ontologies-p*) (not (member uri *imported-ontologies*))) *ignore-import-p*) (|OWLAPI-getOWLImportsDeclarationAxiom| uri))) (ontology (|OWLAPI-getAutoOntology| *cur-reasoner*))) (owlapi-import-ontology uri :maintain-owlapi-axioms (not (owlapi:dont-keep-axioms-p *cur-reasoner*)) :ontology-name (when *merge-imported-ontologies-p* ontology) :reasoner-name (owlapi:owlapi-reasoner-name *cur-reasoner*) :init nil) (values axiom (f-rest args)))) (values nil args)))) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (import args) (parse-directly-imports-document args)) (when import (push import imports) (setf done nil))) (values imports args)))) (defun parse-axioms (args) (let ((done nil) (axiom nil) (axioms nil) (oargs args)) (loop while (and args (not done) (f-consp args)) do (multiple-value-setq (axiom args) (parse-axiom args)) (when (and *producer* *use-chopper-p*) (tree-chop oargs)) (when axiom ;;; (push axiom axioms) (setf done nil))) (values axioms args))) (defun tree-chop (tree) (if (consp tree) (if (cddr tree) (progn (setf (cdr tree) (last tree)) (tree-chop (last tree))) (mapc #'tree-chop tree)) tree)) ;;; ;;; ;;; (defun parse-declaration (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |Declaration|)) (let ((axiom-annotations nil) (entity nil) (oargs args) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (axiom-annotations args) (parse-annotations args)) (multiple-value-setq (entity args) (parse-entity args nil)) (unless entity (when (and error-p *strict-owl-functional*) (owlapi:owlapi-parser-error "parse-declaration: no entity in ~A" args)) (return-from parse-declaration (values nil (f-rest oargs)))) (let* ((axiom (|OWLAPI-getOWLDeclarationAxiom| entity))) (unless (eq axiom :void) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) axiom-annotations)) (values axiom rest))) (values nil args))) (defun parse-entity (args &optional (error-p t)) (cond ((f-consp args) (let ((entity nil)) (multiple-value-setq (entity args) (parse-class-entity args)) (when entity (return-from parse-entity (values entity args))) (multiple-value-setq (entity args) (parse-datatype-entity args)) (when entity (return-from parse-entity (values entity args))) (multiple-value-setq (entity args) (parse-object-property-entity args)) (when entity (return-from parse-entity (values entity args))) (multiple-value-setq (entity args) (parse-data-property-entity args)) (when entity (return-from parse-entity (values entity args))) (multiple-value-setq (entity args) (parse-annotation-property-entity args)) (when entity (return-from parse-entity (values entity args))) (multiple-value-setq (entity args) (parse-named-individual-entity args)) (when entity (return-from parse-entity (values entity args))) (when error-p (owlapi:owlapi-parser-error "parse-entity: unknown entity in ~A" args)) ;;; NICHT (f-rest args) ! (values nil args))) (t (values nil args)))) (defun parse-entity-add-iri (args &optional ano-ind-p) (let ((entity (f-first (f-first args)))) (values (list entity (parse-iri (f-rest (f-first args)) ano-ind-p)) (f-rest args)))) (defun parse-class-entity (args) (if (f-consp (f-first args)) (progn (if (or (check-for args |OWLClass|) (check-for args |Class|)) (parse-entity-add-iri args) (values nil args))) (values nil args))) (defun parse-datatype-entity (args) (if (and (f-consp (f-first args)) (or (check-for args |Datatype|) (check-for args |DataType|))) (parse-entity-add-iri args) (values nil args))) (defun parse-object-property-entity (args) (if (and (f-consp (f-first args)) (check-for args |ObjectProperty|)) (parse-entity-add-iri args) (values nil args))) (defun parse-data-property-entity (args) (if (and (f-consp (f-first args)) (check-for args |DataProperty|)) (parse-entity-add-iri args) (values nil args))) (defun parse-annotation-property-entity (args) (if (and (f-consp (f-first args)) (check-for args |AnnotationProperty|)) (parse-entity-add-iri args) (values nil args))) (defun parse-named-individual-entity (args) (if (and (f-consp (f-first args)) (or (check-for args |NamedIndividual|) (check-for args |Individual|) (check-for args |AnonymousIndividual|))) (parse-entity-add-iri args (check-for args |AnonymousIndividual|)) (values nil args))) ;;; ;;; ;;; (defun parse-annotation-subject (args) (parse-individual args)) #| (defun parse-annotation-value (args) (let ((res nil)) (multiple-value-setq (res args) (parse-individual args)) (when res (return-from parse-annotation-value (values res args))) (parse-literal args))) |# (defun parse-annotation-value (args) (cond ((or (stringp (f-first args)) (numberp (f-first args)) (let ((first (f-first args))) (and (consp first) (let ((first-first (f-first first))) (member first-first '(|Literal| |Constant| |OWLLiteral|)))))) (parse-literal args)) (t (parse-individual args)))) (defun parse-annotations (args) (let ((done nil) (annotation nil) (annotations nil)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (annotation args) (parse-annotation args)) (when annotation (push annotation annotations) (setf done nil))) (values (if (owlapi:dont-keep-axioms-p *cur-reasoner*) nil annotations) args))) (defun parse-annotation (args &optional (error-p t)) (cond ((and (f-consp (f-first args)) (check-for args |Annotation|)) (let ((annotation-annotations nil) (annotation-property nil) (annotation-value nil) (args (f-rest (f-first args))) (rest (f-rest args))) (declare (ignorable annotation-annotations)) (multiple-value-setq (annotation-annotations args) (parse-annotation args)) #| (when annotation-annotations (owlapi-warning "Ignoring annotation annotations: ~A" annotation-annotations)) |# (multiple-value-setq (annotation-property args) (parse-annotation-property args)) (unless annotation-property (when error-p (owlapi:owlapi-parser-error "parse-annotation: no annotation property in ~A" args)) (return-from parse-annotation (values nil rest))) (multiple-value-setq (annotation-value args) (parse-annotation-value args)) (unless annotation-value (when error-p (owlapi:owlapi-parser-error "parse-annotation: no annotation value in ~A" args)) (return-from parse-annotation (values nil rest))) (values (cons `(|Annotation| ,annotation-property ,annotation-value) annotation-annotations) rest))) (t (multiple-value-bind (res remaining) (parse-old-annotation args nil) (if res (values (list res) remaining) (values nil remaining)))))) (defun parse-annotation-axiom (args &optional (error-p t)) (cond ((f-consp args) (let ((axiom nil)) (multiple-value-setq (axiom args) (parse-annotation-assertion args)) (when axiom (return-from parse-annotation-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-sub-annotation-property-of args)) (when axiom (return-from parse-annotation-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-annotation-property-domain args)) (when axiom (return-from parse-annotation-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-annotation-property-range args)) (when axiom (return-from parse-annotation-axiom (values axiom args))) ;;; ;;; old OWLAPI ( OWL 1.1) ;;; (multiple-value-setq (axiom args) (parse-old-entity-annotation args)) (when axiom (return-from parse-annotation-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-old-annotation args)) (when axiom (return-from parse-annotation-axiom (values axiom args))) ;;; ;;; ;;; (when error-p (owlapi:owlapi-parser-error "parse-annotation-axiom: unknown annotation axiom in ~A" args)) (values nil args))) (t (values nil args)))) (defun parse-annotation-assertion (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |AnnotationAssertion|)) (let ((axiom-annotations nil) (annotation-property nil) (annotation-subject nil) (annotation-value nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (axiom-annotations args) (parse-annotations args)) (multiple-value-setq (annotation-property args) (parse-annotation-property args)) (unless annotation-property (when error-p (owlapi:owlapi-parser-error "parse-annotation-assertion: no annotation property in ~A" args)) (return-from parse-annotation-assertion (values nil rest))) (multiple-value-setq (annotation-subject args) (parse-annotation-subject args)) (unless annotation-subject (when error-p (owlapi:owlapi-parser-error "parse-annotation-assertion: no annotation subject in ~A" args)) (return-from parse-annotation-assertion (values nil rest))) (multiple-value-setq (annotation-value args) (parse-annotation-value args)) (unless annotation-value (when error-p (owlapi:owlapi-parser-error "parse-annotation-assertion: no annotation value in ~A" args)) (return-from parse-annotation-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLAnnotationAssertionAxiom| annotation-subject annotation-property annotation-value))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) axiom-annotations) (values axiom rest))) (values nil args))) (defun parse-sub-annotation-property-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |SubAnnotationPropertyOf|)) (let ((axiom-annotations nil) (sub nil) (super nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (axiom-annotations args) (parse-annotations args)) (multiple-value-setq (sub args) (parse-sub-annotation-property args)) (unless sub (when error-p (owlapi:owlapi-parser-error "parse-sub-annotation-property-of: no sub annotation property in ~A" args)) (return-from parse-sub-annotation-property-of (values nil rest))) (multiple-value-setq (super args) (parse-super-annotation-property args)) (unless sub (when error-p (owlapi:owlapi-parser-error "parse-sub-annotation-property-of: no super annotation property in ~A" args)) (return-from parse-sub-annotation-property-of (values nil rest))) (let ((axiom (|OWLAPI-getOWLSubAnnotationPropertyOfAxiom| sub super))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) axiom-annotations) (values axiom rest))) (values nil args))) (defun parse-sub-annotation-property (args) (parse-annotation-property args)) (defun parse-super-annotation-property (args) (parse-annotation-property args)) (defun parse-annotation-property-domain (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |AnnotationPropertyDomain|)) (let ((axiom-annotations nil) (prop nil) (domain nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (axiom-annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-annotation-property args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-annotation-property-domain: no annotation property in ~A" args)) (return-from parse-annotation-property-domain (values nil rest))) (multiple-value-setq (domain args) (parse-iri args)) (unless domain (when error-p (owlapi:owlapi-parser-error "parse-annotation-property-domain: no IRI in ~A" args)) (return-from parse-annotation-property-domain (values nil rest))) (let ((axiom (|OWLAPI-getOWLAnnotationPropertyDomainAxiom| prop domain))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) axiom-annotations) (values axiom rest))) (values nil args))) (defun parse-annotation-property-range (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |AnnotationPropertyRange|)) (let ((axiom-annotations nil) (prop nil) (range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (declare (ignorable axiom-annotations)) (multiple-value-setq (axiom-annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-annotation-property args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-annotation-property-range: no annotation property in ~A" args)) (return-from parse-annotation-property-range (values nil rest))) (multiple-value-setq (range args) (parse-iri args)) (unless range (when error-p (owlapi:owlapi-parser-error "parse-annotation-property-range: no IRI in ~A" args)) (return-from parse-annotation-property-range (values nil rest))) (let ((axiom (|OWLAPI-getOWLAnnotationPropertyRangeAxiom| prop range))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) axiom-annotations) (values axiom rest))) (values nil args))) ;;; ;;; OLD Annotations (OWL 1.1 / OWLAPI) ;;; (defun parse-old-annotation (args &optional (error-p t) really-is-annotation-p) (let ((oargs args)) (labels ((parse-annotation-local (args rest) (let ((uri nil) (entity nil)) (multiple-value-setq (uri args) (parse-iri args)) (unless uri (when error-p (owlapi:owlapi-parser-error "parse-annotation: no URI in ~A" args)) (return-from parse-old-annotation (values nil (f-rest oargs)))) (multiple-value-setq (entity args) (parse-entity args nil)) (cond (entity ;;; annotation by entity (values (list '|Annotation| uri entity) rest)) (t ;;; annotation by constant (multiple-value-setq (entity args) (parse-literal args)) (unless entity (when error-p (owlapi:owlapi-parser-error "parse-annotation: no literal in ~A" args)) (return-from parse-old-annotation (values nil (f-rest oargs)))) (values (list '|Annotation| uri entity) rest)))))) (if (f-consp (f-first args)) (case (f-first (f-first args)) (|Label| (let ((literal (parse-literal (f-rest (f-first args))))) (unless literal (when error-p (owlapi:owlapi-parser-error "parse-annotation: no constant in ~A" args)) (return-from parse-old-annotation (values nil (f-rest oargs)))) (values `(;;d-filler ;; changed to: |Annotation| ,(owlapi:make-uri '|rdfs:| '|Label|) ,literal) (f-rest args)))) (|owl:versionInfo| (let ((literal (parse-literal (f-rest (f-first args))))) (unless literal (when error-p (owlapi:owlapi-parser-error "parse-annotation: no constant in ~A" args)) (return-from parse-old-annotation (values nil (f-rest oargs)))) (values `(;;d-filler ;; changed to: |Annotation| ,(owlapi:make-uri '|rdfs:| '|versionInfo|) ,literal) (f-rest args)))) (|Comment| (let ((literal (parse-literal (f-rest (f-first args))))) (unless literal (when error-p (owlapi:owlapi-parser-error "parse-annotation: no constant in ~A" args)) (return-from parse-old-annotation (values nil (f-rest oargs)))) (values `(;; d-filler |Annotation| ,(owlapi:make-uri '|rdfs:| '|Comment|) ,literal) (f-rest args)))) (|Annotation| (let ((args (f-rest (f-first args))) (rest (f-rest args))) (parse-annotation-local args rest))) (otherwise (if really-is-annotation-p (parse-annotation-local (f-first args) (f-rest args)) (values nil args)))) (values nil args))))) (defun parse-old-entity-annotation (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |EntityAnnotation|)) (let ((args (f-rest (f-first args))) (rest (f-rest args)) (annotations-for-axiom nil) (entity nil) (annotations-for-entity nil)) (multiple-value-setq (annotations-for-axiom args) (parse-old-annotations-for-axiom args)) (multiple-value-setq (entity args) (parse-entity args nil)) (unless entity (when error-p (owlapi:owlapi-parser-error "parse-entity-annotation: no entity in ~A" args)) (return-from parse-old-entity-annotation (values nil rest))) (multiple-value-setq (annotations-for-entity args) (parse-old-annotations-for-entity args)) (let* ((axioms (mapcar #'(lambda (annotation) (|OWLAPI-getOWLEntityAnnotationAxiom| entity annotation)) annotations-for-entity)) (axiom (first axioms)) ; select the first axiom to be annotated... (axioms2 (mapcar #'(lambda (annotation) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom annotation)) annotations-for-axiom))) (values (if axioms (if axioms2 (list axioms axioms2) (list axioms nil)) (if axioms2 (list nil axioms2) nil)) rest))) (values nil args))) (defun parse-old-annotations-for-axiom (args) (parse-old-annotations args)) (defun parse-old-annotations-for-entity (args) (parse-old-annotations args t)) (defun parse-old-annotations (args &optional really-is-annotation-p) (let ((done nil) (annotation nil) (annotations nil)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (annotation args) (parse-old-annotation args t really-is-annotation-p)) (when annotation (push annotation annotations) (setf done nil))) (values annotations args))) ;;; ;;; ;;; (defun parse-class (args) (let ((class nil)) (multiple-value-setq (class args) (parse-iri args)) (when class (return-from parse-class (values (cond ((string= (symbol-name class) (symbol-name owlapi:+owlapi-owl-bottom+)) 'bottom) ((string= (symbol-name class) (symbol-name owlapi:+owlapi-owl-top+)) 'top) (t class)) args))) ;;; extended OWL Functional Syntax to make it more like OWL XML: ;;; also accept entities here: (Class A) (multiple-value-setq (class args) (parse-class-entity args)) (when class (multiple-value-setq (class args) (parse-class (cons (second class) args)))) (values class args))) (defun parse-datatype (args) (let ((datatype nil)) (multiple-value-setq (datatype args) (parse-iri args)) (when datatype (return-from parse-datatype (values datatype args))) ;;; extended (see above) (multiple-value-setq (datatype args) (parse-datatype-entity args)) (when datatype (return-from parse-datatype (values (second datatype) args))) (values datatype args))) (defun parse-object-property (args) (let ((prop nil)) (multiple-value-setq (prop args) (parse-iri args)) (when prop (return-from parse-object-property (values prop args))) (multiple-value-setq (prop args) (parse-object-property-entity args)) (when prop (return-from parse-object-property (values (second prop) args))) (values prop args))) (defun parse-data-property (args) (let ((prop nil)) (multiple-value-setq (prop args) (parse-iri args)) (when prop (return-from parse-data-property (values prop args))) (multiple-value-setq (prop args) (parse-data-property-entity args)) (when prop (return-from parse-data-property (values (second prop) args))) (values prop args))) (defun parse-annotation-property (args) (let ((prop nil)) (multiple-value-setq (prop args) (parse-iri args)) (when prop (return-from parse-annotation-property (values prop args))) (multiple-value-setq (prop args) (parse-annotation-property-entity args)) (when prop (return-from parse-annotation-property (values (second prop) args))) (values prop args))) (defun parse-individual (args) (let ((ind nil)) (multiple-value-setq (ind args) (parse-iri args)) (when ind (return-from parse-individual (values ind args))) (multiple-value-setq (ind args) (parse-named-individual-entity args)) (when ind (return-from parse-individual (values (second ind) args))) (values ind args))) ;;; ;;; ;;; (defun parse-literals (args) ;;;(mapcar #'parse-literal args) geht nicht mehr (let ((res nil) (done nil) (lit nil)) (loop while (not done) do (setf done t) (multiple-value-setq (lit args) (parse-literal args)) (when lit (push lit res ) (setf done nil))) (reverse res))) ;;; ;;; ;;; (defun parse-object-property-expression (args &optional (error-p t)) (let ((object-property nil)) (multiple-value-setq (object-property args) (parse-inverse-object-property args)) (unless object-property (multiple-value-setq (object-property args) (parse-object-property args))) (unless object-property (when error-p (owlapi:owlapi-parser-error "parse-object-property-expression: no object property URI in ~A" args)) (return-from parse-object-property-expression (values nil args))) (values object-property args))) (defun parse-inverse-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (or (check-for args |InverseObjectProperty|) (check-for args |ObjectInverseOf|))) (let ((property nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (property args) (parse-object-property-expression args)) (unless property (when error-p (owlapi:owlapi-parser-error "parse-object-property-expression: no object property URI in ~A" args)) (return-from parse-inverse-object-property (values nil rest))) (values `(inv ,property) rest)) (values nil args))) (defun parse-data-property-expression (args) (parse-data-property args)) ;;; ;;; ;;; (defun parse-data-type (args &optional (error-p t)) (let ((type nil)) (multiple-value-setq (type args) (parse-datatype args)) (cond (type (values (convert-owl-data-range type) args)) (t (when error-p (owlapi:owlapi-parser-error "parse-data-type: unknown type in ~A" args)) (values nil args))))) (defun parse-data-range (args &optional (error-p t)) (let ((range nil)) (multiple-value-setq (range args) (parse-data-type args nil)) (when range (return-from parse-data-range (values range args))) (cond ((f-consp (f-first args)) (multiple-value-setq (range args) (parse-data-intersection-of args)) (when range (return-from parse-data-range (values range args))) (multiple-value-setq (range args) (parse-data-union-of args)) (when range (return-from parse-data-range (values range args))) (multiple-value-setq (range args) (parse-data-complement-of args)) (when range (return-from parse-data-range (values range args))) (multiple-value-setq (range args) (parse-data-one-of args)) (when range (return-from parse-data-range (values range args))) (multiple-value-setq (range args) (parse-datatype-restriction args)) (when range (return-from parse-data-range (values range args))) (when error-p (owlapi:owlapi-parser-error "parse-data-range: unknown range in ~A" args)) (values nil (f-rest args))) (t (values nil args))))) (defun parse-data-intersection-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataIntersectionOf|)) (let ((ranges nil) (done nil) (range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (range args) (parse-data-range args)) (when range (push range ranges) (setf done nil))) (unless (cdr ranges) (when error-p (owlapi:owlapi-parser-error "parse-data-intersection-of: at least 2 data-range arguments required in ~A" args)) (return-from parse-data-intersection-of (values nil rest))) (values (cons 'd-and ranges) rest)) (values nil args))) (defun parse-data-union-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataUnionOf|)) (let ((ranges nil) (done nil) (range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (range args) (parse-data-range args)) (when range (push range ranges) (setf done nil))) (unless (cdr ranges) (when error-p (owlapi:owlapi-parser-error "parse-data-union-of: at least 2 data-range arguments required in ~A" args)) (return-from parse-data-union-of (values nil rest))) (values (cons 'd-or ranges) rest)) (values nil args))) (defun parse-data-complement-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataComplementOf|)) (let ((range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (range args) (parse-data-range args)) (unless range (when error-p (owlapi:owlapi-parser-error "parse-data-complement-of: no data range in ~A" args)) (return-from parse-data-complement-of (values nil rest))) (values `(d-complement ,range) rest)) (values nil args))) (defun parse-data-one-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataOneOf|)) (let ((constants nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (constants args) (parse-literals args)) (unless constants (when error-p (owlapi:owlapi-parser-error "parse-data-one-of: no literals in ~A" args)) (return-from parse-data-one-of (values nil (f-rest args)))) (values (cons 'd-possible-values constants) rest)) (values nil args))) (defun parse-datatype-restriction (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DatatypeRestriction|)) (let ((args (f-rest (f-first args))) (rest (f-rest args)) (type nil) (range nil) (facets-and-values nil)) (multiple-value-setq (type args) (parse-data-type args nil)) ;;; altes OWL 1.1 (people+pets.funct etc.) #+:ignore (multiple-value-setq (range args) (parse-data-range args nil)) (unless (or type range) (when error-p (owlapi:owlapi-parser-error "parse-datatype-restriction: no base datatype in ~A" args)) (return-from parse-datatype-restriction (values nil rest))) (multiple-value-setq (facets-and-values args) (parse-datatype-facets-and-restriction-values args)) (unless facets-and-values (when error-p (owlapi:owlapi-parser-error "parse-datatype-restriction: bad or no facets and values in ~A" args)) (return-from parse-datatype-restriction (values nil rest))) (values `(d-restriction (d-base-type ,@(or (cdr type) (cdr range) ;; fuehrendes d-datarange entfernen )) ,@facets-and-values) rest)) (values nil args))) (defun parse-datatype-facets-and-restriction-values (args &optional (error-p t)) (let ((done nil) (facets-and-restriction-values nil) (facet nil) (restriction nil)) (loop while (and args (not done) (f-consp args)) do (setf done t) (when (and (f-consp (f-first args)) (check-for args |FacetRestriction|)) ;;; ;;; Syntax we get from OWL XML -> OWL Functional transformation: ;;; ;;; ((|FacetRestriction| ;;; (|Attribute| |facet| "xsd:minInclusive") (|Literal| "xsd:integer" "0")) ;;; -> Rewrite as (xsd:minInclusive (Literal ...)) (setf args (list* (f-second (f-first args)) (f-third (f-first args)) (f-rest args)))) (multiple-value-setq (facet args) (parse-constraining-facet args)) (unless facet (when error-p (owlapi:owlapi-parser-error "parse-datatype-facet-and-restriction-values: no facet in ~A" args)) (return-from parse-datatype-facets-and-restriction-values (values nil (f-rest args)))) (multiple-value-setq (restriction args) (parse-restriction-value args)) (unless restriction (when error-p (owlapi:owlapi-parser-error "parse-datatype-facet-and-restriction-values: no value for facet ~A in ~A" facet args)) (return-from parse-datatype-facets-and-restriction-values (values nil (f-rest args)))) (push (convert-owl-data-facet facet restriction) facets-and-restriction-values) (setf done nil)) (values facets-and-restriction-values args))) (defun parse-restriction-value (args) (parse-literal args)) (defun parse-constraining-facet (args &optional (error-p t)) (if (owlapi:is-url-p (f-first args)) (values (f-first args) (f-rest args)) (multiple-value-bind (prefix postfix) (owlapi:get-prefix-postfix (f-first args)) (declare (ignorable prefix)) (case postfix ((|length| |minLength| |maxLength| |pattern| |minInclusive| |maxInclusive| |minExclusive| |maxExclusive| |totalDigits| |fractionDigits|) (values (f-first args) (f-rest args))) (otherwise (when error-p (owlapi:owlapi-parser-error "parse-datatype-facet: unknown facet in ~A" args)) (values nil (f-rest args))))))) ;;; ;;; ;;; (defun parse-class-expression (args) (let ((expression nil)) (dolist (parser '(parse-class parse-object-intersection-of parse-object-union-of parse-object-complement-of parse-object-one-of parse-object-some-values-from parse-object-all-values-from parse-object-has-value parse-object-has-self parse-object-min-cardinality parse-object-max-cardinality parse-object-exact-cardinality parse-data-some-values-from parse-data-all-values-from parse-data-has-value parse-data-min-cardinality parse-data-max-cardinality parse-data-exact-cardinality)) (multiple-value-setq (expression args) (funcall parser args)) (when expression (return-from parse-class-expression (values expression args)))) (values nil args))) (defun parse-object-intersection-of (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |ObjectIntersectionOf|)) (let ((expressions nil) (expression nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) ;;; min. 2 lt. Grammatik (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (setf expression 'top) ;; make robust for OWLAPI: (owlapi:owlapi-warning "Missing argument in ~A - using TOP" args) #+:ignore (when error-p (owlapi:owlapi-parser-error "parse-object-intersection-of: no class expression in ~A" args)) #+:ignore (return-from parse-object-intersection-of (values nil rest))) (push expression expressions) (multiple-value-setq (expression args) (parse-class-expression args)) #+:ignore (unless expression (when error-p (owlapi:owlapi-parser-error "parse-object-intersection-of: no second class expression in ~A" args)) (return-from parse-object-intersection-of (values nil rest))) (when expression (push expression expressions)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (expression args) (parse-class-expression args)) (when expression (push expression expressions) (setf done nil))) (values `(and ,@expressions) rest)) (values nil args))) (defun parse-object-union-of (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |ObjectUnionOf|)) (let ((descriptions nil) (description nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) ;;; min. 2 lt. Grammatik (multiple-value-setq (description args) (parse-class-expression args)) (unless description (setf description 'bottom) (owlapi:owlapi-warning "Missing argument in ~A - using BOTTOM" args) #+:ignore (when error-p (owlapi:owlapi-parser-error "parse-object-union-of: no class expression in ~A" args)) #+:ignore (return-from parse-object-union-of (values nil rest))) (push description descriptions) (multiple-value-setq (description args) (parse-class-expression args)) #+:ignore (unless description (when error-p (owlapi:owlapi-parser-error "parse-object-union-of: no second class expression in ~A" args)) (return-from parse-object-union-of (values nil rest))) (when description (push description descriptions)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (description args) (parse-class-expression args)) (when description (push description descriptions) (setf done nil))) (values `(or ,@descriptions) rest)) (values nil args))) (defun parse-object-complement-of (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |ObjectComplementOf|)) (let ((descr nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (descr args) (parse-class-expression args)) (unless descr (setf descr 'bottom) (owlapi:owlapi-warning "Missing argument in ~A - using BOTTOM" args) #+:ignore (when error-p (owlapi:owlapi-parser-error "parse-object-complement-of: no class expression in ~A" descr)) #+:ignore (return-from parse-object-complement-of (values nil rest))) (values `(not ,descr) rest)) (values nil args))) (defun parse-object-one-of (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |ObjectOneOf|)) (let ((ind-iris nil) (ind-iri nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri #+:ignore (when error-p (owlapi:owlapi-parser-error "parse-object-one-of: no individual URI in ~A" args)) #+:ignore (return-from parse-object-one-of (values nil rest))) (push ind-iri ind-iris) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (ind-iri args) (parse-individual args)) (when ind-iri (push ind-iri ind-iris) (setf done nil))) (unless ind-iris (owlapi:owlapi-warning "Missing arguments in ~A - returning TOP" args)) (values (if ind-iris `(one-of ,@(remove nil ind-iris)) 'top ;+owl-top+ ) rest)) (values nil args))) (defun parse-object-some-values-from (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |ObjectSomeValuesFrom|)) (let ((property-expression nil) (expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (property-expression args) (parse-object-property-expression args)) (unless property-expression (when error-p (owlapi:owlapi-parser-error "parse-object-some-values-from: no object property expression in ~A" args)) (return-from parse-object-some-values-from (values nil rest))) (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (setf expression 'top) (owlapi:owlapi-warning "Missing arguments in ~A - using TOP" args) #+:ignore (when error-p (owlapi:owlapi-parser-error "parse-object-some-values-from: no class expression in ~A" args)) #+:ignore (return-from parse-object-some-values-from (values nil rest))) (values `(some ,property-expression ,expression) rest)) (values nil args))) (defun parse-object-all-values-from (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |ObjectAllValuesFrom|)) (let ((property-expression nil) (expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (property-expression args) (parse-object-property-expression args)) (unless property-expression (when error-p (owlapi:owlapi-parser-error "parse-object-all-values-from: no object property expression in ~A" args)) (return-from parse-object-all-values-from (values nil rest))) (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (setf expression 'top) (owlapi:owlapi-warning "Missing arguments in ~A - using TOP" args) #+:ignore (when error-p (owlapi:owlapi-parser-error "parse-object-all-values-from: no class expression in ~A" args)) #+:ignore (return-from parse-object-all-values-from (values nil rest))) (values `(all ,property-expression ,expression) rest)) (values nil args))) (defun parse-object-has-value (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectHasValue|)) (let ((object-property-expression nil) (uri nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (object-property-expression args) (parse-object-property-expression args)) (unless object-property-expression (when error-p (owlapi:owlapi-parser-error "parse-object-has-value: no object property expression in ~A" args)) (return-from parse-object-has-value (values nil rest))) (multiple-value-setq (uri args) (parse-individual args)) #+:ignore (unless uri (when error-p (owlapi:owlapi-parser-error "parse-object-hast-value: no individual URI in ~A" args)) (return-from parse-object-has-value (values nil rest))) (if uri (values `(has-value ,object-property-expression ,uri) rest) (progn (owlapi:owlapi-warning "Missing arguments in ~A - returning TOP" args) (values ; +owl-top+ 'top rest)))) (values nil args))) (defun parse-object-has-self (args &optional (error-p t)) (if (and (f-consp (f-first args)) (or (check-for args |ObjectExistsSelf|) (check-for args |ObjectHasSelf|))) (let ((property-expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (property-expression args) (parse-object-property-expression args)) (unless property-expression (when error-p (owlapi:owlapi-parser-error "parse-object-has-self: no object property expression in ~A" args)) (return-from parse-object-has-self (values nil rest))) (values `(self-reference ,property-expression) rest)) (values nil args))) (defun parse-non-negative-integer (args &optional (error-p t)) (if (stringp (f-first args)) (let ((num (ignore-errors (parse-integer (f-first args))))) (when (not (and (integerp num) (not (minusp num)))) (when error-p (owlapi:owlapi-parser-error "parse-non-negative-integer: got ~A" args)) (return-from parse-non-negative-integer (values nil (f-rest args)))) (values num (f-rest args))) (progn (when (not (and (integerp (f-first args)) (not (minusp (f-first args))))) (when error-p (owlapi:owlapi-parser-error "parse-non-negative-integer: got ~A" args)) (return-from parse-non-negative-integer (values nil (f-rest args)))) (values (f-first args) (f-rest args))))) (defun parse-cardinality (args) (parse-non-negative-integer args)) (defun parse-object-min-cardinality (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectMinCardinality|)) (let ((card nil) (object-property-expression nil) (expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (card args) (parse-cardinality args)) (unless card (when error-p (owlapi:owlapi-parser-error "parse-object-min-cardinality: no min cardinality in ~A" args)) (return-from parse-object-min-cardinality (values nil rest))) (multiple-value-setq (object-property-expression args) (parse-object-property-expression args)) (unless object-property-expression (when error-p (owlapi:owlapi-parser-error "parse-object-min-cardinality: no object property expression in ~A" args)) (return-from parse-object-min-cardinality (values nil rest))) ;;; optional (multiple-value-setq (expression args) (parse-class-expression args)) (values `(at-least ,card ,object-property-expression ,@(when expression (list expression))) rest)) (values nil args))) (defun parse-object-max-cardinality (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectMaxCardinality|)) (let ((card nil) (object-property-expression nil) (expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (card args) (parse-cardinality args)) (unless card (when error-p (owlapi:owlapi-parser-error "parse-object-max-cardinality: no max cardinality in ~A" args)) (return-from parse-object-max-cardinality (values nil rest))) (multiple-value-setq (object-property-expression args) (parse-object-property-expression args)) (unless object-property-expression (when error-p (owlapi:owlapi-parser-error "parse-object-max-cardinality: no object property expression in ~~A" args)) (return-from parse-object-max-cardinality (values nil rest))) ;;; optional (multiple-value-setq (expression args) (parse-class-expression args)) (values `(at-most ,card ,object-property-expression ,@(when expression (list expression))) rest)) (values nil args))) (defun parse-object-exact-cardinality (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectExactCardinality|)) (let ((card nil) (object-property-expression nil) (expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (card args) (parse-cardinality args)) (unless card (when error-p (owlapi:owlapi-parser-error "parse-object-exact-cardinality: no min/max cardinality in ~A" args)) (return-from parse-object-exact-cardinality (values nil rest))) (multiple-value-setq (object-property-expression args) (parse-object-property-expression args)) (unless object-property-expression (when error-p (owlapi:owlapi-parser-error "parse-pbject-exact-cardinality: no object property expression in ~A" args)) (return-from parse-object-exact-cardinality (values nil rest))) ;;; optional (multiple-value-setq (expression args) (parse-class-expression args)) (values `(exactly ,card ,object-property-expression ,@(when expression (list expression))) rest)) (values nil args))) (defun parse-data-some-values-from (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataSomeValuesFrom|)) (let ((property-expression nil) (property-expressions nil) (range nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (property-expression args) (parse-data-property-expression args)) (unless property-expression (when error-p (owlapi:owlapi-parser-error "parse-data-some-values-from: no data property expression in ~A" args)) (return-from parse-data-some-values-from (values nil rest))) (push property-expression property-expressions) (when (f-rest args) ; otherwise range (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (property-expression args) (parse-data-property-expression args)) (when property-expression (push property-expression property-expressions) (setf done nil)))) (multiple-value-setq (range args) (parse-data-range args)) (unless range (when error-p (owlapi:owlapi-parser-error "parse-data-some-values-from: no data range in ~A" args)) (return-from parse-data-some-values-from (values nil rest))) (values `(d-some ,@(reverse property-expressions) ,range) rest)) (values nil args))) (defun parse-data-all-values-from (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataAllValuesFrom|)) (let ((property-expression nil) (property-expressions nil) (range nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (property-expression args) (parse-data-property-expression args)) (unless property-expression (when error-p (owlapi:owlapi-parser-error "parse-data-all-values-from: no data property expression in ~A" args)) (return-from parse-data-all-values-from (values nil rest))) (push property-expression property-expressions) (when (f-rest args) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (property-expression args) (parse-data-property-expression args)) (when property-expression (push property-expression property-expressions) (setf done nil)))) (multiple-value-setq (range args) (parse-data-range args)) (unless range (when error-p (owlapi:owlapi-parser-error "parse-data-all-values-from: no data range in ~A" args)) (return-from parse-data-all-values-from (values nil rest))) (values `(d-all ,@(reverse property-expressions) ,range) rest)) (values nil args))) (defun parse-data-has-value (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataHasValue|)) (let ((data-property-expression nil) (constant nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (data-property-expression args) (parse-data-property-expression args)) (unless data-property-expression (when error-p (owlapi:owlapi-parser-error "parse-data-has-value: no data property expression in ~A" args)) (return-from parse-data-has-value (values nil rest))) (multiple-value-setq (constant args) (parse-literal args)) (unless constant (when error-p (owlapi:owlapi-parser-error "parse-data-has-value: no constant in ~A" args)) (return-from parse-data-has-value (values nil rest))) (values `(d-filler ,data-property-expression ,constant) rest)) (values nil args))) (defun parse-data-min-cardinality (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataMinCardinality|)) (let ((card nil) (data-property-expression nil) (data-range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (card args) (parse-cardinality args)) (unless card (when error-p (owlapi:owlapi-parser-error "parse-data-min-cardinality: no min cardinality in ~A" args)) (return-from parse-data-min-cardinality (values nil rest))) (multiple-value-setq (data-property-expression args) (parse-data-property-expression args)) (unless data-property-expression (when error-p (owlapi:owlapi-parser-error "parse-data-min-cardinality: no data property expression in ~A" args)) (return-from parse-data-min-cardinality (values nil rest))) ;;; optional (multiple-value-setq (data-range args) (parse-data-range args nil)) (values (remove nil `(d-at-least ,card ,data-property-expression ,data-range)) rest)) (values nil args))) (defun parse-data-max-cardinality (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataMaxCardinality|)) (let ((card nil) (data-property-expression nil) (data-range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (card args) (parse-cardinality args)) (unless card (when error-p (owlapi:owlapi-parser-error "parse-data-max-cardinality: no max cardinality in ~A" args)) (return-from parse-data-max-cardinality (values nil rest))) (multiple-value-setq (data-property-expression args) (parse-data-property-expression args)) (unless data-property-expression (when error-p (owlapi:owlapi-parser-error "parse-data-max-cardinality: no data property expresion in ~A" args)) (return-from parse-data-max-cardinality (values nil rest))) ;;; optional (multiple-value-setq (data-range args) (parse-data-range args nil)) (values (remove nil `(d-at-most ,card ,data-property-expression ,data-range)) rest)) (values nil args))) (defun parse-data-exact-cardinality (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataExactCardinality|)) (let ((card nil) (data-property-expression nil) (data-range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (card args) (parse-cardinality args)) (unless card (when error-p (owlapi:owlapi-parser-error "parse-data-exact-cardinality: no min/max cardinality in ~A" args)) (return-from parse-data-exact-cardinality (values nil rest))) (multiple-value-setq (data-property-expression args) (parse-data-property-expression args)) (unless data-property-expression (when error-p (owlapi:owlapi-parser-error "parse-data-exact-cardinality: no data property expression in ~A" args)) (return-from parse-data-exact-cardinality (values nil rest))) ;;; optional (multiple-value-setq (data-range args) (parse-data-range args nil)) (values (remove nil `(d-exactly ,card ,data-property-expression ,data-range)) rest)) (values nil args))) ;;; ;;; ;;; (defun parse-axiom (args) (cond ((f-consp args) (let ((axiom nil)) (multiple-value-setq (axiom args) (parse-declaration args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-class-axiom args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-object-property-axiom args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-data-property-axiom args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-datatype-definition args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-has-key args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-assertion args)) (when axiom (return-from parse-axiom (values axiom args))) (multiple-value-setq (axiom args) (parse-annotation-axiom args)) (values axiom args))) (t (values nil args)))) ;;; ;;; ;;; (defun parse-subclass (args) (parse-class-expression args)) (defun parse-superclass (args) (parse-class-expression args)) (defun parse-subclass-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |SubClassOf|)) (let ((annotations nil) (subclass nil) (superclass nil) (args (f-rest (f-first args))) (rest (f-rest args))) ;;; optional (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (subclass args) (parse-subclass args)) (unless subclass (when error-p (owlapi:owlapi-parser-error "parse-subclass-of: no subclass class expression in ~A" args)) (return-from parse-subclass-of (values nil rest))) (multiple-value-setq (superclass args) (parse-superclass args)) (unless superclass (when error-p (owlapi:owlapi-parser-error "parse-subclass-of: no superclass class expression in ~A" args)) (return-from parse-subclass-of (values nil rest))) (let ((axiom (|OWLAPI-getOWLSubClassAxiom| subclass superclass))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-equivalent-classes (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |EquivalentClasses|)) (let ((annotations nil) (expressions nil) (expression nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) ;;; optional (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (when error-p (owlapi:owlapi-parser-error "parse-equivalent-classes: no first class expression in ~A" args)) (return-from parse-equivalent-classes (values nil rest))) (push expression expressions) (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (when error-p (owlapi:owlapi-parser-error "parse-equivalent-classes: no second class expression in ~A" args)) (return-from parse-equivalent-classes (values nil rest))) (push expression expressions) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (expression args) (parse-class-expression args)) (when expression (push expression expressions) (setf done nil))) (let ((axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (reverse expressions)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-disjoint-classes (args &optional (error-p t)) (declare (ignorable error-p)) (if (and (f-consp (f-first args)) (check-for args |DisjointClasses|)) (let ((annotations nil) (expressions nil) (expression nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) ;;; optional (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (expression args) (parse-class-expression args)) #+:ignore (unless expression (when error-p (owlapi:owlapi-parser-error "parse-disjoint-classes: no first class expression in ~A" args)) (return-from parse-disjoint-classes (values nil rest))) (when expression (push expression expressions)) (multiple-value-setq (expression args) (parse-class-expression args)) #+:ignore (unless expression (when error-p (owlapi:owlapi-parser-error "parse-disjoint-classes: no second class expression in ~A" args)) (return-from parse-disjoint-classes (values nil rest))) (when expression (push expression expressions)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (expression args) (parse-class-expression args)) (when expression (push expression expressions) (setf done nil))) (let ((axiom (|OWLAPI-getOWLDisjointClassesAxiom| (reverse expressions)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-disjoint-union (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DisjointUnion|)) (let ((annotations nil) (class-iri nil) (expressions nil) (expression nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) ;;; optional (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (class-iri args) (parse-class args)) (unless class-iri (when error-p (owlapi:owlapi-parser-error "parse-disjoint-union: no class uri in ~A" args)) (return-from parse-disjoint-union (values nil rest))) (multiple-value-setq (expression args) (parse-class-expression args)) #+:ignore (unless expression (when error-p (owlapi:owlapi-parser-error "parse-disjoint-union: no first class expression in ~A" args)) (return-from parse-disjoint-union (values nil rest))) (when expression (push expression expressions)) (multiple-value-setq (expression args) (parse-class-expression args)) #+:ignore (unless expression (when error-p (owlapi:owlapi-parser-error "parse-disjoint-union: no second class expression in ~A" args)) (return-from parse-disjoint-union (values nil rest))) (when expression (push expression expressions)) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (expression args) (parse-class-expression args)) (when expression (push expression expressions) (setf done nil))) (let ((axiom (|OWLAPI-getOWLDisjointUnionAxiom| class-iri (reverse expressions)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-class-axiom (args) (let ((axiom nil)) (dolist (parser '(parse-subclass-of parse-equivalent-classes parse-disjoint-classes parse-disjoint-union)) (multiple-value-setq (axiom args) (funcall parser args)) (when axiom (return-from parse-class-axiom (values axiom args))))) (values nil args)) ;;; ;;; ;;; (defun parse-object-property-axiom (args) (let ((axiom nil)) (dolist (parser '(parse-sub-object-property-of parse-equivalent-object-properties parse-disjoint-object-properties parse-inverse-object-properties parse-object-property-domain parse-object-property-range parse-functional-object-property parse-inverse-functional-object-property parse-reflexive-object-property parse-irreflexive-object-property parse-symmetric-object-property parse-asymmetric-object-property parse-transitive-object-property)) (multiple-value-setq (axiom args) (funcall parser args)) (when axiom (return-from parse-object-property-axiom (values axiom args))))) (values nil args)) (defun parse-property-expression-chain (args &optional (error-p t)) (cond ((and (f-consp (f-first args)) (or (check-for args |SubObjectPropertyChain|) (check-for args |ObjectPropertyChain|))) (let ((first nil) (second nil) (args (f-rest (f-first args))) (rest (f-rest args)) (others nil) (other nil) (done nil)) (declare (ignorable first second)) (multiple-value-setq (first args) (parse-object-property-expression args)) (unless first (when error-p (owlapi:owlapi-parser-error "parse-property-expression-chain: no first property in ~A")) (return-from parse-property-expression-chain (values nil rest))) (multiple-value-setq (second args) (parse-object-property-expression args)) (unless second (when error-p (owlapi:owlapi-parser-error "parse-property-expression-chain: no second property in ~A")) (return-from parse-property-expression-chain (values nil rest))) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (other args) (parse-object-property-expression args)) (when other (push other others) (setf done nil))) (values `(,first ,second ,@(reverse others)) rest))) (t (let ((property nil)) (multiple-value-setq (property args) (parse-object-property-expression args)) (if property (values property args) (values nil args)))))) (defun parse-sub-object-property-expression (args) (let ((expr nil)) (multiple-value-setq (expr args) (parse-object-property-expression args nil)) (when expr (return-from parse-sub-object-property-expression (values expr args))) (multiple-value-setq (expr args) (parse-property-expression-chain args nil)) (when expr (return-from parse-sub-object-property-expression (values expr args))) (values nil args))) (defun parse-super-object-property-expression (args) (parse-object-property-expression args)) (defun parse-sub-object-property-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |SubObjectPropertyOf|)) (let ((sub-prop nil) (prop nil) (annotations nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (sub-prop args) (parse-sub-object-property-expression args)) (unless sub-prop (when error-p (owlapi:owlapi-parser-error "parse-sub-object-property-of: no sub object property expression in ~A" args)) (return-from parse-sub-object-property-of (values nil rest))) (multiple-value-setq (prop args) (parse-super-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-sub-object-property-of: no super object property expression in ~A" args)) (return-from parse-sub-object-property-of (values nil rest))) (let ((axiom (if (or (symbolp sub-prop) (and (consp sub-prop) (eq (first sub-prop) 'inv))) (|OWLAPI-getOWLObjectSubPropertyAxiom| sub-prop prop) (|OWLAPI-getOWLObjectPropertyChainSubPropertyAxiom| sub-prop prop)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-equivalent-object-properties (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |EquivalentObjectProperties|)) (let ((annotations nil) (props nil) (prop nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-equivalent-object-properties: no first object property expression in ~A" args)) (return-from parse-equivalent-object-properties (values nil rest))) (push prop props) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-equivalent-object-properties: no second object property expression in ~A" args)) (return-from parse-equivalent-object-properties (values nil rest))) (push prop props) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (prop args) (parse-object-property-expression args)) (when prop (push prop props) (setf done nil))) (let ((axiom (|OWLAPI-getOWLEquivalentObjectPropertiesAxiom| (reverse props)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-disjoint-object-properties (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DisjointObjectProperties|)) (let ((annotations nil) (props nil) (prop nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-disjoint-object-properties: no first object property expression in ~A" args)) (return-from parse-disjoint-object-properties (values nil rest))) (push prop props) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-disjoint-object-properties: no second object property expression in ~A" args)) (return-from parse-disjoint-object-properties (values nil rest))) (push prop props) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (prop args) (parse-object-property-expression args)) (when prop (push prop props) (setf done nil))) (let ((axiom (|OWLAPI-getOWLDisjointObjectPropertiesAxiom| (reverse props)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-inverse-object-properties (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |InverseObjectProperties|)) (let ((annotations nil) (prop1 nil) (prop2 nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop1 args) (parse-object-property-expression args)) (unless prop1 (when error-p (owlapi:owlapi-parser-error "parse-inverse-object-properties: no first object property expression in ~A" args)) (return-from parse-inverse-object-properties (values nil rest))) (multiple-value-setq (prop2 args) (parse-object-property-expression args)) (unless prop2 (when error-p (owlapi:owlapi-parser-error "parse-inverse-object-properties: no second object property expression in ~A" args)) (return-from parse-inverse-object-properties (values nil rest))) (let ((axiom (|OWLAPI-getOWLInverseObjectPropertiesAxiom| prop1 prop2))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-object-property-domain (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectPropertyDomain|)) (let ((annotations nil) (prop nil) (descr nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-object-property-domain: no object property expression in ~A" args)) (return-from parse-object-property-domain (values nil rest))) (multiple-value-setq (descr args) (parse-class-expression args)) (unless descr (when error-p (owlapi:owlapi-parser-error "parse-object-property-domain: no class expression in ~A" args)) (return-from parse-object-property-domain (values nil rest))) (let ((axiom (|OWLAPI-getOWLObjectPropertyDomainAxiom| prop descr))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-object-property-range (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectPropertyRange|)) (let ((annotations nil) (prop nil) (descr nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-object-property-range: no object property expression in ~A" args)) (return-from parse-object-property-range (values nil rest))) (multiple-value-setq (descr args) (parse-class-expression args)) (unless descr (when error-p (owlapi:owlapi-parser-error "parse-object-property-range: no class expression in ~A" args)) (return-from parse-object-property-range (values nil rest))) (let ((axiom (|OWLAPI-getOWLObjectPropertyRangeAxiom| prop descr))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-functional-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |FunctionalObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-functional-object-property: no object property expression in ~A" args)) (return-from parse-functional-object-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLFunctionalObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-inverse-functional-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |InverseFunctionalObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-inverse-functional-object-property: no object property expression in ~A" args)) (return-from parse-inverse-functional-object-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLInverseFunctionalObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-reflexive-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ReflexiveObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-reflexive-object-property: no object property expression in ~A" args)) (return-from parse-reflexive-object-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLReflexiveObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-irreflexive-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |IrreflexiveObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-irreflexive-object-property: no object property expression in ~A" args)) (return-from parse-irreflexive-object-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLIrreflexiveObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-symmetric-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |SymmetricObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-symmetric-object-property: no object property expression in ~A" args)) (return-from parse-symmetric-object-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLSymmetricObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-asymmetric-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |AsymmetricObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-asymmetric-object-property: no object property expression in ~A" args)) (return-from parse-asymmetric-object-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLAsymmetricObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-transitive-object-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |TransitiveObjectProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (let ((axiom (|OWLAPI-getOWLTransitiveObjectPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-transitive-object-property: no object property expression in ~A" args)) (return-from parse-transitive-object-property (values nil rest))) (values axiom rest))) (values nil args))) ;;; ;;; ;;; (defun parse-data-property-axiom (args) (let ((axiom nil)) (dolist (parser '(parse-sub-data-property-of parse-equivalent-data-properties parse-disjoint-data-properties parse-data-property-domain parse-data-property-range parse-functional-data-property)) (multiple-value-setq (axiom args) (funcall parser args)) (when axiom (return-from parse-data-property-axiom (values axiom args))))) (values nil args)) (defun parse-sub-data-property-expression (args) (parse-data-property-expression args)) (defun parse-super-data-property-expression (args) (parse-data-property-expression args)) (defun parse-sub-data-property-of (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |SubDataPropertyOf|)) (let ((sub-prop nil) (prop nil) (annotations nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (sub-prop args) (parse-sub-data-property-expression args)) (unless sub-prop (when error-p (owlapi:owlapi-parser-error "parse-sub-data-property-of: no sub data property expression in ~A" args)) (return-from parse-sub-data-property-of (values nil rest))) (multiple-value-setq (prop args) (parse-super-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-sub-data-property-of: no super data property expression in ~A" args)) (return-from parse-sub-data-property-of (values nil rest))) (let ((axiom (|OWLAPI-getOWLDataSubPropertyAxiom| sub-prop prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-equivalent-data-properties (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |EquivalentDataProperties|)) (let ((annotations nil) (props nil) (prop nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-equivalent-data-properties: no first data property expression in ~A" args)) (return-from parse-equivalent-data-properties (values nil rest))) (push prop props) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-equivalent-data-properties: no second data property expression in ~A" args)) (return-from parse-equivalent-data-properties (values nil rest))) (push prop props) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (prop args) (parse-data-property-expression args)) (when prop (push prop props) (setf done nil))) (let ((axiom (|OWLAPI-getOWLEquivalentDataPropertiesAxiom| (reverse props)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-disjoint-data-properties (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DisjointDataProperties|)) (let ((annotations nil) (props nil) (prop nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-disjoint-data-properties: no first data property expression in ~A" args)) (return-from parse-disjoint-data-properties (values nil rest))) (push prop props) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-disjoint-data-properties: no second data property expression in ~A" args)) (return-from parse-disjoint-data-properties (values nil rest))) (push prop props) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (prop args) (parse-data-property-expression args)) (when prop (push prop props) (setf done nil))) (let ((axiom (|OWLAPI-getOWLDisjointDataPropertiesAxiom| (reverse props)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-data-property-domain (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataPropertyDomain|)) (let ((annotations nil) (prop nil) (descr nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-data-property-domain: no data property expression in ~A" args)) (return-from parse-data-property-domain (values nil rest))) (multiple-value-setq (descr args) (parse-class-expression args)) (unless descr (when error-p (owlapi:owlapi-parser-error "parse-data-property-domain: no class expression in ~A" args)) (return-from parse-data-property-domain (values nil rest))) (let ((axiom (|OWLAPI-getOWLDataPropertyDomainAxiom| prop descr))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-data-property-range (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataPropertyRange|)) (let ((annotations nil) (prop nil) (range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-data-property-range: no data property expression in ~A" args)) (return-from parse-data-property-range (values nil rest))) (multiple-value-setq (range args) (parse-data-range args)) (unless range (when error-p (owlapi:owlapi-parser-error "parse-data-property-range: no data range in ~A" args)) (return-from parse-data-property-range (values nil rest))) (let ((axiom (|OWLAPI-getOWLDataPropertyRangeAxiom| prop range))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-functional-data-property (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |FunctionalDataProperty|)) (let ((annotations nil) (prop nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-functional-data-property: no data property expression in ~A" args)) (return-from parse-functional-data-property (values nil rest))) (let ((axiom (|OWLAPI-getOWLFunctionalDataPropertyAxiom| prop))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) ;;; ;;; ;;; (defun parse-datatype-definition (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DatatypeDefinition|)) (let ((annotations nil) (datatype nil) (range nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (datatype args) (parse-datatype args)) (unless datatype (when error-p (owlapi:owlapi-parser-error "parse-datatype-definition: no datatype URI in ~A" args)) (return-from parse-datatype-definition (values nil rest))) (multiple-value-setq (range args) (parse-data-range args)) (unless range (when error-p (owlapi:owlapi-parser-error "parse-datatype-definition: no data range in ~A" args)) (return-from parse-datatype-definition (values nil rest))) (let ((axiom (|OWLAPI-getOWLDatatypeDefinitionAxiom| datatype range))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) ;;; ;;; ;;; (defun parse-has-key (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |HasKey|)) (let ((annotations nil) (class nil) (ops nil) (dps nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (class args) (parse-class-expression args)) (unless class (when error-p (owlapi:owlapi-parser-error "parse-has-key: no class expression in ~A" args)) (return-from parse-has-key (values nil rest))) (cond (*owl-xml-mode* (let ((dps nil) (ops nil) (prop nil)) (loop while (and args (f-consp args)) do (setf prop nil) (multiple-value-setq (prop args) (parse-object-property-expression args nil)) (cond (prop (push prop ops)) (t (multiple-value-setq (prop args) (parse-data-property-expression args)) (cond (prop (push prop dps)) (t (when error-p (owlapi:owlapi-parser-error "parse-has-key: bad object or data property expression in ~A" args)) (return-from parse-has-key (values nil rest))))))) (let ((axiom (|OWLAPI-getOWLHasKeyAxiom| class (reverse ops) (reverse dps)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest)))) (t (let ((args1 (f-first args)) (args2 (f-first (f-rest args)))) (cond #+:ignore ((not (f-consp-p args1)) (when error-p (owlapi:owlapi-parser-error "parse-has-key: no list of object property expressions in ~A" args)) (return-from parse-has-key (values nil rest))) (t (let ((op nil) (done nil)) (loop while (and args1 (not done) (f-consp args1)) do (setf done t) (multiple-value-setq (op args1) (parse-object-property-expression args1)) (when op (push op ops) (setf done nil)))) (cond ((not (f-consp args2)) (when error-p (owlapi:owlapi-parser-error "parse-has-key: no list of data property expressions in ~A" args2)) (return-from parse-has-key (values nil rest))) (t (let ((dp nil) (done nil)) (loop while (and args2 (not done) (f-consp args2)) do (setf done t) (multiple-value-setq (dp args2) (parse-data-property-expression args2)) (when dp (push dp dps) (setf done nil)))) (let ((axiom (|OWLAPI-getOWLHasKeyAxiom| class (reverse ops) (reverse dps)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest)))))))))) (values nil args))) ;;; ;;; ;;; (defun parse-assertion (args) (let ((axiom nil)) (dolist (parser '(parse-class-assertion parse-object-property-assertion parse-data-property-assertion parse-same-individuals parse-different-individuals parse-negative-object-property-assertion parse-negative-data-property-assertion)) (multiple-value-setq (axiom args) (funcall parser args)) (when axiom (return-from parse-assertion (values axiom args)))) (values nil args))) #+:ignore (defun parse-assertion (args) (let ((axiom nil)) (dolist (parser '(parse-same-individuals parse-different-individuals parse-class-assertion parse-object-property-assertion parse-negative-object-property-assertion parse-data-property-assertion parse-negative-data-property-assertion)) (multiple-value-setq (axiom args) (funcall parser args)) (when axiom (return-from parse-assertion (values axiom args)))) (values nil args))) (defun parse-source-individual-iri (args) (parse-individual args)) (defun parse-target-individual-iri (args) (parse-individual args)) (defun parse-target-value (args) (parse-literal args)) (defun parse-same-individuals (args &optional (error-p t)) (if (and (f-consp (f-first args)) (or (check-for args |SameIndividual|) (check-for args |SameIndividuals|))) (let ((annotations nil) (ind-iris nil) (ind-iri nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri (when error-p (owlapi:owlapi-parser-error "parse-same-individuals: no first individual URI in ~A" args)) (return-from parse-same-individuals (values nil rest))) (push ind-iri ind-iris) (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri (when error-p (owlapi:owlapi-parser-error "parse-same-individuals: no second individual URI in ~A" args)) (return-from parse-same-individuals (values nil rest))) (push ind-iri ind-iris) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (ind-iri args) (parse-individual args)) (when ind-iri (push ind-iri ind-iris) (setf done nil))) (let ((axiom (|OWLAPI-getOWLSameIndividualsAxiom| (reverse ind-iris)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-different-individuals (args &optional (error-p t)) (if (and (f-consp (f-first args)) (or (check-for args |DifferentIndividual|) (check-for args |DifferentIndividuals|))) (let ((annotations nil) (ind-iris nil) (ind-iri nil) (done nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri (when error-p (owlapi:owlapi-parser-error "parse-different-individuals: no first individual URI in ~A" args)) (return-from parse-different-individuals (values nil rest))) (push ind-iri ind-iris) (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri (when error-p (owlapi:owlapi-parser-error "parse-different-individuals: no second individual URI in ~A" args)) (return-from parse-different-individuals (values nil rest))) (push ind-iri ind-iris) (loop while (and args (not done) (f-consp args)) do (setf done t) (multiple-value-setq (ind-iri args) (parse-individual args)) (when ind-iri (push ind-iri ind-iris) (setf done nil))) (let ((axiom (|OWLAPI-getOWLDifferentIndividualsAxiom| (reverse ind-iris)))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-class-assertion (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ClassAssertion|)) (let ((annotations nil) (ind-iri nil) (expression nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) ;;; error in OWLAPI (cond (*use-owlapi-flipped-class-assertions-p* (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri (when error-p (owlapi:owlapi-parser-error "parse-class-assertion: no individual URI in ~A" args)) (return-from parse-class-assertion (values nil rest))) (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (when error-p (owlapi:owlapi-parser-error "parse-class-assertion: no class expression in ~A" args)) (return-from parse-class-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLClassAssertionAxiom| ind-iri expression))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (t (multiple-value-setq (expression args) (parse-class-expression args)) (unless expression (when error-p (owlapi:owlapi-parser-error "parse-class-assertion: no class expression in ~A" args)) (return-from parse-class-assertion (values nil rest))) (multiple-value-setq (ind-iri args) (parse-individual args)) (unless ind-iri (when error-p (owlapi:owlapi-parser-error "parse-class-assertion: no individual URI in ~A" args)) (return-from parse-class-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLClassAssertionAxiom| ind-iri expression))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))))) (values nil args))) (defun parse-object-property-assertion (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |ObjectPropertyAssertion|)) (let ((annotations nil) (prop nil) (source-ind-iri nil) (target-ind-iri nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-object-property-assertion: no object property expression in ~A" args)) (return-from parse-object-property-assertion (values nil rest))) (multiple-value-setq (source-ind-iri args) (parse-source-individual-iri args)) (unless source-ind-iri (when error-p (owlapi:owlapi-parser-error "parse-object-property-assertion: no source ind URI in ~A" args)) (return-from parse-object-property-assertion (values nil rest))) (multiple-value-setq (target-ind-iri args) (parse-target-individual-iri args)) (unless target-ind-iri (when error-p (owlapi:owlapi-parser-error "parse-object-property-assertion: no target ind URI in ~A" args)) (return-from parse-object-property-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLObjectPropertyAssertionAxiom| source-ind-iri prop target-ind-iri))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-negative-object-property-assertion (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |NegativeObjectPropertyAssertion|)) (let ((annotations nil) (prop nil) (source-ind-iri nil) (target-ind-iri nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-object-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-negative-object-property-assertion: no object property expression in ~A" args)) (return-from parse-negative-object-property-assertion (values nil rest))) (multiple-value-setq (source-ind-iri args) (parse-source-individual-iri args)) (unless source-ind-iri (when error-p (owlapi:owlapi-parser-error "parse-negative-object-property-assertion: no source ind URI in ~A" args)) (return-from parse-negative-object-property-assertion (values nil rest))) (multiple-value-setq (target-ind-iri args) (parse-target-individual-iri args)) (unless target-ind-iri (when error-p (owlapi:owlapi-parser-error "parse-negative-object-property-assertion: no target ind URI in ~A" args)) (return-from parse-negative-object-property-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| source-ind-iri prop target-ind-iri))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-data-property-assertion (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |DataPropertyAssertion|)) (let ((annotations nil) (prop nil) (source-ind-iri nil) (target-value nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-data-property-assertion: no data property expression in ~A" args)) (return-from parse-data-property-assertion (values nil rest))) (multiple-value-setq (source-ind-iri args) (parse-source-individual-iri args)) (unless source-ind-iri (when error-p (owlapi:owlapi-parser-error "parse-data-property-assertion: no source ind URI in ~A" args)) (return-from parse-data-property-assertion (values nil rest))) (multiple-value-setq (target-value args) (parse-target-value args)) (unless target-value (when error-p (owlapi:owlapi-parser-error "parse-data-property-assertion: no target value in ~A" args)) (return-from parse-data-property-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLDataPropertyAssertionAxiom| source-ind-iri prop target-value))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) (defun parse-negative-data-property-assertion (args &optional (error-p t)) (if (and (f-consp (f-first args)) (check-for args |NegativeDataPropertyAssertion|)) (let ((annotations nil) (prop nil) (source-ind-iri nil) (target-value nil) (args (f-rest (f-first args))) (rest (f-rest args))) (multiple-value-setq (annotations args) (parse-annotations args)) (multiple-value-setq (prop args) (parse-data-property-expression args)) (unless prop (when error-p (owlapi:owlapi-parser-error "parse-negative-data-property-assertion: no data property expression in ~A" args)) (return-from parse-negative-data-property-assertion (values nil rest))) (multiple-value-setq (source-ind-iri args) (parse-source-individual-iri args)) (unless source-ind-iri (when error-p (owlapi:owlapi-parser-error "parse-negative-data-property-assertion: no source ind URI in ~A" args)) (return-from parse-negative-data-property-assertion (values nil rest))) (multiple-value-setq (target-value args) (parse-target-value args)) (unless target-value (when error-p (owlapi:owlapi-parser-error "parse-negative-data-property-assertion: no target value in ~A" args)) (return-from parse-negative-data-property-assertion (values nil rest))) (let ((axiom (|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| source-ind-iri prop target-value))) (create-annotations (lambda (x) (|OWLAPI-getOWLAxiomAnnotationAxiom| axiom x)) annotations) (values axiom rest))) (values nil args))) ;;; ;;; ;;; (defmacro with-owl-producer ((stream) &body body) `(let ((*producer* (get-owl-producer ,stream))) ,@body)) (defun sexpr-from-stream (stream) (with-owl-producer (stream) (let ((res (get-expression *producer*))) (unless (eq res :eof) (f-tree-map res))))) (defun parse-from-stream (stream) ;;; missnomer (sexpr-from-stream stream)) (defun sexpr-time (url &optional print-p) (with-input-from-url (stream url) (let ((res (time (sexpr-from-stream stream)))) (when print-p (pprint res)) :ok))) (defun get-f-list-from-url (url) (with-input-from-url (stream url :close-manually-p t) (with-owl-producer (stream) (get-expression *producer*)))) (defun f-tree-map (expr) (if (f-consp expr) (loop while (not done) as done = t as first = (f-first expr) when first collect (progn (setf done nil) (f-tree-map first)) do (setf expr (f-rest expr))) (progn (unless (f-list-p expr) expr)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-parse|) (args &optional reasoner) (let* (;;(*package* (find-package :ts)) (args (if (f-consp (f-first args)) args (list args)))) (with-reasoner (reasoner) (let ((description nil)) (setf description (parse-ontology-document args :error-p nil)) (unless description (multiple-value-setq (description args) (funcall #'parse-axiom args))) (if description description (owlapi:owlapi-parser-error "|OWLAPI-parse|: unknown description ~A" args)))))) (owlapi-defun (|OWLAPI-parseNative|) (string &optional reasoner) (let* (;;(*package* (find-package :ts)) (sexpr (with-input-from-string (stream string) (with-owl-producer (stream) (let ((res (get-expression *producer*))) (f-tree-map res)))))) (let* ((id (|OWLAPI-parse| sexpr reasoner))) (cond ((numberp id) ; axiom was parsed? (let ((ax (owlapi:find-owl-axiom id))) (setf (owlapi:told ax) string) (if (gethash string (owlapi:axioms-told *cur-reasoner*)) (push ax (gethash string (owlapi:axioms-told *cur-reasoner*))) (setf (gethash string (owlapi:axioms-told *cur-reasoner*)) (list ax)))) id) (t ; ontology was parsed id))))) ;;; ;;; ;;; (defvar *global-expression* nil) (defun owlapi-process-functional-ontology (ont-or-url &key strict-syntax-p use-flipped-class-assertions-p (ignore-import *ignore-import-p*) ignore-annotations (merge-imported-ontologies-p *merge-imported-ontologies-p*) maintain-owlapi-axioms kb-name reasoner-name ontology-name (init t) (parser #'parse-ontology-document)) (let* ((kb-name (intern (owlapi:ensure-string (or kb-name reasoner-name (if init (make-url-from-filename kb-name) (|OWLAPI-getCurrentReasoner|)))))) (reasoner-name kb-name) (ontology-name (or ontology-name (owlapi:get-temp-ontology-name))) (*use-owlapi-flipped-class-assertions-p* use-flipped-class-assertions-p) (*strict-owl-functional* strict-syntax-p) (*ignore-import-p* ignore-import) (*merge-imported-ontologies-p* merge-imported-ontologies-p)) (|OWLAPI-newReasoner| reasoner-name t init) ;;; ;;; if *merge-imported-ontologies-p*, then ontology already exists ;;; Otherwise, ontology-name = gensym and fresh ;;; (unless (with-reasoner (reasoner-name) (owlapi:find-owl-ontology ontology-name nil)) (|OWLAPI-newOntology| ontology-name reasoner-name)) ;;; ;;; ;;; (cond (maintain-owlapi-axioms (|OWLAPI-disableMemorySavingMode| reasoner-name)) (t (|OWLAPI-enableMemorySavingMode| ontology-name reasoner-name))) (cond (ignore-annotations (|OWLAPI-ignoreAnnotations| reasoner-name)) (t (|OWLAPI-keepAnnotations| reasoner-name))) (|OWLAPI-autoAddAxiomsTo| ontology-name reasoner-name) (multiple-value-bind (uri namespaces) (if (stringp ont-or-url) (with-input-from-url (stream ont-or-url) (with-owl-producer (stream) (let ((res (get-expression *producer*)) (*use-chopper-p* t)) (setf *global-expression* res) (unless (eq res :eof) (funcall parser res :uri kb-name))))) (funcall parser ont-or-url :uri kb-name)) (declare (ignorable namespaces)) (cond (uri (when maintain-owlapi-axioms (|OWLAPI-loadOntology| ontology-name reasoner-name)) (|OWLAPI-applyChanges| reasoner-name) uri) (t (owlapi:owlapi-parser-error "Unable to parse Ontology")))))) ;;; ;;; ;;; (owlapi:defun1 owlapi-read-functional-ontology (fn &rest args &key ontology-name reasoner-name kb-name &allow-other-keys) (let ((fn (if (owlapi:is-url-p fn) fn (make-url-from-filename fn)))) (apply #'owlapi-process-functional-ontology fn :reasoner-name (or reasoner-name kb-name fn) :ontology-name ontology-name ;; strict-syntax-p ;; use-flipped-class-assertions-p ;; (ignore-import *ignore-import-p*) ;; (merge-imported-ontologies-p *merge-imported-ontologies-p*) ;; maintain-owlapi-axioms ;; ontology-name ;; (init t) :allow-other-keys t args))) ;;; ;;; old, but keep for compatibility ;;; (owlapi:owlapi-defun (|OWLAPI-readFunctionalOntologyFile|) (fn &rest args &key (ignore-import *ignore-import-p*) &allow-other-keys) (let* ((*import-level* 0) (*ignore-import-p* ignore-import) (fn (make-url-from-filename fn)) (*imported-ontologies* (list (intern (owlapi:ensure-string fn))))) (#+:racer-server racer::without-duplicate-warnings #-:racer-server progn (apply #'owlapi-read-functional-ontology fn :parser #'parse-ontology-document :allow-other-keys t args)))) (owlapi:owlapi-defun (|OWLAPI-readFunctionalOntologyDocument|) (url &rest args &key (ignore-import *ignore-import-p*) &allow-other-keys) (let* ((*import-level* 0) (*ignore-import-p* ignore-import) (*imported-ontologies* (list (intern (owlapi:ensure-string url))))) (#+:racer-server racer::without-duplicate-warnings #-:racer-server progn (apply #'owlapi-read-functional-ontology url :parser #'parse-ontology-document :allow-other-keys t args))))
180,213
Common Lisp
.lisp
4,114
28.820369
135
0.519525
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
60a3aff0e032cccfcea4f45f2fb480b33a9f0006fddf99bb07c9ce73547af1bf
6,335
[ -1 ]
6,336
ontolisp.lisp
lambdamikel_OntoLisp/ontolisp-0.9/ontolisp.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: CL-USER; Base: 10 -*- (in-package :cl-user) ;;; ;;;; ontolisp.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Loader for OntoLisp (NOSA) using ASDF ;;; #+:allegro (progn (require :aserve) (require :inflate) (require :streama) (pushnew :aserve *features*)) (push :wilbur2 *features*) (eval-when (:load-toplevel :compile-toplevel :execute) (when (eq (readtable-case *readtable*) :preserve) (push :mlisp *features*)) (let ((pathname (asdf:system-source-directory :ontolisp))) (unless pathname (break "\"ontolisp.lisp\" cannot be buffer-evaluated. Please use \"load\" or specify the \"logical-pathname-translation\" for host \"ontolisp\" by hand here:")) (let* ((p (probe-file pathname)) (d (pathname-directory p))) (if d (setf (logical-pathname-translations "ontolisp") `(("**;*.*" ,(merge-pathnames (make-pathname :name :wild :type :wild :version :wild :directory '(:relative :wild-inferiors)) (make-pathname :name nil :type nil :directory d :defaults p))))) (break "File ~A not found." pathname)) (setf (logical-pathname-translations "wilbur2") '(("**;*.*" "ontolisp:wilbur2;src;**;*.*"))) (setf (logical-pathname-translations "ontolisp-test") '(("**;*.*" "ontolisp:test;**;*.*"))) (format t "~%~%Base directory is: ~A" (translate-logical-pathname "ontolisp:"))))) #-asdf (load "ontolisp:asdf;asdf.lisp") ;;; (owlapi::owlapi-test) ;;; (owl-syntaxes::owl-syntaxes-test)
6,543
Common Lisp
.lisp
115
52.808696
166
0.661419
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
70ac31b41a95ebeaabfc77e9cc4ddac5463791883b613d497e7f42058793580a
6,336
[ -1 ]
6,337
owl-import.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owl-import.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owl-import.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Master import function of OWL 2 parser and OWL 2 syntax guesser ;;; (defvar *owllink-mirror-mappings* nil) (defvar *imported-ontologies* nil) (defvar *ignore-import-p* nil) (defvar *import-level* 0) #+:racer-server (defun get-syntax-from-document (uri &rest args) (declare (ignorable args)) (racer::get-syntax-from-document uri #+:aserve (getf args ':verbose))) #-:racer-server (defun get-syntax-from-document (uri &rest args) (declare (ignorable args)) (with-input-from-url (stream uri) (loop (let ((line (read-line stream nil nil))) (if line (let ((res (cond ((search "<rdf:RDF" line) :owl-rdf) ((search "<Ontology" line) :owl-xml) ((search "Ontology(" line) :owl-functional)))) (when res (return res))) (return :unknown)))))) (owlapi::defun1 owlapi-import-ontology (uri &rest args &key syntax reasoner-name kb-name &allow-other-keys) (declare (ignorable args)) (let* ((uri (if (symbolp uri) (symbol-name uri) uri)) (uri (or (substitute-name uri *owllink-mirror-mappings*) uri)) (reasoner *cur-reasoner*)) (cond ((member (intern (owlapi::ensure-string uri)) *imported-ontologies*) #+:racer-server (reasoner-redundant-import-warning uri) #-:racer-server (owlapi-warning "Skipping redundant import: ~A" uri)) (t (labels ((do-it () (when (or (not *ignore-import-p*) (minusp *import-level*)) (unless (minusp *import-level*) (owlapi::push-namespace-table reasoner)) (let* ((*import-level* (1+ *import-level*)) (*imported-ontologies* (cons (intern (owlapi::ensure-string uri)) *imported-ontologies*)) (syntax (or syntax (get-syntax-from-document uri)))) (let ((ontology (|OWLAPI-getAutoOntology| reasoner))) (labels ((syntax-message (message) #+:racer-server (reasoner-syntax-message message uri) #-:racer-server (owlapi-warning message 0 uri))) (unwind-protect (case syntax #+:racer-server ((:owl-rdf :rdf-xml :owl) (syntax-message "~%~V@TLooks like ontology ~A is in OWL RDF syntax~%") (apply #'racer::owl-read-document uri :kb-name (or kb-name reasoner-name) ; wg. imports :allow-other-keys t args)) #-:racer-server ((:owl-rdf :rdf-xml :owl) (owlapi-runtime-error "Cannot parse ontology ~A in OWL RDF syntax. Only OWL XML and OWL Functional are supported.~%" uri)) ((:owl-xml :xml :owx) (syntax-message "~%~V@TLooks like ontology ~A is in OWL XML syntax~%") (apply #'owlapi-read-xml-ontology uri :allow-other-keys t args)) (t (syntax-message "~%~V@TAssuming ontology ~A is in OWL Functional syntax~%") (handler-case (apply #'owlapi-read-functional-ontology uri :allow-other-keys t args) (error (error) (owlapi-runtime-error "Import of ontology ~A failed - perhaps this ontology is neither in OWL RDF, OWL XML, nor OWL Functional syntax. Functional parser error was: ~A" uri error))))) (let* ((ontology (if (owlapi::find-owl-ontology ontology nil) ;; perhaps ontology was merged with another one ;; (due to Import) ontology (|OWLAPI-getAutoOntology| reasoner)))) (unless (eq ontology :void) (|OWLAPI-autoAddAxiomsTo| ontology reasoner))))))) (unless (minusp *import-level*) (owlapi::pop-namespace-table reasoner)) (or kb-name reasoner-name)))) (if (minusp *import-level*) #+:racer-server (racer::without-duplicate-warnings (do-it)) #-:racer-server (do-it) (do-it)))))))
10,744
Common Lisp
.lisp
187
42.374332
224
0.541547
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
7dae6e636e3437dd3bb17a832e4ea3b290f52da4739afb4814a508e087dcb381
6,337
[ -1 ]
6,338
owlapi.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owlapi.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWLAPI; Base: 10 -*- (in-package :owlapi) ;;; ;;;; owlapi.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: The basic ontology management framework of OntoLisp ;;; (inspired by the Java OWLAPI v2.2) ;;; #+:racer-server (declaim (special ts::*really-warn-p*)) (defvar *reasoners* (make-hash-table :test #'eql)) (defvar *temp-ont-counter* 0) (defvar *cur-reasoner* nil) (defvar *default-reasoner* nil) (defparameter *default-reasoner-name* #+:racer-server 'racer-user::OWLAPI-KB #-:racer-server 'OWLAPI-KB) (defparameter *register-referenced-entities-p* nil) (defparameter *register-declared-entities-p* nil) ;;; ;;; ;;; (define-constant +owl2-namespace+ "http://www.w3.org/2002/07/owl#") (define-constant +old-owl2-namespace+ "http://www.w3.org/2006/12/owl2-xml#") (define-constant +owlapi-owl-thing+ #+:racer-server (intern racer:+owl-thing+) #-:racer-server (intern "http://www.w3.org/2002/07/owl#Thing")) (define-constant +owlapi-owl-nothing+ #+:racer-server (intern racer:+owl-nothing+) #-:racer-server (intern "http://www.w3.org/2002/07/owl#Nothing")) (define-constant +owlapi-owl-top+ #+:racer-server (intern racer:+owl-thing+) #-:racer-server (intern "http://www.w3.org/2002/07/owl#Thing")) (define-constant +owlapi-owl-bottom+ #+:racer-server (intern racer:+owl-nothing+) #-:racer-server (intern "http://www.w3.org/2002/07/owl#Nothing")) (define-constant +owlapi-owl-top-object-role+ #+:racer-server racer:+owl-top-object-role+ #-:racer-server (intern "http://www.w3.org/2002/07/owl#topObjectProperty")) (define-constant +owlapi-owl-bottom-object-role+ #+:racer-server racer:+owl-bottom-object-role+ #-:racer-server (intern "http://www.w3.org/2002/07/owl#bottomObjectProperty")) (define-constant +owlapi-owl-top-data-role+ #+:racer-server racer:+owl-top-data-role+ #-:racer-server (intern "http://www.w3.org/2002/07/owl#topDataProperty")) (define-constant +owlapi-owl-bottom-data-role+ #+:racer-server racer:+owl-bottom-data-role+ #-:racer-server (intern "http://www.w3.org/2002/07/owl#bottomDataProperty")) ;;; ;;; ;;; (define-constant +defaultnamespace-prefixes+ '(:|defaultnamespace| :defaultnamespace :\: :|| ;; (intern \"\" ) = || nil)) (defun is-default-prefix-p (prefix) (let ((prefix (ensure-string prefix))) (member prefix +defaultnamespace-prefixes+ :key #'symbol-name :test #'string-equal))) ;;; ;;; ;;; (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *structure-slots* nil) (defmacro defconstructor (name (&rest args) &body body) `(owlapi-defun (,name) (,@args &optional reasoner) #|(let ,(mapcar #'(lambda (x) (list x `(if (consp ,x) (copy-tree ,x) ,x))) args) |# ,@body)) (defmacro defaxiom (name superclasses slots) (dolist (slot slots) (let ((syms (remove-duplicates (remove nil (list (first slot) (second (member :initarg slot)) (second (member :reader slot)) (second (member :writer slot)) (second (member :accessor slot)))) :test #'(lambda (x y) (string-equal (symbol-name x) (symbol-name y)))))) (when (cdr syms) (error "Bad slot: ~S, use same symbol instead of ~S" slot syms)))) (push (list name (append (reduce #'append (mapcar (lambda (superclass) (second (assoc superclass *structure-slots*))) superclasses)) slots)) *structure-slots*) (let* ((redefined-slots (intersection slots (when superclasses (second (assoc (first superclasses) *structure-slots*))) :test #'equal :key #'first)) (form `(progn (defpersistentstruct (,name ,@(when superclasses (when (cdr superclasses) (error "Can only include one structure: ~S" superclasses)) `((:include ,@superclasses ,@(mapcar #'(lambda (slot) (list (first slot) (second (member :initform slot)))) redefined-slots)))) (:conc-name) (:package :owlapi)) ,@(mapcar #'(lambda (slot) (list (first slot) (second (member :initform slot)))) (set-difference slots (when superclasses (second (assoc (first superclasses) *structure-slots*))) :test #'equal :key #'first)))))) ;; (pprint form) form))) (defun clear-last-answer () (when *cur-reasoner* (setf (last-answer *cur-reasoner*) :void))) (defmacro return-by-policy () `(progn (when *cur-reasoner* (labels ((trafo (x) (typecase x (|OWLAxiom| (unparse x)) (|OWLOntologyChange| (unparse x)) (cons (if (not (cdr (last x))) ; echt Liste? (mapcar #'trafo x) (append (mapcar #'trafo (butlast x)) (cons (car (last x)) (cdr (last x)))))) (otherwise x)))) (let ((ans (last-answer *cur-reasoner*))) (if (listp ans) (mapcar #'trafo ans) (trafo ans))))))) (defmacro return-check-if-abox-consistent () `(progn (let ((val (reasoner-abox-coherent-p (owlapi-abox *cur-reasoner*)))) (cond ((eq val :down-know) (return-by-policy)) ((eq val t) (return-by-policy)) ((eq val :inconsistent) (setf (last-answer *cur-reasoner*) :abox-inconsistent) (return-by-policy)))))) ;;; ;;; ;;; (defmethod (setf last-answer) (val (x null)) (declare (ignore val)) (owlapi-runtime-error "OWLAPI not initialized - try \"(OWLAPI-init)\" first")) (defmethod last-answer ((x null)) (declare (ignore val)) (owlapi-runtime-error "OWLAPI not initialized - try \"(OWLAPI-init)\" first")) ;;; ;;; ;;; (defmacro clear-entities (&rest entities) `(progn ,@(mapcar #'(lambda (val) `(setf ,val (remove-entity-if-present ,val))) entities))) (defmacro clear-entities1 (&rest entities) `(progn ,@(mapcar #'(lambda (val) `(setf ,val (remove-entities-if-present ,val))) entities))) (defun remove-entity-if-present (val) (if (consp val) (case (first val) ((|OWLClass| |Class| |ObjectProperty| |DataProperty| |Annotation| |Datatype| |AnnotationProperty| |Individual| |NamedIndividual|) (second val)) (otherwise val)) val)) (defun remove-entities-if-present (val) (if (consp val) (mapcar #'remove-entity-if-present val) val)) ;;; ;;; OWLReasoner ;;; (defpersistentclass reasoner () ((owlapi-reasoner-name :accessor owlapi-reasoner-name :initform *default-reasoner-name* :initarg :owlapi-reasoner-name) (owlapi-tbox :accessor owlapi-tbox :initform *default-reasoner-name* :initarg :owlapi-tbox) (owlapi-abox :accessor owlapi-abox :initform *default-reasoner-name* :initarg :owlapi-abox) (namespace-table-stack :accessor namespace-table-stack :initform nil) (namespace-table :accessor namespace-table :initform (let ((ht (mht :size 10 :test #'equalp))) (reasoner-delete-prefix-mappings) (loop as (prefix namespace) in (reasoner-get-prefixes (reasoner-current-tbox) nil) do (let ((prefix (or prefix :defaultnamespace))) (when (is-default-prefix-p prefix) (dolist (prefix +defaultnamespace-prefixes+) (setf (gethash prefix (namespace-table *cur-reasoner*)) namespace))) (setf (gethash (to-keyword (ensure-ends-with-colon prefix)) ht) namespace))) ht)) (return-policy :accessor return-policy :initform :smart) (simple-output :accessor simple-output :initform nil) (incremental-updates :accessor incremental-updates :initform t) (last-answer :accessor last-answer :initform :void) (last-error :accessor last-error :initform nil) (last-output-stream-string :accessor last-output-stream-string :initform nil) (ontologies :accessor ontologies :initform (mht :size 10 :test #'equalp)) (axioms :accessor axioms :initform (mht :test #'eql)) (axioms-told :accessor axioms-told :initform (mht :test #'equalp)) (axiom-counter :accessor axiom-counter :initform 0) (next-axiom-use-id :accessor next-axiom-use-id :initform nil) (changes :accessor changes :initform nil) (id-to-object-table :accessor id-to-object-table :initform (mht :size 1000 :test #'eql)) (object-to-id-table :accessor object-to-id-table :initform (mht :size 1000 :test #'equalp)) (id-counter :accessor id-counter :initform 0) (lookup-mode :accessor lookup-mode :initform nil) ; use axiom constructor calls just for lookup of existing axioms (transient-mode :accessor transient-mode :initform nil) ; create axiom but dont add to reasoner or ontology (auto-mode :accessor auto-mode :initform nil) ; add or remove automatically to / from ontology (auto-apply :accessor auto-apply :initform nil) ; auto apply changes (not applyChanges required if t) (auto-declare-datatype-properties-p :accessor auto-declare-datatype-properties-p :initform t) (dont-keep-axioms-p :accessor dont-keep-axioms-p :initform nil) (ignore-annotations-p :accessor ignore-annotations-p :initform nil) (ignore-declarations-p :accessor ignore-declarations-p :initform nil) (register-referenced-entities-p :accessor register-referenced-entities-p :initform *register-referenced-entities-p*) (register-declared-entities-p :accessor register-declared-entities-p :initform *register-declared-entities-p*) (used-constructors :accessor used-constructors :initform nil))) (defmethod pop-namespace-table ((reasoner reasoner)) (reasoner-reset-prefix-cache) (setf (namespace-table reasoner) (pop (namespace-table-stack reasoner)))) (defmethod push-namespace-table ((reasoner reasoner)) (reasoner-reset-prefix-cache) (push (namespace-table reasoner) (namespace-table-stack reasoner)) (setf (namespace-table reasoner) (let ((ht (mht :size 10 :test #'equalp))) (maphash #'(lambda (prefix namespace) (setf (gethash prefix ht) namespace)) (namespace-table reasoner)) ht))) (defmethod get-ontology-names ((reasoner reasoner) &optional (error-p t)) (declare (ignorable error-p)) (mapcar #'name (get-ontologies reasoner))) (defmethod get-ontology-names ((reasoner symbol) &optional (error-p t)) (let ((reasoner (find-reasoner reasoner error-p))) (if reasoner (get-ontology-names reasoner) nil))) (defmethod get-ontologies ((reasoner reasoner) &optional (error-p t)) (declare (ignorable error-p)) (remove-duplicates (loop as ont being the hash-value of (ontologies reasoner) collect ont))) (defmethod get-ontologies ((reasoner symbol) &optional (error-p t)) (let ((reasoner (find-reasoner reasoner error-p))) (if reasoner (get-ontologies reasoner) nil))) (defmethod get-all-ontologies () (declare (ignorable error-p)) (loop as name being the hash-key of *reasoners* as reasoner being the hash-value of *reasoners* collect `(:reasoner ,name (:ontologies ,@ (mapcar #'(lambda (ont) `(:name ,(name ont) :aka ,@(remove (name ont) (all-names ont)))) (remove-duplicates (loop as ont being the hash-value of (ontologies reasoner) collect ont))))))) ;;; ;;; General Purpose Registry ;;; (defun create-id () (incf (id-counter *cur-reasoner*))) (defun get-current-id () (id-counter *cur-reasoner*)) (defun reset-id-counter () (setf (id-counter *cur-reasoner*) 0)) ;;; ;;; ;;; (defmacro with-reasoner ((reasoner) &body body) `(let ((*cur-reasoner* (find-reasoner (or ,reasoner *cur-reasoner*)))) ,@body)) (defmethod initialize-instance :after ((reasoner reasoner) &rest initargs) (declare (ignorable initargs)) (setf (gethash (owlapi-reasoner-name reasoner) *reasoners*) reasoner) (when (eq (owlapi-reasoner-name reasoner) *default-reasoner-name*) (setf *default-reasoner* (find-reasoner (owlapi-reasoner-name reasoner))))) (owlapi-defun (|OWLAPI-newReasoner|) (&optional (owlapi-reasoner-name *default-reasoner-name*) make-racer-kb-current-p (init t) owlapi-tbox owlapi-abox ) (let ((owlapi-reasoner-name (etypecase owlapi-reasoner-name (string (intern (ensure-string owlapi-reasoner-name))) (symbol owlapi-reasoner-name)))) (let* ((abox (reasoner-current-abox)) (tbox (reasoner-current-tbox)) (reasoner (find-reasoner owlapi-reasoner-name nil))) (when (or init (not reasoner)) (make-instance 'reasoner :owlapi-reasoner-name owlapi-reasoner-name)) (with-reasoner (owlapi-reasoner-name) (setf (owlapi-abox *cur-reasoner*) (if (and (not init) reasoner) ;; namen beibehalten (owlapi-abox reasoner) (or owlapi-abox owlapi-reasoner-name abox))) (setf (owlapi-tbox *cur-reasoner*) (if (and (not init) reasoner) (owlapi-tbox reasoner) (or owlapi-tbox owlapi-reasoner-name tbox))) (reasoner-new-tbox-and-abox (owlapi-tbox *cur-reasoner*) (owlapi-abox *cur-reasoner*) init)) (|OWLAPI-setCurrentReasoner| owlapi-reasoner-name make-racer-kb-current-p) (unless make-racer-kb-current-p (reasoner-set-current-tbox tbox) (reasoner-set-current-abox abox)) (setf (last-answer (find-reasoner owlapi-reasoner-name)) owlapi-reasoner-name) (return-by-policy)))) (defun find-reasoner (name &optional (error-p t)) (if (typep name 'reasoner) name (or (gethash name *reasoners*) (when error-p (owlapi-runtime-error "Can't find reasoner ~A" name))))) (owlapi-defun (|OWLAPI-disposeReasoner|) (name) (let ((reasoner (find-reasoner name))) (reasoner-dispose reasoner) (remhash (owlapi-reasoner-name reasoner) *reasoners*) (when (eq *cur-reasoner* reasoner) (setf *cur-reasoner* *default-reasoner*)) (when (eq reasoner *default-reasoner*) (|OWLAPI-newReasoner|)) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-setCurrentReasoner|) (name &optional make-racer-kb-current-p) (setf *cur-reasoner* (find-reasoner name)) (when make-racer-kb-current-p (reasoner-set-current-tbox (owlapi-tbox *cur-reasoner*)) (reasoner-set-current-abox (owlapi-abox *cur-reasoner*))) (clear-last-answer) (return-by-policy)) (owlapi-defun (|OWLAPI-getCurrentReasoner|) () (setf (last-answer *cur-reasoner*) (owlapi-reasoner-name *cur-reasoner*)) (return-by-policy)) (owlapi-defun (|OWLAPI-getReasoners|) () (setf (last-answer *cur-reasoner*) (loop as name being the hash-key of *reasoners* collect name)) (return-by-policy)) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-init|) () (|OWLAPI-dispose|) (|OWLAPI-newReasoner|) (clear-last-answer) (return-by-policy)) ;;; ;;; ;;; #+:racer-server (owlapi-defun (|OWLAPI-enableSimplifiedProtocol|) (&optional reasoner) (when (eq reasoner :|global|) (setf user:*one-simple-output* t) (setf reasoner nil)) (with-reasoner (reasoner) (setf (simple-output *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) #+:racer-server (owlapi-defun (|OWLAPI-disableSimplifiedProtocol|) (&optional reasoner) (when (eq reasoner :|global|) (setf user:*one-simple-output* nil) (setf reasoner nil)) (with-reasoner (reasoner) (setf (simple-output *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) #+:racer-server (owlapi-defun (|OWLAPI-usesSimplifiedProtocol|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (or user:*one-simple-output* (simple-output *cur-reasoner*))) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-enableIncrementalUpdates|) (&optional reasoner) (with-reasoner (reasoner) (setf (incremental-updates *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-disableIncrementalUpdates|) (&optional reasoner) (with-reasoner (reasoner) (setf (incremental-updates *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-usesIncrementalUpdates|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (incremental-updates *cur-reasoner*)) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-registerReferencedEntities|) (&optional reasoner) (if (eq reasoner :|global|) (setf *register-referenced-entities-p* t) (with-reasoner (reasoner) (setf (register-referenced-entities-p *cur-reasoner*) t) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-dontRegisterReferencedEntities|) (&optional reasoner) (if (eq reasoner :|global|) (setf *register-referenced-entities-p* nil) (with-reasoner (reasoner) (setf (register-referenced-entities-p *cur-reasoner*) nil) (clear-last-answer) (return-by-policy)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-registerDeclaredEntities|) (&optional reasoner) (if (eq reasoner :|global|) (setf *register-declared-entities-p* t) (with-reasoner (reasoner) (setf (register-declared-entities-p *cur-reasoner*) t) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-dontRegisterDeclaredEntities|) (&optional reasoner) (if (eq reasoner :|global|) (setf *register-declared-entities-p* nil) (with-reasoner (reasoner) (setf (register-declared-entities-p *cur-reasoner*) nil) (clear-last-answer) (return-by-policy)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-nextAxiomUseID|) (id &optional reasoner) (with-reasoner (reasoner) (setf (next-axiom-use-id *cur-reasoner*) id) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; #| (owlapi-defun (|OWLAPI-OWLXMLParserCreateAxioms|) () (setf *use-owlapi* t) (clear-last-answer) (return-by-policy)) (owlapi-defun (|OWLAPI-OWLXMLParserDontCreateAxioms|) () (setf *use-owlapi* nil) (clear-last-answer) (return-by-policy)) |# ;;; ;;; ;;; (owlapi-defun (|OWLAPI-setReturnPolicy|) (type &optional reasoner) (with-reasoner (reasoner) (setf (return-policy *cur-reasoner*) (ecase type (:answer-direct type) (:get-last-answer type) (:smart type)))) (clear-last-answer) (return-by-policy)) (owlapi-defun (|OWLAPI-clearRegistry|) (&optional reasoner) (with-reasoner (reasoner) ;; (reset-id-counter) (clrhash (id-to-object-table *cur-reasoner*)) (clrhash (object-to-id-table *cur-reasoner*)) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-registerLastAnswer|) (&optional reasoner) (with-reasoner (reasoner) (|OWLAPI-registerObject| (last-answer *cur-reasoner*)) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-registerObject|) (obj) (setf (gethash (create-id) (id-to-object-table *cur-reasoner*)) obj) (setf (gethash obj (object-to-id-table *cur-reasoner*)) (get-current-id)) (setf (last-answer *cur-reasoner*) (get-current-id)) (return-by-policy)) (owlapi-defun (|OWLAPI-findObjectFromID|) (id) (gethash id (id-to-object-table *cur-reasoner*))) (owlapi-defun (|OWLAPI-findIDFromObject|) (obj) (setf (last-answer *cur-reasoner*) (gethash obj (object-to-id-table *cur-reasoner*))) (return-by-policy)) ;;; ;;; ;;; (defun find-owl-class (cls-or-id) (if (integerp cls-or-id) (or (gethash cls-or-id (id-to-object-table *cur-reasoner*)) cls-or-id) cls-or-id)) (defun find-owl-individual (ind-or-id) (if (integerp ind-or-id) (or (gethash ind-or-id (id-to-object-table *cur-reasoner*)) ind-or-id) ind-or-id)) (defun find-owl-property (prop-or-id) (if (integerp prop-or-id) (or (gethash prop-or-id (id-to-object-table *cur-reasoner*)) prop-or-id) prop-or-id)) (defun find-owl-entity (entity-or-id) ; anything (CLass, Ind, Property, ...) (if (integerp entity-or-id) (or (gethash entity-or-id (id-to-object-table *cur-reasoner*)) entity-or-id) entity-or-id)) ;;; ;;; ;;; (defun declare-datatype-properties (concept) (when (auto-declare-datatype-properties-p *cur-reasoner*) (if (not (consp concept)) concept (case (first concept) ((d-some d-all) (reasoner-role-is-used-as-datatype-property (second concept) (owlapi-tbox *cur-reasoner*)) (declare-datatype-properties (third concept))) ((d-at-least d-at-most d-exactly) (reasoner-role-is-used-as-datatype-property (third concept) (owlapi-tbox *cur-reasoner*)) (declare-datatype-properties (third concept))) (otherwise (dolist (concept (rest concept)) (declare-datatype-properties concept))))))) ;;; ;;; OWLClassReasoner ;;; (owlapi-defun (|OWLAPI-isClass|) (clsC &optional reasoner) ;; boolean (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (reasoner-concept-p (find-owl-class clsC) (owlapi-tbox *cur-reasoner*))) (return-by-policy))) (owlapi-defun (|OWLAPI-isSubClassOf|) (clsC clsD &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((clsC (find-owl-class clsC)) (clsD (find-owl-class clsD))) (setf (last-answer *cur-reasoner*) (reasoner-concept-subsumes-p clsD clsC (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isEquivalentClass|) (clsC clsD &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((clsC (find-owl-class clsC)) (clsD (find-owl-class clsD))) (setf (last-answer *cur-reasoner*) (reasoner-concepts-equivalent-p clsC clsD (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getSuperClasses|) (cls &optional reasoner) ;; Set<Set<OWLClass>> (with-reasoner (reasoner) (let ((cls (find-owl-class cls))) (setf (last-answer *cur-reasoner*) (reasoner-concept-parents cls (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getAncestorClasses|) (cls &optional reasoner) ;; Set<Set<OWLClass>> (with-reasoner (reasoner) (let ((cls (find-owl-class cls))) (setf (last-answer *cur-reasoner*) (reasoner-concept-ancestors cls (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getSubClasses|) (cls &optional reasoner) ;; Set<Set<OWLClass>> (with-reasoner (reasoner) (let ((cls (find-owl-class cls))) (setf (last-answer *cur-reasoner*) (reasoner-concept-children cls (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getDescendantClasses|) (cls &optional reasoner) ;; Set<Set<OWLClass>> (with-reasoner (reasoner) (let ((cls (find-owl-class cls))) (setf (last-answer *cur-reasoner*) (reasoner-concept-descendants cls (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getEquivalentClasses|) (cls &optional reasoner) ;; Set<OWLClass> (with-reasoner (reasoner) (let ((cls (find-owl-class cls))) (setf (last-answer *cur-reasoner*) (reasoner-equivalent-concepts cls (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getInconsistentClasses|) (&optional reasoner) ;; Set<OWLClass> (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (reasoner-inconsistent-concepts (owlapi-tbox *cur-reasoner*))) (return-by-policy))) ;;; ;;; OWLConsistencyChecker ;;; (owlapi-defun (|OWLAPI-isConsistent|) (ontology &optional reasoner) ;; boolean (with-reasoner (reasoner) (|OWLAPI-loadOntologies| (list ontology)) (setf (last-answer *cur-reasoner*) (reasoner-kb-is-consistent-p (owlapi-tbox *cur-reasoner*) (owlapi-abox *cur-reasoner*))) (return-by-policy))) ;;; ;;; OWLIndividualReasoner ;;; (owlapi-defun (|OWLAPI-getTypes|) (individual direct &optional reasoner) ;; Set<Set<OWLClass>> (with-reasoner (reasoner) (let ((ind (find-owl-individual individual))) (setf (last-answer *cur-reasoner*) (reasoner-get-types ind (owlapi-abox *cur-reasoner*) direct)) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getIndividuals|) (class direct &optional reasoner) ;; Set<OWLIndividual> (with-reasoner (reasoner) (let* ((class (find-owl-class class))) (setf (last-answer *cur-reasoner*) (reasoner-get-instances class (owlapi-abox *cur-reasoner*) direct)) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getObjectPropertyRelationships|) (ind &optional reasoner) ;; Map<OWLObjectProperty, Set<OWLIndividual>> (with-reasoner (reasoner) (let ((ind (find-owl-individual ind))) (setf (last-answer *cur-reasoner*) (reasoner-get-individual-successors ind (owlapi-abox *cur-reasoner*) :remove-synonyms-p nil)) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getDataPropertyRelationships|) (ind &optional reasoner) ;; Map<OWLDataProperty, Set<OWLConstant>> (with-reasoner (reasoner) (let ((ind (find-owl-individual ind))) (setf (last-answer *cur-reasoner*) (reasoner-get-individual-datatype-fillers ind (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-hasType|) (ind type direct &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((ind (find-owl-individual ind)) (type (find-owl-class type))) (setf (last-answer *cur-reasoner*) (reasoner-instance-of-p ind type (owlapi-abox *cur-reasoner*) direct)) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-hasObjectPropertyRelationship|) (subject property object &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((subject (find-owl-individual subject)) (object (find-owl-individual object)) (property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-individuals-related-p subject object property (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-hasDataPropertyRelationship|) (subject property object &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((subject (find-owl-individual subject)) (object (find-owl-individual object)) (property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-individual-has-data-filler-p subject object property (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getRelatedIndividuals|) (subject object-property &optional reasoner) ;; Set<OWLIndividual> (with-reasoner (reasoner) (let ((subject (find-owl-individual subject)) (object-property (find-owl-property object-property))) (setf (last-answer *cur-reasoner*) (reasoner-retrieve-individual-fillers subject object-property (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getRelatedValues|) (subject data-property &optional reasoner) ;; Set<OWLConstant> (with-reasoner (reasoner) (let ((subject (find-owl-individual subject)) (data-property (find-owl-property data-property))) (setf (last-answer *cur-reasoner*) (reasoner-retrieve-individual-told-datatype-fillers subject data-property (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getSameIndividuals|) (ind &optional reasoner) ;; Set<OWLIndividual> (with-reasoner (reasoner) (let ((ind (find-owl-individual ind))) (setf (last-answer *cur-reasoner*) (reasoner-get-synonym-individuals ind (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-isSameIndividual|) (i j &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((i (find-owl-individual i)) (j (find-owl-individual j))) (setf (last-answer *cur-reasoner*) (reasoner-synonym-individuals-p i j (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-getDifferentIndividuals|) (ind &optional reasoner) ;; Set<OWLIndividual> (with-reasoner (reasoner) (let ((ind (find-owl-individual ind))) (setf (last-answer *cur-reasoner*) (reasoner-get-antonym-individuals ind (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) (owlapi-defun (|OWLAPI-isDifferentIndividual|) (i j &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((i (find-owl-individual i)) (j (find-owl-individual j))) (setf (last-answer *cur-reasoner*) (reasoner-antonym-individuals-p i j (owlapi-abox *cur-reasoner*))) (return-check-if-abox-consistent)))) ;;; ;;; OWLPropertyReasoner ;;; (owlapi-defun (|OWLAPI-getSuperProperties|) (property &optional reasoner) ;; Set<Set<OWLObjectProperty>> bzw. Set<Set<OWLDataProperty>> (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-parents property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getSubProperties|) (property &optional reasoner) ;; Set<Set<OWLObjectProperty>> bzw. Set<Set<OWLDataProperty>> (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-children property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getAncestorProperties|) (property &optional reasoner (remove-self-p t)) ;; Set<Set<OWLObjectProperty>> bzw. Set<Set<OWLDataProperty>> (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-ancestors property (owlapi-tbox *cur-reasoner*) remove-self-p)) (return-by-policy)))) (owlapi-defun (|OWLAPI-getDescendantProperties|) (property &optional reasoner (remove-self-p t)) ;; Set<Set<OWLObjectProperty>> bzw. Set<Set<OWLDataProperty>> (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-descendants property (owlapi-tbox *cur-reasoner*) remove-self-p)) (return-by-policy)))) (owlapi-defun (|OWLAPI-getEquivalentProperties|) (property &optional reasoner (remove-self-p t)) ;; Set<OWLObjectProperty> bzw. Set<OWLDataProperty> (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-equivalent-roles property (owlapi-tbox *cur-reasoner*) remove-self-p)) (return-by-policy)))) (owlapi-defun (|OWLAPI-getDomains|) (property &optional reasoner (owlapi-hacking-mode 2)) ;; Set<Set<OWLDescription>> (with-reasoner (reasoner) (let* ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-get-role-domain property (owlapi-tbox *cur-reasoner*) owlapi-hacking-mode)) (return-by-policy)))) (owlapi-defun (|OWLAPI-getRanges|) (property &optional reasoner (owlapi-hacking-mode 2)) ;; Set<OWLDescription> ;; ist das falsch? ;; geaendert zu Set<Set<OWLDescription>> (with-reasoner (reasoner) (let* ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-get-role-range property (owlapi-tbox *cur-reasoner*) owlapi-hacking-mode)) (return-by-policy)))) (owlapi-defun (|OWLAPI-isFunctional|) (property &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-functional-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-getInverseProperties|) (property &optional reasoner) ;; Set<Set<OWLObjectProperty>> bzw. Set<Set<OWLDataProperty>> (with-reasoner (reasoner) (let* ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-inverse-roles property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isInverseFunctional|) (property &optional reasoner) ;; boolean (with-reasoner (reasoner) (let* ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-inverse-functional-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isSymmetric|) (property &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-symmetric-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isTransitive|) (property &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-transitive-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isReflexive|) (property &optional reasoner) ;; boolean (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-reflexive-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isIrreflexive|) (property &optional reasoner) (declare (ignorable property)) ;; boolean (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-irreflexive-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isAsymmetric|) (property &optional reasoner) (declare (ignorable property)) ;; boolean (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-role-asymmetric-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) ;;; ;;; OWLReasonerBase ;;; (defun clear-ontologies () (clrhash (ontologies *cur-reasoner*))) (defpersistentclass ontology () ((name :accessor name :initform (gensym) :initarg :name) (all-names :accessor all-names :initform nil :initarg :all-names) (axioms :accessor axioms :initform nil) (ontology-prefixes :accessor ontology-prefixes :initform nil) (loaded-p :accessor ont-loaded-p :initform nil) (secondary-p :accessor secondary-p :initform nil :initarg :secondary-p) ;;; batch mode (axioms-to-add-or-remove :accessor axioms-to-add-or-remove :initform nil) ;;; ;;; ;;; (referenced-concepts :accessor referenced-concepts :initform (mht)) (referenced-object-properties :accessor referenced-object-properties :initform (mht)) (referenced-annotation-properties :accessor referenced-annotation-properties :initform (mht)) (referenced-data-properties :accessor referenced-data-properties :initform (mht)) (referenced-individuals :accessor referenced-individuals :initform (mht)) (referenced-datatypes :accessor referenced-datatypes :initform (mht)) ;;; ;;; ;;; (declared-concepts :accessor declared-concepts :initform (mht)) (declared-object-properties :accessor declared-object-properties :initform (mht)) (declared-data-properties :accessor declared-data-properties :initform (mht)) (declared-annotation-properties :accessor declared-annotation-properties :initform (mht)) (declared-individuals :accessor declared-individuals :initform (mht)) (declared-datatypes :accessor declared-datatypes :initform (mht)))) ;;; ;;; ;;; (defun register-referenced-concept (c ont) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont1 (find-owl-ontology ont))) (labels ((do-it (c) (cond ((symbolp c) (setf (gethash c (referenced-concepts ont1)) t)) ((consp c) (pushnew (first c) (used-constructors *cur-reasoner*)) (ecase (first c) (not (do-it (second c))) (one-of (mapc #'(lambda (x) (register-referenced-individual x ont)) (rest c))) ((and or) (mapc #'do-it (rest c))) ((some all) (register-referenced-object-property (second c) ont) (do-it (third c))) ((at-least at-most exactly) (register-referenced-object-property (third c) ont) (when (fourth c) (do-it (fourth c)))) (d-filler (register-referenced-data-property (second c) ont)) ((d-complement d-and d-or) (register-referenced-datarange c ont)) ((d-restriction d-base-type d-possible-values) (register-referenced-datarange c ont)) ((d-some d-all) (register-referenced-data-property (second c) ont) (do-it (third c))) ((d-at-least d-at-most d-exactly) (register-referenced-data-property (third c) ont) (register-referenced-datarange (fourth c) ont)) (has-value (register-referenced-object-property (second c) ont)) (self-reference (register-referenced-object-property (second c) ont)) ((a an no min max divisible not-divisible string= string<> boolean= boolean<> > >= < <= <> = equal unequal))))))) (do-it c))))) (defun register-referenced-individual (i ont) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash i (referenced-individuals ont)) t)))) (defun register-referenced-object-property (p ont) (if (consp p) (register-referenced-object-property (second p) (owlapi-tbox *cur-reasoner*)) (progn (reasoner-ensure-role p (owlapi-tbox *cur-reasoner*)) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash p (referenced-object-properties ont)) t)))))) (defun register-referenced-annotation-property (p ont) (reasoner-ensure-role p (owlapi-tbox *cur-reasoner*)) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash p (referenced-annotation-properties ont)) t)))) (defun register-referenced-data-property (p ont) (reasoner-ensure-role p (owlapi-tbox *cur-reasoner*)) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash p (referenced-data-properties ont)) t)))) (defun register-referenced-datatype (d ont) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash d (referenced-datatypes ont)) t)))) (defun register-referenced-datarange (dr ont) (when (register-referenced-entities-p *cur-reasoner*) (let ((ont1 (find-owl-ontology ont))) (labels ((do-it (c) (cond ((symbolp c) (setf (gethash c (referenced-datatypes ont1)) t)) ((consp c) (pushnew (first c) (used-constructors *cur-reasoner*)) (ecase (first c) (d-base-type (do-it (second c))) (d-complement (do-it (second c))) ((d-and d-or) (mapc #'do-it (rest c))) (d-possible-values ) (d-facet ) (d-datarange (do-it (second c))) (d-restriction ; base type (when (second c) (do-it (second c))))))))) (do-it dr))))) ;;; ;;; ;;; (defun register-declared-concept (c ont) (when (register-declared-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash c (declared-concepts ont)) t)))) (defun register-declared-individual (i ont) (when (register-declared-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash i (declared-individuals ont)) t)))) (defun register-declared-object-property (p ont) (when (register-declared-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash p (declared-object-properties ont)) t)))) (defun register-declared-data-property (p ont) (when (register-declared-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash p (declared-data-properties ont)) t)))) (defun register-declared-annotation-property (p ont) (when (register-declared-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash p (declared-annotation-properties ont)) t)))) (defun register-declared-datatype (d ont) (when (register-declared-entities-p *cur-reasoner*) (let ((ont (find-owl-ontology ont))) (setf (gethash d (declared-datatypes ont)) t)))) ;;; ;;; ;;; (defmethod print-object ((ont ontology) stream) (format stream "#<Ontology ~A with ~A axiom>" (name ont) (length (axioms ont)))) (defun find-owl-ontology (name &optional (error-p t)) (etypecase name (string (or (gethash name (ontologies *cur-reasoner*)) (when error-p (owlapi-runtime-error "Can't find ontology ~A" name)))) (symbol (or (gethash (find-owl-entity name) (ontologies *cur-reasoner*)) (when error-p (owlapi-runtime-error "Can't find ontology ~A" name)))) (ontology name))) ;;; ;;; ;;; (defmethod load-ontology ((ont ontology)) #| (add-concept-axiom (owlapi-tbox *cur-reasoner*) 'top +owlapi-owl-thing+) (add-concept-axiom (owlapi-tbox *cur-reasoner*) 'bottom +owlapi-owl-nothing+) |# (load-axioms (axioms ont) :ontology ont) (setf (ont-loaded-p ont) t)) (defmethod unload-ontology ((ont ontology)) (unload-axioms (reverse (axioms ont)) :ontology ont) (setf (ont-loaded-p ont) nil)) ;;; ;;; ;;; (defmethod dispose-ontology ((ont ontology) &optional dispose-axioms-p) (dolist (name (all-names ont)) (remhash name (ontologies *cur-reasoner*))) (when (eq (first (auto-mode *cur-reasoner*)) ont) (setf (auto-mode *cur-reasoner*) nil)) (when dispose-axioms-p (dolist (axiom (axioms ont)) (dispose-axiom axiom)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-describeReasoner|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) `((:reasoner-name ,(owlapi-reasoner-name *cur-reasoner*)) #+:racer-server (:uses-simplified-protocol ,(or user:*one-simple-output* (simple-output *cur-reasoner*))) (:load-into-tbox ,(owlapi-tbox *cur-reasoner*)) (:load-into-abox ,(owlapi-abox *cur-reasoner*)) (:maintain-axiom-objects ,(not (dont-keep-axioms-p *cur-reasoner*))) (:ignore-annotations ,(ignore-annotations-p *cur-reasoner*)) (:ignore-declarations ,(ignore-declarations-p *cur-reasoner*)) (:auto-mode ,(case (second (auto-mode *cur-reasoner*)) (:add `(:auto-add-axioms-to-ontology-no-change-objects ,(name (first (auto-mode *cur-reasoner*))))) (:batch-add `(:batch-add-axioms-to-ontology-no-change-objects ,(name (first (auto-mode *cur-reasoner*))))) (:remove `(:auto-remove-axioms-from-ontology-no-change-objects ,(name (first (auto-mode *cur-reasoner*))))) (:batch-remove `(:batch-remove-axioms-from-ontology-no-change-objects ,(name (first (auto-mode *cur-reasoner*))))))) (:optimized-incremental-abox-updates-enabled ,(incremental-updates *cur-reasoner*)) (:auto-apply-changes-if-change-objects-used ,(auto-apply *cur-reasoner*)) (:ontologies ,(get-ontology-names *cur-reasoner*)) (:no-of-all-axioms ,(hash-table-count (axioms *cur-reasoner*))) (:no-of-remaining-changes-for-all-ontologies ,(length (changes *cur-reasoner*))) (:registers-referenced-entities ,(register-referenced-entities-p *cur-reasoner*)) (:registers-declared-entities ,(register-declared-entities-p *cur-reasoner*)) )) (return-by-policy))) (owlapi-defun (|OWLAPI-describeReasoners|) () (loop as reasoner being the hash-value of *reasoners* collect (|OWLAPI-describeReasoner| reasoner))) (owlapi-defun (|OWLAPI-describeOntology|) (ontology &optional reasoner) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ontology))) (setf (last-answer *cur-reasoner*) `((:ontology-names ,(all-names ont)) (:no-of-axioms ,(length (axioms ont))) (:loaded ,(ont-loaded-p ont)) (:no-of-remaining-changes ,(length (remove-if-not #'(lambda (x) (eq (change-ontology x) ont)) (changes *cur-reasoner*)))) (:in-reasoner ,(progn (|OWLAPI-describeReasoner| *cur-reasoner*) (last-answer *cur-reasoner*))))) (return-by-policy)))) (owlapi-defun (|OWLAPI-describeOntologies|) (&optional reasoner) (with-reasoner (reasoner) (mapcar #'(lambda (ont) (|OWLAPI-describeOntology| ont reasoner)) (get-ontologies *cur-reasoner*)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-newOntology|) (name &optional reasoner secondary-p) (with-reasoner (reasoner) (let ((ont (make-instance 'ontology :name name :all-names (list name) :secondary-p secondary-p))) (setf (gethash name (ontologies *cur-reasoner*)) ont) (setf (last-answer *cur-reasoner*) name) (return-by-policy)))) (defun get-temp-ontology-name () (gensym)) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-mergeOntologies|) (ont1 ont2 &optional reasoner) (with-reasoner (reasoner) (let ((ont1 (find-owl-ontology ont1)) (ont2 (find-owl-ontology ont2)) (axioms (get-axioms-in ont2)) (auto-mode (auto-mode *cur-reasoner*))) (unwind-protect (progn (|OWLAPI-autoBatchRemoveAxiomsFrom| ont2) (dolist (ax axioms) (remove-axiom ont2 ax)) (|OWLAPI-batchSynchronize| ont2) (dolist (ax axioms) (add-axiom ont1 ax)) (|OWLAPI-batchSynchronize| ont1) (setf (all-names ont1) (remove-duplicates (append (all-names ont1) (all-names ont2)))) (dispose-ontology ont2) (dolist (name (all-names ont1)) (setf (gethash name (ontologies *cur-reasoner*)) ont1)) ont1) (setf (auto-mode *cur-reasoner*) auto-mode))))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-disposeOntology|) (ont-name &optional reasoner dispose-axioms-p) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ont-name))) (unload-ontology ont) (dispose-ontology ont dispose-axioms-p)) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-loadOntology|) (ontology &optional reasoner) (with-reasoner (reasoner) (load-ontology (find-owl-ontology ontology)) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-getOntologies|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (get-ontology-names *cur-reasoner*)) (return-by-policy))) (owlapi-defun (|OWLAPI-getLoadedOntologies|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (mapcar #'name (remove-if-not #'ont-loaded-p (get-ontologies *cur-reasoner*)))) (return-by-policy))) (owlapi-defun (|OWLAPI-contains|) (ont-name &optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (when (find-owl-ontology ont-name) t)) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-getAllOntologies|) () (setf (last-answer *cur-reasoner*) (get-all-ontologies)) (return-by-policy)) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-loadOntologies|) (ontologies &optional reasoner) (with-reasoner (reasoner) (mapc #'|OWLAPI-loadOntology| ontologies) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-disposeOntologies|) (ontologies &optional reasoner) (with-reasoner (reasoner) (mapc #'|OWLAPI-disposeOntology| ontologies) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-reloadLoadedOntologies|) (&optional reasoner) (with-reasoner (reasoner) (let ((onts (|OWLAPI-getLoadedOntologies|))) (dolist (ont onts) (|OWLAPI-loadOntology| ont))) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-setAutoDeclareDataProperties|) (val &optional reasoner) (with-reasoner (reasoner) (setf (auto-declare-datatype-properties-p *cur-reasoner*) val) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-getAutoDeclareDataProperties|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (auto-declare-datatype-properties-p *cur-reasoner*)) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-getAutoOntology|) (&optional reasoner) (with-reasoner (reasoner) (clear-last-answer) (when (auto-mode *cur-reasoner*) (setf (last-answer *cur-reasoner*) (name (first (auto-mode *cur-reasoner*))))) (return-by-policy))) (owlapi-defun (|OWLAPI-autoAddAxiomsTo|) (ontology &optional reasoner) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ontology))) (setf (auto-mode *cur-reasoner*) (list ont :add)) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-autoBatchAddAxiomsTo|) (ontology &optional reasoner) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ontology))) (setf (auto-mode *cur-reasoner*) (list ont :batch-add)) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-autoRemoveAxiomsFrom|) (ontology &optional reasoner) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ontology))) (setf (auto-mode *cur-reasoner*) (list ont :remove)) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-autoBatchRemoveAxiomsFrom|) (ontology &optional reasoner) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ontology))) (setf (auto-mode *cur-reasoner*) (list ont :batch-remove)) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-disableAutoMode|) (&optional reasoner) (with-reasoner (reasoner) (setf (auto-mode *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-enableLookupMode|) (&optional reasoner) (with-reasoner (reasoner) (setf (lookup-mode *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-disableLookupMode|) (&optional reasoner) (with-reasoner (reasoner) (setf (lookup-mode *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-enableTransientAxiomMode|) (&optional reasoner) (with-reasoner (reasoner) (setf (transient-mode *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-disableTransientAxiomMode|) (&optional reasoner) (with-reasoner (reasoner) (setf (transient-mode *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (defmacro with-lookup-mode ((&optional reasoner) &body body) `(unwind-protect (progn (|OWLAPI-enableLookupMode| ,reasoner) ,@body) (|OWLAPI-disableLookupMode| ,reasoner))) (defmacro with-transient-axiom-mode ((&optional reasoner) &body body) `(unwind-protect (progn (|OWLAPI-enableTransientAxiomMode| ,reasoner) ,@body) (|OWLAPI-disableTransientAxiomMode| ,reasoner))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-batchSynchronize|) (ontology &optional reasoner) (with-reasoner (reasoner) (let* ((ont (find-owl-ontology ontology)) (commands (nreverse (axioms-to-add-or-remove ont))) (rem-start (position :remove commands :key #'first)) (block-remove-p (and rem-start (every #'(lambda (x) (eq (first x) :remove)) (subseq commands rem-start)))) (mode (auto-mode *cur-reasoner*))) (setf (auto-mode *cur-reasoner*) (list (first mode) (ecase (second mode) (:batch-add :add) (:batch-remove :remove)))) (loop as (command ax) in commands do (ecase command (:add (if (dont-keep-axioms-p *cur-reasoner*) (load-axiom ax :ontology ont) (add-axiom ont ax))) (:remove (unless block-remove-p (remove-axiom ont ax))))) (when block-remove-p (remove-axioms ont (loop as (command ax) in commands when (eq command :remove) collect ax))) (setf (axioms-to-add-or-remove ont) nil) (setf (auto-mode *cur-reasoner*) mode) (clear-last-answer) (return-by-policy)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-enableMemorySavingMode|) (ontology &optional reasoner) (|OWLAPI-autoAddAxiomsTo| ontology reasoner) (with-reasoner (reasoner) (setf (dont-keep-axioms-p *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-disableMemorySavingMode|) (reasoner) (|OWLAPI-disableAutoMode| reasoner) (with-reasoner (reasoner) (setf (dont-keep-axioms-p *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-ignoreAnnotations|) (&optional reasoner) (with-reasoner (reasoner) (setf (ignore-annotations-p *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-keepAnnotations|) (&optional reasoner) (with-reasoner (reasoner) (setf (ignore-annotations-p *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-ignoreDeclarations|) (&optional reasoner) (with-reasoner (reasoner) (setf (ignore-declarations-p *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-considerDeclarations|) (&optional reasoner) (with-reasoner (reasoner) (setf (ignore-declarations-p *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-isClassified|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (reasoner-tbox-classified-p (owlapi-tbox *cur-reasoner*))) (return-by-policy))) (owlapi-defun (|OWLAPI-classify|) (&optional reasoner (check-abox-consistency-p t)) (with-reasoner (reasoner) (reasoner-classify (owlapi-tbox *cur-reasoner*)) (when check-abox-consistency-p (reasoner-abox-consistent-p (owlapi-abox *cur-reasoner*))) (clear-last-answer) (return-check-if-abox-consistent))) (owlapi-defun (|OWLAPI-isRealised|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (reasoner-abox-realized-p (owlapi-abox *cur-reasoner*))) (return-by-policy))) (owlapi-defun (|OWLAPI-realize|) (&optional reasoner (check-abox-consistency-p t)) (with-reasoner (reasoner) (reasoner-realize (owlapi-abox *cur-reasoner*)) (when check-abox-consistency-p (reasoner-abox-consistent-p (owlapi-abox *cur-reasoner*))) (clear-last-answer) (return-check-if-abox-consistent))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-isDefinedClass|) (cls &optional reasoner) (with-reasoner (reasoner) (let ((cls (find-owl-class cls))) (setf (last-answer *cur-reasoner*) (reasoner-concept-p cls (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isDefinedObjectProperty|) (property &optional reasoner) (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-object-property-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isDefinedDataProperty|) (property &optional reasoner) (with-reasoner (reasoner) (let ((property (find-owl-property property))) (setf (last-answer *cur-reasoner*) (reasoner-data-property-p property (owlapi-tbox *cur-reasoner*))) (return-by-policy)))) (owlapi-defun (|OWLAPI-isDefinedIndividual|) (ind &optional reasoner) (with-reasoner (reasoner) (let ((ind (find-owl-individual ind))) (setf (last-answer *cur-reasoner*) (reasoner-individual-p ind (owlapi-abox *cur-reasoner*))) (return-by-policy)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-unloadOntologies|) (ontologies &optional reasoner) (with-reasoner (reasoner) (dolist (ont ontologies) (unload-ontology (find-owl-ontology ont))) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-unloadOntology|) (ontology &optional reasoner) (with-reasoner (reasoner) (|OWLAPI-unloadOntologies| (list (find-owl-ontology ontology))))) (owlapi-defun (|OWLAPI-clearOntologies|) (&optional reasoner) (with-reasoner (reasoner) (|OWLAPI-unloadOntologies| (|OWLAPI-getLoadedOntologies|)))) (owlapi-defun (|OWLAPI-dispose|) () (let ((reasoners (loop as reasoner being the hash-value of *reasoners* collect reasoner))) (dolist (reasoner reasoners) (|OWLAPI-disposeReasoner| reasoner)) (clear-last-answer) (return-by-policy))) ;;; ;;; OWLSatisfiabilityChecker ;;; (owlapi-defun (|OWLAPI-isSatisfiable|) (description &optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (reasoner-concept-satisfiable-p (find-owl-class description) (owlapi-tbox *cur-reasoner*))) (return-by-policy))) ;;; ;;; Axioms ;;; (owlapi-defun (|OWLAPI-getAxiomCounter|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (axiom-counter *cur-reasoner*)) (return-by-policy))) (owlapi-defun (|OWLAPI-setAxiomCounter|) (n &optional reasoner) (with-reasoner (reasoner) (setf (axiom-counter *cur-reasoner*) n) (clear-last-answer) (return-by-policy))) (defun reset-axiom-counter () (setf (axiom-counter *cur-reasoner*) 0)) (owlapi-defun (|OWLAPI-resetAxiomCounter|) (&optional reasoner) (with-reasoner (reasoner) (reset-axiom-counter) (clear-last-answer) (return-by-policy))) (defun clear-axioms () (clrhash (axioms *cur-reasoner*))) (defun get-axioms (&optional reasoner) (with-reasoner (reasoner) (loop as axiom being the hash-value of (axioms *cur-reasoner*) collect axiom))) (defun get-axioms-in (ont &optional reasoner) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ont))) (loop as axiom being the hash-value of (axioms *cur-reasoner*) when (member ont (in-ontologies axiom)) collect axiom)))) (defun get-axioms-of-type-for (axioms type &optional slot value) ;;; inefficent! use with care! (let* ((axioms (if (not (hash-table-p axioms)) axioms (loop as axiom being the hash-value of axioms collect axiom)))) (remove-if-not #'(lambda (axiom) (and (typep axiom type) (or (not (and slot value)) (equalp (slot-value axiom slot) value)))) axioms))) (defaxiom |OWLAxiom| () ((axiom-id :accessor axiom-id :initform nil) (told :accessor told :initform nil :initarg :told) (is-tbox-axiom-p :accessor is-tbox-axiom-p :initform nil :initarg :is-tbox-axiom-p) (annotations :accessor annotations :initform nil :initarg :annotations) (loaded-p :accessor loaded-p :initform nil) (in-reasoner :accessor in-reasoner :initform nil :initarg :in-reasoner) (in-ontologies :accessor in-ontologies :initform nil :initarg :in-ontologies) (can-be-unloaded-p :accessor can-be-unloaded-p :initform nil))) ;;; ;;; ;;; (defmethod entailed-p ((axiom |OWLAxiom|)) :unknown) (defmethod direct-entailed-p ((axiom |OWLAxiom|)) :unknown) ;;; ;;; ;;; (defun very-equal-p (c1 c2) (or (equalp c1 c2) (and (symbolp c1) (symbolp c2) (string= (symbol-name c1) (symbol-name c2))))) (defun concepts-equal-p (c1 c2) (or (very-equal-p c1 c2) (and (symbolp c1) (symbolp c2) (or (and (member c1 (list 'top +owlapi-owl-thing+)) (member c2 (list 'top +owlapi-owl-thing+))) (and (member c1 (list 'bottom +owlapi-owl-nothing+)) (member c2 (list 'bottom +owlapi-owl-nothing+))))) (and (eq (type-of c1) (type-of c2)) (typecase c1 (list (let ((op1 (first c1)) (op2 (first c2))) (and (eq op1 op2) (case op1 ((and or d-and d-or d-restriction one-of) (let ((c1 (if (>= (length c1) (length c2)) c1 c2)) (c2 (if (>= (length c1) (length c2)) c2 c1))) (every #'(lambda (arg1) (some #'(lambda (arg2) (concepts-equal-p arg1 arg2)) (rest c2))) (rest c1)))) (otherwise (and (= (length c1) (length c2)) (every #'(lambda (c1 c2) (concepts-equal-p c1 c2)) c1 c2))))))) (string (string-equal c1 c2)) (otherwise nil))))) (defmethod slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots (comp (eql :equal)) &key &allow-other-keys) (every #'(lambda (x) (very-equal-p (slot-value ax1 x) (slot-value ax2 x))) slots)) (defmethod slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots (comp (eql :set)) &key (test #'very-equal-p)) (every #'(lambda (x) (set-equal (slot-value ax1 x) (slot-value ax2 x) :test test)) slots)) (defmethod slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots (comp (eql :list)) &key (test #'very-equal-p)) (every #'(lambda (x) (every #'(lambda (a b) (funcall test a b)) (slot-value ax1 x) (slot-value ax2 x))) slots)) (defmethod slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots (comp (eql :concept)) &key &allow-other-keys) (every #'(lambda (x) (concepts-equal-p (slot-value ax1 x) (slot-value ax2 x))) slots)) (defmethod slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots (comp (eql :datarange)) &key &allow-other-keys) (every #'(lambda (x) (concepts-equal-p (slot-value ax1 x) (slot-value ax2 x))) slots)) (defmethod default-slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots) (slots-equal-p ax1 ax2 slots :equal)) (defmethod set-slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots) (slots-equal-p ax1 ax2 slots :set)) (defmethod list-slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots) (slots-equal-p ax1 ax2 slots :list)) (defmethod concept-slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots) (slots-equal-p ax1 ax2 slots :concept)) (defmethod datarange-slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots) (slots-equal-p ax1 ax2 slots :datarange)) (defmethod set-of-concepts-slots-equal-p ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|) slots) (slots-equal-p ax1 ax2 slots :set :test #'concepts-equal-p)) ;;; ;;; ;;; (defgeneric axioms-equal-p (ax1 ax2) (:method-combination and)) (defmethod axioms-equal-p and ((ax1 |OWLAxiom|) (ax2 |OWLAxiom|)) (eq (type-of ax1) (type-of ax2))) #+:racer-server (defmethod warning-ignored-axiom ((ax |OWLAxiom|)) (when *tbox-verbose* (let ((ts::*really-warn-p* t)) (owlapi-warning "Ignoring axiom ~A of type ~A" ax (type-of ax))))) #+:racer-server (defmethod warning-redundant-axiom ((ax list)) (when *tbox-verbose* (let ((ts::*really-warn-p* t)) (owlapi-warning "Returning existing structurally equivalent axiom for constructor call ~A" ax)))) #-:racer-server (defmethod warning-ignored-axiom ((ax |OWLAxiom|)) (owlapi-warning "Ignoring axiom ~A of type ~A" ax (type-of ax))) #-:racer-server (defmethod warning-redundant-axiom ((ax list)) (owlapi-warning "Returning existing structurally equivalent axiom for constructor call ~A" ax)) ;;; ;;; ;;; (defmethod add-axiom ((ont ontology) (ax |OWLAxiom|)) (unless (member ont (in-ontologies ax)) (cond ((member (second (auto-mode *cur-reasoner*)) '(:batch-add)) (push (list :add ax) (axioms-to-add-or-remove ont))) (t (push ax (axioms ont)) (push ont (in-ontologies ax)) (when (ont-loaded-p ont) (load-axiom ax :ontology ont)))))) (defmethod remove-axiom ((ont ontology) (ax |OWLAxiom|)) (cond ((member (second (auto-mode *cur-reasoner*)) '(:batch-remove)) (push (list :remove ax) (axioms-to-add-or-remove ont))) (t (setf (axioms ont) (delete ax (axioms ont))) (setf (in-ontologies ax) (delete ont (in-ontologies ax))) (unload-axiom ax :ontology ont)))) (defmethod remove-axioms ((ont ontology) (axioms list)) (setf (axioms ont) (set-difference (axioms ont) axioms)) (dolist (ax axioms) (setf (in-ontologies ax) (delete ont (in-ontologies ax)))) (if (and (incremental-updates *cur-reasoner*) (every #'can-be-unloaded-p axioms)) (dolist (axiom axioms) (unload-axiom axiom :ontology ont)) (unload-axioms axioms :ontology ont))) ;;; ;;; Load ;;; (defun load-axioms (axioms &key ontology) (dolist (axiom axioms) (load-axiom axiom :ontology ontology))) (defmethod load-axiom :around ((axiom |OWLAxiom|) &key ontology) (declare (ignorable ontology)) (unless (loaded-p axiom) (call-next-method) (setf (loaded-p axiom) t))) (defmethod load-axiom ((axiom |OWLAxiom|) &key ontology) (declare (ignorable ontology)) (warning-ignored-axiom axiom)) ;;; ;;; Unload ;;; (defun unload-axioms (axioms &key ontology) (cond ((and (incremental-updates *cur-reasoner*) (every #'(lambda (x) (or (can-be-unloaded-p x) (typep x '|OWLDeclarationAxiom|) (typep x '|OWLImportsDeclarationAxiom|) (typep x '|OWLOntologyVersionDeclarationAxiom|) (typep x '|OWLPrefixDeclarationAxiom|))) axioms)) (dolist (axiom axioms) ;;; fuehrt dann zu unload-axiom1: (unless (or (typep axiom '|OWLDeclarationAxiom|) (typep axiom '|OWLImportsDeclarationAxiom|) (typep axiom '|OWLOntologyVersionDeclarationAxiom|) (typep axiom '|OWLPrefixDeclarationAxiom|)) (unload-axiom axiom :ontology ontology)))) (t (let ((ensure-reload-of-tbox-axioms-p nil)) (if (not (some #'is-tbox-axiom-p axioms)) (reasoner-clear-abox (owlapi-tbox *cur-reasoner*) (owlapi-abox *cur-reasoner*)) (progn (reasoner-clear-tbox-and-abox (owlapi-tbox *cur-reasoner*) (owlapi-abox *cur-reasoner*)) (setf ensure-reload-of-tbox-axioms-p t))) (dolist (ax axioms) (setf (loaded-p ax) nil)) (dolist (ont (get-ontologies *cur-reasoner*)) (let ((old-axioms (axioms ont))) (setf (axioms ont) (set-difference old-axioms axioms)) (when ensure-reload-of-tbox-axioms-p (dolist (axiom old-axioms) (when (is-tbox-axiom-p axiom) (setf (loaded-p axiom) nil)))) (|OWLAPI-loadOntology| ont) (setf (axioms ont) old-axioms))))))) (defmethod unload-axiom :around ((axiom |OWLAxiom|) &key ontology) (declare (ignorable ontology)) (when (loaded-p axiom) (call-next-method) (setf (loaded-p axiom) nil))) (defmethod unload-axiom ((axiom |OWLAxiom|) &key ontology) (if (and (incremental-updates *cur-reasoner*) (can-be-unloaded-p axiom)) (unload-axiom1 axiom :ontology ontology) (unload-axioms (list axiom) :ontology ontology))) (defmethod unload-axiom1 ((axiom |OWLAxiom|) &key ontology) (declare (ignorable ontology))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-loadAxiom|) (ont axiom &optional reasoner) (with-reasoner (reasoner) (let ((ax (find-owl-axiom axiom ont))) (load-axiom ax :ontology ont)))) (owlapi-defun (|OWLAPI-loadAxioms|) (ont axioms &optional reasoner) (with-reasoner (reasoner) (load-axioms (mapcar #'(lambda (axiom) (find-owl-axiom axiom ont)) axioms) :ontology ont))) (owlapi-defun (|OWLAPI-unloadAxiom|) (ont axiom &optional reasoner) (with-reasoner (reasoner) (let ((ax (find-owl-axiom axiom ont))) (unload-axiom ax :ontology ont)))) (owlapi-defun (|OWLAPI-unloadAxioms|) (ont axioms &optional reasoner) (with-reasoner (reasoner) (unload-axioms (mapcar #'(lambda (axiom) (find-owl-axiom axiom ont)) axioms) :ontology ont))) ;;; ;;; ;;; (defmethod initialize-instance :after ((axiom |OWLAxiom|) &rest initargs) (declare (ignorable initargs)) (initialize-axiom axiom t)) (defmethod initialize-axiom ((axiom |OWLAxiom|) new-p) (cond ((auto-mode *cur-reasoner*) (let ((ont (first (auto-mode *cur-reasoner*))) (mode (second (auto-mode *cur-reasoner*)))) (ecase mode ((:add :batch-add) (cond ((dont-keep-axioms-p *cur-reasoner*) (case mode (:add (load-axiom axiom :ontology ont)) (:batch-add (add-axiom ont axiom))) (setf (axiom-id axiom) :void)) (t (when new-p (setf (axiom-id axiom) (or (next-axiom-use-id *cur-reasoner*) (incf (axiom-counter *cur-reasoner*))))) (setf (in-reasoner axiom) *cur-reasoner*) (setf (next-axiom-use-id *cur-reasoner*) nil) (setf (gethash (axiom-id axiom) (axioms *cur-reasoner*)) axiom) (unless (first (last (told axiom))) (setf (told axiom) (append (butlast (told axiom)) (list (owlapi-reasoner-name *cur-reasoner*))))) (if (gethash (told axiom) (axioms-told *cur-reasoner*)) (push axiom (gethash (told axiom) (axioms-told *cur-reasoner*))) (setf (gethash (told axiom) (axioms-told *cur-reasoner*)) (list axiom))) (add-axiom ont axiom)))) ((:remove :batch-remove) (cond ((dont-keep-axioms-p *cur-reasoner*) (owlapi-runtime-error "Memory saving mode for reasoner ~A is enableded, can't remove axiom" *cur-reasoner*)) (t (when new-p (owlapi-runtime-error "Sorry, internal error occured: ~A" (auto-mode *cur-reasoner*))) (remove-axiom ont axiom) (dolist (change (changes *cur-reasoner*)) (when (eq (axiom change) axiom) (setf (changes *cur-reasoner*) (delete change (changes *cur-reasoner*))))))))))) (new-p (setf (axiom-id axiom) (or (incf (axiom-counter *cur-reasoner*)) (next-axiom-use-id *cur-reasoner*))) (setf (in-reasoner axiom) *cur-reasoner*) (setf (next-axiom-use-id *cur-reasoner*) nil) (setf (gethash (axiom-id axiom) (axioms *cur-reasoner*)) axiom) (unless (first (last (told axiom))) (setf (told axiom) (append (butlast (told axiom)) (list (owlapi-reasoner-name *cur-reasoner*))))) (if (gethash (told axiom) (axioms-told *cur-reasoner*)) (push axiom (gethash (told axiom) (axioms-told *cur-reasoner*))) (setf (gethash (told axiom) (axioms-told *cur-reasoner*)) (list axiom)))))) (defun find-owl-axiom (id &optional ont) (typecase id (|OWLAxiom| id) (integer (or (gethash id (axioms *cur-reasoner*)) (owlapi-runtime-error "Axiom ~A not found" id))) (list (find-equal-axiom id ont)) (string (find-equal-axiom id ont)))) ;;; ;;; ;;; (defmethod find-equal-axiom ((axiom-constructor-call list) &optional ont) (let* ((axiom-constructor-call ;; nil optional reasoner entfernen! (if (not (first (last axiom-constructor-call))) (append (butlast axiom-constructor-call) (list (owlapi-reasoner-name *cur-reasoner*))) axiom-constructor-call)) (axioms (gethash axiom-constructor-call (axioms-told *cur-reasoner*))) (ont (or (when ont (find-owl-ontology ont)) (first (auto-mode *cur-reasoner*))))) (loop as axiom2 in axioms when (or (not ont) (member ont (in-ontologies axiom2))) return axiom2))) (defmethod find-equal-axiom ((axiom-constructor-call string) &optional ont) (let ((axioms (gethash axiom-constructor-call (axioms-told *cur-reasoner*))) (ont (or (when ont (find-owl-ontology ont)) (first (auto-mode *cur-reasoner*))))) (loop as axiom2 in axioms when (or (not ont) (member ont (in-ontologies axiom2))) return axiom2))) (defmethod find-equal-axiom ((axiom |OWLAxiom|) &optional ont) (let* ((axiom-constructor-call (told axiom)) (axiom-constructor-call (if (not (first (last axiom-constructor-call))) (append (butlast axiom-constructor-call) (list (owlapi-reasoner-name *cur-reasoner*))) axiom-constructor-call)) (axioms (gethash axiom-constructor-call (axioms-told *cur-reasoner*))) (ont (or (when ont (find-owl-ontology ont)) (first (auto-mode *cur-reasoner*))))) (loop as axiom2 in axioms when (or (not ont) (member ont (in-ontologies axiom2))) return axiom2))) ;;; ;;; ;;; (defmethod dispose-axiom ((axiom |OWLAxiom|)) (dolist (ont (in-ontologies axiom)) (remove-axiom ont axiom)) (remhash (axiom-id axiom) (axioms *cur-reasoner*)) (setf (gethash (told axiom) (axioms-told *cur-reasoner*)) (delete (told axiom) (gethash (told axiom) (axioms-told *cur-reasoner*)) :test #'equal))) (defmacro return-policy-new-axiom (axiom) (let ((ax (gensym)) (ax2 (gensym)) (told (gensym))) (unless (eq (first axiom) 'make-instance) (error "bad argument ~A to return-policy-new-axiom" axiom)) `(let* ((,ax (list ,@(rest axiom))) (,told ,(second (member :told (rest axiom)))) (,ax (let ((ax (find-equal-axiom ,told))) (cond (ax (initialize-axiom ax nil) ax) ((lookup-mode *cur-reasoner*) :not-found) (t (if (member (second (auto-mode *cur-reasoner*)) '(:dummy :remove :batch-remove)) (owlapi-runtime-error "Can't find axiom ~S" ,told) ;;;(apply #'make-instance ,ax) (let ((,ax2 (apply (symbol-function (quote ,(intern (format nil #+:mlisp "make-~A" #-:mlisp "MAKE-~A" (second (second axiom)))))) (rest ,ax)))) (unless (transient-mode *cur-reasoner*) (initialize-axiom ,ax2 t)) ,ax2))))))) (cond ((transient-mode *cur-reasoner*) ;; get the axiom object ,ax) ((return-policy *cur-reasoner*) (setf (last-answer *cur-reasoner*) (if (eq ,ax :not-found) :not-found (axiom-id ,ax))) (return-by-policy)) (t ,ax))))) (owlapi-defun (|OWLAPI-disposeAxiom|) (id-or-constructor &optional reasoner) (with-reasoner (reasoner) (dispose-axiom (or (find-owl-axiom id-or-constructor) (owlapi-runtime-error "Can't find axiom ~S" id-or-constructor))) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-disposeAxioms|) (ids-or-constructors &optional reasoner) (dolist (axiom ids-or-constructors) (|OWLAPI-disposeAxiom| axiom reasoner)) (clear-last-answer) (return-by-policy)) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-IDToAxiom|) (id &optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (told (find-owl-axiom id))) (return-by-policy))) (owlapi-defun (|OWLAPI-AxiomToID|) (axiom-constructor-call &optional reasoner ont) (with-reasoner (reasoner) (let ((axiom (find-equal-axiom axiom-constructor-call ont))) (setf (last-answer *cur-reasoner*) (if axiom (axiom-id axiom) :not-found)) (return-by-policy)))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-AxiomLoaded?|) (id &optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (loaded-p (find-owl-axiom id))) (return-by-policy))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-getAxioms|) (&optional reasoner with-ids-p with-ont-names-p status) (with-reasoner (reasoner) (let ((res nil)) (maphash #'(lambda (key value) (when (=> status (ecase status (:loaded (loaded-p value)) (:unloaded (not (loaded-p value))))) (push (let ((ax (if with-ids-p (list key value) value))) (if with-ont-names-p (list (mapcar #'name (in-ontologies value)) ax) ax)) res))) (axioms *cur-reasoner*)) (setf (last-answer *cur-reasoner*) res) (return-by-policy)))) (owlapi-defun (|OWLAPI-getAxiomsPerOntology|) (&optional reasoner) (|OWLAPI-getAxioms| reasoner t t)) (owlapi-defun (|OWLAPI-getAxiomsIn|) (ont &optional reasoner with-ids-p status) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ont))) (setf (last-answer *cur-reasoner*) (remove nil (mapcar #'(lambda (value) (when (=> status (ecase status (:loaded (loaded-p value)) (:unloaded (not (loaded-p value))))) (if with-ids-p (list (axiom-id value) value) value))) (axioms ont)))) (return-by-policy)))) (owlapi-defun (|OWLAPI-getAxiomsOfType|) (type-or-types &optional reasoner with-ids-p with-ont-names-p status) (with-reasoner (reasoner) (let ((res nil) (type `(or ,@(ensure-list type-or-types)))) (maphash #'(lambda (key value) (when (and (=> status (ecase status (:loaded (loaded-p value)) (:unloaded (not (loaded-p value))))) (=> type-or-types (typep value type))) (push (let ((ax (if with-ids-p (list key value) value))) (if with-ont-names-p (list (mapcar #'name (in-ontologies value)) ax) ax)) res))) (axioms *cur-reasoner*)) (setf (last-answer *cur-reasoner*) res) (return-by-policy)))) (owlapi-defun (|OWLAPI-getAxiomsOfTypeIn|) (type-or-types ont &optional reasoner with-ids-p status) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ont)) (type `(or ,@(ensure-list type-or-types)))) (setf (last-answer *cur-reasoner*) (remove nil (mapcar #'(lambda (value) (when (and (=> status (ecase status (:loaded (loaded-p value)) (:unloaded (not (loaded-p value))))) (=> type-or-types (typep value type))) (if with-ids-p (list (axiom-id value) value) value))) (axioms ont)))) (return-by-policy)))) ;;; ;;; ;;; (defmethod get-annotation-axioms-for-axiom ((axiom-id t)) (let ((ax (find-owl-axiom axiom-id))) (if (not ax) :not-found (get-annotation-axioms-for-axiom ax)))) (defmethod get-annotation-axioms-for-axiom ((axiom |OWLAxiom|)) (annotations axiom)) (owlapi-defun (|OWLAPI-getAnnotationAxiomsForAxiom|) (axiom-id &optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (get-annotation-axioms-for-axiom axiom-id)) (return-by-policy))) ;;; ;;; ;;; (defun expand-prefix (prefix) (or (gethash (when prefix ; dont make nil a keyword (to-keyword (ensure-ends-with-colon prefix))) (namespace-table *cur-reasoner*)) (gethash :defaultnamespace (namespace-table *cur-reasoner*)) ;;; sollte ich das machen? (reasoner-get-default-namespace-prefix (owlapi-tbox *cur-reasoner*)))) (defun make-uri (prefix symbol) (let ((prefix (expand-prefix prefix))) (if prefix (intern (if (find #\# (ensure-string prefix)) (if (find #\# (ensure-string symbol)) (format nil "~A~A" prefix (without-starting-\# symbol)) (format nil "~A~A" prefix symbol)) (if (find #\# (ensure-string symbol)) (format nil "~A~A" prefix symbol) (format nil "~A~A" prefix symbol)))) (intern (ensure-string symbol))))) ;;; ;;; ;;; (owlapi-defun (|OWLAPI-addPrefix|) (prefix namespace &optional reasoner) (with-reasoner (reasoner) (let* ((namespace (ensure-string namespace)) (prefix (when prefix ; dont make nil a keyword... (unless (keywordp prefix) (to-keyword (ensure-ends-with-colon prefix)))))) (setf (gethash prefix (namespace-table *cur-reasoner*)) namespace) (when (is-default-prefix-p prefix) (dolist (prefix +defaultnamespace-prefixes+) (setf (gethash prefix (namespace-table *cur-reasoner*)) namespace))) (reasoner-register-prefix prefix namespace (owlapi-tbox *cur-reasoner*)) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-removePrefix|) (prefix &optional reasoner) (with-reasoner (reasoner) (let ((prefix (when prefix (to-keyword (ensure-ends-with-colon prefix))))) (remhash prefix (namespace-table *cur-reasoner*)) (reasoner-remove-prefix prefix (owlapi-tbox *cur-reasoner*)) (clear-last-answer) (return-by-policy)))) (owlapi-defun (|OWLAPI-getPrefixes|) (&optional reasoner) (with-reasoner (reasoner) (let ((res nil)) (maphash #'(lambda (key value) (unless (is-default-prefix-p key) (push (cons (format nil "~A" (without-colon key)) (format nil "~A" value)) res))) (namespace-table *cur-reasoner*)) (setf (last-answer *cur-reasoner*) (cons (cons "defaultnamespace" (expand-prefix :defaultnamespace)) res)) (return-by-policy)))) ;;; ;;; ;;; (defmethod print-object ((ax |OWLAxiom|) stream) (format stream "~S" (told ax))) (defmethod unparse ((ax |OWLAxiom|)) (told ax)) ;;; ;;; ;;; (defaxiom |OWLDatatypeDefinitionAxiom| (|OWLAxiom|) ((datatype-name :accessor datatype-name :initform nil :initarg :datatype-name) (data-range :accessor data-range :initform nil :initarg :data-range))) (defmethod axioms-equal-p and ((ax1 |OWLDatatypeDefinitionAxiom|) (ax2 |OWLDatatypeDefinitionAxiom|)) (and (default-slots-equal-p ax1 ax2 '(datatype-name)) (datarange-slots-equal-p ax1 ax2 '(data-range)))) (defconstructor |OWLAPI-getOWLDatatypeDefinitionAxiom| (datatype-name data-range) (clear-entities datatype-name data-range) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDatatypeDefinitionAxiom| :told `(|OWLAPI-getOWLDatatypeDefinitionAxiom| ,datatype-name ,data-range ,reasoner) :is-tbox-axiom-p t :datatype-name (find-owl-entity datatype-name) :data-range (find-owl-entity data-range))))) (defmethod load-axiom :after ((axiom |OWLDatatypeDefinitionAxiom|) &key ontology) (with-slots (datatype-name data-range) axiom (register-referenced-datatype datatype-name ontology) (register-referenced-datarange data-range ontology))) ;;; ;;; ;;; (defaxiom |OWLHasKeyAxiom| (|OWLAxiom|) ((key-class :accessor key-class :initform nil :initarg :key-class) (key-object-properties :accessor key-object-properties :initform nil :initarg :key-object-properties) (key-data-properties :accessor key-data-properties :initform nil :initarg :key-data-properties))) (defmethod axioms-equal-p and ((ax1 |OWLHasKeyAxiom|) (ax2 |OWLHasKeyAxiom|)) (and (concept-slots-equal-p ax1 ax2 '(key-class)) (list-slots-equal-p ax1 ax2 '(key-object-properties)) (list-slots-equal-p ax1 ax2 '(key-data-properties)))) (defconstructor |OWLAPI-getOWLHasKeyAxiom| (key-class key-object-properties key-data-properties) (clear-entities key-class) (clear-entities1 key-object-properties) (clear-entities1 key-data-properties) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLHasKeyAxiom| :told `(|OWLAPI-getOWLHasKeyAxiom| ,key-class ,key-object-properties ,key-data-properties ,reasoner) :is-tbox-axiom-p t :key-class (find-owl-class key-class) :key-object-properties (mapcar #'find-owl-property key-object-properties) :key-data-properties (mapcar #'find-owl-property key-data-properties))))) ;;; ;;; Annotation Axioms ;;; (defaxiom |OWLAxiomWithEntitySlotAxiom| (|OWLAxiom|) ;; abstrakt ((entity :accessor entity :initform nil :initarg :entity))) (defmethod axioms-equal-p and ((ax1 |OWLAxiomWithEntitySlotAxiom|) (ax2 |OWLAxiomWithEntitySlotAxiom|)) (or (typep ax1 '|OWLAxiomAnnotationAxiom|) ;; different axiom IDs dont count as difference (default-slots-equal-p ax1 ax2 '(entity)))) (defaxiom |OWLAnnotationAxiom| (|OWLAxiomWithEntitySlotAxiom|) ;; abstrakt ((annotation :accessor annotation :initform nil :initarg :annotation))) (defmethod initialize-axiom :around ((ax |OWLAnnotationAxiom|) new-p) (declare (ignorable new-p)) (unless (ignore-annotations-p *cur-reasoner*) (call-next-method))) (defmethod load-axiom :around ((ax |OWLAnnotationAxiom|) &key ontology) (declare (ignorable ontology)) (unless (ignore-annotations-p *cur-reasoner*) (call-next-method))) (defmethod axioms-equal-p and ((ax1 |OWLAnnotationAxiom|) (ax2 |OWLAnnotationAxiom|)) (default-slots-equal-p ax1 ax2 '(annotation))) ;;; ;;; ;;; (defun process-annotations (abox entity annotations ontology) (unless (ignore-annotations-p *cur-reasoner*) (dolist (annotation annotations) (let ((annotation-role (second annotation)) (annotation-value (third annotation)) (tbox (owlapi-tbox *cur-reasoner*))) (reasoner-role-is-used-as-annotation-property annotation-role tbox) (register-referenced-annotation-property annotation-role ontology) (reasoner-process-annotation entity annotation-role annotation-value abox))))) ;;; ;;; ;;; (defaxiom |OWLAxiomAnnotationAxiom| (|OWLAnnotationAxiom|) ()) ;; public OWLAxiomAnnotationAxiomImpl(OWLDataFactory dataFactory, OWLAxiom subject, OWLAnnotation annotation) { (defmethod initialize-axiom :after ((ax |OWLAxiomAnnotationAxiom|) new-p) (when new-p (let ((annotated-ax (find-owl-axiom (second (told ax))))) (push ax (annotations annotated-ax))))) (defconstructor |OWLAPI-getOWLAxiomAnnotationAxiom| (axiom-id annotation) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLAxiomAnnotationAxiom| :told `(|OWLAPI-getOWLAxiomAnnotationAxiom| ,axiom-id ,annotation ,reasoner) :entity (or (find-owl-axiom axiom-id) (owlapi-runtime-error "Can't find axiom ~S" axiom-id)) :annotation (find-owl-entity annotation))))) (defmethod load-axiom ((axiom |OWLAxiomAnnotationAxiom|) &key ontology) (declare (ignorable ontology)) ) (defaxiom |OWLEntityAnnotationAxiom| (|OWLAnnotationAxiom|) ()) ;; public OWLEntityAnnotationAxiomImpl(OWLDataFactory dataFactory, OWLEntity subject, OWLAnnotation annotation) { (defconstructor |OWLAPI-getOWLEntityAnnotationAxiom| (entity annotation) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLEntityAnnotationAxiom| :told `(|OWLAPI-getOWLEntityAnnotationAxiom| ,entity ,annotation ,reasoner) :entity (find-owl-entity entity) :annotation (find-owl-entity annotation))))) (defmethod load-axiom ((axiom |OWLEntityAnnotationAxiom|) &key ontology) (declare (ignorable ontology)) (let* ((annotations (annotation axiom)) (annotations (if (consp (first annotations)) annotations (list annotations))) (entity-types (ensure-list (first (entity axiom)))) (entity (second (entity axiom))) (abox (owlapi-abox *cur-reasoner*))) (dolist (type entity-types) (case type ((|OWLClass| |Class|) (process-annotations abox entity annotations ontology)) (|ObjectProperty| (process-annotations abox entity annotations ontology)) (|DataProperty| (process-annotations abox entity annotations ontology)) (|Annotation| (process-annotations abox entity annotations ontology)) (|Datatype| (process-annotations abox entity annotations ontology)) (|AnnotationProperty| (process-annotations abox entity annotations ontology)) ((|Individual| |NamedIndividual|) (process-annotations abox entity annotations ontology)) (otherwise (call-next-method)))))) (defaxiom |OWLOntologyAnnotationAxiom| (|OWLAnnotationAxiom|) ()) (defconstructor |OWLAPI-getOWLOntologyAnnotationAxiom| (annotation) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLOntologyAnnotationAxiom| :told `(|OWLAPI-getOWLOntologyAnnotationAxiom| ,annotation ,reasoner) :annotation (find-owl-entity annotation))))) (defmethod load-axiom ((axiom |OWLOntologyAnnotationAxiom|) &key ontology) (declare (ignorable ontology)) (let* ((annotations (annotation axiom)) (annotations (if (consp (first annotations)) annotations (list annotations))) (abox (owlapi-abox *cur-reasoner*))) (process-annotations abox (name (entity axiom)) annotations ontology))) (defmethod load-axiom :before ((ax |OWLOntologyAnnotationAxiom|) &key ontology) (setf (entity ax) ontology)) (defmethod add-axiom :before ((ontology ontology) (ax |OWLOntologyAnnotationAxiom|)) (setf (entity ax) ontology)) ;;; ;;; new OWL Annotation Assertion Axioms ;;; (defaxiom |OWLAnnotationAssertionAxiom| (|OWLAnnotationAxiom|) ((annotation-subject :accessor annotation-subject :initform nil :initarg :annotation-subject) (annotation-value :accessor annotation-value :initform nil :initarg :annotation-value) (annotation-property :accessor annotation-property :initform nil :initarg :annotation-property))) (defmethod axioms-equal-p and ((ax1 |OWLAnnotationAssertionAxiom|) (ax2 |OWLAnnotationAssertionAxiom|)) (default-slots-equal-p ax1 ax2 '(annotation-subject annotation-value annotation-property))) (defconstructor |OWLAPI-getOWLAnnotationAssertionAxiom| (annotation-subject annotation-property annotation-value) (clear-entities annotation-subject annotation-property annotation-value) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLAnnotationAssertionAxiom| :told `(|OWLAPI-getOWLAnnotationAssertionAxiom| ,annotation-subject ,annotation-property ,annotation-value ,reasoner) :annotation-subject (find-owl-individual annotation-subject) :annotation-property (find-owl-property annotation-property) :annotation-value (find-owl-entity annotation-value))))) (defmethod load-axiom ((axiom |OWLAnnotationAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-value annotation-subject annotation-property) axiom (let ((abox (owlapi-abox *cur-reasoner*))) (process-annotations abox annotation-subject (list (list annotation-subject annotation-property annotation-value)) ontology)))) ;;; ;;; ;;; (defaxiom |OWLSubAnnotationPropertyOfAxiom| (|OWLAnnotationAxiom|) ((annotation-sub-property :accessor annotation-sub-property :initform nil :initarg :annotation-sub-property) (annotation-super-property :accessor annotation-super-property :initform nil :initarg :annotation-super-property))) (defmethod axioms-equal-p and ((ax1 |OWLSubAnnotationPropertyOfAxiom|) (ax2 |OWLSubAnnotationPropertyOfAxiom|)) (default-slots-equal-p ax1 ax2 '(annotation-sub-property annotation-super-property))) (defconstructor |OWLAPI-getOWLSubAnnotationPropertyOfAxiom| (annotation-sub-property annotation-super-property) (clear-entities annotation-sub-property annotation-super-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLSubAnnotationPropertyOfAxiom| :told `(|OWLAPI-getOWLSubAnnotationPropertyOfAxiom| ,annotation-sub-property ,annotation-super-property ,reasoner) :is-tbox-axiom-p t :annotation-sub-property (find-owl-property annotation-sub-property) :annotation-super-property (find-owl-property annotation-super-property))))) (owlapi-defun (|OWLAPI-getOWLSubAnnotationPropertyAxiom|) (&rest args) (apply #'|OWLAPI-getOWLSubAnnotationPropertyOfAxiom| args)) (defmethod load-axiom :after ((axiom |OWLSubAnnotationPropertyOfAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-sub-property annotation-super-property) axiom (register-referenced-annotation-property annotation-sub-property ontology) (register-referenced-annotation-property annotation-super-property ontology))) ;;; ;;; ;;; (defaxiom |OWLAnnotationPropertyDomainAxiom| (|OWLAnnotationAxiom|) ((annotation-property1 :accessor annotation-property1 :initform nil :initarg :annotation-property1) (annotation-property-domain :accessor annotation-property-domain :initform nil :initarg :annotation-property-domain))) (defmethod axioms-equal-p and ((ax1 |OWLAnnotationPropertyDomainAxiom|) (ax2 |OWLAnnotationPropertyDomainAxiom|)) (and (default-slots-equal-p ax1 ax2 '(annotation-property1)) (concept-slots-equal-p ax1 ax2 '(annotation-property-domain)))) (defconstructor |OWLAPI-getOWLAnnotationPropertyDomainAxiom| (annotation-property annotation-property-domain) (clear-entities annotation-property annotation-property-domain) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLAnnotationPropertyDomainAxiom| :told `(|OWLAPI-getOWLAnnotationPropertyDomainAxiom| ,annotation-property ,annotation-property-domain ,reasoner) :is-tbox-axiom-p t :annotation-property1 (find-owl-property annotation-property) :annotation-property-domain (find-owl-class annotation-property-domain))))) (defmethod load-axiom :after ((axiom |OWLAnnotationPropertyDomainAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-property1 annotation-property-domain) axiom (register-referenced-annotation-property annotation-property1 ontology) (register-referenced-concept annotation-property-domain ontology))) ;;; ;;; ;;; (defaxiom |OWLAnnotationPropertyRangeAxiom| (|OWLAnnotationAxiom|) ((annotation-property2 :accessor annotation-property2 :initform nil :initarg :annotation-property2) (annotation-property-range :accessor annotation-property-range :initform nil :initarg :annotation-property-range))) (defmethod axioms-equal-p and ((ax1 |OWLAnnotationPropertyRangeAxiom|) (ax2 |OWLAnnotationPropertyRangeAxiom|)) (and (default-slots-equal-p ax1 ax2 '(annotation-property2)) (concept-slots-equal-p ax1 ax2 '(annotation-property-range)))) (defconstructor |OWLAPI-getOWLAnnotationPropertyRangeAxiom| (annotation-property annotation-property-range) (clear-entities annotation-property annotation-property-range) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLAnnotationPropertyRangeAxiom| :told `(|OWLAPI-getOWLAnnotationPropertyRangeAxiom| ,annotation-property ,annotation-property-range ,reasoner) :is-tbox-axiom-p t :annotation-property2 (find-owl-property annotation-property) :annotation-property-range (find-owl-class annotation-property-range))))) (defmethod load-axiom :after ((axiom |OWLAnnotationPropertyRangeAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-property2 annotation-property-range) axiom (register-referenced-datarange annotation-property-range ontology) (register-referenced-annotation-property annotation-property2 ontology))) ;;; ;;; ;;; (defun find-entity (args) (find-if #'is-entity-p args)) (defun is-entity-p (arg) (and (consp arg) (member (first arg) '(|Datatype| |OWLClass| |Class| |ObjectProperty| |AnnnotationProperty| |DataProperty| |Individual| |NamedIndividual|)))) ;;; ;;; Declaration Axioms ;;; (defaxiom |OWLDeclarationAxiom| (|OWLAxiomWithEntitySlotAxiom|) ()) (defaxiom |OWLImplicitDeclarationAxiom| (|OWLDeclarationAxiom|) ()) (defaxiom |OWLReallyImplicitDeclarationAxiom| (|OWLImplicitDeclarationAxiom|) ()) (defmethod load-axiom :after ((axiom |OWLDeclarationAxiom|) &key ontology) (declare (ignorable ontology)) (flet ((find-key (key spec) (if (consp spec) (find key spec) (eq key spec)))) (with-slots (entity) axiom (cond ((find-key '|OWLClass| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-concept (second entity) ontology))) ((find-key '|Class| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-concept (second entity) ontology))) ((find-key '|ObjectProperty| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-object-property (second entity) ontology))) ((find-key '|DataProperty| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-data-property (second entity) ontology))) ((find-key '|AnnotationProperty| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-annotation-property (second entity) ontology))) ((find-key '|Individual| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-individual (second entity) ontology))) ((find-key '|NamedIndividual| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-individual (second entity) ontology))) ((find-key '|Datatype| (first entity)) (when (and (not (ignore-declarations-p *cur-reasoner*)) (not (typep axiom '|OWLReallyImplicitDeclarationAxiom|))) (register-declared-datatype (second entity) ontology)) ) (t (error "Key ~A unknown." (first entity))))))) (defmethod axioms-equal-p and ((ax1 |OWLDeclarationAxiom|) (ax2 |OWLDeclarationAxiom|)) (default-slots-equal-p ax1 ax2 '(entity))) (defmethod entailed-p ((axiom |OWLDeclarationAxiom|)) nil) ;; public OWLDeclarationAxiomImpl(OWLDataFactory dataFactory, OWLEntity entity) { (defconstructor |OWLAPI-getOWLDeclarationAxiom| (entity) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDeclarationAxiom| :told `(|OWLAPI-getOWLDeclarationAxiom| ,entity ,reasoner) :entity (find-owl-entity entity))))) (defconstructor |OWLAPI-getOWLImplicitDeclarationAxiom| (entity) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLImplicitDeclarationAxiom| :told `(|OWLAPI-getOWLImplicitDeclarationAxiom| ,entity ,reasoner) :entity (find-owl-entity entity))))) (defconstructor |OWLAPI-getOWLReallyImplicitDeclarationAxiom| (entity) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLReallyImplicitDeclarationAxiom| :told `(|OWLAPI-getOWLReallyImplicitDeclarationAxiom| ,entity ,reasoner) :entity (find-owl-entity entity))))) ;;; ;;; ;;; (defaxiom |OWLOntologyURIAttributeAxiom| (|OWLAxiom|) ; abstrakt ((uri :accessor uri :initform nil :initarg :uri))) (defmethod axioms-equal-p and ((ax1 |OWLOntologyURIAttributeAxiom|) (ax2 |OWLOntologyURIAttributeAxiom|)) (default-slots-equal-p ax1 ax2 '(uri))) ;;; ;;; ;;; (defaxiom |OWLImportsDeclarationAxiom| (|OWLOntologyURIAttributeAxiom|) ()) ;; public OWLImportsDeclarationImpl(OWLDataFactory dataFactory, OWLOntology subject, URI importsURI) { (defconstructor |OWLAPI-getOWLImportsDeclarationAxiom| (ontology-import-uri) (clear-entities ontology-import-uri) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLImportsDeclarationAxiom| :told `(|OWLAPI-getOWLImportsDeclarationAxiom| ,ontology-import-uri ,reasoner) :uri (find-owl-entity ontology-import-uri))))) (defmethod load-axiom ((axiom |OWLImportsDeclarationAxiom|) &key ontology) (declare (ignorable ontology)) t) ;;; ;;; ;;; (defaxiom |OWLOntologyVersionDeclarationAxiom| (|OWLOntologyURIAttributeAxiom|) ()) (defmethod load-axiom ((axiom |OWLOntologyVersionDeclarationAxiom|) &key ontology) (declare (ignorable ontology)) t) (defconstructor |OWLAPI-getOWLOntologyVersionDeclarationAxiom| (ontology-version-uri) (clear-entities ontology-version-uri) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLOntologyVersionDeclarationAxiom| :told `(|OWLAPI-getOWLOntologyVersionDeclarationAxiom| ,ontology-version-uri ,reasoner) :uri (find-owl-entity ontology-version-uri))))) ;;; ;;; Namespace Axiom ;;; (defaxiom |OWLPrefixDeclarationAxiom| (|OWLOntologyURIAttributeAxiom|) ((prefix :accessor prefix :initform nil :initarg :prefix))) (defmethod axioms-equal-p and ((ax1 |OWLPrefixDeclarationAxiom|) (ax2 |OWLPrefixDeclarationAxiom|)) (default-slots-equal-p ax1 ax2 '(prefix))) (defmethod load-axiom ((axiom |OWLPrefixDeclarationAxiom|) &key ontology) (declare (ignorable ontology)) t) (defconstructor |OWLAPI-getOWLPrefixDeclarationAxiom| (namespace-prefix namespace) (with-reasoner (reasoner) (|OWLAPI-addPrefix| namespace-prefix namespace reasoner) (return-policy-new-axiom (make-instance '|OWLPrefixDeclarationAxiom| :told `(|OWLAPI-getOWLPrefixDeclarationAxiom| ,namespace-prefix ,namespace ,reasoner) :uri (find-owl-entity namespace) :prefix (find-owl-entity namespace-prefix))))) ;;; ;;; Logical Axioms ;;; (defaxiom |OWLLogicalAxiom| (|OWLAxiom|) ()) ;; abstract (defaxiom |OWLClassAxiom| (|OWLLogicalAxiom|) ());; abstract (defaxiom |OWLNaryClassAxiom| (|OWLClassAxiom|) ;; abstract ((descriptions :accessor descriptions :initform nil :initarg :descriptions))) (defmethod axioms-equal-p and ((ax1 |OWLNaryClassAxiom|) (ax2 |OWLNaryClassAxiom|)) (set-of-concepts-slots-equal-p ax1 ax2 '(descriptions))) ;;; ;;; ;;; (defun pairwise-equivalent-p (list predicate) (every #'(lambda (x y) (funcall predicate x y)) list (rest list))) (defun for-all-pairs-holds-p (list predicate) (let ((res t)) (block block (mapl #'(lambda (first) (let ((a (first first))) (unless res (return-from block nil)) (setf res (and res (every #'(lambda (b) (and res (funcall predicate a b))) (rest first)))))) list)) res)) ;;; ;;; Class Axioms: Disjoint, Disjoint Union, Equivalent, Subclass ;;; (defaxiom |OWLDisjointClassesAxiom| (|OWLNaryClassAxiom|) ()) ;; public OWLDisjointClassesAxiomImpl(OWLDataFactory dataFactory, Set<? extends OWLDescription> descriptions) { (defconstructor |OWLAPI-getOWLDisjointClassesAxiom| (descriptions) (clear-entities1 descriptions) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDisjointClassesAxiom| :told `(|OWLAPI-getOWLDisjointClassesAxiom| ,descriptions ,reasoner) :is-tbox-axiom-p t :descriptions (mapcar #'(lambda (x) (find-owl-class x)) descriptions))))) (defmethod load-axiom :after ((axiom |OWLDisjointClassesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (mapc #'declare-datatype-properties descriptions) (mapc #'(lambda (x) (register-referenced-concept x ontology)) descriptions))) ;;; ;;; ;;; (defaxiom |OWLDisjointUnionAxiom| (|OWLNaryClassAxiom|) ()) ;; public OWLDisjointUnionAxiomImpl(OWLDataFactory dataFactory, OWLClass owlClass, ;; Set<? extends OWLDescription> descriptions) { (defconstructor |OWLAPI-getOWLDisjointUnionAxiom| (description descriptions) (clear-entities description) (clear-entities1 descriptions) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDisjointUnionAxiom| :told `(|OWLAPI-getOWLDisjointUnionAxiom| ,description ,descriptions ,reasoner) ;;; owlClass = U+ descriptions :is-tbox-axiom-p t :descriptions (mapcar #'(lambda (x) (find-owl-class x)) (cons description descriptions)))))) (defmethod load-axiom :after ((axiom |OWLDisjointUnionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (mapc #'declare-datatype-properties descriptions) (mapc #'(lambda (x) (register-referenced-concept x ontology)) descriptions))) ;;; ;;; ;;; (defaxiom |OWLEquivalentClassesAxiom| (|OWLNaryClassAxiom|) ()) ;; public OWLEquivalentClassesAxiomImpl(OWLDataFactory dataFactory, Set<? extends OWLDescription> descriptions) { (defconstructor |OWLAPI-getOWLEquivalentClassesAxiom| (descriptions) (clear-entities1 descriptions) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLEquivalentClassesAxiom| :told `(|OWLAPI-getOWLEquivalentClassesAxiom| ,descriptions ,reasoner) :is-tbox-axiom-p t :descriptions (mapcar #'(lambda (x) (find-owl-class x)) descriptions))))) (defmethod load-axiom :after ((axiom |OWLEquivalentClassesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (mapc #'declare-datatype-properties descriptions) (mapc #'(lambda (x) (register-referenced-concept x ontology)) descriptions))) ;;; ;;; ;;; (defaxiom |OWLSubClassAxiom| (|OWLNaryClassAxiom|) ()) ;; public OWLSubClassAxiomImpl(OWLDataFactory dataFactory, OWLDescription subClass, ;; OWLDescription superClass) { (defconstructor |OWLAPI-getOWLSubClassAxiom| (sub-class super-class) (clear-entities sub-class super-class) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLSubClassAxiom| :told `(|OWLAPI-getOWLSubClassAxiom| ,sub-class ,super-class ,reasoner) :is-tbox-axiom-p t :descriptions (mapcar #'(lambda (x) (find-owl-class x)) (list sub-class super-class)))))) #| (owlapi-defun (|SubClassOf|) (sub-class super-class &optional reasoner) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLSubClassAxiom| :told `(|OWLAPI-getOWLSubClassAxiom| ,sub-class ,super-class ,reasoner) :is-tbox-axiom-p t :descriptions (mapcar #'(lambda (x) (find-owl-class x)) (list sub-class super-class)))))) |# (defmethod load-axiom :after ((axiom |OWLSubClassAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (mapc #'declare-datatype-properties descriptions) (mapc #'(lambda (x) (register-referenced-concept x ontology)) descriptions))) ;;; ;;; Individual Axioms ;;; (defaxiom |OWLIndividualAxiom| (|OWLLogicalAxiom|) ()) ;; abstrakt (defaxiom |OWLNaryIndividualAxiom| (|OWLIndividualAxiom|) ;; abstract ((individuals :accessor individuals :initform nil :initarg :individuals))) (defmethod axioms-equal-p and ((ax1 |OWLNaryIndividualAxiom|) (ax2 |OWLNaryIndividualAxiom|)) (set-slots-equal-p ax1 ax2 '(individuals))) ;;; ;;; Class Assertion ;;; (defaxiom |OWLClassAssertionAxiom| (|OWLIndividualAxiom|) ((description :accessor description :initform nil :initarg :description) (ax-individual :accessor ax-individual :initform nil :initarg :ax-individual))) (defmethod axioms-equal-p and ((ax1 |OWLClassAssertionAxiom|) (ax2 |OWLClassAssertionAxiom|)) (and (default-slots-equal-p ax1 ax2 '(ax-individual)) (concept-slots-equal-p ax1 ax2 '(description)))) ;; public OWLClassAssertionAxiomImpl(OWLDataFactory dataFactory, OWLIndividual individual, OWLDescription description) { (defconstructor |OWLAPI-getOWLClassAssertionAxiom| (individual description) (clear-entities individual description) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLClassAssertionAxiom| :told `(|OWLAPI-getOWLClassAssertionAxiom| ,individual ,description ,reasoner) :ax-individual (find-owl-individual individual) :description (find-owl-class description))))) (defmethod load-axiom :after ((axiom |OWLClassAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (ax-individual description) axiom (declare-datatype-properties description) (register-referenced-individual ax-individual ontology) (register-referenced-concept description ontology))) ;;; ;;; Individual Axioms: Different From, Same As ;;; (defaxiom |OWLDifferentIndividualsAxiom| (|OWLNaryIndividualAxiom|) ()) ;; public OWLDifferentIndividualsAxiomImpl(OWLDataFactory dataFactory, Set<OWLIndividual> individuals) { (defconstructor |OWLAPI-getOWLDifferentIndividualsAxiom| (individuals) (clear-entities1 individuals) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDifferentIndividualsAxiom| :told `(|OWLAPI-getOWLDifferentIndividualsAxiom| ,individuals ,reasoner) :individuals (mapcar #'(lambda (x) (find-owl-individual x)) individuals))))) (defmethod load-axiom :after ((axiom |OWLDifferentIndividualsAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (individuals) axiom (mapc #'(lambda (x) (register-referenced-individual x ontology)) individuals))) ;;; ;;; ;;; (defaxiom |OWLSameIndividualsAxiom| (|OWLNaryIndividualAxiom|) ()) ;; public OWLSameIndividualsAxiomImpl(OWLDataFactory dataFactory, Set<OWLIndividual> individuals) { (defconstructor |OWLAPI-getOWLSameIndividualsAxiom| (individuals) (clear-entities1 individuals) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLSameIndividualsAxiom| :told `(|OWLAPI-getOWLSameIndividualsAxiom| ,individuals ,reasoner) :individuals (mapcar #'(lambda (x) (find-owl-individual x)) individuals))))) (defmethod load-axiom :after ((axiom |OWLSameIndividualsAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (individuals) axiom (mapc #'(lambda (x) (register-referenced-individual x ontology)) individuals))) ;;; ;;; Individual Relationships ;;; (defaxiom |OWLIndividualRelationshipAxiom| (|OWLIndividualAxiom|) ;; abstrakt ((subject :accessor subject :initform nil :initarg :subject))) (defmethod axioms-equal-p and ((ax1 |OWLIndividualRelationshipAxiom|) (ax2 |OWLIndividualRelationshipAxiom|)) (default-slots-equal-p ax1 ax2 '(subject))) ;;; ;;; Data Property Assertion Axioms ;;; (defaxiom |OWLDataPropertyAssertionAxiom| (|OWLIndividualRelationshipAxiom|) ((rel-data-property :accessor rel-data-property :initform nil :initarg :rel-data-property) (data-literal :accessor data-literal :initform nil :initarg :data-literal))) (defmethod axioms-equal-p and ((ax1 |OWLDataPropertyAssertionAxiom|) (ax2 |OWLDataPropertyAssertionAxiom|)) (default-slots-equal-p ax1 ax2 '(rel-data-property data-literal))) ;; public OWLDataPropertyAssertionAxiomImpl(OWLDataFactory dataFactory, OWLIndividual subject, OWLDataPropertyExpression property, ;; OWLConstant value) { (defconstructor |OWLAPI-getOWLDataPropertyAssertionAxiom| (subject rel-data-property value) (clear-entities subject rel-data-property value) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDataPropertyAssertionAxiom| :told `(|OWLAPI-getOWLDataPropertyAssertionAxiom| ,subject ,rel-data-property ,value ,reasoner) :subject (find-owl-individual subject) :rel-data-property (find-owl-property rel-data-property) :data-literal (find-owl-entity value))))) (defmethod load-axiom :after ((axiom |OWLDataPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-data-property) axiom (register-referenced-individual subject ontology) (register-referenced-data-property rel-data-property ontology))) ;;; ;;; ;;; (defaxiom |OWLNegativeDataPropertyAssertionAxiom| (|OWLDataPropertyAssertionAxiom|) ()) ;; public OWLNegativeDataPropertyAssertionAxiomImpl(OWLDataFactory dataFactory, OWLIndividual subject, OWLDataPropertyExpression property, ;; OWLConstant object) { (defconstructor |OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| (subject rel-data-property value) (clear-entities subject rel-data-property value) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLNegativeDataPropertyAssertionAxiom| :told `(|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| ,subject ,rel-data-property ,value ,reasoner) :subject (find-owl-individual subject) :rel-data-property (find-owl-property rel-data-property) :data-literal (find-owl-entity value))))) (defmethod load-axiom :after ((axiom |OWLNegativeDataPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-data-property) axiom (register-referenced-individual subject ontology) (register-referenced-data-property rel-data-property ontology))) ;;; ;;; Object Property Assertion ;;; (defaxiom |OWLObjectPropertyAssertionAxiom| (|OWLIndividualRelationshipAxiom|) ((rel-object-property :accessor rel-object-property :initform nil :initarg :rel-object-property) (object :accessor object :initform nil :initarg :object))) (defmethod axioms-equal-p and ((ax1 |OWLObjectPropertyAssertionAxiom|) (ax2 |OWLObjectPropertyAssertionAxiom|)) (default-slots-equal-p ax1 ax2 '(rel-object-property object))) ;; public OWLObjectPropertyAssertionAxiomImpl(OWLDataFactory dataFactory, OWLIndividual subject, OWLObjectPropertyExpression property, ;; OWLIndividual object) { (defconstructor |OWLAPI-getOWLObjectPropertyAssertionAxiom| (subject rel-object-property object) (clear-entities subject rel-object-property object) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLObjectPropertyAssertionAxiom| :told `(|OWLAPI-getOWLObjectPropertyAssertionAxiom| ,subject ,rel-object-property ,object ,reasoner) :subject (find-owl-individual subject) :rel-object-property (find-owl-property rel-object-property) :object (find-owl-individual object))))) (defmethod load-axiom :after ((axiom |OWLObjectPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-object-property object) axiom (register-referenced-individual subject ontology) (register-referenced-object-property rel-object-property ontology) (register-referenced-individual object ontology))) ;;; ;;; ;;; (defaxiom |OWLNegativeObjectPropertyAssertionAxiom| (|OWLObjectPropertyAssertionAxiom|) ()) ;; public OWLNegativeObjectPropertyAssertionAxiomImpl(OWLDataFactory dataFactory, OWLIndividual subject, ;; OWLObjectPropertyExpression property, ;; OWLIndividual object) { (defconstructor |OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| (subject rel-object-property object) (clear-entities subject rel-object-property object) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLNegativeObjectPropertyAssertionAxiom| :told `(|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| ,subject ,rel-object-property ,object ,reasoner) :subject (find-owl-individual subject) :rel-object-property (find-owl-property rel-object-property) :object (find-owl-individual object))))) (defmethod load-axiom :after ((axiom |OWLNegativeObjectPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-object-property object) axiom (register-referenced-individual subject ontology) (register-referenced-individual object ontology) (register-referenced-object-property rel-object-property ontology))) ;;; ;;; Property Axioms / Characteristics: Functional, Inverse Functional, Transitive, Reflexive, Irreflexive, Subproperties, Complex Role Inclusion Axioms ;;; (defaxiom |OWLPropertyAxiom| (|OWLLogicalAxiom|) ()) ;; abstrakt (defaxiom |OWLObjectPropertyAxiom| (|OWLPropertyAxiom|) ;; abstrakt ((object-property :accessor object-property :initform nil :initarg :object-property))) (defmethod axioms-equal-p and ((ax1 |OWLObjectPropertyAxiom|) (ax2 |OWLObjectPropertyAxiom|)) (default-slots-equal-p ax1 ax2 '(object-property))) (defaxiom |OWLDataPropertyAxiom| (|OWLPropertyAxiom|) ;; abstrakt ((data-property :accessor data-property :initform nil :initarg :data-property))) (defmethod axioms-equal-p and ((ax1 |OWLDataPropertyAxiom|) (ax2 |OWLDataPropertyAxiom|)) (default-slots-equal-p ax1 ax2 '(data-property))) (defaxiom |OWLNaryObjectPropertyAxiom| (|OWLPropertyAxiom|) ;; abstrakt ((object-properties :accessor object-properties :initform nil :initarg :object-properties))) (defmethod axioms-equal-p and ((ax1 |OWLNaryObjectPropertyAxiom|) (ax2 |OWLNaryObjectPropertyAxiom|)) (set-slots-equal-p ax1 ax2 '(object-properties))) (defaxiom |OWLNaryDataPropertyAxiom| (|OWLPropertyAxiom|) ;; abstrakt ((data-properties :accessor data-properties :initform nil :initarg :data-properties))) (defmethod axioms-equal-p and ((ax1 |OWLNaryDataPropertyAxiom|) (ax2 |OWLNaryDataPropertyAxiom|)) (set-slots-equal-p ax1 ax2 '(data-properties))) ;;; ;;; Datatype + Object Properties: Characteristics ;;; (defaxiom |OWLFunctionalDataPropertyAxiom| (|OWLDataPropertyAxiom|) ()) ;; public OWLFunctionalDataPropertyAxiomImpl(OWLDataFactory dataFactory, OWLDataPropertyExpression property) { (defconstructor |OWLAPI-getOWLFunctionalDataPropertyAxiom| (data-property) (clear-entities data-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLFunctionalDataPropertyAxiom| :told `(|OWLAPI-getOWLFunctionalDataPropertyAxiom| ,data-property ,reasoner) :is-tbox-axiom-p t :data-property (find-owl-property data-property))))) (defmethod load-axiom :after ((axiom |OWLFunctionalDataPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-property) axiom (register-referenced-data-property data-property ontology))) ;;; ;;; ;;; (defaxiom |OWLFunctionalObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLFunctionalObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLFunctionalObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLFunctionalObjectPropertyAxiom| :told `(|OWLAPI-getOWLFunctionalObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLFunctionalObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLDisjointDataPropertiesAxiom| (|OWLNaryDataPropertyAxiom|) ()) ;; public OWLDisjointDataPropertiesAxiomImpl(OWLDataFactory dataFactory, Set<? extends OWLDataPropertyExpression> properties) { (defconstructor |OWLAPI-getOWLDisjointDataPropertiesAxiom| (data-properties) (clear-entities1 data-properties) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDisjointDataPropertiesAxiom| :told `(|OWLAPI-getOWLDisjointDataPropertiesAxiom| ,data-properties ,reasoner) :is-tbox-axiom-p t :data-properties (mapcar #'(lambda (x) (find-owl-property x)) data-properties))))) (defmethod load-axiom :after ((axiom |OWLDisjointDataPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-properties) axiom (mapc #'(lambda (role) (register-referenced-data-property role ontology)) data-properties))) ;;; ;;; ;;; (defaxiom |OWLDisjointObjectPropertiesAxiom| (|OWLNaryObjectPropertyAxiom|) ()) ;; public OWLDisjointObjectPropertiesAxiomImpl(OWLDataFactory dataFactory, Set<? extends OWLObjectPropertyExpression> properties) { (defconstructor |OWLAPI-getOWLDisjointObjectPropertiesAxiom| (object-properties) (clear-entities1 object-properties) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDisjointObjectPropertiesAxiom| :told `(|OWLAPI-getOWLDisjointObjectPropertiesAxiom| ,object-properties ,reasoner) :is-tbox-axiom-p t :object-properties (mapcar #'(lambda (x) (find-owl-property x)) object-properties))))) (defmethod load-axiom :after ((axiom |OWLDisjointObjectPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-properties) axiom (mapc #'(lambda (role) (register-referenced-object-property role ontology)) object-properties))) ;;; ;;; ;;; (defaxiom |OWLEquivalentDataPropertiesAxiom| (|OWLNaryDataPropertyAxiom|) ()) ;; public OWLEquivalentDataPropertiesAxiomImpl(OWLDataFactory dataFactory, Set<? extends OWLDataPropertyExpression> properties) { (defconstructor |OWLAPI-getOWLEquivalentDataPropertiesAxiom| (data-properties) (clear-entities1 data-properties) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLEquivalentDataPropertiesAxiom| :told `(|OWLAPI-getOWLEquivalentDataPropertiesAxiom| ,data-properties ,reasoner) :is-tbox-axiom-p t :data-properties (mapcar #'(lambda (x) (find-owl-property x)) data-properties))))) (defmethod load-axiom :after ((axiom |OWLEquivalentDataPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-properties) axiom (mapc #'(lambda (r) (register-referenced-data-property r ontology)) data-properties))) ;;; ;;; ;;; (defaxiom |OWLEquivalentObjectPropertiesAxiom| (|OWLNaryObjectPropertyAxiom|) ()) ;; public OWLEquivalentObjectPropertiesAxiomImpl(OWLDataFactory dataFactory, Set<? extends OWLObjectPropertyExpression> properties) { (defconstructor |OWLAPI-getOWLEquivalentObjectPropertiesAxiom| (object-properties) (clear-entities1 object-properties) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLEquivalentObjectPropertiesAxiom| :told `(|OWLAPI-getOWLEquivalentObjectPropertiesAxiom| ,object-properties ,reasoner) :is-tbox-axiom-p t :object-properties (mapcar #'(lambda (x) (find-owl-property x)) object-properties))))) (defmethod load-axiom :after ((axiom |OWLEquivalentObjectPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-properties) axiom (mapc #'(lambda (x) (register-referenced-object-property x ontology)) object-properties))) ;;; ;;; ;;; (defaxiom |OWLInverseObjectPropertiesAxiom| (|OWLNaryObjectPropertyAxiom|) ()) ;; public OWLInverseObjectPropertiesAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression first, ;; OWLObjectPropertyExpression second) { (defconstructor |OWLAPI-getOWLInverseObjectPropertiesAxiom| (first-object-property second-object-property) (clear-entities first-object-property second-object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLInverseObjectPropertiesAxiom| :told `(|OWLAPI-getOWLInverseObjectPropertiesAxiom| ,first-object-property ,second-object-property ,reasoner) :is-tbox-axiom-p t :object-properties (list (find-owl-property first-object-property) (find-owl-property second-object-property)))))) (defmethod load-axiom :after ((axiom |OWLInverseObjectPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-properties) axiom (let* ((r1 (first object-properties)) (r2 (second object-properties))) (register-referenced-object-property r1 ontology) (register-referenced-object-property r2 ontology)))) ;;; ;;; ;;; (defaxiom |OWLObjectPropertyChainSubPropertyAxiom| (|OWLObjectPropertyAxiom|) ((object-property-chain :accessor object-property-chain :initform nil :initarg :object-property-chain))) (defmethod axioms-equal-p and ((ax1 |OWLObjectPropertyChainSubPropertyAxiom|) (ax2 |OWLObjectPropertyChainSubPropertyAxiom|)) (list-slots-equal-p ax1 ax2 '(object-property-chain))) ;; public OWLObjectPropertyChainSubPropertyAxiomImpl(OWLDataFactory dataFactory, ;; List<? extends OWLObjectPropertyExpression> propertyChain, ;; OWLObjectPropertyExpression superProperty) { (defconstructor |OWLAPI-getOWLObjectPropertyChainSubPropertyAxiom| (object-property-chain object-super-property) (clear-entities object-super-property) (clear-entities1 object-property-chain) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLObjectPropertyChainSubPropertyAxiom| :told `(|OWLAPI-getOWLObjectPropertyChainSubPropertyAxiom| ,object-property-chain ,object-super-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-super-property) :object-property-chain (mapcar #'(lambda (x) (find-owl-property x)) object-property-chain))))) (defmethod load-axiom :after ((axiom |OWLObjectPropertyChainSubPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property-chain object-property) axiom (register-referenced-object-property object-property ontology) (mapc #'(lambda (x) (register-referenced-object-property x ontology)) object-property-chain))) ;;; ;;; ;;; (defaxiom |OWLAsymmetricObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLAntiSymmetricObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLAsymmetricObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLAsymmetricObjectPropertyAxiom| :told `(|OWLAPI-getOWLAsymmetricObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLAsymmetricObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLInverseFunctionalObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLInverseFunctionalObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLInverseFunctionalObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLInverseFunctionalObjectPropertyAxiom| :told `(|OWLAPI-getOWLInverseFunctionalObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLInverseFunctionalObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLIrreflexiveObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLIrreflexiveObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLIrreflexiveObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLIrreflexiveObjectPropertyAxiom| :told `(|OWLAPI-getOWLIrreflexiveObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLIrreflexiveObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLReflexiveObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLReflexiveObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLReflexiveObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLReflexiveObjectPropertyAxiom| :told `(|OWLAPI-getOWLReflexiveObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLReflexiveObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLSymmetricObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLSymmetricObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLSymmetricObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLSymmetricObjectPropertyAxiom| :told `(|OWLAPI-getOWLSymmetricObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLSymmetricObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLTransitiveObjectPropertyAxiom| (|OWLObjectPropertyAxiom|) ()) ;; public OWLTransitiveObjectPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property) { (defconstructor |OWLAPI-getOWLTransitiveObjectPropertyAxiom| (object-property) (clear-entities object-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLTransitiveObjectPropertyAxiom| :told `(|OWLAPI-getOWLTransitiveObjectPropertyAxiom| ,object-property ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property))))) (defmethod load-axiom :after ((axiom |OWLTransitiveObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (register-referenced-object-property object-property ontology))) ;;; ;;; Data + Object Properties: Sub Properties, Domain, Range ;;; (defaxiom |OWLObjectSubPropertyAxiom| (|OWLObjectPropertyAxiom|) ((sub-object-property :accessor sub-object-property :initform nil :initarg :sub-object-property))) (defmethod axioms-equal-p and ((ax1 |OWLObjectSubPropertyAxiom|) (ax2 |OWLObjectSubPropertyAxiom|)) (default-slots-equal-p ax1 ax2 '(sub-object-property))) ;; public OWLObjectSubPropertyAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression subProperty, ;; OWLObjectPropertyExpression superProperty) { (defconstructor |OWLAPI-getOWLObjectSubPropertyAxiom| (object-sub-property object-super-property) (clear-entities object-sub-property object-super-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLObjectSubPropertyAxiom| :told `(|OWLAPI-getOWLObjectSubPropertyAxiom| ,object-sub-property ,object-super-property ,reasoner) :is-tbox-axiom-p t :sub-object-property (find-owl-property object-sub-property) :object-property (find-owl-property object-super-property))))) (defmethod load-axiom :after ((axiom |OWLObjectSubPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (sub-object-property object-property) axiom (register-referenced-object-property object-property ontology) (register-referenced-object-property sub-object-property ontology))) ;;; ;;; ;;; (defaxiom |OWLDataSubPropertyAxiom| (|OWLDataPropertyAxiom|) ((sub-data-property :accessor sub-data-property :initform nil :initarg :sub-data-property))) (defmethod axioms-equal-p and ((ax1 |OWLDataSubPropertyAxiom|) (ax2 |OWLDataSubPropertyAxiom|)) (default-slots-equal-p ax1 ax2 '(sub-data-property))) ;; public OWLDataSubPropertyAxiomImpl(OWLDataFactory dataFactory, OWLDataPropertyExpression subProperty, ;; OWLDataPropertyExpression superProperty) { (defconstructor |OWLAPI-getOWLDataSubPropertyAxiom| (data-sub-property data-super-property) (clear-entities data-sub-property data-super-property) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDataSubPropertyAxiom| :told `(|OWLAPI-getOWLDataSubPropertyAxiom| ,data-sub-property ,data-super-property ,reasoner) :is-tbox-axiom-p t :sub-data-property (find-owl-property data-sub-property) :data-property (find-owl-property data-super-property))))) (defmethod load-axiom :after ((axiom |OWLDataSubPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (sub-data-property data-property) axiom (register-referenced-data-property sub-data-property ontology) (register-referenced-data-property data-property ontology))) ;; public OWLObjectPropertyDomainAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property, OWLDescription domain) { ;; public OWLDataPropertyDomainAxiomImpl(OWLDataFactory dataFactory, OWLDataPropertyExpression property, OWLDescription domain) { (defaxiom |OWLObjectPropertyDomainAxiom| (|OWLObjectPropertyAxiom|) ((object-property-domain :accessor object-property-domain :initform nil :initarg :object-property-domain))) (defmethod axioms-equal-p and ((ax1 |OWLObjectPropertyDomainAxiom|) (ax2 |OWLObjectPropertyDomainAxiom|)) (concept-slots-equal-p ax1 ax2 '(object-property-domain))) (defaxiom |OWLDataPropertyDomainAxiom| (|OWLDataPropertyAxiom|) ((data-property-domain :accessor data-property-domain :initform nil :initarg :data-property-domain))) (defmethod axioms-equal-p and ((ax1 |OWLDataPropertyDomainAxiom|) (ax2 |OWLDataPropertyDomainAxiom|)) (concept-slots-equal-p ax1 ax2 '(data-property-domain))) ;;; ;;; ;;; (defconstructor |OWLAPI-getOWLDataPropertyDomainAxiom| (data-property data-property-domain) (clear-entities data-property data-property-domain) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDataPropertyDomainAxiom| :told `(|OWLAPI-getOWLDataPropertyDomainAxiom| ,data-property ,data-property-domain ,reasoner) :is-tbox-axiom-p t :data-property (find-owl-property data-property) :data-property-domain (find-owl-class data-property-domain))))) (defmethod load-axiom :after ((axiom |OWLDataPropertyDomainAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-property data-property-domain) axiom (register-referenced-data-property data-property ontology) (register-referenced-concept data-property-domain ontology))) ;;; ;;; ;;; (defconstructor |OWLAPI-getOWLObjectPropertyDomainAxiom| (object-property object-property-domain) (clear-entities object-property object-property-domain) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLObjectPropertyDomainAxiom| :told `(|OWLAPI-getOWLObjectPropertyDomainAxiom| ,object-property ,object-property-domain ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property) :object-property-domain (find-owl-class object-property-domain))))) (defmethod load-axiom :after ((axiom |OWLObjectPropertyDomainAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property object-property-domain) axiom (register-referenced-object-property object-property ontology) (register-referenced-concept object-property-domain ontology))) ;;; ;;; ;;; ;; public OWLObjectPropertyRangeAxiomImpl(OWLDataFactory dataFactory, OWLObjectPropertyExpression property, OWLDescription range) { (defaxiom |OWLObjectPropertyRangeAxiom| (|OWLObjectPropertyAxiom|) ((object-property-range :accessor object-property-range :initform nil :initarg :Object-property-range))) (defmethod axioms-equal-p and ((ax1 |OWLObjectPropertyRangeAxiom|) (ax2 |OWLObjectPropertyRangeAxiom|)) (concept-slots-equal-p ax1 ax2 '(object-property-range))) ;; public OWLDataPropertyRangeAxiomImpl(OWLDataFactory dataFactory, OWLDataPropertyExpression property, OWLDataRange range) { (defaxiom |OWLDataPropertyRangeAxiom| (|OWLDataPropertyAxiom|) ((data-property-range :accessor data-property-range :initform nil :initarg :data-property-range))) (defmethod axioms-equal-p and ((ax1 |OWLDataPropertyRangeAxiom|) (ax2 |OWLDataPropertyRangeAxiom|)) (datarange-slots-equal-p ax1 ax2 '(data-property-range))) ;;; ;;; ;;; (defconstructor |OWLAPI-getOWLDataPropertyRangeAxiom| (data-property data-range) (clear-entities data-property data-range) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLDataPropertyRangeAxiom| :told `(|OWLAPI-getOWLDataPropertyRangeAxiom| ,data-property ,data-range ,reasoner) :is-tbox-axiom-p t :data-property (find-owl-property data-property) :data-property-range (find-owl-class data-range))))) (defmethod load-axiom :after ((axiom |OWLDataPropertyRangeAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-property data-property-range) axiom (register-referenced-data-property data-property ontology) (register-referenced-datarange data-property-range ontology))) ;;; ;;; ;;; (defconstructor |OWLAPI-getOWLObjectPropertyRangeAxiom| (object-property object-property-range) (clear-entities object-property object-property-range) (with-reasoner (reasoner) (return-policy-new-axiom (make-instance '|OWLObjectPropertyRangeAxiom| :told `(|OWLAPI-getOWLObjectPropertyRangeAxiom| ,object-property ,object-property-range ,reasoner) :is-tbox-axiom-p t :object-property (find-owl-property object-property) :object-property-range (find-owl-class object-property-range))))) (defmethod load-axiom :after ((axiom |OWLObjectPropertyRangeAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property object-property-range) axiom (register-referenced-object-property object-property ontology) (register-referenced-concept object-property-range ontology))) ;;; ;;; ;;; (defpersistentclass |OWLOntologyChange| () ;; abstrakt ((ontology :accessor change-ontology :initform nil :initarg :ontology) (told :accessor change-told :initform nil :initarg :told))) (defmethod print-object ((ax |OWLOntologyChange|) stream) (format stream "~S" (change-told ax))) (defmethod unparse ((ax |OWLOntologyChange|)) (change-told ax)) (defmethod initialize-instance :after ((axiom |OWLOntologyChange|) &rest initargs) (declare (ignorable initargs)) (cond ((or (auto-apply *cur-reasoner*) ;; (ont-loaded-p (ontology axiom)) ) (apply-change axiom)) (t (push axiom (changes *cur-reasoner*))))) (owlapi-defun (|OWLAPI-clearChanges|) (&optional reasoner) (with-reasoner (reasoner) (setf (changes *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-getChanges|) (&optional reasoner) (with-reasoner (reasoner) (setf (last-answer *cur-reasoner*) (changes *cur-reasoner*)) (return-by-policy))) (owlapi-defun (|OWLAPI-autoApplyChanges|) (&optional reasoner) (with-reasoner (reasoner) (setf (auto-apply *cur-reasoner*) t) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-manuallyApplyChanges|) (&optional reasoner) (with-reasoner (reasoner) (setf (auto-apply *cur-reasoner*) nil) (clear-last-answer) (return-by-policy))) ;;; ;;; Change Interface ;;; (owlapi-defun (|OWLAPI-applyChanges|) (&optional reasoner) (with-reasoner (reasoner) (dolist (change (reverse (changes *cur-reasoner*))) (apply-change change)) (|OWLAPI-clearChanges|))) ;;; ;;; ;;; (defpersistentclass |OWLAxiomChange| (|OWLOntologyChange|) ;; abstrakt ((axiom :accessor axiom :initform nil :initarg :axiom))) ;; public OWLAxiomChange(OWLOntology ont, OWLAxiom axiom) { ;;; ;;; ;;; (defpersistentclass |AddAxiom| (|OWLAxiomChange|) ()) (defmethod apply-change ((change |AddAxiom|)) (let* ((ont (change-ontology change)) (axiom (axiom change)) (axiom (or (find-owl-axiom axiom ont) ;;; Constructor Call to identify the axiom by value: ;;; not found? try with reasoner added... (find-owl-axiom (append axiom (list (owlapi-reasoner-name *cur-reasoner*))) ont) (let ((old-policy (return-policy *cur-reasoner*)) (old-mode (auto-mode *cur-reasoner*))) (unwind-protect (progn (setf (return-policy *cur-reasoner*) nil (auto-mode *cur-reasoner*) nil) (cond ((consp axiom) (if (fboundp (first axiom)) (apply (symbol-function (first axiom)) (rest axiom)) (|OWLAPI-parse| axiom))) ((stringp axiom) (|OWLAPI-parseNative| axiom)) (t (owlapi-parser-error "Bad axiom: ~A" axiom)))) (setf (return-policy *cur-reasoner*) old-policy (auto-mode *cur-reasoner*) old-mode)))))) (add-axiom ont axiom))) ;; public AddAxiom(OWLOntology ont, OWLAxiom axiom) { (owlapi-defun (|OWLAPI-addAxiom|) (&rest args) (apply #'|OWLAPI-AddAxiom| args)) (owlapi-defun (|OWLAPI-AddAxiom|) (ont axiom &optional reasoner) (with-reasoner (reasoner) (make-instance '|AddAxiom| :told `(|OWLAPI-AddAxiom| ,ont ,axiom ,reasoner) :axiom axiom :ontology (find-owl-ontology ont)) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-addAxioms|) (&rest args) (apply #'|OWLAPI-AddAxioms| args)) (owlapi-defun (|OWLAPI-AddAxioms|) (ont axioms &optional reasoner) (with-reasoner (reasoner) (dolist (axiom axioms) (|OWLAPI-addAxiom| ont axiom reasoner)) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (defpersistentclass |RemoveAxiom| (|OWLAxiomChange|) ()) (defmethod apply-change ((change |RemoveAxiom|)) (let* ((ont (change-ontology change)) (axiom (axiom change)) (axiom (or (find-owl-axiom axiom ont) (find-owl-axiom (append axiom (list (owlapi-reasoner-name *cur-reasoner*))) ont) (owlapi-runtime-error "Can't find axiom ~S in ~A" axiom ont)))) (remove-axiom ont axiom))) ;; public RemoveAxiom(OWLOntology ont, OWLAxiom axiom) { (owlapi-defun (|OWLAPI-removeAxiom|) (&rest args) (apply #'|OWLAPI-RemoveAxiom| args)) (owlapi-defun (|OWLAPI-RemoveAxiom|) (ont axiom &optional reasoner) (with-reasoner (reasoner) (make-instance '|RemoveAxiom| :told `(|OWLAPI-RemoveAxiom| ,ont ,axiom ,reasoner) :axiom axiom :ontology (find-owl-ontology ont)) (clear-last-answer) (return-by-policy))) (owlapi-defun (|OWLAPI-removeAxioms|) (&rest args) (apply #'|OWLAPI-RemoveAxioms| args)) (owlapi-defun (|OWLAPI-RemoveAxioms|) (ont axioms &optional reasoner) (with-reasoner (reasoner) (dolist (axiom axioms) (|OWLAPI-removeAxiom| ont axiom reasoner)) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (defmethod register-additional-ontology-name ((ont symbol) new-name &optional reasoner) (register-additional-ontology-name (find-owl-ontology ont) new-name reasoner)) (defmethod register-additional-ontology-name ((ont string) new-name &optional reasoner) (register-additional-ontology-name (find-owl-ontology ont) new-name reasoner)) (defmethod register-additional-ontology-name ((ont ontology) new-name &optional reasoner) (with-reasoner (reasoner) (let* ((old-name (name ont)) (ont2 (gethash new-name (ontologies *cur-reasoner*)))) (unless (equal old-name new-name) (cond (ont2 (error "Cannot change name of ~A to ~A, since ontology ~A already exists!" old-name new-name new-name)) (t (pushnew new-name (all-names ont)) ;;; (setf (name ont) new-name) (setf (gethash new-name (ontologies *cur-reasoner*)) ont))))))) ;;; ;;; ;;; (defmethod set-primary-ontology-name ((ont symbol) new-name &optional reasoner) (set-primary-ontology-name (find-owl-ontology ont) new-name reasoner)) (defmethod set-primary-ontology-name ((ont string) new-name &optional reasoner) (set-primary-ontology-name (find-owl-ontology ont) new-name reasoner)) (defmethod set-primary-ontology-name ((ont ontology) new-name &optional reasoner) (with-reasoner (reasoner) (let* ((old-name (name ont)) (ont2 (gethash new-name (ontologies *cur-reasoner*)))) (unless (equalp old-name new-name) (cond ((eq ont ont2) ) (ont2 (error "Cannot change primary name of ~A to ~A, since ontology ~A already exists!" old-name new-name new-name)) (t (pushnew new-name (all-names ont)) (setf (name ont) new-name) (setf (gethash new-name (ontologies *cur-reasoner*)) ont))))))) ;;; ;;; ;;; (defpersistentclass |SetOntologyURI| (|OWLOntologyChange|) ((uri :accessor change-uri :initform nil :initarg :uri))) (defmethod apply-change ((change |SetOntologyURI|)) (let* ((ont (find-owl-ontology (change-ontology change))) (new-name (change-uri change))) (register-additional-ontology-name ont new-name))) ;; public SetOntologyURI(OWLOntology ont, URI newURI) { (owlapi-defun (|OWLAPI-SetOntologyURI|) (ont uri &optional reasoner) (with-reasoner (reasoner) (make-instance '|SetOntologyURI| :told `(|OWLAPI-SetOntologyURI| ,ont ,uri ,reasoner) :uri (find-owl-entity uri) :ontology (find-owl-ontology ont)) (clear-last-answer) (return-by-policy))) ;;; ;;; ;;; (defun export-uris (stream) (let ((prefixes (reasoner-get-prefixes))) (loop as (prefix uri) in prefixes do (when prefix (pprint `(define-prefix ,prefix ,uri) stream))) (loop as (prefix uri) in prefixes do (unless prefix (pprint `(define-prefix ,prefix ,uri) stream))))) (owlapi-defun (|OWLAPI-exportOntology|) (ontology fn &key reasoner (syntax :native) (quoted nil) (init t) (header t)) (declare (ignorable syntax)) (with-reasoner (reasoner) (labels ((quote1 (form) (if quoted `(quote ,form) form))) (with-open-file (stream fn :direction :output :if-does-not-exist :create :if-exists (if header :supersede :append)) (with-reasoner (reasoner) (let ((ont (find-owl-ontology ontology))) (clear-last-answer) (when header (pprint `(|OWLAPI-newReasoner| ,(quote1 (owlapi-reasoner-name *cur-reasoner*)) nil ,init) stream) (terpri stream) (export-uris stream) (terpri stream)) (pprint `(|OWLAPI-newOntology| ,(quote1 ontology) ,(quote1 (owlapi-reasoner-name *cur-reasoner*))) stream) (terpri stream) (when header (pprint `(|OWLAPI-loadOntology| ,(quote1 ontology) ,(quote1 (owlapi-reasoner-name *cur-reasoner*))) stream) (terpri stream)) (pprint `(|OWLAPI-autoAddAxiomsTo| ,(quote1 ontology) ,(quote1 (owlapi-reasoner-name *cur-reasoner*))) stream) (terpri stream) (dolist (ax (reverse (axioms ont))) (let ((ax (told ax))) (pprint `(,(first ax) ,@(mapcar #'quote1 (rest ax))) stream) (terpri stream)))))))) (return-by-policy)) (owlapi-defun (|OWLAPI-exportReasoner|) (reasoner fn &key (syntax :native) (quoted nil) (init t)) (labels ((quote1 (form) (if quoted `(quote ,form) form))) (with-reasoner (reasoner) (with-open-file (stream fn :direction :output :if-does-not-exist :create :if-exists :supersede) (clear-last-answer) (pprint `(|OWLAPI-newReasoner| ,(quote1 (owlapi-reasoner-name *cur-reasoner*)) nil ,init) stream) (terpri stream) (export-uris stream) (terpri stream))) (dolist (name (get-ontology-names *cur-reasoner*)) (|OWLAPI-exportOntology| name fn :reasoner reasoner :header nil :init nil :quoted quoted :syntax syntax)) (return-by-policy)))
169,692
Common Lisp
.lisp
3,791
35.712741
151
0.633855
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
bdd35efacaf87656bce09351d8dad11e5bb32687b72c718680703f9d2aa5b2f2
6,338
[ -1 ]
6,339
owllink-reasoner-bridge.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owllink-reasoner-bridge.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owllink-rasoner-bridge.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Example of a concrete OWLlink reasoner bridge (for RacerPro). ;;; Supplied for illustration purposes only. ;;; (defun reduced-object-property-synset2 (role-nameset &optional up-p) (if (not up-p) (cond ((reasoner-top-object-property-p (first role-nameset) *owllink-kb-and-reasoner*) (let ((res (without-top-object-property role-nameset *owllink-kb-and-reasoner*))) (cons owlapi:+owlapi-owl-top-object-role+ res))) ((reasoner-bottom-object-property-p (first role-nameset) *owllink-kb-and-reasoner*) nil) (t role-nameset)) (cond ((reasoner-top-object-property-p (first role-nameset) *owllink-kb-and-reasoner*) nil) ((reasoner-bottom-object-property-p (first role-nameset) *owllink-kb-and-reasoner*) (let ((res (without-bottom-object-property role-nameset *owllink-kb-and-reasoner*))) (cons owlapi:+owlapi-owl-bottom-object-role+ res))) (t role-nameset)))) (defun reduced-data-property-synset2 (role-nameset &optional up-p) (if (not up-p) (cond ((reasoner-top-data-property-p (first role-nameset) *owllink-kb-and-reasoner*) (let ((res (without-top-data-property role-nameset *owllink-kb-and-reasoner*))) (cons owlapi:+owlapi-owl-top-data-role+ res))) ((reasoner-bottom-data-property-p (first role-nameset) *owllink-kb-and-reasoner*) nil) (t role-nameset)) (cond ((reasoner-top-data-property-p (first role-nameset) *owllink-kb-and-reasoner*) nil) ((reasoner-bottom-data-property-p (first role-nameset) *owllink-kb-and-reasoner*) (let ((res (without-bottom-data-property role-nameset *owllink-kb-and-reasoner*))) (cons owlapi:+owlapi-owl-bottom-data-role+ res))) (t role-nameset)))) (defun reduced-synset2 (concept-nameset &optional up-p) (if (not up-p) (cond ((member (first concept-nameset) '(top *top*)) (let ((res (without-top concept-nameset))) (cons owlapi:+owlapi-owl-thing+ res))) ((member (first concept-nameset) '(bottom *bottom*)) nil) (t concept-nameset)) (cond ((member (first concept-nameset) '(top *top*)) nil) ((member (first concept-nameset) '(bottom *bottom*)) (let ((res (without-bottom concept-nameset))) (cons owlapi:+owlapi-owl-nothing+ res))) (t concept-nameset)))) (defun reduced-synset (concept-nameset &optional up-p) (declare (ignorable up-p)) (cond ((member (first concept-nameset) '(top *top*)) (cons owlapi:+owlapi-owl-thing+ (without-top concept-nameset))) ((member (first concept-nameset) '(bottom *bottom*)) (cons owlapi:+owlapi-owl-nothing+ (without-bottom concept-nameset))) (t concept-nameset))) (defun concept-synset (concept-nameset &optional up-p) (make-synset '|Class| (reduced-synset concept-nameset up-p))) ;;; ;;; ;;; (defun owllink-object-property-p (role) (reasoner-object-property-p role *owllink-kb-and-reasoner*)) (defun owllink-data-property-p (role) (reasoner-data-property-p role *owllink-kb-and-reasoner*)) (defun owllink-annotation-property-p (role) (reasoner-annotation-property-p role *owllink-kb-and-reasoner*)) ;;; ;;; ;;; (defun owllink-concept-synonyms (concept) (reasoner-concept-synonyms concept *owllink-kb-and-reasoner*)) (defun owllink-bottom-synonyms () (let ((x (without-bottom (reasoner-concept-synonyms 'bottom *owllink-kb-and-reasoner*)))) (cons owlapi:+owlapi-owl-nothing+ x))) ;;; ;;; ;;; (defun owllink-get-disjoint-classes (concept &optional flat-p) (let ((res (reasoner-get-disjoint-concepts concept *owllink-kb-and-reasoner*))) (if (not flat-p) (concept-list-result res) (flat-concept-list-result res)))) (defun owllink-get-sub-classes (concept &optional flat-p) (let ((res (if *direct* (reasoner-concept-children concept *owllink-kb-and-reasoner*) (remove-concept-by-synset concept (reasoner-concept-descendants concept *owllink-kb-and-reasoner*))))) (if (not flat-p) (concept-list-result res nil t) (flat-concept-list-result res)))) (defun owllink-get-super-classes (concept &optional flat-p) (let ((res (if *direct* (reasoner-concept-parents concept *owllink-kb-and-reasoner*) (remove-concept-by-synset concept (reasoner-concept-ancestors concept *owllink-kb-and-reasoner*))))) (if (not flat-p) (concept-list-result res nil t) (flat-concept-list-result res)))) (defun owllink-class-hierarchy2 (concept &optional up-p) (let ((kb *owllink-kb-and-reasoner*)) (make-owllink-message '|ClassHierarchy| nil (cons (make-synset '|Class| (owllink-bottom-synonyms)) (loop for concept-nameset in (cons (reasoner-atomic-concept-synonyms concept kb) (if (not up-p) (reasoner-concept-descendants concept kb) (reasoner-concept-ancestors concept kb))) as classes = (when concept-nameset (if (not up-p) (reasoner-concept-children (first concept-nameset) kb) (reasoner-concept-parents (first concept-nameset) kb))) as classes1 = (mapcar #'(lambda (x) (reduced-synset2 x up-p)) classes) when (and classes1 ;; not all NIL? (some #'identity classes1)) collect (make-owllink-message (if (not up-p) '|ClassSubClassesPair| '|ClassSuperClassesPair|) nil (list (concept-synset concept-nameset up-p) (make-set-of-synsets '|SubClass| (remove nil (mapcar #'(lambda (x) (make-synset '|Class| x)) classes1)))))))))) (defun owllink-roles-equivalent-p (role-1 role-2) (reasoner-role-equivalent-p role-1 role-2 *owllink-kb-and-reasoner*)) (defun owllink-roles-disjoint-p (role-1 role-2) (reasoner-role-disjoint-p role-1 role-2 *owllink-kb-and-reasoner*)) (defun owllink-role-satisfiable-p (role) (reasoner-role-satisfiable-p role *owllink-kb-and-reasoner*)) (defun owllink-role-functional-p (role) (reasoner-role-functional-p role *owllink-kb-and-reasoner*)) (defun owllink-role-inverse-functional-p (role) (reasoner-role-inverse-functional-p role *owllink-kb-and-reasoner*)) (defun owllink-role-reflexive-p (role) (reasoner-role-reflexive-p role *owllink-kb-and-reasoner*)) (defun owllink-role-irreflexive-p (role) (reasoner-role-irreflexive-p role *owllink-kb-and-reasoner*)) (defun owllink-role-symmetric-p (role) (reasoner-role-symmetric-p role *owllink-kb-and-reasoner*)) (defun owllink-role-asymmetric-p (role) (reasoner-role-asymmetric-p role *owllink-kb-and-reasoner*)) (defun owllink-role-transitive-p (role) (reasoner-role-transitive-p role *owllink-kb-and-reasoner*)) (defun owllink-role-subsumes-p (role-1 role-2) (reasoner-role-subsumes-p role-1 role-2 *owllink-kb-and-reasoner*)) (defun owllink-object-property-synonyms (role &optional (no-internal-roles-p t)) (when (owllink-object-property-p role) (cond ((reasoner-bottom-object-property-p role *owllink-kb-and-reasoner*) (remove-duplicates (remove-if #'(lambda (x) (or (not x) (consp x))) (list owlapi:+owlapi-owl-bottom-object-role+ (unless no-internal-roles-p (reasoner-get-object-bottom-role *owllink-kb-and-reasoner*)))))) ((reasoner-top-object-property-p role *owllink-kb-and-reasoner*) (remove-duplicates (remove-if #'(lambda (x) (or (not x) (consp x))) (list owlapi:+owlapi-owl-top-object-role+ (unless no-internal-roles-p (reasoner-get-object-top-role *owllink-kb-and-reasoner*)))))) (t (reasoner-only-object-properties (remove-duplicates (cons role (reasoner-equivalent-roles role *owllink-kb-and-reasoner*))) *owllink-kb-and-reasoner*))))) (defun owllink-role-children (role) (when role (cond ((owllink-object-property-p role) (cond ((reasoner-top-object-property-p role *owllink-kb-and-reasoner*) (or (remove-if #'(lambda (r) (or (consp r) (reasoner-top-object-property-p r *owllink-kb-and-reasoner*) (reasoner-bottom-object-property-p r *owllink-kb-and-reasoner*) (let ((res (reasoner-no-data-properties (reasoner-atomic-role-parents r *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*))) (not ; haengt nicht unter TOP-ROLE -> raus (member (reasoner-get-object-top-role *owllink-kb-and-reasoner*) res))))) (reasoner-get-object-properties *owllink-kb-and-reasoner*)) (list owlapi:+owlapi-owl-bottom-object-role+))) ((reasoner-bottom-object-property-p role *owllink-kb-and-reasoner*) nil) (t (or (reasoner-only-object-properties (reasoner-atomic-role-children role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) (list owlapi:+owlapi-owl-bottom-object-role+))))) ((owllink-data-property-p role) (cond ((reasoner-top-data-property-p role *owllink-kb-and-reasoner*) (or (remove-if #'(lambda (r) (or (consp r) (reasoner-top-data-property-p r *owllink-kb-and-reasoner*) (reasoner-bottom-data-property-p r *owllink-kb-and-reasoner*) (let ((res (reasoner-no-object-properties (reasoner-atomic-role-parents r *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*))) (not (member (reasoner-get-datatype-top-role *owllink-kb-and-reasoner*) res))))) (reasoner-get-data-properties *owllink-kb-and-reasoner*)) (list owlapi:+owlapi-owl-bottom-data-role+))) ((reasoner-bottom-data-property-p role *owllink-kb-and-reasoner*) nil) (t (or (reasoner-only-data-properties (reasoner-atomic-role-children role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) (list owlapi:+owlapi-owl-bottom-data-role+))))) ((owllink-annotation-property-p role) (reasoner-only-annotation-properties (reasoner-atomic-role-children role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*)) (t ; (inv objectproperty) etc. nil)))) (defun owllink-role-parents (role) (when role (cond ((owllink-object-property-p role) (cond ((reasoner-bottom-object-property-p role *owllink-kb-and-reasoner*) (or (remove-if #'(lambda (r) (or (consp r) (reasoner-bottom-object-property-p r *owllink-kb-and-reasoner*) (reasoner-top-object-property-p r *owllink-kb-and-reasoner*) (let ((res (reasoner-no-data-properties (reasoner-atomic-role-children r *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*))) (not (member (reasoner-get-object-bottom-role *owllink-kb-and-reasoner*) res))))) (reasoner-get-object-properties *owllink-kb-and-reasoner*)) (list owlapi:+owlapi-owl-top-object-role+))) ((reasoner-top-object-property-p role *owllink-kb-and-reasoner*) nil) (t (or (reasoner-only-object-properties (reasoner-atomic-role-parents role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) (list owlapi:+owlapi-owl-top-object-role+))))) ((owllink-data-property-p role) (cond ((reasoner-bottom-data-property-p role *owllink-kb-and-reasoner*) (or (remove-if #'(lambda (r) (or (consp r) (reasoner-bottom-data-property-p r *owllink-kb-and-reasoner*) (reasoner-top-data-property-p r *owllink-kb-and-reasoner*) (let ((res (reasoner-no-object-properties (reasoner-atomic-role-children r *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*))) (not (member (reasoner-get-datatype-bottom-role *owllink-kb-and-reasoner*) res))))) (reasoner-get-data-properties *owllink-kb-and-reasoner*)) (list owlapi:+owlapi-owl-top-data-role+))) ((reasoner-top-data-property-p role *owllink-kb-and-reasoner*) nil) (t (or (reasoner-only-data-properties (reasoner-atomic-role-parents role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) (list owlapi:+owlapi-owl-top-data-role+))))) ((owllink-annotation-property-p role) (reasoner-only-annotation-properties (reasoner-atomic-role-parents role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*)) (t ; (inv objectproperty) etc. nil)))) (defun owllink-role-descendants (role) (cond ((owllink-object-property-p role) (cond ((reasoner-bottom-object-property-p role *owllink-kb-and-reasoner*) nil) ((reasoner-top-object-property-p role *owllink-kb-and-reasoner*) (remove-role-by-synset role (reasoner-get-object-properties *owllink-kb-and-reasoner*))) (t (cons owlapi:+owlapi-owl-bottom-object-role+ (remove-role-by-synset role (reasoner-only-object-properties (reasoner-atomic-role-descendants role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*)))))) ((owllink-data-property-p role) (cond ((reasoner-bottom-data-property-p role *owllink-kb-and-reasoner*) nil) ((reasoner-top-data-property-p role *owllink-kb-and-reasoner*) (remove-role-by-synset role (reasoner-get-data-properties *owllink-kb-and-reasoner*))) (t (cons owlapi:+owlapi-owl-bottom-data-role+ (remove-role-by-synset role (reasoner-only-data-properties (reasoner-atomic-role-descendants role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*)))))) ((owllink-annotation-property-p role) (remove-role-by-synset role (reasoner-only-annotation-properties (reasoner-atomic-role-descendants role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*))) (t ; (inv objectproperty) etc. nil))) (defun owllink-role-ancestors (role) (cond ((owllink-object-property-p role) (cond ((reasoner-top-object-property-p role *owllink-kb-and-reasoner*) nil) ((reasoner-bottom-object-property-p role *owllink-kb-and-reasoner*) (remove-role-by-synset role (reasoner-get-object-properties *owllink-kb-and-reasoner*))) (t (cons owlapi:+owlapi-owl-top-object-role+ (remove-role-by-synset role (reasoner-only-object-properties (reasoner-atomic-role-ancestors role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*)))))) ((owllink-data-property-p role) (cond ((reasoner-top-data-property-p role *owllink-kb-and-reasoner*) nil) ((reasoner-bottom-data-property-p role *owllink-kb-and-reasoner*) (remove-role-by-synset role (reasoner-get-data-properties *owllink-kb-and-reasoner*))) (t (cons owlapi:+owlapi-owl-top-data-role+ (remove-role-by-synset role (reasoner-only-data-properties (reasoner-atomic-role-ancestors role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*)))))) ((owllink-annotation-property-p role) (remove-role-by-synset role (reasoner-only-annotation-properties (reasoner-atomic-role-ancestors role *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*))) (t ; (inv dataproperty) etc. nil))) (defun owllink-get-disjoint-object-properties (role &optional flat-p) (let ((res (reasoner-get-disjoint-object-properties role *owllink-kb-and-reasoner*))) (if (not flat-p) (object-property-list-result res nil nil t) (flat-object-property-list-result res)))) (defun owllink-object-property-hierarchy2 (role &optional up-p) (make-owllink-message '|ObjectPropertyHierarchy| nil (cons (make-synset '|ObjectProperty| (reasoner-only-object-properties (owllink-object-property-synonyms owlapi:+owlapi-owl-bottom-object-role+) *owllink-kb-and-reasoner*)) (loop for role-set in (remove-duplicates (mapcar #'owllink-object-property-synonyms (cons role (if (not up-p) (owllink-role-descendants role) (owllink-role-ancestors role)))) :test #'owlapi:set-equal) as roles = (remove nil (remove-duplicates (mapcar #'owllink-object-property-synonyms (when role (if (not up-p) (owllink-role-children (first role-set)) (owllink-role-parents (first role-set))))) :test #'equal)) as roles1 = (mapcar #'(lambda (x) (reduced-object-property-synset2 x up-p)) roles) when (and roles1 ;; not all NIL? (some #'identity roles1)) collect (make-owllink-message (if (not up-p) '|ObjectPropertySubObjectPropertiesPair| '|ObjectPropertySuperObjectPropertiesPair|) nil (list (make-synset '|ObjectProperty| role-set) (make-set-of-synsets '|SubObjectProperty| (remove nil (mapcar #'(lambda (x) (make-synset '|ObjectProperty| x)) roles1))))))))) (defun owllink-data-property-synonyms (role &optional (no-internal-roles-p t)) (when (owllink-data-property-p role) (cond ((reasoner-bottom-data-property-p role *owllink-kb-and-reasoner*) (remove-duplicates (remove-if #'(lambda (x) (or (not x) (consp x))) (list owlapi:+owlapi-owl-bottom-data-role+ (unless no-internal-roles-p (reasoner-get-datatype-bottom-role *owllink-kb-and-reasoner*)))))) ((reasoner-top-data-property-p role *owllink-kb-and-reasoner*) (remove-duplicates (remove-if #'(lambda (x) (or (not x) (consp x))) (list owlapi:+owlapi-owl-top-data-role+ #+:ignore (unless no-internal-roles-p (reasoner-get-datatype-top-role *owllink-kb-and-reasoner*)))))) (t (reasoner-only-data-properties (remove-duplicates (cons role (reasoner-equivalent-roles role *owllink-kb-and-reasoner*))) *owllink-kb-and-reasoner*))))) (defun owllink-get-disjoint-data-properties (role &optional flat-p) (let ((res (reasoner-get-disjoint-data-properties role *owllink-kb-and-reasoner*))) (if (not flat-p) (data-property-list-result res) (flat-data-property-list-result res)))) (defun owllink-data-property-hierarchy2 (role &optional up-p) (make-owllink-message '|DataPropertyHierarchy| nil (cons (make-synset '|DataProperty| (reasoner-only-data-properties (owllink-data-property-synonyms owlapi:+owlapi-owl-bottom-data-role+) *owllink-kb-and-reasoner*)) (loop for role-set in (remove-duplicates (mapcar #'owllink-data-property-synonyms (cons role (if (not up-p) (owllink-role-descendants role) (owllink-role-ancestors role)))) :test #'owlapi:set-equal) as roles = (remove nil (remove-duplicates (mapcar #'owllink-data-property-synonyms (when role (if (not up-p) (owllink-role-children (first role-set)) (owllink-role-parents (first role-set))))) :test #'equal)) as roles1 = (mapcar #'(lambda (x) (reduced-data-property-synset2 x up-p)) roles) when (and roles1 ;; not all NIL? (some #'identity roles1)) collect (make-owllink-message (if (not up-p) '|DataPropertySubDataPropertiesPair| '|DataPropertySuperDataPropertiesPair|) nil (list (make-synset '|DataProperty| role-set) (make-set-of-synsets '|SubDataProperty| (remove nil (mapcar #'(lambda (x) (make-synset '|DataProperty| x)) roles1))))))))) (defun owllink-is-instance-of (ind concept &optional direct-p) (reasoner-instance-of-p ind concept *owllink-kb-and-reasoner* direct-p)) (defun owllink-get-types (ind &optional flat-p) (let ((res (reasoner-get-types ind *owllink-kb-and-reasoner* *direct*))) (if (not flat-p) (concept-list-result res) (flat-concept-list-result res)))) (defun owllink-get-disjoint-individuals (ind &optional flat-p) (let* (;; #+:racer-server ;; (racer::*optimize-datatype-role-fillers* nil) ; RACER BUG! behoben? (res (reasoner-individual-antonyms ind *owllink-kb-and-reasoner*))) (if (not flat-p) (individual-list-result res nil nil t) (flat-individual-list-result res)))) (defun owllink-get-object-properties-between (source target &optional flat-p) (let* ((res (reasoner-retrieve-individual-filled-roles source target *owllink-kb-and-reasoner* :roles (without-top-and-bottom-object-properties (reasoner-get-object-properties *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) :negated-p *negative* :no-inverses-p t)) (res (if *negative* (cons owlapi:+owlapi-owl-bottom-object-role+ res) (cons owlapi:+owlapi-owl-top-object-role+ res)))) (if (not flat-p) (object-property-list-result res nil nil t) (flat-object-property-list-result res)))) (defun owllink-get-object-properties-of-source (source &optional flat-p) (let* ((res (mapcar #'first (reasoner-get-individual-successors source *owllink-kb-and-reasoner* :roles (without-top-and-bottom-object-properties (reasoner-get-object-properties *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) :negated-p *negative* :no-inverses-p t))) (res (if *negative* (cons owlapi:+owlapi-owl-bottom-object-role+ res) (cons owlapi:+owlapi-owl-top-object-role+ res)))) (if (not flat-p) (object-property-list-result res nil nil t) (flat-object-property-list-result res)))) (defun owllink-get-object-properties-of-target (target &optional flat-p) (let* ((res (delete nil (mapcar #'(lambda (x) (if (consp (first x)) (second (first x)) (first x))) (reasoner-get-individual-successors target *owllink-kb-and-reasoner* :negated-p *negative* :no-inverses-p nil :roles (without-top-and-bottom-object-properties (reasoner-get-object-properties *owllink-kb-and-reasoner*) *owllink-kb-and-reasoner*) :only-inverses-p t)))) (res (if *negative* (cons owlapi:+owlapi-owl-bottom-object-role+ res) (cons owlapi:+owlapi-owl-top-object-role+ res)))) (if (not flat-p) (object-property-list-result res nil nil t) (flat-object-property-list-result res)))) (defun owllink-get-data-properties-between (source literal &optional flat-p) (let* ((res (loop for (role literals) in (reasoner-get-individual-datatype-fillers source *owllink-kb-and-reasoner*) when (find literal literals :test #'equal) collect role)) (res (if *negative* (cons owlapi:+owlapi-owl-bottom-data-role+ res) (cons owlapi:+owlapi-owl-top-data-role+ res)))) (if (not flat-p) (data-property-list-result res nil nil t) (flat-data-property-list-result res)))) (defun owllink-get-data-properties-of-source (source &optional flat-p) (let* ((res (mapcar #'first (reasoner-get-individual-datatype-fillers source *owllink-kb-and-reasoner*))) (res (if *negative* (cons owlapi:+owlapi-owl-bottom-data-role+ res) (cons owlapi:+owlapi-owl-top-data-role+ res)))) (if (not flat-p) (data-property-list-result res nil nil t) (flat-data-property-list-result res)))) (defun owllink-get-instances (concept direct-p &optional flat-p) (let ((res (reasoner-get-instances concept *owllink-kb-and-reasoner* direct-p))) (if (not flat-p) (individual-list-result res nil nil t) (flat-individual-list-result res)))) (defun owllink-get-object-property-targets (ind role &optional flat-p) (let ((res (reasoner-retrieve-individual-fillers ind (if *negative* `(not ,role) role) *owllink-kb-and-reasoner*))) (if (not flat-p) (individual-list-result res nil nil t) (flat-individual-list-result res)))) (defun owllink-get-object-property-sources (ind role &optional flat-p) (let ((res (reasoner-retrieve-individual-predecessors ind (if *negative* `(not ,role) role) *owllink-kb-and-reasoner*))) (if (not flat-p) (individual-list-result res nil nil t) (flat-individual-list-result res)))) (defun owllink-get-data-property-targets (ind property) (flat-literal-list-result (mapcar #'(lambda (x) `(|Literal| nil ,x)) (reasoner-retrieve-individual-told-datatype-fillers ind property *owllink-kb-and-reasoner*)))) (defun owllink-individual-p (ind) (symbolp ind)) (defun owllink-get-individuals () (all-individuals *owllink-kb-and-reasoner*)) (defun owllink-get-data-properties-of-literal (literal &optional flat-p) (racer-prepare-substrate :abox *owllink-kb-and-reasoner* :prepare-now-p t) (let* ((res (let ((hash (ts::datatype-property-values-and-types-cache *cur-substrate*)) (res nil)) (maphash #'(lambda (key vals) (declare (ignorable key)) (dolist (x vals) #+:ignore (pprint (list literal (third (first x)) (equal (third (first x)) literal))) (when (and (equal (third (first x)) literal) (not (second x))) ; no annotation (push (caar x) res)))) hash) res)) (res (remove-duplicates (cons owlapi:+owlapi-owl-top-data-role+ (append res (apply #'append (mapcar #'owllink-role-ancestors res))))))) (if (not flat-p) (data-property-list-result res nil nil t) (flat-data-property-list-result res)))) (defun owllink-get-data-property-sources (literal property &optional flat-p) (racer-prepare-substrate :abox *owllink-kb-and-reasoner* :prepare-now-p t) (let ((res (let ((hash (ts::datatype-property-values-and-types-cache *cur-substrate*)) (res nil)) (maphash #'(lambda (key vals) (when (some #'(lambda (x) (and (equal property (first (first x))) (equal literal (third (first x)) ) (not (second x)))) ; no annotation vals) (push key res))) hash) res))) (if (not flat-p) (individual-list-result res nil nil t) (flat-individual-list-result res)))) ;;; ;;; ;;; (defmethod owllink-entailed-p (axiom) (owlapi:entailed-p axiom)) (defmethod owllink-direct-entailed-p (axiom) (owlapi:direct-entailed-p axiom))
39,065
Common Lisp
.lisp
769
35.076723
103
0.535498
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
52589b57a89dd1e102568fc625e91433e2fdb8327abed9cb07c444ef0cbc5f77
6,339
[ -1 ]
6,340
owllink-parsers.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owllink-parsers.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owllink-parsers.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Parser macros for the OWLlink functional processor. ;;; Deliberately not very hygienic ;-) Will be improved sometime. ;;; (eval-when (:compile-toplevel :load-toplevel :execute) (defun get-parser-name (type) (intern (format nil "owllink-parse-~A" type) (find-package :owl-syntaxes)))) (defmacro loop-parser (type attributes-and-binders inner-parser-name before-loop-form &body validate-and-return-form) (let ((name (get-parser-name type)) (attributes-and-binders (or attributes-and-binders (list nil '(progn)))) (validate-and-return-form (or validate-and-return-form '((values response expressions))))) `(defun ,name (expressions1 &rest args &key (error-p t)) (declare (ignorable error-p)) (block parser (when *debug-p* (terpri) (pprint (list :loop-call ',name expressions1))) (if (and (consp (first expressions1)) (eq (expand-functional-tag-name (first (first expressions1))) ',type)) (let* ((expressions (first expressions1))) (multiple-value-bind (attributes expressions) (apply #'get-attributes expressions ',(first attributes-and-binders) args) (declare (ignorable attributes expressions)) ,before-loop-form (,@(second attributes-and-binders) (let ((done nil) (response nil) (responses nil) (expressions (cddr expressions))) ;; remove Tag name and attributes, e.g. of Tell (declare (ignorable done)) (loop while ;(and expressions (not done)) do expressions do (setf done t) (when *debug-p* (terpri) (pprint (list :in-loop ',name expressions responses))) (multiple-value-setq (response expressions) (apply (symbol-function ',(get-parser-name inner-parser-name)) expressions args)) (unless response (setf expressions (cdr expressions))) (when ;response t (setf done nil) (push response responses))) (setf response (nreverse responses)) (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :loop-return ',name response expressions))) (values response (rest expressions1))))))) (values nil expressions1)))))) (defmacro ano-loop-parser (name inner-parser-name &body validate-and-return-form) (let ((name (get-parser-name name)) (validate-and-return-form (or validate-and-return-form '((values response expressions))))) `(defun ,name (expressions &rest args &key (error-p t)) (declare (ignorable error-p)) (block parser (when *debug-p* (terpri) (pprint (list :ano-loop-call ',name expressions))) (if (consp expressions) (let ((done nil) (response nil) (responses nil)) (declare (ignorable done)) (loop while ;(and expressions (not done)) do expressions do (setf done t) (when *debug-p* (terpri) (pprint (list :in-ano-loop ',name expressions responses))) (multiple-value-setq (response expressions) (apply (symbol-function ',(get-parser-name inner-parser-name)) expressions args)) (unless response (setf expressions (cdr expressions))) (when ;response t (setf done nil) (push response responses))) (setf response (nreverse responses)) (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :ano-loop-return ',name response expressions))) (values response expressions))) (values nil expressions)))))) (defmacro ano-optional-loop-parser (name inner-parser-name &body validate-and-return-form) (let ((name (get-parser-name name)) (validate-and-return-form (or validate-and-return-form '((values response expressions))))) `(defun ,name (expressions &rest args &key (error-p t)) (declare (ignorable error-p)) (block parser (when *debug-p* (terpri) (pprint (list :ano-loop-call ',name expressions))) (if (consp expressions) (let ((done nil) (response nil) (responses nil)) (declare (ignorable done)) (loop while ;(and expressions (not done)) do expressions do (setf done t) (when *debug-p* (terpri) (pprint (list :in-ano-optional-loop ',name expressions responses))) (let ((orig expressions)) (multiple-value-setq (response expressions) (apply (symbol-function ',(get-parser-name inner-parser-name)) expressions args)) (cond ((not response) (setf expressions nil) (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (declare (ignorable expressions)) (when *debug-p* (terpri) (pprint (list :ano-optional-loop-return ',name response orig))) (setf response (nreverse responses)) (return-from ,name (values responses orig)))) (t (setf done nil) (push response responses))))) (setf response (nreverse responses)) (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :loop-return ',name response expressions))) (values response expressions))) (values nil expressions)))))) (defmacro choice-parser (type attributes-and-binders choice-parsers &body validate-and-return-form) (let ((name (get-parser-name type)) (attributes-and-binders (or attributes-and-binders (list nil '(progn)))) (validate-and-return-form (or validate-and-return-form '((values response expressions))))) `(defun ,name (expressions &rest args &key (error-p t)) (declare (ignorable error-p)) (block parser (if (consp expressions) (progn (when *debug-p* (terpri) (pprint (list :choice-call ',name expressions))) (dolist (parser ',choice-parsers) (when *debug-p* (terpri) (pprint (list :in-choice-loop *kb* ',name expressions))) (multiple-value-bind (attributes expressions1) (apply #'get-attributes (first expressions) ',(first attributes-and-binders) args) (declare (ignorable attributes)) (let ((expressions (cons expressions1 (cdr expressions)))) (,@(second attributes-and-binders) (multiple-value-bind (response expressions) (apply (symbol-function (get-parser-name parser) ) expressions args) (when response (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :choice-return ',name response expressions))) (return-from ,name (values response expressions))))))))) (when error-p (return-from parser (values (owllink-syntax-error-message :error (error-message "No valid OWLlink ~A request: ~S" ',type (expand-functional-tag-name (first (first expressions))))) (rest expressions)))) (values nil (rest expressions))) (values nil expressions)))))) (defmacro choice-parser-with-timeout (type attributes-and-binders choice-parsers &body validate-and-return-form) (let ((name (get-parser-name type)) (attributes-and-binders (or attributes-and-binders (list nil '(progn)))) (validate-and-return-form (or validate-and-return-form '((values response expressions))))) `(defun ,name (expressions &rest args &key (error-p t)) (declare (ignorable error-p)) (block parser (if (consp expressions) (progn (when *debug-p* (terpri) (pprint (list :choice-call ',name expressions))) (dolist (parser ',choice-parsers) (when *debug-p* (terpri) (pprint (list :in-choice-loop *kb* ',name expressions))) (multiple-value-bind (attributes expressions1) (apply #'get-attributes (first expressions) ',(first attributes-and-binders) args) (declare (ignorable attributes)) (let ((expressions (cons expressions1 (cdr expressions)))) (,@(second attributes-and-binders) (multiple-value-bind (response expressions) #+:racer-server (racer::with-timeout (*server-timeout* (values (owllink-error-message :error (error-message "Timeout after ~A seconds for request: ~S" *server-timeout* (expand-functional-tag-name (first (first expressions))))) (rest expressions))) (apply (symbol-function (get-parser-name parser) ) expressions args)) #-:racer-server (apply (symbol-function (get-parser-name parser) ) expressions args) (when response (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :choice-return ',name response expressions))) (return-from ,name (values response expressions))))))))) (when error-p (return-from parser (values (owllink-syntax-error-message :error (error-message "No valid OWLlink ~A request: ~S" ',type (expand-functional-tag-name (first (first expressions))))) (rest expressions)))) (values nil (rest expressions))) (values nil expressions)))))) (defmacro optional-choice-parser (type attributes-and-binders choice-parsers &body validate-and-return-form) (let ((name (get-parser-name type)) (attributes-and-binders (or attributes-and-binders (list nil '(progn)))) (validate-and-return-form (or validate-and-return-form '((values response expressions))))) `(defun ,name (expressions &rest args) (block parser (if (consp expressions) (progn (when *debug-p* (terpri) (pprint (list :choice-call ',name expressions))) (dolist (parser ',choice-parsers) (when *debug-p* (terpri) (pprint (list :in-choice-loop *kb* ',name expressions))) (multiple-value-bind (attributes expressions1) (apply #'get-attributes (first expressions) ',(first attributes-and-binders) args) (declare (ignorable attributes)) (let ((expressions (cons expressions1 (cdr expressions)))) (,@(second attributes-and-binders) (multiple-value-bind (response expressions) (apply (symbol-function (get-parser-name parser) ) expressions args) (when response (multiple-value-bind (response expressions) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :choice-return ',name response expressions))) (return-from ,name (values response expressions))))))))) (values nil expressions)) (values nil expressions)))))) (defmacro tag-parser (type attributes-and-binders &body validate-and-return-form) (let ((name (get-parser-name type)) (attributes-and-binders (or attributes-and-binders (list nil '(progn)))) (validate-and-return-form (or validate-and-return-form '((values response))))) `(defun ,name (expressions1 &rest args &key (error-p t)) (declare (ignorable error-p)) (block parser (when *debug-p* (terpri) (pprint (list :tag-call ',name expressions1))) (if (and (consp (first expressions1)) (eq (expand-functional-tag-name (first (first expressions1))) ',type)) (multiple-value-bind (attributes expressions) (apply #'get-attributes (first expressions1) ',(first attributes-and-binders) args) (declare (ignorable attributes expressions)) (setf expressions (cddr expressions)) ; remove tag and attributes (,@(second attributes-and-binders) (multiple-value-bind (response) (progn ,@validate-and-return-form) (when *debug-p* (terpri) (pprint (list :tag-return ',name response (rest expressions1)))) (values response (rest expressions1))))) (values nil expressions1)))))) (defmacro dummy-tag-parser (name &body body) (let ((name (get-parser-name name))) `(defun ,name (expressions &rest args &key (error-p t)) (declare (ignorable error-p args)) (block parser (when *debug-p* (terpri) (pprint (list :dummy-tag-parser-call ',name expressions))) ,@body)))) (defmacro with-parser-call ((parser expressions &rest args) &body body) `(progn (block parser (multiple-value-bind (response expressions) (apply (symbol-function (get-parser-name ',parser)) ,expressions ,args) (declare (ignorable response expressions)) ,@body))))
22,889
Common Lisp
.lisp
430
35.611628
112
0.521661
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
038e094cfaddcac09761ae0515fdd752f6a66a2452eb08e78fc8b24cd499a24c
6,340
[ -1 ]
6,341
xml-renderer.lisp
lambdamikel_OntoLisp/ontolisp-0.9/xml-renderer.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; xml-renderer.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: The XML renderer used for OWL 2 XML and OWLlink XML ;;; ;;; ;;; XML Renderer ;;; (defvar *content-attributes* nil) (defvar *map-tag-attributes-to-iri-attributes* nil) (defvar *dont-abbreviate-iris-in-tags* nil) (defvar *add-tag-content-as-attribute* nil) (defvar *add-tag-content-as-attribute-value* nil) ;;; ;;; ;;; (defun abbreviate-tag (tag) (owlapi:without-starting-# (iri-owl tag #\:))) (defun abbreviate-value (tag) (iri-owl tag #\&)) ;;; ;;; ;;; (defun indent (stream) (format stream "~%") (dotimes (i *indent*) (format stream " "))) (defmacro with-indentation (&body body) `(let* ((*indent* (+ *indent* 2))) ,@body)) (defun xml-header (stream) (format stream "<?xml version=\"1.0\"?>")) (defun xml-comment (stream comment) (indent stream) (format stream "<!-- ~A -->" comment)) (defun xml-author-comment (name stream) (xml-comment stream (format nil "Ontology \"~A\" rendered by ~A Version ~A Build ~A, ~A" name *product-name* *product-version* *product-build* (owlapi:get-current-date)))) (defun xml-block-comment (stream comment) (format stream "<!--") (indent stream) (pprint comment stream) (indent stream) (format stream "-->")) (defun entity-definitions (stream prefixes &optional ontology-p) (indent stream) (if ontology-p (format stream "<!DOCTYPE Ontology [") (format stream "<!DOCTYPE rdf:RDF [")) (with-indentation (dolist (prefix prefixes) (when (and (not (owlapi:is-default-prefix-p (first prefix))) (first prefix)) (indent stream) (format stream "<!ENTITY ~A ~S>" (first prefix) (second prefix))))) (indent stream) (format stream "]>")) (defmacro xml-tag-printer (stream tag attributes &body cont) `(xml-tag-printer1 ,stream ',tag ',attributes (lambda () ,cont))) (defun xml-tag-printer1 (stream tag attributes1 &optional continuation) (let* ((tag0 tag) (tag (abbreviate-tag (cond ((stringp tag) tag) ((symbolp tag) (symbol-name tag)) (t (format nil "~A" tag))))) (attributes (remove-if #'(lambda (x) (and (member (first x) *dont-render-attributes*) (not (member (first x) (second (assoc tag0 *ensure-attributes-for-tag*)))))) attributes1)) (*owl2-tags-disabled* (or *owl2-tags-disabled* (member tag0 *disable-owl2-tags-for*)))) (unless (member tag0 *dont-render-tags*) (labels ((render-attribute (stream attribute) (let ((attribute0 (first attribute)) (attribute1 (abbreviate-tag (first attribute)))) (multiple-value-bind (iri abbreviated-iri-p) (if (third attribute) (second attribute) (cond (*functional-to-xml-mode* (values (iri-owl (second attribute) #\&) ;;; dont use abbreviatedIRI -> IRI! nil)) (*owllink-mode* ; use XSD entities instead of abbreviatedIRIs for OWL XML (iri-owl (second attribute))) (t (abbreviate-value (second attribute))))) (format stream " ~A=\"~A\"" (if (and abbreviated-iri-p (or (eq attribute0 '|IRI|) (member attribute0 (rest (assoc tag0 *map-tag-attributes-to-iri-attributes*))))) "abbreviatedIRI" (if (member attribute0 (rest (assoc tag0 *map-tag-attributes-to-iri-attributes*))) "IRI" attribute1)) iri))))) (indent stream) (if (and (gethash tag0 *owl2-tags*) (not *owl2-tags-disabled*)) (format stream "<owl:~A" tag) (format stream "<~A" tag)) (let ((*abbreviate-iris* (and *abbreviate-iris* (not (member tag0 *dont-abbreviate-iris-in-tags*))))) (when attributes (render-attribute stream (first attributes)) (let ((*indent* (+ *indent* 1 (length tag)))) (dolist (attribute-value (rest attributes)) (indent stream) (render-attribute stream attribute-value))))) (let* ((*abbreviate-iris* (if (not *owllink-mode*) *abbreviate-iris* (and *owllink-mode* (let ((res (assoc '|INT-abbreviatesIRIs| attributes1))) (if res (owlapi:string-to-boolean (second res)) *abbreviate-iris*))))) (*add-prefixes* (if (not *owllink-mode*) *add-prefixes* (or (when *abbreviate-iris* (let ((res (assoc '|INT-prefixes| attributes1))) (if res (second res) *add-prefixes*))) *add-prefixes*)))) (if continuation (progn (format stream ">") (unless (with-indentation (funcall continuation)) (indent stream)) (if (and (gethash tag0 *owl2-tags*) (not *owl2-tags-disabled*)) (format stream "</owl:~A>" tag) (format stream "</~A>" tag))) (format stream "/>"))))))) (defun print-xml (s-expr stream &optional (toplevel-p t)) ;;; (tag attribute child1 ... childn) | symbol (cond ((consp s-expr) (cond ((and (member (first s-expr) '(|rdf:first| |owl:hasSelf|)) (stringp (third s-expr))) (xml-tag-printer1 stream (first s-expr) (second s-expr) #'(lambda () (format stream "~A" (third s-expr)) ;;; t return -> no fresh line after content t))) ((and (not (cdddr s-expr)) ; old OWL Literal Representation (eq (first s-expr) '|Literal|) (stringp (third s-expr))) (let* ((lit1 (parse-literal (list (third s-expr)))) (lit (second lit1)) (type (second (third lit1)))) (xml-tag-printer1 stream '|Literal| `((|datatypeIRI| ,type)) #'(lambda () (format stream "~A" lit) ;;; t return -> no fresh line after content t)))) ((and (member (first s-expr) '(|OWLLiteral|))) ; OWL Literal (let ((type (third s-expr)) (lit (fourth s-expr)) (lang-tag (fifth s-expr))) (declare (ignorable lang-tag)) (xml-tag-printer1 stream '|Literal| `((|datatypeIRI| ,type)) #'(lambda () (format stream "~A" lit) ;;; t return -> no fresh line after content t)))) ((and (not (cdddr s-expr)) ; f. OWLlink OWL Literal (eq (first s-expr) '|Literal|) (cddr s-expr)) (let* ((lit1 (third s-expr)) (lit (second lit1)) (type (second (third lit1)))) (xml-tag-printer1 stream '|Literal| `((|datatypeIRI| ,type)) #'(lambda () (format stream "~A" lit) ;;; t return -> no fresh line after content t)))) ((and (not (cddr s-expr)) (second s-expr) (not (cdr (second s-expr))) (member (caar (second s-expr)) (cdr (assoc (first s-expr) *content-attributes*)))) (xml-tag-printer1 stream (first s-expr) nil #'(lambda () (format stream "~A" (cadar (second s-expr))) ;;; t return -> no fresh line after content t))) ((and (not (cdddr s-expr)) (third s-expr) ;;; einfacher Literal Content? (keine Children!) (symbolp (third s-expr))) ;;; ;;; <Class>abc</Class> -> <Class IRI=\"abc\"/> ;;; (xml-tag-printer1 stream (first s-expr) (append (second s-expr) (if (not *owllink-mode*) (if toplevel-p `((|rdf:about| ,(third s-expr))) `((|rdf:resource| ,(third s-expr)))) `((,(or (second (assoc (first s-expr) *add-tag-content-as-attribute*)) (second (assoc :otherwise *add-tag-content-as-attribute*))) ,(third s-expr))))))) ((and (not (cdddr s-expr)) (third s-expr) (consp (third s-expr)) (member (first (third s-expr)) '(|owl:Class| ;; |owl:ObjectProperty| ;; |rdfs:Datatype| )) (not (third (third s-expr))) (member (first (first (second (third s-expr)))) '(|rdf:about| |rdf:resource| |rdf:ID|))) (xml-tag-printer1 stream (first s-expr) (append (second s-expr) (if (not *owllink-mode*) (if toplevel-p `((|rdf:about| ,(second (first (second (third s-expr)))))) `((|rdf:resource| ,(second (first (second (third s-expr))))))) `((,(or (second (assoc (first s-expr) *add-tag-content-as-attribute*)) (second (assoc :otherwise *add-tag-content-as-attribute*))) ,(second (first (second (third s-expr)))))))))) (t (let* ((tag (first s-expr)) (attributes (second s-expr)) (attribute-content (remove-if-not #'(lambda (x) (and (consp x) (assoc (first x) *add-tag-content-as-attribute-value*))) (cddr s-expr))) (content (remove-if #'(lambda (x) (and (consp x) (assoc (first x) *add-tag-content-as-attribute-value*))) (cddr s-expr))) (attributes (append attributes (mapcar #'(lambda (x) (list (second (assoc (first x) *add-tag-content-as-attribute-value*)) ;; content must be simple! only one element! ;; e.g. (|Cardinality| nil 1) (third x))) attribute-content)))) (xml-tag-printer1 stream tag attributes (when content (lambda () (if (or (cdr content) (not (stringp (first content)))) (dolist (s-expr content) (print-xml s-expr stream nil)) (progn (format stream "~A" (first content)) t))))))))) ((symbolp s-expr) (xml-tag-printer1 stream s-expr nil)) ((functionp s-expr) (funcall s-expr)) ((and (stringp s-expr) *functional-to-xml-mode*) (let ((*owllink-mode* nil)) (print-xml `(|Literal| nil ,s-expr) stream nil))) (t (format stream "~A" s-expr) t))) ;;; ;;; OWL XML ;;; (defmethod render (stream (ont owlapi:ontology) (syntax (eql :owl-xml))) (labels ((prepare-for-owl-rendering (expr) (if (consp expr) (let ((op (first expr))) (case op (|HasKey| (list op nil (prepare-for-owl-rendering (second expr)) (append (mapcan #'prepare-for-owl-rendering (third expr)) (mapcan #'prepare-for-owl-rendering (fourth expr))))) (|DatatypeRestriction| (append (list op nil (prepare-for-owl-rendering (second expr))) (loop as facet in (cddr expr) by #'cddr as literal in (cdddr expr) by #'cddr collect `(|FacetRestriction| ((|facet| ,facet)) ,(prepare-for-owl-rendering literal))))) (otherwise (list* op nil (mapcar #'prepare-for-owl-rendering (rest expr)))))) expr))) (with-prefixes (ont prefixes default) (let* ((default (owlapi:without-\# default)) ; used as base! (*ontology* ont) (*axioms-rendered* 0) (*package* (find-package #+:racer-server :ts #-:racer-server :owl-syntaxes)) (*functional-to-xml-mode* t) (*owl2-tags-disabled* t) (*add-tag-content-as-attribute-value* '((|Cardinality| |cardinality|))) (name (owlapi:name ont)) (axioms (owlapi:get-axioms-in ont)) (axioms1 (remove-if-not #'(lambda (x) (typep x 'owlapi:|OWLOntologyAnnotationAxiom|)) axioms)) (axioms2 (remove-if #'(lambda (x) (typep x 'owlapi:|OWLOntologyAnnotationAxiom|)) axioms)) (axioms (mapcan #'(lambda (axioms) (mapcan #'(lambda (axiom) ;; (pprint (type-of axiom)) ;; (render *standard-output* axiom :owl-functional) (let* ((res (with-output-to-string (stream) (let ((*comments* nil)) (render stream axiom :owl-functional)))) (res2 (with-input-from-string (stream res) (let (#+:racer-server (*tbox-verbose* nil)) ;; (pprint res) (first (parse-from-stream stream)))))) ;; (pprint res2) ;; (terpri) (terpri) (if res2 (list (get-axiom-comment-closure axiom stream) (prepare-for-owl-rendering res2)) (progn (owlapi-warning "Warning - cannot render axioms of type ~A in syntax ~A" (type-of axiom) syntax) nil)))) axioms)) (list axioms1 axioms2)))) (xml-author-comment name stream) (newline1 stream) (entity-definitions stream prefixes t) (newline1 stream) (owllink-xml-printer (list* '|Ontology| `((|INT-prefixes| ,(cons (list nil default) prefixes)) (|INT-abbreviatesIRIs| "true") ("xmlns" ,owlapi:+owl2-namespace+) ("xml:base" ,default) ,@(mapcar #'(lambda (x) (list (format nil "xmlns:~A" (first x)) (second x) t)) (remove-if #'owlapi:is-default-prefix-p prefixes :key #'first))) (nconc (mapcar #'(lambda (prefix-namespace) (let ((prefix (first prefix-namespace)) (namespace (second prefix-namespace))) `(|Prefix| ((|name| ,prefix) (|IRI| ,namespace) (|INT-abbreviatesIRIs| "false"))))) ;; (remove-if #'owlapi:is-default-prefix-p prefixes :key #'first) nil) axioms)) stream) (newline1 stream) (xml-author-comment name stream) (newline1 stream) (length axioms)))))
24,761
Common Lisp
.lisp
505
30.118812
109
0.449465
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
41d8b955f3f96937860311fbc8c152fa6abe49d3f527abff69fd4ee14b821340
6,341
[ -1 ]
6,342
http-stream.lisp
lambdamikel_OntoLisp/ontolisp-0.9/http-stream.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; http-stream.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Opens and provides an HTTP stream for a given URL from which we can read. ;;; (defun clean-url (url) (if url (let ((pos (position #\space url))) (if pos (concatenate 'string (subseq url 0 pos) "%20" (clean-url (subseq url (1+ pos)))) url)) "")) (defun without-file-prefix (url) (let ((res (search "file://" url))) (if (and res (zerop res)) (subseq url 7) url))) #+:aserve (defmacro with-input-from-url ((stream url &key close-manually-p) &body body) (let ((orig (gensym))) `(let* ((,orig (if (symbolp ,url) (symbol-name ,url) ,url)) (,url #+:racer-server (racer:check-for-url-mirror ,orig) #-:racer-server ,orig)) #+:racer-server (unless (equalp ,orig ,url) (when racer::*tbox-verbose* (format t "~V@TURL ~A mirrored to ~A." racer::*indent* ,orig ,url))) ,(if close-manually-p `(if (owlapi:is-file-url-p ,url) (let ((,stream (open (without-file-prefix ,url) :direction :input))) ,@body) (break "not yet supported")) `(if (owlapi:is-file-url-p ,url) (with-open-file (,stream (without-file-prefix ,url)) ,@body) (multiple-value-bind (body res headers) (let ((,url (clean-url ,url))) (net.aserve.client:do-http-request ,url #+:racer-server :proxy #+:racer-server racer:*proxy* :headers '(("Accept-Encoding" . "gzip")) :format :binary ;; :external-format :latin1-base )) (cond ((equal (cdr (assoc :content-encoding headers)) "gzip") #+:racer-server (when *tbox-verbose* (format t "HTTP request returned ~s gzip'ed bytes, " (length body))) (let ((so (make-string-output-stream)) (bis (excl:make-buffer-input-stream body)) (bi)) (util.zip::skip-gzip-header bis) (setq bi (make-instance 'util.zip:inflate-stream :input-handle bis)) (do ((byte (read-byte bi nil nil) (read-byte bi nil nil))) ((null byte) (setq body (get-output-stream-string so)) #+:racer-server (when *tbox-verbose* (format t "~s characters after inflation~%" (length body)))) (write-char (code-char byte) so)))) (t (setq body (excl:octets-to-string body)))) (cond ((not (eql 200 res)) (error "HTTP request returned code ~s" res)) (t (with-input-from-string (,stream body) ,@body))))))))) #+:cl-http (defmacro with-input-from-url ((stream url &key close-manually-p) &body body) `(let* ((url-spec (if (symbolp ,url) (symbol-name ,url) ,url)) (real-url-spec (racer:check-for-url-mirror url-spec)) (url (url:intern-url real-url-spec)) (headers nil)) (declare (ignorable headers url)) (unless (equalp url-spec real-url-spec) (when racer::*tbox-verbose* (format t "~V@TURL ~A mirrored to ~A." racer::*indent* url-spec real-url-spec))) ,(if close-manually-p `(if (owlapi:is-file-url-p real-url-spec) (let ((,stream (open (without-file-prefix real-url-spec) :direction :input))) ,@body) (break "not yet supported")) `(if (owlapi:is-file-url-p real-url-spec) (with-open-file (,stream (without-file-prefix real-url-spec)) ,@body) (progn (when *tbox-verbose* (unless (string= url-spec real-url-spec) (format t "URL ~A mirrored to ~A." url-spec real-url-spec))) (racer:with-temp-file ((,stream) (http:show-url url :stream stream :headers headers)) ,@body)))))) #+(and (not :aserve) (not :cl-http)) (defmacro with-input-from-url ((stream url &key close-manually-p) &body body) (declare (ignorable close-manually-p)) `(if (owlapi:is-file-url-p ,url) (let ((,stream (open (without-file-prefix ,url) :direction :input))) ,@body) (let ((string (dex:get ,url))) ;; (pprint string) (with-input-from-string (,stream string) ,@body))))
9,390
Common Lisp
.lisp
199
40.80402
99
0.626834
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
6b1f85d969d261034a7b9e6c205e6284f230968fe61604f70b03f7fb89913c9d
6,342
[ -1 ]
6,343
owl-syntaxes-test.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owl-syntaxes-test.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owl-syntaxes-test.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Demo and tests for the OWL 2 and OWLlink parsing and rendering functionality. ;;; (defun temp-directory () "ontolisp:test;temp;") (defun full-reset () (owlapi::owlapi-init)) (defun read-owlapi-ontology (file &rest args) (apply #'|OWLAPI-readOntology| (format nil "file://~A" (namestring (translate-logical-pathname (format nil "ontolisp-test:~A" file)))) args)) (defun read-owlapi-ontology-from-temp (file &rest args) (apply #'|OWLAPI-readOntology| (format nil "file://~A" (namestring (translate-logical-pathname (format nil "ontolisp-test:temp;~A" file)))) args)) (defun write-owlapi-ontology-file (file &rest args) (apply #'|OWLAPI-saveOntology| (first (|OWLAPI-getOntologies|)) (format nil "~A~A" (temp-directory) file) args)) ;;; ;;; ;;; (defun owl-syntaxes-test () (let ((*count* 0) (*demo* 0) (*package* (find-package :owl-syntaxes))) (progn (incf *demo*) ;; Demo 1: An ontology OWL 2 functional ontology can be parsed ;; from a file or http URL (this is why s-http-client is used ;; for in OntoLisp). Note that an OWLAPI reasoner container is ;; created for the whole request and named after the URL (unless ;; specified via the :reasoner keyword), and for each imported ;; ontology, a corresponding ontology container. I.e., the ;; reasoner ;; |file:///home/mi.wessel/nosa/test/people-pets-newest.funct| ;; contains the ontology container ;; |http://cohse.semanticweb.org/ontologies/people| (that's the ;; ontology URL / name specified in the file). In principle, the ;; OWLAPI axioms can be mainted / kept, or not. Axiom objects ;; may require a lot of memory for larger ontologies. Note that, ;; it maintain-owlapi-axioms nil is specified, no axioms will be ;; created, and every OWLAPI constructor call will directly be ;; comminucated to the DL reasoner. However, axioms can then ;; neither be unloaded incrementally nor ontologies rendered ;; (see below). Also note that |OWLAPI-readOntology| has some ;; important keyword arguments regarding the handling of imports ;; of ontologies (please consult the function ;; "owlapi-process-functional-ontology" for the arguments): (demo (full-reset)) (demo (read-owlapi-ontology "people-pets-newest.funct" :maintain-owlapi-axioms nil)) (demo (|OWLAPI-getOntologies|)) (demo (|OWLAPI-getReasoners|))) (progn (incf *demo*) ;; Demo 2: The OWL 2 parser understands OWL 2 functional syntax ;; and OWL 2 XML syntax. OWL 2 RDF will be added in a later ;; version. If the told information is kept, i.e., the ontology ;; axioms are maintained, then it is possible to use OntoLisp as ;; a syntax converter, and render ontologies in all major OWL 2 ;; syntaxes as follow. Note that these generated files are ;; under "ontolisp:test;temp;": (demo (full-reset)) (demo (read-owlapi-ontology "people-pets-newest.funct" :maintain-owlapi-axioms t)) (demo (owlapi-get-axioms)) (demo (write-owlapi-ontology-file "people-pets-newest.owf" :syntax :owl-functional)) (demo (write-owlapi-ontology-file "people-pets-newest.owx" :syntax :owl-xml)) (demo (write-owlapi-ontology-file "people-pets-newest.owl" :syntax :owl-rdf))) (progn (incf *demo*) ;; Demo 3: Here we just demonstrate that the just produced ;; converted ontologies can be parsed: (demo (full-reset)) (demo (read-owlapi-ontology-from-temp "people-pets-newest.owf" :maintain-owlapi-axioms t)) (demo (owlapi-get-axioms)) (demo (full-reset)) (demo (read-owlapi-ontology-from-temp "people-pets-newest.owx" :maintain-owlapi-axioms t)) (demo (owlapi-get-axioms)) (demo (full-reset)) #+:ignore (demo (read-owlapi-ontology-from-temp "people-pets-newest.owl" :maintain-owlapi-axioms t)) (demo (owlapi-get-axioms))) (progn (incf *demo*) ;; Demo 4: Some more simple parsing tests: (dolist (fn '("owl-primer.funct" "owl-primer-mod.ofn" "people-pets-newest.funct" "owl-primer-mod.owx")) (demo (full-reset)) (demo (read-owlapi-ontology fn :maintain-owlapi-axioms t)) (demo (owlapi-get-axioms)))) (progn ;; Demo 5: OWLlink demo. We are processing a simple OWLlink XML ;; request. Note that this gives no reasonable ResponseMessage, ;; since the corresponding dummy functions do not really work. ;; Still, the overall framework is working, e.g., an ontology ;; with axioms for the corresponding CreateKB and Tell ;; statements have been created in the OWLAPI: (incf *demo*) (demo (full-reset)) (demo (owllink-read-file1 "ontolisp-test:owllink-test-request.xml" :maintain-owlapi-axioms t)) (demo (owlapi-get-axioms))) (progn ;; Demo 6: OntoLisp contains an OWLlink converter. There are ;; currently three bindings for OWLlink defined (OWLlink XML, ;; OWLlink Functional, and OWLlink S-Expressions). This ;; convertes owllink-test-request.xml in OWLlink XML syntax into ;; OWLlink functional and OWLlink S-Expression syntax: (incf *demo*) (setf owlapi::*dummy-function-output* nil) (demo (full-reset)) (demo (convert-all (translate-logical-pathname "ontolisp-test:")))) (progn ;; Demo 7: Demonstrate that the generated / converted OWLlink ;; messages can in principle be processed. Note that the ;; Response messages contain errors, of course (since only the ;; dummy functions are called), but OWLAPI axiom parsing and ;; handling works: (incf *demo*) (setf owlapi::*dummy-function-output* nil) (demo (full-reset)) (demo (process-all (translate-logical-pathname "ontolisp-test:")))) (progn (setf owlapi::*dummy-function-output* t))))
11,283
Common Lisp
.lisp
212
47.415094
100
0.669715
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
76de30552ad6f8ac44a927030140bacd5eaee534dbc1b62fb10930d22ab41624
6,343
[ -1 ]
6,344
owlapi-synonyms.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owlapi-synonyms.lisp
;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWLAPI; Base: 10 -*- (in-package :owlapi) ;;; ;;;; owlapi-synonyms.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Provide synonyms for |OWLAPI-...| functions which are more Lisp-friendly. ;;; ;;; ;;;---------------------------------------------- ;;; Automatically Generated OWLAPI Synonyms ;;; Version: 2.0, Build: 2010-06-18 ;;; Date: June 21 2010, 13:31 ;;;---------------------------------------------- ;;; (progn (owlapi-defun (owlapi-write-xml-ontology-file) (&rest common-lisp-user::args) (apply #'|OWLAPI-writeXMLOntologyFile| common-lisp-user::args)) (owlapi-defun (owlapi-write-ontology-file) (&rest common-lisp-user::args) (apply #'|OWLAPI-writeOntologyFile| common-lisp-user::args)) (owlapi-defun (owlapi-write-functional-ontology-file) (&rest common-lisp-user::args) (apply #'|OWLAPI-writeFunctionalOntologyFile| common-lisp-user::args)) (owlapi-defun (owlapi-uses-simplified-protocol) (&rest common-lisp-user::args) (apply #'|OWLAPI-usesSimplifiedProtocol| common-lisp-user::args)) (owlapi-defun (owlapi-uses-incremental-updates) (&rest common-lisp-user::args) (apply #'|OWLAPI-usesIncrementalUpdates| common-lisp-user::args)) (owlapi-defun (owlapi-unload-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-unloadOntology| common-lisp-user::args)) (owlapi-defun (owlapi-unload-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-unloadOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-unload-axioms) (&rest common-lisp-user::args) (apply #'|OWLAPI-unloadAxioms| common-lisp-user::args)) (owlapi-defun (owlapi-unload-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-unloadAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-store-image) (&rest common-lisp-user::args) (apply #'|OWLAPI-storeImage| common-lisp-user::args)) (owlapi-defun (owlapi-set-return-policy) (&rest common-lisp-user::args) (apply #'|OWLAPI-setReturnPolicy| common-lisp-user::args)) (owlapi-defun (owlapi-set-current-reasoner) (&rest common-lisp-user::args) (apply #'|OWLAPI-setCurrentReasoner| common-lisp-user::args)) (owlapi-defun (owlapi-set-axiom-counter) (&rest common-lisp-user::args) (apply #'|OWLAPI-setAxiomCounter| common-lisp-user::args)) (owlapi-defun (owlapi-set-auto-declare-data-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-setAutoDeclareDataProperties| common-lisp-user::args)) (owlapi-defun (owlapi-save-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-saveOntology| common-lisp-user::args)) (owlapi-defun (owlapi-restore-image) (&rest common-lisp-user::args) (apply #'|OWLAPI-restoreImage| common-lisp-user::args)) (owlapi-defun (owlapi-reset-axiom-counter) (&rest common-lisp-user::args) (apply #'|OWLAPI-resetAxiomCounter| common-lisp-user::args)) (owlapi-defun (owlapi-remove-prefix) (&rest common-lisp-user::args) (apply #'|OWLAPI-removePrefix| common-lisp-user::args)) (owlapi-defun (owlapi-remove-axioms) (&rest common-lisp-user::args) (apply #'|OWLAPI-removeAxioms| common-lisp-user::args)) (owlapi-defun (owlapi-remove-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-removeAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-reload-loaded-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-reloadLoadedOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-register-referenced-entities) (&rest common-lisp-user::args) (apply #'|OWLAPI-registerReferencedEntities| common-lisp-user::args)) (owlapi-defun (owlapi-register-object) (&rest common-lisp-user::args) (apply #'|OWLAPI-registerObject| common-lisp-user::args)) (owlapi-defun (owlapi-register-last-answer) (&rest common-lisp-user::args) (apply #'|OWLAPI-registerLastAnswer| common-lisp-user::args)) (owlapi-defun (owlapi-register-declared-entities) (&rest common-lisp-user::args) (apply #'|OWLAPI-registerDeclaredEntities| common-lisp-user::args)) (owlapi-defun (owlapi-realize) (&rest common-lisp-user::args) (apply #'|OWLAPI-realize| common-lisp-user::args)) (owlapi-defun (owlapi-read-xml-ontology-file) (&rest common-lisp-user::args) (apply #'|OWLAPI-readXMLOntologyFile| common-lisp-user::args)) (owlapi-defun (owlapi-read-xml-ontology-document) (&rest common-lisp-user::args) (apply #'|OWLAPI-readXMLOntologyDocument| common-lisp-user::args)) (owlapi-defun (owlapi-read-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-readOntology| common-lisp-user::args)) (owlapi-defun (owlapi-read-functional-ontology-file) (&rest common-lisp-user::args) (apply #'|OWLAPI-readFunctionalOntologyFile| common-lisp-user::args)) (owlapi-defun (owlapi-read-functional-ontology-document) (&rest common-lisp-user::args) (apply #'|OWLAPI-readFunctionalOntologyDocument| common-lisp-user::args)) (owlapi-defun (owlapi-parse-native) (&rest common-lisp-user::args) (apply #'|OWLAPI-parseNative| common-lisp-user::args)) (owlapi-defun (owlapi-parse) (&rest common-lisp-user::args) (apply #'|OWLAPI-parse| common-lisp-user::args)) (owlapi-defun (owlapi-next-axiom-use-id) (&rest common-lisp-user::args) (apply #'|OWLAPI-nextAxiomUseID| common-lisp-user::args)) (owlapi-defun (owlapi-new-reasoner) (&rest common-lisp-user::args) (apply #'|OWLAPI-newReasoner| common-lisp-user::args)) (owlapi-defun (owlapi-new-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-newOntology| common-lisp-user::args)) (owlapi-defun (owlapi-merge-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-mergeOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-manually-apply-changes) (&rest common-lisp-user::args) (apply #'|OWLAPI-manuallyApplyChanges| common-lisp-user::args)) (owlapi-defun (owlapi-load-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-loadOntology| common-lisp-user::args)) (owlapi-defun (owlapi-load-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-loadOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-load-axioms) (&rest common-lisp-user::args) (apply #'|OWLAPI-loadAxioms| common-lisp-user::args)) (owlapi-defun (owlapi-load-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-loadAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-keep-annotations) (&rest common-lisp-user::args) (apply #'|OWLAPI-keepAnnotations| common-lisp-user::args)) (owlapi-defun (owlapi-is-transitive) (&rest common-lisp-user::args) (apply #'|OWLAPI-isTransitive| common-lisp-user::args)) (owlapi-defun (owlapi-is-symmetric) (&rest common-lisp-user::args) (apply #'|OWLAPI-isSymmetric| common-lisp-user::args)) (owlapi-defun (owlapi-is-sub-class-of) (&rest common-lisp-user::args) (apply #'|OWLAPI-isSubClassOf| common-lisp-user::args)) (owlapi-defun (owlapi-is-satisfiable) (&rest common-lisp-user::args) (apply #'|OWLAPI-isSatisfiable| common-lisp-user::args)) (owlapi-defun (owlapi-is-same-individual) (&rest common-lisp-user::args) (apply #'|OWLAPI-isSameIndividual| common-lisp-user::args)) (owlapi-defun (owlapi-is-reflexive) (&rest common-lisp-user::args) (apply #'|OWLAPI-isReflexive| common-lisp-user::args)) (owlapi-defun (owlapi-is-realised) (&rest common-lisp-user::args) (apply #'|OWLAPI-isRealised| common-lisp-user::args)) (owlapi-defun (owlapi-is-irreflexive) (&rest common-lisp-user::args) (apply #'|OWLAPI-isIrreflexive| common-lisp-user::args)) (owlapi-defun (owlapi-is-inverse-functional) (&rest common-lisp-user::args) (apply #'|OWLAPI-isInverseFunctional| common-lisp-user::args)) (owlapi-defun (owlapi-is-functional) (&rest common-lisp-user::args) (apply #'|OWLAPI-isFunctional| common-lisp-user::args)) (owlapi-defun (owlapi-is-equivalent-class) (&rest common-lisp-user::args) (apply #'|OWLAPI-isEquivalentClass| common-lisp-user::args)) (owlapi-defun (owlapi-is-different-individual) (&rest common-lisp-user::args) (apply #'|OWLAPI-isDifferentIndividual| common-lisp-user::args)) (owlapi-defun (owlapi-is-defined-object-property) (&rest common-lisp-user::args) (apply #'|OWLAPI-isDefinedObjectProperty| common-lisp-user::args)) (owlapi-defun (owlapi-is-defined-individual) (&rest common-lisp-user::args) (apply #'|OWLAPI-isDefinedIndividual| common-lisp-user::args)) (owlapi-defun (owlapi-is-defined-data-property) (&rest common-lisp-user::args) (apply #'|OWLAPI-isDefinedDataProperty| common-lisp-user::args)) (owlapi-defun (owlapi-is-defined-class) (&rest common-lisp-user::args) (apply #'|OWLAPI-isDefinedClass| common-lisp-user::args)) (owlapi-defun (owlapi-is-consistent) (&rest common-lisp-user::args) (apply #'|OWLAPI-isConsistent| common-lisp-user::args)) (owlapi-defun (owlapi-is-classified) (&rest common-lisp-user::args) (apply #'|OWLAPI-isClassified| common-lisp-user::args)) (owlapi-defun (owlapi-is-class) (&rest common-lisp-user::args) (apply #'|OWLAPI-isClass| common-lisp-user::args)) (owlapi-defun (owlapi-is-asymmetric) (&rest common-lisp-user::args) (apply #'|OWLAPI-isAsymmetric| common-lisp-user::args)) (owlapi-defun (owlapi-init) (&rest common-lisp-user::args) (apply #'|OWLAPI-init| common-lisp-user::args)) (owlapi-defun (owlapi-ignore-declarations) (&rest common-lisp-user::args) (apply #'|OWLAPI-ignoreDeclarations| common-lisp-user::args)) (owlapi-defun (owlapi-ignore-annotations) (&rest common-lisp-user::args) (apply #'|OWLAPI-ignoreAnnotations| common-lisp-user::args)) (owlapi-defun (owlapi-has-type) (&rest common-lisp-user::args) (apply #'|OWLAPI-hasType| common-lisp-user::args)) (owlapi-defun (owlapi-has-object-property-relationship) (&rest common-lisp-user::args) (apply #'|OWLAPI-hasObjectPropertyRelationship| common-lisp-user::args)) (owlapi-defun (owlapi-has-data-property-relationship) (&rest common-lisp-user::args) (apply #'|OWLAPI-hasDataPropertyRelationship| common-lisp-user::args)) (owlapi-defun (owlapi-get-types) (&rest common-lisp-user::args) (apply #'|OWLAPI-getTypes| common-lisp-user::args)) (owlapi-defun (owlapi-get-super-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getSuperProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-super-classes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getSuperClasses| common-lisp-user::args)) (owlapi-defun (owlapi-get-sub-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getSubProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-sub-classes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getSubClasses| common-lisp-user::args)) (owlapi-defun (owlapi-get-same-individuals) (&rest common-lisp-user::args) (apply #'|OWLAPI-getSameIndividuals| common-lisp-user::args)) (owlapi-defun (owlapi-get-related-values) (&rest common-lisp-user::args) (apply #'|OWLAPI-getRelatedValues| common-lisp-user::args)) (owlapi-defun (owlapi-get-related-individuals) (&rest common-lisp-user::args) (apply #'|OWLAPI-getRelatedIndividuals| common-lisp-user::args)) (owlapi-defun (owlapi-get-reasoners) (&rest common-lisp-user::args) (apply #'|OWLAPI-getReasoners| common-lisp-user::args)) (owlapi-defun (owlapi-get-ranges) (&rest common-lisp-user::args) (apply #'|OWLAPI-getRanges| common-lisp-user::args)) (owlapi-defun (owlapi-get-prefixes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getPrefixes| common-lisp-user::args)) (owlapi-defun (owlapi-get-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-get-object-property-relationships) (&rest common-lisp-user::args) (apply #'|OWLAPI-getObjectPropertyRelationships| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-transitive-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLTransitiveObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-symmetric-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLSymmetricObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-sub-class-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLSubClassAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-sub-annotation-property-of-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLSubAnnotationPropertyOfAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-sub-annotation-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLSubAnnotationPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-same-individuals-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLSameIndividualsAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-reflexive-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLReflexiveObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-really-implicit-declaration-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLReallyImplicitDeclarationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-prefix-declaration-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLPrefixDeclarationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-ontology-version-declaration-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLOntologyVersionDeclarationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-ontology-annotation-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLOntologyAnnotationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-object-sub-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLObjectSubPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-object-property-range-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLObjectPropertyRangeAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-object-property-domain-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLObjectPropertyDomainAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-object-property-chain-sub-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLObjectPropertyChainSubPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-object-property-assertion-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLObjectPropertyAssertionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-negative-object-property-assertion-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-negative-data-property-assertion-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-irreflexive-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLIrreflexiveObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-inverse-object-properties-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLInverseObjectPropertiesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-inverse-functional-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLInverseFunctionalObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-imports-declaration-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLImportsDeclarationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-implicit-declaration-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLImplicitDeclarationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-has-key-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLHasKeyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-functional-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLFunctionalObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-functional-data-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLFunctionalDataPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-equivalent-object-properties-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLEquivalentObjectPropertiesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-equivalent-data-properties-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLEquivalentDataPropertiesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-equivalent-classes-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLEquivalentClassesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-entity-annotation-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLEntityAnnotationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-disjoint-union-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDisjointUnionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-disjoint-object-properties-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDisjointObjectPropertiesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-disjoint-data-properties-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDisjointDataPropertiesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-disjoint-classes-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDisjointClassesAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-different-individuals-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDifferentIndividualsAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-declaration-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDeclarationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-datatype-definition-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDatatypeDefinitionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-data-sub-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDataSubPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-data-property-range-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDataPropertyRangeAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-data-property-domain-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDataPropertyDomainAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-data-property-assertion-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLDataPropertyAssertionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-class-assertion-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLClassAssertionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-axiom-annotation-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLAxiomAnnotationAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-asymmetric-object-property-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLAsymmetricObjectPropertyAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-annotation-property-range-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLAnnotationPropertyRangeAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-annotation-property-domain-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLAnnotationPropertyDomainAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-owl-annotation-assertion-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getOWLAnnotationAssertionAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-loaded-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-getLoadedOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-get-inverse-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getInverseProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-individuals) (&rest common-lisp-user::args) (apply #'|OWLAPI-getIndividuals| common-lisp-user::args)) (owlapi-defun (owlapi-get-inconsistent-classes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getInconsistentClasses| common-lisp-user::args)) (owlapi-defun (owlapi-get-equivalent-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getEquivalentProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-equivalent-classes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getEquivalentClasses| common-lisp-user::args)) (owlapi-defun (owlapi-get-domains) (&rest common-lisp-user::args) (apply #'|OWLAPI-getDomains| common-lisp-user::args)) (owlapi-defun (owlapi-get-different-individuals) (&rest common-lisp-user::args) (apply #'|OWLAPI-getDifferentIndividuals| common-lisp-user::args)) (owlapi-defun (owlapi-get-descendant-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getDescendantProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-descendant-classes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getDescendantClasses| common-lisp-user::args)) (owlapi-defun (owlapi-get-data-property-relationships) (&rest common-lisp-user::args) (apply #'|OWLAPI-getDataPropertyRelationships| common-lisp-user::args)) (owlapi-defun (owlapi-get-current-reasoner) (&rest common-lisp-user::args) (apply #'|OWLAPI-getCurrentReasoner| common-lisp-user::args)) (owlapi-defun (owlapi-get-changes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getChanges| common-lisp-user::args)) (owlapi-defun (owlapi-get-axioms-per-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAxiomsPerOntology| common-lisp-user::args)) (owlapi-defun (owlapi-get-axioms-of-type-in) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAxiomsOfTypeIn| common-lisp-user::args)) (owlapi-defun (owlapi-get-axioms-of-type) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAxiomsOfType| common-lisp-user::args)) (owlapi-defun (owlapi-get-axioms-in) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAxiomsIn| common-lisp-user::args)) (owlapi-defun (owlapi-get-axioms) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAxioms| common-lisp-user::args)) (owlapi-defun (owlapi-get-axiom-counter) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAxiomCounter| common-lisp-user::args)) (owlapi-defun (owlapi-get-auto-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAutoOntology| common-lisp-user::args)) (owlapi-defun (owlapi-get-auto-declare-data-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAutoDeclareDataProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-annotation-axioms-for-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAnnotationAxiomsForAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-get-ancestor-properties) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAncestorProperties| common-lisp-user::args)) (owlapi-defun (owlapi-get-ancestor-classes) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAncestorClasses| common-lisp-user::args)) (owlapi-defun (owlapi-get-all-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-getAllOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-find-object-from-id) (&rest common-lisp-user::args) (apply #'|OWLAPI-findObjectFromID| common-lisp-user::args)) (owlapi-defun (owlapi-find-id-from-object) (&rest common-lisp-user::args) (apply #'|OWLAPI-findIDFromObject| common-lisp-user::args)) (owlapi-defun (owlapi-export-reasoner) (&rest common-lisp-user::args) (apply #'|OWLAPI-exportReasoner| common-lisp-user::args)) (owlapi-defun (owlapi-export-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-exportOntology| common-lisp-user::args)) (owlapi-defun (owlapi-enable-transient-axiom-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-enableTransientAxiomMode| common-lisp-user::args)) (owlapi-defun (owlapi-enable-simplified-protocol) (&rest common-lisp-user::args) (apply #'|OWLAPI-enableSimplifiedProtocol| common-lisp-user::args)) (owlapi-defun (owlapi-enable-memory-saving-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-enableMemorySavingMode| common-lisp-user::args)) (owlapi-defun (owlapi-enable-lookup-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-enableLookupMode| common-lisp-user::args)) (owlapi-defun (owlapi-enable-incremental-updates) (&rest common-lisp-user::args) (apply #'|OWLAPI-enableIncrementalUpdates| common-lisp-user::args)) (owlapi-defun (owlapi-dont-register-referenced-entities) (&rest common-lisp-user::args) (apply #'|OWLAPI-dontRegisterReferencedEntities| common-lisp-user::args)) (owlapi-defun (owlapi-dont-register-declared-entities) (&rest common-lisp-user::args) (apply #'|OWLAPI-dontRegisterDeclaredEntities| common-lisp-user::args)) (owlapi-defun (owlapi-dispose-reasoner) (&rest common-lisp-user::args) (apply #'|OWLAPI-disposeReasoner| common-lisp-user::args)) (owlapi-defun (owlapi-dispose-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-disposeOntology| common-lisp-user::args)) (owlapi-defun (owlapi-dispose-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-disposeOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-dispose-axioms) (&rest common-lisp-user::args) (apply #'|OWLAPI-disposeAxioms| common-lisp-user::args)) (owlapi-defun (owlapi-dispose-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-disposeAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-dispose) (&rest common-lisp-user::args) (apply #'|OWLAPI-dispose| common-lisp-user::args)) (owlapi-defun (owlapi-disable-transient-axiom-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-disableTransientAxiomMode| common-lisp-user::args)) (owlapi-defun (owlapi-disable-simplified-protocol) (&rest common-lisp-user::args) (apply #'|OWLAPI-disableSimplifiedProtocol| common-lisp-user::args)) (owlapi-defun (owlapi-disable-memory-saving-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-disableMemorySavingMode| common-lisp-user::args)) (owlapi-defun (owlapi-disable-lookup-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-disableLookupMode| common-lisp-user::args)) (owlapi-defun (owlapi-disable-incremental-updates) (&rest common-lisp-user::args) (apply #'|OWLAPI-disableIncrementalUpdates| common-lisp-user::args)) (owlapi-defun (owlapi-disable-auto-mode) (&rest common-lisp-user::args) (apply #'|OWLAPI-disableAutoMode| common-lisp-user::args)) (owlapi-defun (owlapi-describe-reasoners) (&rest common-lisp-user::args) (apply #'|OWLAPI-describeReasoners| common-lisp-user::args)) (owlapi-defun (owlapi-describe-reasoner) (&rest common-lisp-user::args) (apply #'|OWLAPI-describeReasoner| common-lisp-user::args)) (owlapi-defun (owlapi-describe-ontology) (&rest common-lisp-user::args) (apply #'|OWLAPI-describeOntology| common-lisp-user::args)) (owlapi-defun (owlapi-describe-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-describeOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-contains) (&rest common-lisp-user::args) (apply #'|OWLAPI-contains| common-lisp-user::args)) (owlapi-defun (owlapi-consider-declarations) (&rest common-lisp-user::args) (apply #'|OWLAPI-considerDeclarations| common-lisp-user::args)) (owlapi-defun (owlapi-clear-registry) (&rest common-lisp-user::args) (apply #'|OWLAPI-clearRegistry| common-lisp-user::args)) (owlapi-defun (owlapi-clear-ontologies) (&rest common-lisp-user::args) (apply #'|OWLAPI-clearOntologies| common-lisp-user::args)) (owlapi-defun (owlapi-clear-changes) (&rest common-lisp-user::args) (apply #'|OWLAPI-clearChanges| common-lisp-user::args)) (owlapi-defun (owlapi-classify) (&rest common-lisp-user::args) (apply #'|OWLAPI-classify| common-lisp-user::args)) (owlapi-defun (owlapi-batch-synchronize) (&rest common-lisp-user::args) (apply #'|OWLAPI-batchSynchronize| common-lisp-user::args)) (owlapi-defun (owlapi-auto-remove-axioms-from) (&rest common-lisp-user::args) (apply #'|OWLAPI-autoRemoveAxiomsFrom| common-lisp-user::args)) (owlapi-defun (owlapi-auto-batch-remove-axioms-from) (&rest common-lisp-user::args) (apply #'|OWLAPI-autoBatchRemoveAxiomsFrom| common-lisp-user::args)) (owlapi-defun (owlapi-auto-batch-add-axioms-to) (&rest common-lisp-user::args) (apply #'|OWLAPI-autoBatchAddAxiomsTo| common-lisp-user::args)) (owlapi-defun (owlapi-auto-apply-changes) (&rest common-lisp-user::args) (apply #'|OWLAPI-autoApplyChanges| common-lisp-user::args)) (owlapi-defun (owlapi-auto-add-axioms-to) (&rest common-lisp-user::args) (apply #'|OWLAPI-autoAddAxiomsTo| common-lisp-user::args)) (owlapi-defun (owlapi-apply-changes) (&rest common-lisp-user::args) (apply #'|OWLAPI-applyChanges| common-lisp-user::args)) (owlapi-defun (owlapi-add-prefix) (&rest common-lisp-user::args) (apply #'|OWLAPI-addPrefix| common-lisp-user::args)) (owlapi-defun (owlapi-add-axioms) (&rest common-lisp-user::args) (apply #'|OWLAPI-addAxioms| common-lisp-user::args)) (owlapi-defun (owlapi-add-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-addAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-set-ontology-uri) (&rest common-lisp-user::args) (apply #'|OWLAPI-SetOntologyURI| common-lisp-user::args)) (owlapi-defun (owlapi-id-to-axiom) (&rest common-lisp-user::args) (apply #'|OWLAPI-IDToAxiom| common-lisp-user::args)) (owlapi-defun (owlapi-axiom-to-id) (&rest common-lisp-user::args) (apply #'|OWLAPI-AxiomToID| common-lisp-user::args)) (owlapi-defun (owlapi-axiom-loaded?) (&rest common-lisp-user::args) (apply #'|OWLAPI-AxiomLoaded?| common-lisp-user::args)))
37,749
Common Lisp
.lisp
692
47.593931
90
0.679216
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
fb85710c3a2e9a375aa65342280647a2a25f47eb2137d9b9a3a771e80dea2182
6,344
[ -1 ]
6,345
owlapi-test.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owlapi-test.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWLAPI; Base: 10 -*- (in-package :owlapi) ;;; ;;;; owlapi-test.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Demo and tests for the OWLAPI functionality. ;;; (defvar *count* 0) (defvar *demo* 0) (defmacro demo (expr) `(progn (incf *count*) (format t "~%~%Demo ~A, Expression ~A:~%" *demo* *count*) (pprint ',expr) (let ((res ,expr)) (terpri) (princ " ===>") (pprint res) res))) (defun owlapi-test () (let ((*count* 0) (*demo* 0)) (progn (incf *demo*) ;; Demo 1: Demonstrate basic OWLAPI managment ;; OWLAPI-init creates a default OWLAPI reasoner container called ;; "OWLAPI-KB" (and disposes all existing reasoners). A reasoner ;; container (reasoner for short) contains a set of ontology ;; containers (ontologies for short), and maintains a set of ;; axioms. Axioms can be added to or removed from an ontology of ;; that reasoner. An ontology, wenn loaded into the description ;; logic reasoner, is loaded into a TBox / ABox whose name is ;; determined by the reasoner container. A reasoner also offers ;; some additional functionality, e.g. registry for entities, ;; etc. (demo (|OWLAPI-init|)) (demo (|OWLAPI-getCurrentReasoner|)) ;; a new ontology test is added to the current reasoner (default reasoner OWLAPI-KB) (demo (|OWLAPI-newOntology| 'test)) ;; another ontology is added to this reasoner. (demo (|OWLAPI-newOntology| 'test2 (|OWLAPI-getCurrentReasoner|))) ;; we have two ontology containers now in the current reasoner: (demo (|OWLAPI-getOntologies|)) (demo (|OWLAPI-getOntologies| '|OWLAPI-KB|)) ;; we create an OWLClassAssertionAxiom. The syntax for individuals ;; and class expressions is the extended KRSS-syntax of the ;; RacerPro reasoner. The axiom constructor returns the axiom ID. ;; After creation, the axiom resides in the reasoner container. ;; Note that there is an axiom constructor for each OWL 2 axiom ;; type. Please consult the source code. (let ((axiom (demo (|OWLAPI-getOWLClassAssertionAxiom| '(and c d) 'i)))) ;; to add an axiom to an ontology, we use its axiom ID. An ;; axiom can be a member of multiple ontologies of the same ;; reasoner So, ontologies just "partition" axiom sets of a ;; reasoner container Ontologies can be loaded or unloaded. (demo (|OWLAPI-AddAxiom| 'test axiom)) (demo (|OWLAPI-AddAxiom| 'test2 axiom))) ;; as in the Java OWLAPI, adding or removing an axiom does not ;; automatically have an effect. Rather, a change object is ;; created and the changes have to be applied / performed in order ;; to become effective. So, the axiom will not be added to the 2 ;; ontologies until we perform the changes as woll: (demo (|OWLAPI-getChanges|)) (demo (|OWLAPI-applyChanges|)) ;; rather than adding axioms by ID, we can also use the axiom's ;; constructor call. Again, we have to apply the changes: (demo (|OWLAPI-AddAxiom| 'test2 (|OWLAPI-getOWLSubClassAxiom| 'person 'animal))) (demo (|OWLAPI-getChanges|)) (demo (|OWLAPI-applyChanges|)) ;; there are various ways to look at the different types of axioms ;; in the reasoners and ontologies, please take a look at the source ;; for more functions: (demo (|OWLAPI-getAxiomsIn| 'test)) (demo (|OWLAPI-getAxiomsIn| 'test2)) (demo (|OWLAPI-getAxioms|)) (demo (|OWLAPI-getAxioms| (|OWLAPI-getCurrentReasoner|) t t :unloaded)) ;; finally, we want to load the ontologies in the description ;; logic reasoner. A TBox / ABox pair "OWLAPI-KB" (the name of the ;; default reasoner) are created, and the axioms in the ontologies ;; of that reasoner can be loaded as follows. Note that this ;; brings up some "dummy function called" output. No DL reasoner ;; is supplied with this source. You will have to implement / replace ;; these "dummy functions" with the actual API calls of your DL ;; reasoner: (demo (|OWLAPI-loadOntology| 'test)) (demo (|OWLAPI-loadOntology| 'test2)) ;; an axiom can either be loaded or not loaded: (demo (|OWLAPI-getAxioms| (|OWLAPI-getCurrentReasoner|) t t :loaded)) ;; once the axioms are loaded into the DL reasoner, the OWLAPI ;; query functions can be used. Of course, they only return nil ;; here since no real DL reasoner is provided / attached. But note ;; that the dummy function retrieve-concept-instances is called. ;; There are many many more query functions. Please take a look at ;; the source code. (demo (|OWLAPI-getIndividuals| 'c nil)) (demo (|OWLAPI-getIndividuals| 'd nil)) ;; axioms can also be removed from an ontology container. Either ;; via its axioms ID, or by means of the construtor call. Note ;; that this doesn't dispose the axiom. It still exists in the ;; reasoner container and could be added again to the ontology ;; (however, there is also |OWLAPI-disposeAxiom|): (demo (|OWLAPI-RemoveAxiom| 'test2 (|OWLAPI-getOWLSubClassAxiom| 'person 'animal))) (demo (|OWLAPI-getChanges|)) (demo (|OWLAPI-applyChanges|)) (demo (|OWLAPI-getAxiomsIn| 'test2)) ;; no more changes: (demo (|OWLAPI-getChanges|)) ;; a reasoner also maintains a simple registry: (let ((id (demo (|OWLAPI-registerObject| '(or C top (or D X Y)))))) (demo (|OWLAPI-getIndividuals| id nil))) ;; unloading an ontology means removing the axioms it contains ;; from the DL reasoner state: (demo (|OWLAPI-unloadOntology| 'test)) (demo (|OWLAPI-loadOntology| 'test)) (demo (|OWLAPI-describeReasoner|)) ;; dispose the ontology. Note that its axioms are not ;; automatically disposed. After all, an axioms doesn't belong to ;; an ontology, but rather to the reasoner. An ontology may only ;; "contain" the axiom. In case the ontology is loaded and disposed, ;; its axioms are automatically unloaded from the DL reasoner: (demo (|OWLAPI-disposeOntology| 'test)) ;; please note that for each |OWLAPI-...| function, there is ;; also a synonym function which has a name more suitable for ;; Lisp. The |OWLAPI-...| naming convention was taken to have a ;; close correspondance with the Java (2.2) OWLAPI. Please take ;; a look at owlapi-synonyms.lisp which contains these more ;; Lisp-like synonym functions: (demo (owlapi-get-axioms)) ;; The ontology is gone: (demo (owlapi-get-ontologies)) ;; of course, we can dispose our reasoner as well (in case the ;; default reasoner, OWLAPI-KB, is disposed, it is simply ;; recreated) (demo (owlapi-dispose-reasoner (owlapi-get-current-reasoner))) (demo (owlapi-get-reasoners))) (progn (incf *demo*) ;; Demo 2: having to use addAxiom / removeAxiom can be ;; cumbersome. Therefor, these additions / removals can be ;; performed automatically by enabling, for a given ontology of ;; a reasoner, the so-called "auto add" or "auto remove" mode. ;; Still, the add / remove changes for the ontologies must be ;; applied manually (but see below for more options): (demo (|OWLAPI-init|)) (demo (|OWLAPI-newReasoner| 'reasoner)) (demo (|OWLAPI-getOntologies| 'reasoner)) (demo (|OWLAPI-getCurrentReasoner|)) (demo (|OWLAPI-newOntology| 'ontology)) ;; here, we have now an ontology in the reasoner (demo (|OWLAPI-getOntologies| 'reasoner)) ;; we automatically want to add all freshly constructed ;; axioms for that reasoner to the ontology of that reasoner: (demo (|OWLAPI-autoAddAxiomsTo| 'ontology)) ;; if we load the ontology at that state (containing no axioms), ;; then this will ensure that each constructed axiom will not ;; only automatically be added to ontology, but also ;; automatically be loaded into the attached DL reasoner. ;; However, the changes will not be perfomed until applied: (demo (|OWLAPI-loadOntology| 'ontology)) (demo (|OWLAPI-getOWLEquivalentClassesAxiom| '(parent (and (some has-child person))))) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'parent 'john)) (demo (owlapi-get-changes 'reasoner)) (demo (|OWLAPI-getOWLEquivalentClassesAxiom| '(parent (and (some has-child person))))) ;; also in the auto add mode, axioms can be removed or added manually: (demo (|OWLAPI-RemoveAxiom| 'ontology (|OWLAPI-getOWLEquivalentClassesAxiom| '(parent (and (some has-child person)))))) (demo (|OWLAPI-AddAxiom| 'ontology (|OWLAPI-getOWLEquivalentClassesAxiom| '(parent (and (some has-child person)))))) (demo (|OWLAPI-getChanges|)) (demo (|OWLAPI-applyChanges|)) ;; the analog of the auto add mode is the auto remove mode. Here, each constructor ;; call identified the axiom to be removed. Note that axioms are identified by ;; the rules of OWL 2 structural equivalence. However, in case the axiom is not ;; found in the ontology, an error is signaled: (demo (|OWLAPI-autoRemoveAxiomsFrom| 'ontology)) (demo (|OWLAPI-getOWLEquivalentClassesAxiom| '(parent (and (some has-child person))))) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'parent 'john)) (demo (|OWLAPI-getAxiomsIn| 'ontology)) (demo (|OWLAPI-getAxioms| 'reasoner)) ;; Axioms can also be identified via their IDs, as demonstrated before: (demo (|OWLAPI-autoAddAxiomsTo| 'ontology)) (demo (|OWLAPI-getOWLEquivalentClassesAxiom| '(parent (and (some has-child person))))) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'parent 'john)) (demo (|OWLAPI-getAxiomsIn| 'ontology 'reasoner t)) (demo (|OWLAPI-autoRemoveAxiomsFrom| 'ontology)) (demo (|OWLAPI-RemoveAxiom| 'ontology 3)) (demo (|OWLAPI-RemoveAxiom| 'ontology 4)) (demo (|OWLAPI-getChanges|)) (demo (|OWLAPI-applyChanges|)) (demo (|OWLAPI-getAxiomsIn| 'ontology 'reasoner t)) (demo (|OWLAPI-disposeReasoner| 'reasoner))) (progn (incf *demo*) ;; Demo 3: Per default, axioms are maintained as structures. ;; For huge ontologies, this memory footprint may be too large. ;; Hence, the memory saving mode doesn't maintain the axiom ;; objects, but rather, each constructor call results directly ;; in a call of the corresponding DL reasoner function. Of ;; course, ontologies and change objects become rather ;; pointless then, too. Morever, in the memory saving modew ;; axiom removal / incremental unloaded etc. become impossible, ;; and also OWL rendering will not work (the told information ;; is lost): (demo (|OWLAPI-init|)) (demo (|OWLAPI-newOntology| 'ontology)) (demo (|OWLAPI-enableMemorySavingMode| 'ontology)) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'i 'c)) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'j 'd)) (demo (|OWLAPI-describeReasoner|)) (demo (owlapi-get-changes)) (demo (owlapi-get-axioms))) (progn (incf *demo*) ;; Demo 4: Also change objects require some memory. There is a ;; specifialized auto mode called the "batch" mode where change ;; objects are not explicitly created (so they cannot be ;; inspected and applied etc.), but rather are maintained much ;; more efficently and less memory hungry internally. Instead ;; of |OWLAPI-applyChanges|, |OWLAPI-batchSynchronize| has to ;; be used to perform the (internal) changes to the ontologies: (demo (|OWLAPI-init|)) (demo (|OWLAPI-newOntology| 'ontology)) (demo (|OWLAPI-autoBatchAddAxiomsTo| 'ontology)) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'i 'c)) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'j 'd)) (demo (|OWLAPI-batchSynchronize| 'ontology)) (demo (|OWLAPI-autoBatchRemoveAxiomsFrom| 'ontology)) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'i 'c)) (demo (|OWLAPI-getOWLClassAssertionAxiom| 'j 'd)) (demo (|OWLAPI-batchSynchronize| 'ontology)) (demo (owlapi-get-axioms))) (progn (incf *demo*) ;; Demo 4: Finally, let us demonstrate that axioms may also be ;; constructed by utilizing the OWL 2 functional parser. Please ;; note that more OWL 2 parsing and rendering stuff is presented ;; in owl-syntaxes-test.lisp. This time I am using primarily the ;; more Lisp-friendly OWLAPI synonym functions rather than the ;; |OWLAPI-...| functions: (demo (owlapi-init)) (demo (owlapi-new-ontology 'ontology)) (demo (owlapi-auto-add-axioms-to 'ontology)) (demo (owlapi-get-auto-ontology)) (let ((*package* (find-package :owl-syntaxes))) (demo (owlapi-parse-native "SubClassOf(C D)")) (demo (owlapi-parse-native "EquivalentClasses( :HappyPerson ObjectIntersectionOf( ObjectAllValuesFrom( :hasChild :HappyPerson ) ObjectSomeValuesFrom( :hasChild :HappyPerson ) ))"))) (demo (owlapi-apply-changes)) (demo (owlapi-get-axioms)) (demo (owlapi-load-ontology 'ontology)) ;; in fact, it is even possible to construct whole ontologies ;; and their axioms in that way. However, there are some package ;; issues still: (let ((*package* (find-package :owl-syntaxes))) (demo (owlapi-parse-native "Ontology(<test> SubClassOf(C D) EquivalentClasses( :HappyPerson ObjectIntersectionOf( ObjectAllValuesFrom( :hasChild :HappyPerson ) ObjectSomeValuesFrom( :hasChild :HappyPerson ))))"))) ;; note that this is the ontolgy the parser has just created and ;; populated with axioms: (demo (owlapi-get-ontologies)) (demo (owlapi-load-ontology 'owl-syntaxes::|test|)) (demo (owlapi-dispose-reasoner (owlapi-get-current-reasoner)))) (progn ;; Now, please continue to consult the examples in owl-syntaxes-test.lisp ;; to learn about the OWL 2 parsing and rendering facilities of OntoLisp. ;; This also includes the OWLlink implementation. t)))
20,118
Common Lisp
.lisp
367
46.86921
104
0.655339
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
4d5b1378ee7ab074fd742d68e8dc7e0dc26e383f25d62e25d80f6065fd1ce536
6,345
[ -1 ]
6,346
owlapi-reasoner-bridge.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owlapi-reasoner-bridge.lisp
;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWLAPI; Base: 10 -*- (in-package :owlapi) ;;; ;;;; owlapi-rasoner-bridge.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Example of a concrete OWLAPI reasoner bridge (for RacerPro). ;;; Supplied for illustration purposes only. ;;; (declaim (special owl-syntaxes::*owllink-kb-and-reasoner*)) (defmacro with-current-owllink-kb (&body body) `(let ((owl-syntaxes::*owllink-kb-and-reasoner* (owlapi-tbox *cur-reasoner*))) ,@body)) ;;; ;;; Reasoner Synchronization ;;; (defun reasoner-tbox-sync (tbox) #+:racer-server (racer::ensure-knowledge-base-state ':tbox-prepared (find-tbox tbox))) (defun reasoner-sync (kb) (racer::ensure-knowledge-base-state ':abox-prepared (find-abox kb))) ;;; ;;; Filter ;;; (defun without-bottom (x) (remove-if (lambda (x) (find-if #'reasoner-bottom-concept-p (ensure-list x))) x)) (defun without-top (x) (remove-if (lambda (x) (find-if #'reasoner-top-concept-p (ensure-list x))) x)) (defun without-top-and-bottom (x) (remove-if (lambda (x) (find-if #'(lambda (x) (or (reasoner-top-concept-p x) (reasoner-bottom-concept-p x))) (ensure-list x))) x)) (defun without-top-object-property (x tbox) (remove-if (lambda (x) (find-if #'(lambda (x) (reasoner-top-object-property-p x tbox)) (ensure-list x))) x)) (defun without-bottom-object-property (x tbox) (remove-if (lambda (x) (find-if #'(lambda (x) (reasoner-bottom-object-property-p x tbox)) (ensure-list x))) x)) (defun without-top-and-bottom-object-properties (x tbox) (remove-if (lambda (x) (find-if #'(lambda (x) (or (reasoner-top-object-property-p x tbox) (reasoner-bottom-object-property-p x tbox))) (ensure-list x))) x)) (defun without-top-data-property (x tbox) (remove-if (lambda (x) (find-if #'(lambda (x) (reasoner-top-data-property-p x tbox)) (ensure-list x))) x)) (defun without-bottom-data-property (x tbox) (remove-if (lambda (x) (find-if #'(lambda (x) (reasoner-bottom-data-property-p x tbox)) (ensure-list x))) x)) (defun without-top-and-bottom-data-properties (x tbox) (remove-if (lambda (x) (find-if #'(lambda (x) (or (reasoner-top-data-property-p x tbox) (reasoner-bottom-data-property-p x tbox))) (ensure-list x))) x)) (defun reasoner-only-object-properties (roles tbox) (remove-if #'(lambda (x) (or (consp x) (eq x '*top-object-role*) (eq x '*bottom-object-role*) (eq x '*top-datatype-role*) (eq x '*bottom-datatype-role*) (reasoner-data-property-p x tbox) (reasoner-annotation-property-p x tbox))) roles)) (defun reasoner-no-data-properties (roles tbox) (remove-if #'(lambda (x) (or (consp x) (eq x '*top-datatype-role*) (eq x '*bottom-datatype-role*) (reasoner-data-property-p x tbox) (reasoner-annotation-property-p x tbox))) roles)) (defun reasoner-only-data-properties (roles tbox) (remove-if #'(lambda (x) (or (consp x) (eq x '*top-object-role*) (eq x '*bottom-object-role*) (eq x '*top-datatype-role*) (eq x '*bottom-datatype-role*) (not (or (reasoner-data-property-p x tbox) (reasoner-annotation-property-p x tbox))))) roles)) (defun reasoner-no-object-properties (roles tbox) (remove-if #'(lambda (x) (or (consp x) (eq x '*top-object-role*) (eq x '*bottom-object-role*) (not (or (reasoner-data-property-p x tbox) (reasoner-annotation-property-p x tbox))))) roles)) (defun reasoner-only-annotation-properties (roles tbox) (remove-if-not #'(lambda (x) (reasoner-annotation-property-p x tbox)) roles)) ;;; ;;; Basic Tells ;;; (defun reasoner-clear-tbox-and-abox (tbox abox) (let ((namespaces (racer::tbox-namespaces (find-tbox tbox)))) (when (find-abox abox nil) (forget-abox abox)) (when (find-tbox tbox nil) (forget-tbox tbox)) (racer::in-tbox-internal tbox t nil racer::*default-tbox-concept-size* racer::*default-tbox-role-size*) (racer::in-abox-internal abox tbox t) (setf (racer::tbox-namespaces (racer::find-tbox tbox)) namespaces))) (defun reasoner-clear-abox (tbox abox) (when (find-abox abox nil) (forget-abox abox)) (racer::in-abox-internal abox tbox t)) (defun reasoner-new-tbox-and-abox (tbox abox init) (racer::in-tbox-internal tbox (or init (not (find-tbox tbox nil))) nil racer::*default-tbox-concept-size* racer::*default-tbox-role-size*) (racer::in-abox-internal abox tbox (or init (not (find-abox abox nil))))) (defun reasoner-set-current-tbox (tbox) (set-current-tbox tbox)) (defun reasoner-set-current-abox (abox) (set-current-abox abox)) (defun reasoner-dispose (reasoner) (setf racer::*cached-prefixes* nil) (when (find-abox (owlapi-abox reasoner) nil) (forget-abox (owlapi-abox reasoner))) (when (find-tbox (owlapi-tbox reasoner) nil) (forget-tbox (owlapi-tbox reasoner))) t) ;;; ;;; Concept Axioms ;;; (defun reasoner-add-implication (concept-1 concept-2 tbox) (add-concept-axiom tbox concept-1 concept-2 :inclusion-p t)) (defun reasoner-add-equation (concept-1 concept-2 tbox) (add-concept-axiom tbox concept-1 concept-2 :inclusion-p nil)) (defun reasoner-declare-disjoint (descriptions tbox) (declare-disjoint descriptions tbox)) ;;; ;;; Role Axioms ;;; (defun reasoner-ensure-role (role tbox) (racer::ensure-role role (find-tbox tbox))) (defun reasoner-role-is-used-as-datatype-property (role tbox) (role-is-used-as-datatype-property role tbox)) (defun reasoner-role-is-used-as-annotation-property (annotation-role tbox) (role-is-used-as-annotation-property annotation-role tbox)) (defun reasoner-role-is-transitive (role tbox) (role-is-transitive role tbox)) (defun reasoner-role-is-functional (role tbox) (role-is-functional role tbox)) (defun reasoner-role-is-reflexive (role tbox) (role-is-reflexive role tbox)) (defun reasoner-role-is-irreflexive (role tbox) (role-is-irreflexive role tbox)) (defun reasoner-roles-are-disjoint (role1 role2 tbox) (roles-disjoint-1 role1 role2 tbox)) (defun reasoner-roles-are-equivalent (role1 role2 tbox) (roles-equivalent-1 role1 role2 tbox)) (defun reasoner-inverse-of-role (role1 role2 tbox) (inverse-of-role role1 role2 tbox)) (defun reasoner-role-is-asymmetric (role tbox) (role-is-asymmetric role tbox)) (defun reasoner-register-subproperty (sub-property super-property) (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (cond ((consp super-property) ; only inv possible (let ((inv-role (gentemp (format nil "~A" super-property)))) (reasoner-ensure-role (second super-property) tbox) (reasoner-ensure-role sub-property tbox) (push inv-role (racer::tbox-internal-roles tbox)) (inverse-of-role inv-role (second super-property) tbox) (role-has-parent sub-property inv-role tbox))) ((and (consp sub-property) (eq (first sub-property) 'inv) (not (cddr sub-property))) (let ((inv-role (gentemp (format nil "~A" sub-property)))) (reasoner-ensure-role (second sub-property) tbox) (reasoner-ensure-role super-property tbox) (push inv-role (racer::tbox-internal-roles tbox)) (inverse-of-role inv-role (second sub-property) tbox) (role-has-parent inv-role super-property tbox))) ((consp sub-property) ; composition (declare-role-axiom sub-property super-property tbox)) (t (role-has-parent sub-property super-property tbox))))) (defun reasoner-register-equivalent-properties (axiom properties) (declare (ignorable axiom)) (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (mapl #'(lambda (roles) (let ((role1 (first roles))) (reasoner-ensure-role role1 tbox) (dolist (role2 (rest roles)) (reasoner-ensure-role role2 tbox) (cond ((and (symbolp role1) (consp role2) (eq (first role2) 'inv)) (reasoner-inverse-of-role role1 (second role2) tbox)) ((and (symbolp role2) (consp role1) (eq (first role1) 'inv)) (reasoner-inverse-of-role role2 (second role1) tbox)) ((and (consp role1) (eq (first role1) 'inv) (consp role2) (eq (first role2) 'inv)) (reasoner-roles-are-equivalent (second role1) (second role2) tbox)) (t (reasoner-roles-are-equivalent role1 role2 tbox)))))) properties))) (defun reasoner-role-has-domain (role domain tbox) (role-has-domain role domain tbox nil)) (defun reasoner-datatype-role-has-range (role range tbox) (datatype-role-has-range role range tbox)) (defun reasoner-declare-object-property-domain (object-property object-property-domain) (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (declare-datatype-properties object-property-domain) (or (reasoner-role-has-domain object-property object-property-domain tbox) (reasoner-add-implication `(some ,object-property top) object-property-domain tbox)))) (defun reasoner-declare-object-property-range (object-property object-property-range) (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (declare-datatype-properties object-property-range) #| (or (role-has-range ax-property property-domain tbox nil) |# (reasoner-add-implication 'top `(all ,object-property ,object-property-range) tbox))) ;;; ;;; Datatypes ;;; (defun reasoner-define-datatype (datatype-name data-range tbox) (declare (ignorable datatype-name data-range tbox)) #+:ignore (racer::define-datatype-1 datatype-name data-range tbox)) ;;; ;;; ABox ;;; (defun reasoner-add-concept-assertion (abox ind concept) (add-concept-assertion abox ind concept)) (defun reasoner-add-all-different-assertion (abox individuals) (add-all-different-assertion abox individuals)) (defun reasoner-add-same-individual-as-assertion (abox i j) (add-same-individual-as-assertion abox i j)) (defun reasoner-add-role-assertion (abox subject object role) (add-role-assertion abox subject object role)) (defun reasoner-add-negated-role-assertion (abox subject object role) (add-negated-role-assertion abox subject object role)) (defun reasoner-add-datatype-role-filler (abox subject data-literal data-property) (add-datatype-role-filler abox subject data-literal data-property)) (defun reasoner-add-negative-datatype-role-filler (abox subject data-literal data-property) (add-negative-datatype-role-filler abox subject data-literal data-property)) (defun reasoner-process-annotation (entity annotation-role annotation-value abox) (if (and (consp annotation-value) (member (first annotation-value) '(d-literal))) (add-annotation-concept-assertion abox entity `(d-filler ,annotation-role ,annotation-value)) (add-annotation-role-assertion abox entity annotation-value annotation-role))) ;;; ;;; ABox Forget (only have to be implemented if reasoner supports ;;; incremental retraction of those axioms) ;;; (defun reasoner-forget-concept-assertion (abox ind concept) (forget-concept-assertion abox ind concept)) (defun reasoner-forget-all-different-assertion (abox individuals) (forget-all-different-assertion abox individuals)) (defun reasoner-forget-same-individual-as-assertion (abox i j) (forget-same-individual-as-assertion abox i j)) (defun reasoner-forget-datatype-role-filler (abox subject literal role) (forget-datatype-role-filler abox subject literal role)) (defun reasoner-forget-negative-datatype-role-filler (abox subject literal role) (forget-negative-datatype-role-filler abox subject literal role)) (defun reasoner-forget-role-assertion (abox subject object role) (forget-role-assertion abox subject object role)) (defun reasoner-forget-negated-role-assertion (abox subject object role) (forget-negated-role-assertion abox subject object role)) ;;; ;;; Basic Asks ;;; (defun reasoner-current-abox () (current-abox)) (defun reasoner-current-tbox () (current-tbox)) (defun reasoner-get-abox-language (abox) (reasoner-sync abox) (get-abox-language abox)) (defun reasoner-get-tbox-language (tbox) (reasoner-tbox-sync tbox) (get-tbox-language tbox)) ;;; ;;; Roles ;;; (defun reasoner-all-roles (tbox) (reasoner-sync tbox) (all-roles tbox)) (defun reasoner-object-property-p (role tbox) (reasoner-sync tbox) (dolist (abox (associated-aboxes tbox)) (reasoner-sync abox)) (or (and (consp role) (eq (first role) 'inv) (reasoner-object-property-p (second role) tbox)) (reasoner-top-object-property-p role tbox) (reasoner-bottom-object-property-p role tbox) (and (and (role-p role tbox) (not (role-used-as-datatype-property-p role tbox)) (not (role-used-as-annotation-property-p role tbox)))))) (defun reasoner-data-property-p (role tbox) (reasoner-sync tbox) (dolist (abox (associated-aboxes tbox)) (reasoner-sync abox)) (and (not (consp role)) (or (reasoner-top-data-property-p role tbox) (reasoner-bottom-data-property-p role tbox) (and (not (reasoner-top-object-property-p role tbox)) (not (reasoner-bottom-object-property-p role tbox)) (role-used-as-datatype-property-p role tbox) (not (role-used-as-annotation-property-p role tbox)))))) (defun reasoner-annotation-property-p (role tbox) (reasoner-sync tbox) (dolist (abox (associated-aboxes tbox)) (reasoner-sync abox)) (and (not (consp role)) (not (reasoner-top-object-property-p role tbox)) (not (reasoner-bottom-object-property-p role tbox)) (not (reasoner-top-data-property-p role tbox)) (not (reasoner-bottom-data-property-p role tbox)) (role-used-as-annotation-property-p role tbox))) (defun reasoner-get-object-properties (tbox) (reasoner-sync tbox) (reasoner-only-object-properties (list* +owlapi-owl-top-object-role+ +owlapi-owl-bottom-object-role+ (reasoner-all-roles tbox)) tbox)) (defun reasoner-get-data-properties (tbox) (reasoner-sync tbox) (reasoner-only-data-properties (list* +owlapi-owl-top-data-role+ +owlapi-owl-bottom-data-role+ (reasoner-all-roles tbox)) tbox)) (defun reasoner-get-annotation-properties (tbox) (reasoner-sync tbox) (reasoner-only-annotation-properties (reasoner-all-roles tbox) tbox)) (defun reasoner-get-object-bottom-role (tbox) (reasoner-sync tbox) (get-object-bottom-role tbox)) (defun reasoner-get-datatype-bottom-role (tbox) (reasoner-sync tbox) (get-datatype-bottom-role tbox)) (defun reasoner-get-object-top-role (tbox) (reasoner-sync tbox) (get-object-top-role tbox)) (defun reasoner-get-datatype-top-role (tbox) (reasoner-sync tbox) (get-datatype-top-role tbox)) (defun reasoner-top-object-property-p (x tbox) (reasoner-sync tbox) (and (symbolp x) (or (eq x +owlapi-owl-top-object-role+) (and (not (eq x +owlapi-owl-bottom-object-role+)) (not (eq x +owlapi-owl-top-data-role+)) (not (eq x +owlapi-owl-bottom-data-role+)) (not (role-used-as-datatype-property-p x tbox)) (eq x (reasoner-get-object-top-role tbox)))))) (defun reasoner-bottom-object-property-p (x tbox) (reasoner-sync tbox) (and (symbolp x) (or (eq x +owlapi-owl-bottom-object-role+) (and (not (eq x +owlapi-owl-top-object-role+)) (not (eq x +owlapi-owl-top-data-role+)) (not (eq x +owlapi-owl-bottom-data-role+)) (not (role-used-as-datatype-property-p x tbox)) (or (eq x (reasoner-get-object-bottom-role tbox)) (not (role-satisfiable-p x tbox))))))) (defun reasoner-top-data-property-p (x tbox) (reasoner-sync tbox) (and (symbolp x) (or (eq x +owlapi-owl-top-data-role+) (and (not (eq x +owlapi-owl-bottom-data-role+)) (not (eq x +owlapi-owl-bottom-object-role+)) (not (eq x +owlapi-owl-top-object-role+)) (role-used-as-datatype-property-p x tbox) (eq x (reasoner-get-datatype-top-role tbox)))))) (defun reasoner-bottom-data-property-p (x tbox) (reasoner-sync tbox) (and (symbolp x) (or (eq x +owlapi-owl-bottom-data-role+) (and (not (eq x +owlapi-owl-top-data-role+)) (not (eq x +owlapi-owl-top-object-role+)) (not (eq x +owlapi-owl-bottom-object-role+)) (role-used-as-datatype-property-p x tbox) (or (eq x (reasoner-get-datatype-bottom-role tbox)) (not (role-satisfiable-p x tbox))))))) (defun reasoner-get-disjoint-object-properties (role tbox) (reasoner-sync tbox) (loop as r in (reasoner-get-object-properties tbox) when (reasoner-role-disjoint-p r role tbox) collect r)) (defun reasoner-get-disjoint-data-properties (role tbox) (reasoner-sync tbox) (loop as r in (reasoner-get-data-properties tbox) when (reasoner-role-disjoint-p r role tbox) collect r)) (defun reasoner-equivalent-roles (role tbox &optional remove-self-p) (reasoner-sync tbox) (if remove-self-p (remove role (atomic-role-synonyms role tbox)) (atomic-role-synonyms role tbox))) (defun reasoner-get-role-synonyms (role tbox) (reasoner-sync tbox) (when role (if (consp role) (mapcar #'(lambda (r) (reasoner-equivalent-roles r tbox)) role) (reasoner-equivalent-roles role tbox)))) (defun reasoner-role-parents (role tbox) (reasoner-sync tbox) (reasoner-get-role-synonyms (atomic-role-parents role tbox) tbox)) (defun reasoner-atomic-role-parents (role tbox) ;;; for OWLlink (reasoner-sync tbox) (let ((parents (racer::atomic-role-parents2 role tbox))) (append (remove-if #'consp parents) (reduce #'append (mapcar #'(lambda (x) (reasoner-atomic-role-parents x tbox)) (remove-if-not #'consp parents)))))) (defun reasoner-role-children (role tbox) (reasoner-sync tbox) (reasoner-get-role-synonyms (atomic-role-children role tbox) tbox)) (defun reasoner-atomic-role-children (role tbox) ;;; for OWLlink (reasoner-sync tbox) (let ((children (racer::atomic-role-children2 role tbox))) (append (remove-if #'consp children) (reduce #'append (mapcar #'(lambda (x) (reasoner-atomic-role-children x tbox)) (remove-if-not #'consp children)))))) (defun reasoner-role-ancestors (role tbox &optional remove-self-p) (reasoner-sync tbox) (reasoner-get-role-synonyms (if remove-self-p (remove role (atomic-role-ancestors role tbox)) (atomic-role-ancestors role tbox)) tbox)) (defun reasoner-atomic-role-ancestors (role tbox) ;;; for OWLlink (reasoner-sync tbox) (racer::atomic-role-ancestors2 role tbox)) (defun reasoner-role-descendants (role tbox &optional remove-self-p) (reasoner-sync tbox) (reasoner-get-role-synonyms (if remove-self-p (remove role (atomic-role-descendants role tbox)) (atomic-role-descendants role tbox)) tbox)) (defun reasoner-atomic-role-descendants (role tbox) ;;; for OWLlink (reasoner-sync tbox) (racer::atomic-role-descendants2 role tbox)) (defun get-concept-synonyms (concept &optional include-complex-concepts-p) ;;; needs lists of concepts! only for role domain / role range (when concept (if (consp concept) (mapcar #'(lambda (c) (if (and (consp c) include-complex-concepts-p) (cons c (atomic-concept-synonyms c (owlapi-tbox *cur-reasoner*))) (atomic-concept-synonyms c (owlapi-tbox *cur-reasoner*)))) concept) (atomic-concept-synonyms concept (owlapi-tbox *cur-reasoner*))))) (defun reasoner-get-role-domain (role owlapi-hacking-mode tbox) (reasoner-sync tbox) (case owlapi-hacking-mode (0 (atomic-role-domain role tbox)) (1 (first (get-concept-synonyms (list (atomic-role-domain role tbox)) t))) (2 (get-concept-synonyms (list (atomic-role-domain role tbox)) t)) (otherwise (or (atomic-concept-synonyms `(some ,role top) tbox) (atomic-concept-parents `(some ,role top) tbox))))) (defun reasoner-get-role-range (role owlapi-hacking-mode tbox) (reasoner-sync tbox) (if (role-used-as-datatype-property-p role tbox) (ensure-list (datatype-role-range role tbox)) (case owlapi-hacking-mode (0 (atomic-role-range role tbox)) (1 (first (get-concept-synonyms (list (atomic-role-range role tbox)) t))) (2 (get-concept-synonyms (list (atomic-role-range role tbox)) t)) (otherwise (or (atomic-concept-synonyms `(some (inv ,role) top) tbox) (atomic-concept-parents `(some (inv ,role) top) tbox)))))) (defun reasoner-role-functional-p (role tbox) (reasoner-sync tbox) (if (consp role) (reasoner-role-inverse-functional-p (second role) tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) nil) ((reasoner-top-data-property-p role tbox) nil) (t (feature-p role tbox))))) (defun reasoner-role-satisfiable-p (role tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role tbox) nil) ((reasoner-bottom-data-property-p role tbox) nil) (t (role-satisfiable-p role tbox)))) (defun reasoner-role-equivalent-p (role-1 role-2 tbox) (reasoner-sync tbox) (cond ((reasoner-top-object-property-p role-1 tbox) (reasoner-top-object-property-p role-2 tbox)) ((reasoner-bottom-object-property-p role-1 tbox) (reasoner-bottom-object-property-p role-2 tbox)) ((reasoner-top-data-property-p role-1 tbox) (reasoner-top-data-property-p role-2 tbox)) ((reasoner-bottom-data-property-p role-1 tbox) (reasoner-bottom-data-property-p role-2 tbox)) ((or (and (reasoner-object-property-p role-1 tbox) (reasoner-object-property-p role-2 tbox)) (and (reasoner-data-property-p role-1 tbox) (reasoner-data-property-p role-2 tbox)) (and (reasoner-annotation-property-p role-1 tbox) (reasoner-annotation-property-p role-2 tbox))) (let ((role-1 (cond ((reasoner-top-object-property-p role-1 tbox) (reasoner-get-object-top-role tbox)) ((reasoner-top-data-property-p role-1 tbox) (reasoner-get-datatype-top-role tbox)) ((not (reasoner-role-satisfiable-p role-1 tbox)) (reasoner-get-object-bottom-role tbox)) (t role-1))) (role-2 (cond ((reasoner-top-object-property-p role-2 tbox) (reasoner-get-object-top-role tbox)) ((reasoner-top-data-property-p role-2 tbox) (reasoner-get-datatype-top-role tbox)) ((not (reasoner-role-satisfiable-p role-2 tbox)) (reasoner-get-object-bottom-role tbox)) (t role-2)))) (role-equivalent-p role-1 role-2 tbox))) (t nil))) (defun reasoner-role-disjoint-p (role-1 role-2 tbox) (reasoner-sync tbox) (cond ((not (or (and (reasoner-object-property-p role-1 tbox) (reasoner-object-property-p role-2 tbox)) (and (reasoner-data-property-p role-1 tbox) (reasoner-data-property-p role-2 tbox)) (and (reasoner-annotation-property-p role-1 tbox) (reasoner-annotation-property-p role-2 tbox)))) t) ((or (reasoner-bottom-object-property-p role-1 tbox) (reasoner-bottom-object-property-p role-2 tbox)) t) ((or (reasoner-bottom-data-property-p role-1 tbox) (reasoner-bottom-data-property-p role-2 tbox)) t) (t (let ((role-1 (cond ((reasoner-top-object-property-p role-1 tbox) (reasoner-get-object-top-role tbox)) ((reasoner-top-data-property-p role-1 tbox) (reasoner-get-datatype-top-role tbox)) ((not (reasoner-role-satisfiable-p role-1 tbox)) (reasoner-get-object-bottom-role tbox)) (t role-1))) (role-2 (cond ((reasoner-top-object-property-p role-2 tbox) (reasoner-get-object-top-role tbox)) ((reasoner-top-data-property-p role-2 tbox) (reasoner-get-datatype-top-role tbox)) ((not (reasoner-role-satisfiable-p role-2 tbox)) (reasoner-get-object-bottom-role tbox)) (t role-2)))) (role-disjoint-p role-1 role-2 tbox))))) (defun reasoner-inverse-roles (role tbox) (reasoner-sync tbox) (let ((inverse (when (role-p role tbox) (atomic-role-inverse role tbox)))) (if (consp inverse) nil (reasoner-get-role-synonyms (list inverse) tbox)))) (defun reasoner-role-inverse-functional-p (role tbox) (reasoner-sync tbox) (if (consp role) (reasoner-role-functional-p (second role) tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) nil) ((reasoner-top-data-property-p role tbox) nil) (t (reasoner-inverse-feature-p role tbox))))) (defun reasoner-inverse-feature-p (role tbox) (reasoner-sync tbox) (inverse-feature-p role tbox)) (defun reasoner-role-symmetric-p (role tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) t) ((reasoner-top-data-property-p role tbox) t) (t (symmetric-p role tbox)))) (defun reasoner-role-transitive-p (role tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) t) ((reasoner-top-data-property-p role tbox) t) (t (transitive-p role tbox)))) (defun reasoner-role-reflexive-p (role tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) t) ((reasoner-top-data-property-p role tbox) t) (t (reflexive-p role tbox)))) (defun reasoner-role-irreflexive-p (role tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) nil) ((reasoner-top-data-property-p role tbox) nil) (t (irreflexive-p role tbox)))) (defun reasoner-role-asymmetric-p (role tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role tbox) t) ((reasoner-bottom-data-property-p role tbox) t) ((reasoner-top-object-property-p role tbox) nil) ((reasoner-top-data-property-p role tbox) nil) (t (asymmetric-p role tbox)))) (defun reasoner-role-subsumes-p (role-1 role-2 tbox) (reasoner-sync tbox) (cond ((reasoner-bottom-object-property-p role-2 tbox) nil) ((reasoner-bottom-data-property-p role-2 tbox) nil) ((reasoner-top-object-property-p role-1 tbox) t) ((reasoner-top-data-property-p role-1 tbox) nil) (t (role-subsumes-p role-1 role-2 tbox)))) ;;; ;;; Concepts ;;; (defun reasoner-all-atomic-concepts (tbox) (reasoner-sync tbox) (all-atomic-concepts tbox)) (defun reasoner-bottom-concept-p (x) (or (eq x 'bottom) (eq x '*bottom*) (eq x +owlapi-owl-nothing+))) (defun reasoner-top-concept-p (x) (or (eq x 'top) (eq x '*top*) (eq x +owlapi-owl-thing+))) ;;; ;;; ABox ;;; (defun reasoner-all-individuals (abox) (reasoner-sync abox) (all-individuals abox)) ;;; ;;; KB Consistency Queries ;;; (defun reasoner-abox-coherent-p (abox) (reasoner-sync abox) (slot-value (find-abox abox) 'racer::coherent-p)) (defun reasoner-abox-consistent-p (abox) (reasoner-sync abox) (abox-consistent-p abox)) (defun reasoner-kb-is-consistent-p (tbox abox) (reasoner-sync abox) (and (not (member 'top (atomic-concept-synonyms 'bottom tbox))) (reasoner-abox-consistent-p abox))) (defun reasoner-tbox-classified-p (tbox) (reasoner-sync tbox) (tbox-classified-p tbox)) (defun reasoner-abox-realized-p (abox) (reasoner-sync abox) (abox-realized-p abox)) (defun reasoner-classify (tbox) (reasoner-sync tbox) (taxonomy tbox) t) (defun reasoner-taxonomy (tbox) (reasoner-sync tbox) (taxonomy tbox)) (defun reasoner-realize (abox) (reasoner-sync abox) (realize-abox abox) t) ;;; ;;; TBox / Concept Asks ;;; (defun reasoner-concept-p (concept tbox) (reasoner-sync tbox) (concept-p concept tbox)) (defun reasoner-concept-satisfiable-p (concept tbox) (reasoner-sync tbox) (concept-satisfiable-p concept tbox)) (defun reasoner-concepts-disjoint-p (x y tbox) (reasoner-sync tbox) (concept-disjoint-p x y tbox)) (defun reasoner-concepts-equivalent-p (clsD clsC tbox) (reasoner-sync tbox) (concept-equivalent-p clsC clsD tbox)) (defun reasoner-concept-subsumes-p (clsD clsC tbox) (reasoner-sync tbox) (concept-subsumes-p clsD clsC tbox)) (defun reasoner-concept-parents (cls tbox) (reasoner-sync tbox) (atomic-concept-parents cls tbox)) (defun reasoner-concept-ancestors (cls tbox) (reasoner-sync tbox) (atomic-concept-ancestors cls tbox)) (defun reasoner-concept-children (cls tbox) (reasoner-sync tbox) (atomic-concept-children cls tbox)) (defun reasoner-concept-descendants (cls tbox) (reasoner-sync tbox) (atomic-concept-descendants cls tbox)) (defun reasoner-concept-synonyms (concept tbox) (reasoner-sync tbox) (cond ((member concept (list +owlapi-owl-thing+ 'top '*top*)) (cons +owlapi-owl-thing+ (without-top (atomic-concept-synonyms 'top tbox)))) ((member concept (list +owlapi-owl-nothing+ 'bottom '*bottom*)) (cons +owlapi-owl-nothing+ (without-bottom (atomic-concept-synonyms 'bottom tbox)))) (t (let* ((res (atomic-concept-synonyms concept tbox)) (res2 (without-top-and-bottom res))) (cond ((member 'top res) (cons +owlapi-owl-thing+ res2)) ((member 'bottom res) (cons +owlapi-owl-nothing+ res2)) (t res2)))))) (defun reasoner-atomic-concept-synonyms (concept tbox) ;;; without owl-thing etc. (reasoner-sync tbox) (atomic-concept-synonyms concept tbox)) (defun reasoner-get-disjoint-concepts (concept tbox) (reasoner-sync tbox) (loop as c in (reasoner-all-atomic-concepts tbox) when (reasoner-concepts-disjoint-p c concept tbox) collect c)) (defun reasoner-equivalent-concepts (cls tbox) (reasoner-sync tbox) (atomic-concept-synonyms cls tbox)) (defun reasoner-inconsistent-concepts (tbox) (reasoner-sync tbox) (atomic-concept-synonyms 'cl-user::bottom tbox)) ;;; ;;; ABox Asks ;;; (defmacro with-consistent-abox ((abox) &body body) `(progn (reasoner-sync ,abox) (cond ((abox-consistent-p ,abox) ,@body) (t :inconsistent)))) (defun reasoner-individual-p (ind abox) (reasoner-sync abox) (individual-p ind abox)) (defun reasoner-individual-synonyms (ind abox) (with-consistent-abox (abox) (retrieve-individual-synonyms ind nil abox))) (defun reasoner-individual-antonyms (ind abox) (with-consistent-abox (abox) (retrieve-individual-antonyms ind nil abox))) (defun reasoner-get-types (ind abox direct) (reasoner-sync abox) (when (reasoner-abox-consistent-p abox) (if direct (most-specific-instantiators ind abox) (instantiators ind abox)))) (defun reasoner-get-instances (class abox direct) (with-consistent-abox (abox) (let ((instances (retrieve-concept-instances class abox))) (if direct (let ((children (atomic-concept-children class (associated-tbox abox)))) (remove-if #'(lambda (ind) (some #'(lambda (subclass) (reasoner-instance-of-p ind (first subclass) abox nil)) children)) instances)) instances)))) (defun reasoner-instance-of-p (ind type abox direct) (with-consistent-abox (abox) (if direct (let ((children (atomic-concept-children type (associated-tbox abox)))) (not (some #'(lambda (subclass) (individual-instance-p ind (first subclass) abox)) children))) (individual-instance-p ind type abox)))) (defun reasoner-get-individual-successors (source abox &rest args) (with-consistent-abox (abox) (apply #'get-individual-successors source :abox abox args))) (defun reasoner-get-individual-datatype-fillers (source abox) (with-consistent-abox (abox) (get-individual-datatype-fillers source abox))) (defun reasoner-individuals-related-p (subject object property abox) (with-consistent-abox (abox) (individuals-related-p subject object property abox))) (defun reasoner-individual-has-data-filler-p (subject object property abox) (with-consistent-abox (abox) (when (member object (retrieve-individual-told-datatype-fillers subject property nil abox t) :test #'equalp) t))) (defun reasoner-retrieve-individual-filled-roles (source target abox &rest args) (with-consistent-abox (abox) (apply #'retrieve-individual-filled-roles source target abox args))) (defun reasoner-retrieve-individual-fillers (ind role abox) (with-consistent-abox (abox) (retrieve-individual-fillers ind role abox))) (defun reasoner-retrieve-individual-predecessors (ind role abox) (with-consistent-abox (abox) (retrieve-individual-predecessors ind role abox))) (defun reasoner-retrieve-individual-told-datatype-fillers (ind property abox) (with-consistent-abox (abox) (retrieve-individual-told-datatype-fillers ind property nil abox t))) (defun reasoner-get-synonym-individuals (ind abox) (with-consistent-abox (abox) (remove ind (retrieve-individual-synonyms ind nil abox)))) (defun reasoner-synonym-individuals-p (i j abox) (with-consistent-abox (abox) (when (member i (retrieve-individual-synonyms j nil abox)) t))) (defun reasoner-get-antonym-individuals (ind abox) (with-consistent-abox (abox) (retrieve-individual-antonyms ind nil (owlapi-abox *cur-reasoner*)))) (defun reasoner-antonym-individuals-p (i j abox) (with-consistent-abox (abox) (when (member i (retrieve-individual-antonyms j nil (owlapi-abox *cur-reasoner*))) t))) ;;; ;;; Namespaces etc. ;;; (defun reasoner-get-default-namespace-prefix (tbox) (get-namespace-prefix tbox)) (defun reasoner-register-prefix (prefix namespace tbox) (setf racer::*cached-prefixes* nil) (when (is-default-prefix-p prefix) (racer::add-to-tbox-namespaces (find-tbox tbox) (list (cons nil namespace))))) (defun reasoner-remove-prefix (prefix tbox) (declare (ignorable prefix tbox)) (setf racer::*cached-prefixes* nil)) (defun reasoner-get-prefixes (&optional (tbox (current-tbox)) (ask-owlapi-p t)) (get-prefixes tbox ask-owlapi-p)) (defun reasoner-reset-prefix-cache () (racer::reset-prefix-cache)) (defun reasoner-delete-prefix-mappings () (delete-prefix-mappings)) ;;; ;;; Axiom Loading ;;; (defmethod load-axiom ((axiom |OWLDatatypeDefinitionAxiom|) &key ontology) (declare (ignorable ontology)) ) #+:ignore (defmethod load-axiom ((axiom |OWLDatatypeDefinitionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (datatype-name data-range) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-define-datatype datatype-name data-range tbox)))) (defmethod load-axiom ((axiom |OWLSubAnnotationPropertyOfAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-sub-property annotation-super-property) axiom (reasoner-register-subproperty annotation-sub-property annotation-super-property))) (defmethod load-axiom ((axiom |OWLAnnotationPropertyDomainAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-property1 annotation-property-domain) axiom (reasoner-declare-object-property-domain annotation-property1 annotation-property-domain))) (defmethod load-axiom ((axiom |OWLAnnotationPropertyRangeAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (annotation-property2 annotation-property-range) axiom (reasoner-declare-object-property-range annotation-property2 annotation-property-range))) (defmethod load-axiom ((axiom |OWLDeclarationAxiom|) &key ontology) (declare (ignorable ontology)) (flet ((find-key (key spec) (if (consp spec) (find key spec) (eq key spec)))) (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (with-slots (entity) axiom (cond ((find-key '|OWLClass| (first entity)) (reasoner-add-implication (second entity) 'top tbox)) ((find-key '|Class| (first entity)) (reasoner-add-implication (second entity) 'top tbox)) ((find-key '|ObjectProperty| (first entity)) (reasoner-ensure-role (second entity) tbox)) ((find-key '|DataProperty| (first entity)) (reasoner-role-is-used-as-datatype-property (second entity) tbox)) ((find-key '|AnnotationProperty| (first entity)) (reasoner-role-is-used-as-annotation-property (second entity) tbox)) ((find-key '|Individual| (first entity)) (reasoner-add-concept-assertion (owlapi-abox *cur-reasoner*) (second entity) 'top)) ((find-key '|NamedIndividual| (first entity)) (reasoner-add-concept-assertion (owlapi-abox *cur-reasoner*) (second entity) 'top)) ((find-key '|Datatype| (first entity))) (t (error "Key ~A unknown." (first entity)))))))) (defmethod load-axiom ((axiom |OWLDisjointClassesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (mapc #'declare-datatype-properties descriptions) (mapc #'(lambda (x) (register-referenced-concept x ontology)) descriptions) (reasoner-declare-disjoint descriptions (owlapi-tbox *cur-reasoner*)))) (defmethod load-axiom ((axiom |OWLDisjointUnionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (reasoner-add-equation (first descriptions) `(or ,@(rest descriptions)) (owlapi-tbox *cur-reasoner*)) (reasoner-declare-disjoint (rest descriptions) (owlapi-tbox *cur-reasoner*)))) (defmethod load-axiom ((axiom |OWLEquivalentClassesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (mapc #'(lambda (first second) (reasoner-add-equation first second (owlapi-tbox *cur-reasoner*))) descriptions (rest descriptions)))) (defmethod load-axiom ((axiom |OWLSubClassAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (descriptions) axiom (reasoner-add-implication (first descriptions) (second descriptions) (owlapi-tbox *cur-reasoner*)))) (defmethod load-axiom ((axiom |OWLClassAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (ax-individual description) axiom (reasoner-add-concept-assertion (owlapi-abox *cur-reasoner*) ax-individual description))) (defmethod load-axiom ((axiom |OWLDifferentIndividualsAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (individuals) axiom (reasoner-add-all-different-assertion (owlapi-abox *cur-reasoner*) individuals))) (defmethod load-axiom ((axiom |OWLSameIndividualsAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (individuals) axiom (mapl #'(lambda (inds) (let ((i (first inds))) (dolist (j (rest inds)) (reasoner-add-same-individual-as-assertion (owlapi-abox *cur-reasoner*) i j)))) individuals))) (defmethod load-axiom ((axiom |OWLDataPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-data-property data-literal) axiom (role-is-used-as-datatype-property rel-data-property (owlapi-tbox *cur-reasoner*)) (reasoner-add-datatype-role-filler (owlapi-abox *cur-reasoner*) subject data-literal rel-data-property))) (defmethod load-axiom ((axiom |OWLNegativeDataPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-data-property data-literal) axiom (reasoner-add-negative-datatype-role-filler (owlapi-abox *cur-reasoner*) subject data-literal rel-data-property))) (defmethod load-axiom ((axiom |OWLObjectPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-object-property object) axiom (reasoner-add-role-assertion (owlapi-abox *cur-reasoner*) subject object rel-object-property))) (defmethod load-axiom ((axiom |OWLNegativeObjectPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-object-property object) axiom (reasoner-add-concept-assertion (owlapi-abox *cur-reasoner*) subject 'top) (reasoner-add-concept-assertion (owlapi-abox *cur-reasoner*) object 'top) (reasoner-add-negated-role-assertion (owlapi-abox *cur-reasoner*) subject object rel-object-property))) (defmethod load-axiom ((axiom |OWLFunctionalDataPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-property) axiom (reasoner-role-is-used-as-datatype-property data-property (owlapi-tbox *cur-reasoner*)) (reasoner-role-is-functional data-property (owlapi-tbox *cur-reasoner*)))) (defmethod load-axiom ((axiom |OWLFunctionalObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (reasoner-role-is-functional object-property (owlapi-tbox *cur-reasoner*)))) (defmethod load-axiom ((axiom |OWLDisjointDataPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-properties) axiom (mapl #'(lambda (roles) (let ((role1 (first roles))) (dolist (role2 (rest roles)) (reasoner-roles-are-disjoint role1 role2 (owlapi-tbox *cur-reasoner*))))) data-properties))) (defmethod load-axiom ((axiom |OWLDisjointObjectPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-properties) axiom (mapl #'(lambda (roles) (let ((role1 (first roles))) (dolist (role2 (rest roles)) (reasoner-roles-are-disjoint role1 role2 (owlapi-tbox *cur-reasoner*))))) object-properties))) (defmethod load-axiom ((axiom |OWLEquivalentDataPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-properties) axiom (mapc #'(lambda (r) (reasoner-role-is-used-as-datatype-property r (owlapi-tbox *cur-reasoner*))) data-properties) (reasoner-register-equivalent-properties axiom data-properties))) (defmethod load-axiom ((axiom |OWLEquivalentObjectPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-properties) axiom (reasoner-register-equivalent-properties axiom object-properties))) (defmethod load-axiom ((axiom |OWLInverseObjectPropertiesAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-properties) axiom (let* ((tbox (find-tbox (owlapi-tbox *cur-reasoner*))) (r1 (first object-properties)) (r2 (second object-properties))) (register-referenced-object-property r1 ontology) (register-referenced-object-property r2 ontology) (if (and (consp r1) (consp r2)) (reasoner-inverse-of-role (second r1) (second r2) tbox) (reasoner-inverse-of-role r1 r2 tbox))))) (defmethod load-axiom ((axiom |OWLObjectPropertyChainSubPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property-chain object-property) axiom (reasoner-register-subproperty object-property-chain object-property))) (defmethod load-axiom ((axiom |OWLAsymmetricObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-role-is-asymmetric object-property tbox)))) (defmethod load-axiom ((axiom |OWLInverseFunctionalObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-add-implication 'top `(at-most 1 (inv ,object-property)) tbox)))) (defmethod load-axiom ((axiom |OWLIrreflexiveObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-role-is-irreflexive object-property tbox)))) (defmethod load-axiom ((axiom |OWLReflexiveObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-role-is-reflexive object-property tbox)))) (defmethod load-axiom ((axiom |OWLSymmetricObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-inverse-of-role object-property object-property tbox)))) (defmethod load-axiom ((axiom |OWLTransitiveObjectPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-role-is-transitive object-property tbox)))) (defmethod load-axiom ((axiom |OWLDataSubPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (sub-data-property data-property) axiom (reasoner-role-is-used-as-datatype-property sub-data-property (owlapi-tbox *cur-reasoner*)) (reasoner-role-is-used-as-datatype-property data-property (owlapi-tbox *cur-reasoner*)) (reasoner-register-subproperty sub-data-property data-property))) (defmethod load-axiom ((axiom |OWLObjectSubPropertyAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (sub-object-property object-property) axiom (reasoner-register-subproperty sub-object-property object-property))) (defmethod load-axiom ((axiom |OWLDataPropertyDomainAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-property data-property-domain) axiom (let ((tbox (find-tbox (owlapi-tbox *cur-reasoner*)))) (reasoner-role-is-used-as-datatype-property data-property (owlapi-tbox *cur-reasoner*)) (declare-datatype-properties data-property-domain) (or (reasoner-role-has-domain data-property data-property-domain tbox) (reasoner-add-implication `(some ,data-property top) data-property-domain tbox))))) (defmethod load-axiom ((axiom |OWLObjectPropertyDomainAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property object-property-domain) axiom (reasoner-declare-object-property-domain object-property object-property-domain))) (defmethod load-axiom ((axiom |OWLDataPropertyRangeAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (data-property data-property-range) axiom (let* ((tbox (find-tbox (owlapi-tbox *cur-reasoner*))) (role-name data-property)) (reasoner-datatype-role-has-range role-name data-property-range tbox)))) (defmethod load-axiom ((axiom |OWLObjectPropertyRangeAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (object-property object-property-range) axiom (reasoner-declare-object-property-range object-property object-property-range))) ;;; ;;; Add a initialize-instance :after method for those OWL Axiom classes ;;; which can be unloaded incrementally by your reasoner, and ;;; override unload-axiom1: ;;; ;;; ;;; Incremental Axiom Unloading ;;; Needs only to be implemented for those axiom types which can ;;; be unloaded incrementally by the reasoner (unloading of remaining ;;; axioms will be handeled using clear and reload) ;;; (defmethod initialize-axiom :after ((axiom |OWLClassAssertionAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLClassAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (ax-individual description) axiom (reasoner-forget-concept-assertion (owlapi-abox *cur-reasoner*) ax-individual description))) (defmethod initialize-axiom :after ((axiom |OWLDifferentIndividualsAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLDifferentIndividualsAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (individuals) axiom (reasoner-forget-all-different-assertion (owlapi-abox *cur-reasoner*) individuals))) (defmethod initialize-axiom :after ((axiom |OWLSameIndividualsAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLSameIndividualsAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (individuals) axiom (mapl #'(lambda (inds) (let ((i (first inds))) (dolist (j (rest inds)) (reasoner-forget-same-individual-as-assertion (owlapi-abox *cur-reasoner*) i j)))) individuals))) (defmethod initialize-axiom :after ((axiom |OWLDataPropertyAssertionAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLDataPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-data-property data-literal) axiom (reasoner-forget-datatype-role-filler (owlapi-abox *cur-reasoner*) subject data-literal rel-data-property))) (defmethod initialize-axiom :after ((axiom |OWLNegativeDataPropertyAssertionAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLNegativeDataPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-data-property data-literal) axiom (reasoner-forget-negative-datatype-role-filler (owlapi-abox *cur-reasoner*) subject data-literal rel-data-property))) (defmethod initialize-axiom :after ((axiom |OWLObjectPropertyAssertionAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLObjectPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-object-property object) axiom (reasoner-forget-role-assertion (owlapi-abox *cur-reasoner*) subject object rel-object-property))) (defmethod initialize-axiom :after ((axiom |OWLNegativeObjectPropertyAssertionAxiom|) new-p) (declare (ignorable new-p)) (setf (can-be-unloaded-p axiom) t)) (defmethod unload-axiom1 ((axiom |OWLNegativeObjectPropertyAssertionAxiom|) &key ontology) (declare (ignorable ontology)) (with-slots (subject rel-object-property object) axiom (reasoner-forget-negated-role-assertion (owlapi-abox *cur-reasoner*) subject object rel-object-property))) ;;; ;;; Entailment Checks ;;; (defmethod entailed-p ((axiom |OWLDisjointClassesAxiom|)) (with-slots (descriptions) axiom (for-all-pairs-holds-p descriptions (lambda (x y) (reasoner-concepts-disjoint-p x y (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLDisjointUnionAxiom|)) (with-slots (descriptions) axiom (and (for-all-pairs-holds-p descriptions (lambda (x y) (reasoner-concepts-disjoint-p x y (owlapi-tbox *cur-reasoner*)))) (reasoner-concepts-equivalent-p (first descriptions) `(or ,@(rest descriptions)) (owlapi-tbox *cur-reasoner*))))) (defmethod entailed-p ((axiom |OWLEquivalentClassesAxiom|)) (with-slots (descriptions) axiom (pairwise-equivalent-p descriptions (lambda (x y) (reasoner-concepts-equivalent-p x y (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLSubClassAxiom|)) (with-slots (descriptions) axiom (let ((a (first descriptions)) (b (second descriptions))) (reasoner-concept-subsumes-p b a (owlapi-tbox *cur-reasoner*))))) (defmethod direct-entailed-p ((axiom |OWLSubClassAxiom|)) (with-slots (descriptions) axiom (let ((a (first descriptions)) (b (second descriptions))) (and (symbolp a) (symbolp b) (find-if #'(lambda (x) (member a (ensure-list x))) (reasoner-concept-children b (owlapi-tbox *cur-reasoner*))))))) (defmethod entailed-p ((axiom |OWLClassAssertionAxiom|)) (with-slots (ax-individual description) axiom (reasoner-instance-of-p ax-individual description (owlapi-abox *cur-reasoner*) nil))) (defmethod direct-entailed-p ((axiom |OWLClassAssertionAxiom|)) (with-slots (ax-individual description) axiom (find-if #'(lambda (x) (member description (ensure-list x))) (reasoner-get-types ax-individual (owlapi-abox *cur-reasoner*) t)))) (defmethod entailed-p ((axiom |OWLDifferentIndividualsAxiom|)) (with-slots (individuals) axiom (for-all-pairs-holds-p individuals (lambda (x y) (member x (reasoner-individual-antonyms y (owlapi-abox *cur-reasoner*))))))) (defmethod entailed-p ((axiom |OWLSameIndividualsAxiom|)) (with-slots (individuals) axiom (pairwise-equivalent-p individuals (lambda (x y) (member x (reasoner-individual-synonyms y (owlapi-abox *cur-reasoner*))))))) (defmethod entailed-p ((axiom |OWLDataPropertyAssertionAxiom|)) (with-slots (subject rel-data-property data-literal) axiom (or (member data-literal (reasoner-retrieve-individual-told-datatype-fillers subject rel-data-property (owlapi-abox *cur-reasoner*)) :test #'equal) (reasoner-instance-of-p subject `(d-filler ,rel-data-property ,data-literal) (owlapi-abox *cur-reasoner*) nil)))) (defmethod entailed-p ((axiom |OWLObjectPropertyAssertionAxiom|)) (with-slots (subject rel-object-property object) axiom (reasoner-individuals-related-p subject object rel-object-property (owlapi-abox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLNegativeObjectPropertyAssertionAxiom|)) (with-slots (subject rel-object-property object) axiom (reasoner-individuals-related-p subject object `(not ,rel-object-property) (owlapi-abox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLFunctionalDataPropertyAxiom|)) (with-slots (data-property) axiom (reasoner-role-functional-p data-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLFunctionalObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-functional-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLDisjointDataPropertiesAxiom|)) (with-slots (data-properties) axiom (for-all-pairs-holds-p data-properties #'(lambda (r1 r2) (reasoner-role-disjoint-p r1 r2 (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLDisjointObjectPropertiesAxiom|)) (with-slots (object-properties) axiom (for-all-pairs-holds-p object-properties #'(lambda (r1 r2) (reasoner-role-disjoint-p r1 r2 (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLEquivalentDataPropertiesAxiom|)) (with-slots (data-properties) axiom (pairwise-equivalent-p data-properties #'(lambda (r1 r2) (reasoner-role-equivalent-p r1 r2 (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLEquivalentObjectPropertiesAxiom|)) (with-slots (object-properties) axiom (pairwise-equivalent-p object-properties #'(lambda (r1 r2) (reasoner-role-equivalent-p r1 r2 (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLInverseObjectPropertiesAxiom|)) (with-slots (object-properties) axiom (let ((marker (gensym))) (not (reasoner-concept-satisfiable-p `(or (and (some ,(first object-properties) ,marker) (all (inv ,(second object-properties)) (not ,marker))) (and (some ,(second object-properties) ,marker) (all (inv ,(first object-properties)) (not ,marker)))) (owlapi-tbox *cur-reasoner*)))))) (defmethod entailed-p ((axiom |OWLAsymmetricObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-asymmetric-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLInverseFunctionalObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-inverse-functional-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLIrreflexiveObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-irreflexive-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLReflexiveObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-reflexive-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLSymmetricObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-symmetric-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLTransitiveObjectPropertyAxiom|)) (with-slots (object-property) axiom (reasoner-role-transitive-p object-property (owlapi-tbox *cur-reasoner*)))) (defmethod entailed-p ((axiom |OWLDataSubPropertyAxiom|)) (with-slots (sub-data-property data-property) axiom (reasoner-role-subsumes-p data-property sub-data-property (owlapi-tbox *cur-reasoner*)))) (defmethod direct-entailed-p ((axiom |OWLDataSubPropertyAxiom|)) (with-slots (sub-data-property data-property) axiom (with-current-owllink-kb (member sub-data-property (owl-syntaxes::owllink-role-children data-property))))) (defmethod entailed-p ((axiom |OWLObjectSubPropertyAxiom|)) (with-slots (sub-object-property object-property) axiom (reasoner-role-subsumes-p object-property sub-object-property (owlapi-tbox *cur-reasoner*)))) (defmethod direct-entailed-p ((axiom |OWLObjectSubPropertyAxiom|)) (with-slots (sub-object-property object-property) axiom (with-current-owllink-kb (member sub-object-property (owl-syntaxes::owllink-role-children object-property))))) (defmethod entailed-p ((axiom |OWLDataPropertyDomainAxiom|)) (with-slots (data-property data-property-domain) axiom (not (reasoner-concept-satisfiable-p `(and (not ,data-property-domain) (some ,data-property top)) (owlapi-tbox *cur-reasoner*))))) (defmethod entailed-p ((axiom |OWLObjectPropertyDomainAxiom|)) (with-slots (object-property object-property-domain) axiom (not (reasoner-concept-satisfiable-p `(and (not ,object-property-domain) (some ,object-property top)) (owlapi-tbox *cur-reasoner*))))) (defmethod entailed-p ((axiom |OWLDataPropertyRangeAxiom|)) (with-slots (data-property data-property-range) axiom (not (reasoner-concept-satisfiable-p `(and (some ,data-property (not ,data-property-range))) (owlapi-tbox *cur-reasoner*))))) (defmethod entailed-p ((axiom |OWLObjectPropertyRangeAxiom|)) (with-slots (object-property object-property-range) axiom (not (reasoner-concept-satisfiable-p `(and (some ,object-property (not ,object-property-range))) (owlapi-tbox *cur-reasoner*))))) ;;; ;;; Warnings ;;; (declaim (special racer::*indent*)) (defun reasoner-redundant-import-warning (uri) (when (or ts::*really-warn-p* (and ts::*warnings-p* (or racer::*tbox-verbose* racer::*abox-verbose*))) (format t "~%~V@TI already have ontology ~A, skipping redundant import" racer::*indent* uri))) (defun reasoner-syntax-message (message uri) (when (or ts::*really-warn-p* (and ts::*warnings-p* (or racer::*tbox-verbose* racer::*abox-verbose*))) (format t message (- racer::*indent* 3) uri)))
71,461
Common Lisp
.lisp
1,584
36.52399
99
0.641515
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
0fa8dd7ac294c9a07b232d66462c5775a05a8c3ec4b47ff87317b46e412de6b1
6,346
[ -1 ]
6,347
owl-syntaxes-package.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owl-syntaxes-package.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: CL-USER; Base: 10 -*- (in-package :cl-user) ;;; ;;;; owl-syntaxes-package.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Defines the owl-syntaxes package ;;; (defpackage owl-syntaxes (:use #+:racer-server racer common-lisp #+:racer-server thematic-substrate owlapi #+:racer-server nrql-symbols) (:export owllink-init owlapi-import-ontology owllink-read-file1 owllink-read-document1 *converter-mode* *owllink2-input-syntax* *owllink2-output-syntax*))
5,337
Common Lisp
.lisp
100
51.71
90
0.697381
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
172b6aef8f93a1f6fa89ecf764297547795c39f8838df3ab917a1f004bb0f837
6,347
[ -1 ]
6,348
owl-renderer.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owl-renderer.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owl-renderer.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: A renderer / printer for OWL 2 in RDF/XML syntax ;;; (defun rdf-list (list) `(|rdf:List| nil ,@(let ((first (first (first list))) (rest (rest list)) (type (or (second (first list)) "xsd:string"))) (if first `((|rdf:first| ((|rdf:datatype| ,type)) ,first) ,(if rest `(|rdf:rest| ((|rdf:parseType| |Resource|)) ,(rdf-list rest)) `(|rdf:rest| ((|rdf:resource| |rdf:nil|))))) `((|rdf:rest| ((|rdf:resource| |rdf:nil|)))))))) (defun rdf-list2 (list &optional id) `(|rdf:List| ,(when id `((|rdf:ID| ,id))) ,@(let ((first (first list)) (rest (rest list))) (if first `((|rdf:first| nil ,first) ,(if rest `(|rdf:rest| nil ,(rdf-list2 rest)) `(|rdf:rest| ((|rdf:resource| |rdf:nil|))))) `((|rdf:rest| ((|rdf:resource| |rdf:nil|)))))))) (defun rdf-list3 (list &optional id) `(|rdf:List| ,(when id `((|rdf:ID| ,id))) ,@(let* ((first (first list)) (rest (rest list)) (type (if (consp first) `((|rdf:datatype| ,(second first))) nil)) (first (if (consp first) (first first) first))) (if first `((|rdf:first| ,type ,first) ,(if rest `(|rdf:rest| nil ,(rdf-list3 rest)) `(|rdf:rest| ((|rdf:resource| |rdf:nil|))))) `((|rdf:rest| ((|rdf:resource| |rdf:nil|)))))))) ;;; ;;; ;;; (defun trans-facet-owl (facet) facet) (defun trans-ind-owl (ind &optional top-level-p) (if (not top-level-p) ind `(|owl:NamedIndividual| ((|rdf:about| ,ind))))) (defun trans-data-range-owl (expr) (cond ((symbolp expr) ;;;`(|rdfs:Datatype| nil ,expr)) ;;; expr ;;; `(|rdf:Description| ((|rdf:about| ,expr)))) `(|rdfs:Datatype| ((|rdf:about| ,expr)))) ((consp expr) (case (first expr) (d-base-type (trans-data-range-owl (second expr))) (d-complement `(|rdfs:Datatype| nil (|owl:datatypeComplementOf| nil ,(trans-data-range-owl (second expr))))) (d-and `(|rdfs:Datatype| nil (|owl:intersectionOf| ((|rdf:parseType| |Collection|)) ,@(mapcar #'trans-data-range-owl (rest expr))))) (d-or `(|rdfs:Datatype| nil (|owl:unionOf| ((|rdf:parseType| |Collection|)) ,@(mapcar #'trans-data-range-owl (rest expr))))) (d-possible-values `(|rdfs:Datatype| nil (|owl:oneOf| ;((|rdf:parseType| |Resource|)) nil ,(rdf-list3 (mapcar #'(lambda (x) (multiple-value-call #'list (trans-literal-owl x))) (rest expr)))))) (d-restriction (let* ((basetype (second expr)) (facets-and-values (cddr expr)) (facets-and-values (loop as facet-and-value in facets-and-values collect (list (trans-facet-owl (second facet-and-value)) (multiple-value-call #'list (trans-literal-owl (third facet-and-value))))))) `(|rdfs:Datatype| nil (|owl:onDatatype| nil ,(trans-data-range-owl basetype)) (|owl:withRestrictions| ((|rdf:parseType| |Collection|)) ,@(mapcar #'(lambda (facet-and-value) (let ((facet (first facet-and-value)) (value (first (second facet-and-value))) (type (second (second facet-and-value)))) `(|rdf:Description| nil (,facet ((|rdf:datatype| ,type)) ,value)))) facets-and-values))))))))) (defun trans-object-property-owl (role) (if (consp role) (if (eq (first role) 'inv) `(|owl:ObjectProperty| nil (|owl:inverseOf| nil ,(trans-object-property-owl (second role)))) (owlapi-runtime-error "Cannot render role expression ~A!" role)) `(|owl:ObjectProperty| ((|rdf:about| ,role))))) (defun trans-data-property-owl (role) `(|owl:DatatypeProperty| ((|rdf:about| ,role)))) (defun trans-annotation-property-owl (role) `(|owl:AnnotationProperty| ((|rdf:about| ,role)))) (defun trans-datatype-owl (dtname) `(|rdfs:Datatype| ((|rdf:about| ,dtname)))) (defun trans-literal-owl (lit) (if (consp lit) ;; (d-literal "42" (d-base-type ...)) (values (second lit) (second (third lit))) (values lit "xsd:string"))) (defun trans-concept-owl (concept) (cond ((stringp concept) (trans-concept-owl (intern concept))) ((symbolp concept) `(|owl:Class| ((|rdf:about| ,concept)))) ((consp concept) (case (first concept) (not `(|owl:Class| nil (|owl:complementOf| nil ,(trans-concept-owl (second concept))))) (and `(|owl:Class| nil (|owl:intersectionOf| ((|rdf:parseType| |Collection|)) ,@(mapcar #'trans-concept-owl (rest concept))))) (or `(|owl:Class| nil (|owl:unionOf| ((|rdf:parseType| |Collection|)) ,@(mapcar #'trans-concept-owl (rest concept))))) (some `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (second concept))) (|owl:someValuesFrom| nil ,(trans-concept-owl (third concept))))) (all `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (second concept))) (|owl:allValuesFrom| nil ,(trans-concept-owl (third concept))))) (at-least (if (or (not (fourth concept)) (member (fourth concept) (list 'top '*top* owlapi:+owlapi-owl-top+))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (third concept))) (|owl:minCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (third concept))) (|owl:minQualifiedCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept)) (|owl:onClass| nil ,(trans-concept-owl (fourth concept)))))) (at-most (if (or (not (fourth concept)) (member (fourth concept) (list 'top '*top* owlapi:+owlapi-owl-top+))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (third concept))) (|owl:maxCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (third concept))) (|owl:maxQualifiedCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept)) (|owl:onClass| nil ,(trans-concept-owl (fourth concept)))))) (exactly (if (or (not (fourth concept)) (member (fourth concept) (list 'top '*top* owlapi:+owlapi-owl-top+))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (third concept))) (|owl:cardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (third concept))) (|owl:qualifiedCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept)) (|owl:onClass| nil ,(trans-concept-owl (fourth concept)))))) (one-of `(|owl:Class| nil (|owl:oneOf| ((|rdf:parseType| |Collection|)) ,@(mapcar #'(lambda (x) `(|rdf:Description| nil ,x)) (rest concept))))) (has-value `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (second concept))) (|owl:hasValue| nil ,(trans-concept-owl (third concept))))) (self-reference `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-object-property-owl (second concept))) (|owl:hasSelf| nil ;; korrekt? true? "true"))) (d-some (let ((data-range (first (last concept))) (properties (butlast (cdr concept)))) (if (cdr properties) `(|owl:Restriction| nil (|owl:onProperties| ((|rdf:parseType| |Collection|)) ,@(mapcar #'trans-data-property-owl properties)) (|owl:someValuesFrom| nil ,(trans-data-range-owl data-range))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (first properties))) (|owl:someValuesFrom| nil ,(trans-data-range-owl data-range)))))) (d-all (let ((data-range (first (last concept))) (properties (butlast (cdr concept)))) (if (cdr properties) `(|owl:Restriction| nil (|owl:onProperties| ((|rdf:parseType| |Collection|)) ,@(mapcar #'trans-data-property-owl properties)) (|owl:allValuesFrom| nil ,(trans-data-range-owl data-range))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (first properties))) (|owl:allValuesFrom| nil ,(trans-data-range-owl data-range)))))) (d-at-least (if (or (not (fourth concept)) (member (fourth concept) (list 'top '*top* owlapi:+owlapi-owl-top+))) ;; ?? CD TOP? `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (third concept))) (|owl:minCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (third concept))) (|owl:minQualifiedCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept)) (|owl:onData-Range| nil ,(trans-data-range-owl (fourth concept)))))) (d-at-most (if (or (not (fourth concept)) (member (fourth concept) (list 'top '*top* owlapi:+owlapi-owl-top+))) ;; ?? CD TOP? `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (third concept))) (|owl:maxCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (third concept))) (|owl:maxQualifiedCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept)) (|owl:onData-Range| nil ,(trans-data-range-owl (fourth concept)))))) (d-exactly (if (or (not (fourth concept)) (member (fourth concept) (list 'top '*top* owlapi:+owlapi-owl-top+))) ;; ?? CD TOP? `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (third concept))) (|owl:cardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept))) `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (third concept))) (|owl:qualifiedCardinality| ((|rdf:datatype| |xsd:nonNegativeInteger|)) ,(second concept)) (|owl:onData-Range| nil ,(trans-data-range-owl (fourth concept)))))) (d-filler `(|owl:Restriction| nil (|owl:onProperty| nil ,(trans-data-property-owl (second concept))) (|owl:hasValue| nil ,(trans-literal-owl (third concept))))))))) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLAxiom|) (syntax (eql :owl-rdf))) (owlapi-warning "Warning - cannot render axioms of type ~A in syntax ~A" (type-of axiom) syntax) nil) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLOntologyVersionDeclarationAxiom|) (syntax (eql :owl-rdf))) `((|owl:versionIRI| ((|rdf:resource| ,(iri-owl (owlapi:uri axiom))))))) (defmethod render ((stream stream) (axiom |OWLImportsDeclarationAxiom|) (syntax (eql :owl-rdf))) `((|owl:imports| ((|rdf:resource| ,(iri-owl (owlapi:uri axiom))))))) ;;; ;;; ;;; (defun annotation-to-xml-list (annotation) `((,(second annotation) nil ,(trans-literal-owl (third annotation))))) (defun annotation-to-axiom-annotation (annotation source property target &optional target-is-id-p) (if (not target-is-id-p) `(|owl:Axiom| nil (|owl:annotatedSource| nil ,source) (|owl:annotatedProperty| nil ,property) (|owl:annotatedTarget| nil ,target) (,(second annotation) nil ,(trans-literal-owl (third annotation)))) `(|owl:Axiom| nil (|owl:annotatedSource| nil ,source) (|owl:annotatedProperty| nil ,property) (|owl:annotatedTarget| ((|rdf:resource| ,target))) (,(second annotation) nil ,(trans-literal-owl (third annotation)))))) ;;; ;;; ;;; (defmethod get-axiom-comment-closure ((axiom |OWLAxiom|) (stream stream)) (lambda () (when *comments* (indent stream) (xml-comment stream (format nil "Axiom ID ~A" (owlapi:axiom-id axiom))) (indent stream) (xml-block-comment stream (cons (type-of axiom) (butlast (cdr (owlapi:told axiom))))) (indent stream)))) (defmethod render :around ((stream stream) (axiom |OWLAxiom|) (syntax (eql :owl-rdf))) (let ((res (call-next-method))) ;;; (pprint res) (funcall (get-axiom-comment-closure axiom stream)) (when (listp res) (incf *axioms-rendered*) (dolist (res res) (handler-case (let ((res (with-output-to-string (stream) (print-xml res stream)))) (write-string res stream)) (error (error) (error error) (owlapi-warning "Skipping bad axiom ID ~A : ~A" (owlapi:axiom-id axiom) (cons (type-of axiom) (butlast (cdr (owlapi:told axiom))))))))))) ;;; ;;; ;;; (defmethod render-axiom-annotation-axioms ((axiom |OWLAxiom|) stream cont) (dolist (annotation-axiom (owlapi:get-annotation-axioms-for-axiom axiom)) (when *comments* (indent stream) (xml-comment stream (format nil "Axiom ID ~A" (owlapi:axiom-id annotation-axiom))) (indent stream) (xml-block-comment stream (cons (type-of annotation-axiom) (butlast (cdr (owlapi:told annotation-axiom))))) (indent stream)) (print-xml (funcall cont annotation-axiom) stream))) (defun about-attribute-from (rdf-list) (or (second (assoc '|rdf:about| (second rdf-list))) rdf-list)) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLSubClassAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-concept-owl (first (owlapi:descriptions axiom))) '|rdfs:subClassOf| (trans-concept-owl (second (owlapi:descriptions axiom)))))) (list (append (trans-concept-owl (first (owlapi:descriptions axiom))) `((|rdfs:subClassOf| nil ,(trans-concept-owl (second (owlapi:descriptions axiom)))))))) (defmethod render ((stream stream) (axiom |OWLEquivalentClassesAxiom|) (syntax (eql :owl-rdf))) (mapcar #'(lambda (first second) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-concept-owl first) '|owl:equivalentClass| (trans-concept-owl second)))) (append (trans-concept-owl first) `((|owl:equivalentClass| nil ,(trans-concept-owl second))))) (owlapi:descriptions axiom) (rest (owlapi:descriptions axiom)))) (defmethod render ((stream stream) (axiom |OWLDisjointClassesAxiom|) (syntax (eql :owl-rdf))) (if (cddr (owlapi:descriptions axiom)) `((|owl:AllDisjointClasses| nil (|owl:members| ((|rdf:parseType| |Collection|)) ,@(mapcar #'(lambda (x) (trans-concept-owl x)) (owlapi:descriptions axiom))) ,@(mapcan #'(lambda (annotation-axiom) (list (get-axiom-comment-closure annotation-axiom stream) (first (annotation-to-xml-list (owlapi:annotation annotation-axiom))))) (owlapi:get-annotation-axioms-for-axiom axiom)))) (progn (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-concept-owl (first (owlapi:descriptions axiom))) '|owl:disjointWith| (trans-concept-owl (second (owlapi:descriptions axiom)))))) (list (append (trans-concept-owl (first (owlapi:descriptions axiom))) `((|owl:disjointWith| nil ,(trans-concept-owl (second (owlapi:descriptions axiom)))))))))) (defun get-blank-node-id () (incf *blank-node-id*)) (defmethod render ((stream stream) (axiom |OWLDisjointUnionAxiom|) (syntax (eql :owl-rdf))) (let ((node-id (get-blank-node-id))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-concept-owl (first (owlapi:descriptions axiom))) '|owl:disjointUnionOf| node-id t))) (list (append (trans-concept-owl (first (owlapi:descriptions axiom))) `((|owl:disjointUnionOf| nil ,(rdf-list2 (mapcar #'trans-concept-owl (rest (owlapi:descriptions axiom))) node-id))))))) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLObjectSubPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:sub-object-property axiom)) '|rdfs:subPropertyOf| (trans-object-property-owl (owlapi:object-property axiom))))) (list (append (trans-object-property-owl (owlapi:sub-object-property axiom)) `((|rdfs:subPropertyOf| nil ,(trans-object-property-owl (owlapi:object-property axiom))))))) (defmethod render ((stream stream) (axiom |OWLObjectPropertyChainSubPropertyAxiom|) (syntax (eql :owl-rdf))) (let ((node-id (get-blank-node-id))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|owl:propertyChainAxiom| node-id t))) (list (append (trans-object-property-owl (owlapi:object-property axiom)) `((|owl:propertyChainAxiom| nil ,(rdf-list2 (mapcar #'trans-object-property-owl (owlapi:object-property-chain axiom)) node-id))))))) (defmethod render ((stream stream) (axiom |OWLEquivalentObjectPropertiesAxiom|) (syntax (eql :owl-rdf))) (mapcar #'(lambda (first second) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl first) '|owl:equivalentProperty| (trans-object-property-owl second)))) (append (trans-object-property-owl first) `((|owl:equivalentProperty| nil ,(trans-object-property-owl second))))) (owlapi:object-properties axiom) (rest (owlapi:object-properties axiom)))) (defmethod render ((stream stream) (axiom |OWLDisjointObjectPropertiesAxiom|) (syntax (eql :owl-rdf))) (if (cddr (owlapi:object-properties axiom)) `((|owl:AllDisjointProperties| nil (|owl:members| nil ,(rdf-list2 (mapcar #'(lambda (x) (trans-object-property-owl x)) (owlapi:object-properties axiom)))) ,@(mapcan #'(lambda (annotation-axiom) (list (get-axiom-comment-closure annotation-axiom stream) (first (annotation-to-xml-list (owlapi:annotation annotation-axiom))))) (owlapi:get-annotation-axioms-for-axiom axiom)))) (progn (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (first (owlapi:object-properties axiom))) '|owl:propertyDisjointWith| (trans-object-property-owl (second (owlapi:object-properties axiom)))))) (list (append (trans-object-property-owl (first (owlapi:object-properties axiom))) `((|owl:propertyDisjointWith| nil ,(trans-object-property-owl (second (owlapi:object-properties axiom)))))))))) (defmethod render ((stream stream) (axiom |OWLObjectPropertyDomainAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdfs:domain| (trans-concept-owl (owlapi:object-property-domain axiom))))) (list (append (trans-object-property-owl (owlapi:object-property axiom)) `((|rdfs:domain| nil ,(trans-concept-owl (owlapi:object-property-domain axiom))))))) (defmethod render ((stream stream) (axiom |OWLObjectPropertyRangeAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdfs:range| (trans-concept-owl (owlapi:object-property-range axiom))))) (list (append (trans-object-property-owl (owlapi:object-property axiom)) `((|rdfs:range| nil ,(trans-concept-owl (owlapi:object-property-range axiom))))))) (defmethod render ((stream stream) (axiom |OWLInverseObjectPropertiesAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (first (owlapi:object-properties axiom))) '|owl:inverseOf| (trans-object-property-owl (second (owlapi:object-properties axiom)))))) (list (append (trans-object-property-owl (first (owlapi:object-properties axiom))) `((|owl:inverseOf| nil ,(trans-object-property-owl (second (owlapi:object-properties axiom)))))))) (defmethod render ((stream stream) (axiom |OWLFunctionalObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:FunctionalProperty|))) `((|owl:FunctionalProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLInverseFunctionalObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:InverseFunctionalProperty|))) `((|owl:InverseFunctionalProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLReflexiveObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:ReflexiveProperty|))) `((|owl:ReflexiveProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLIrreflexiveObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:IrreflexiveProperty|))) `((|owl:IrreflexiveProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLSymmetricObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:SymmetricProperty|))) `((|owl:SymmetricProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLAsymmetricObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:AsymmetricProperty|))) `((|owl:AsymmetricProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLTransitiveObjectPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:object-property axiom)) '|rdf:type| '|owl:TransitiveProperty|))) `((|owl:TransitiveProperty| nil ,(about-attribute-from (trans-object-property-owl (owlapi:object-property axiom)))))) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLDataSubPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-data-property-owl (owlapi:sub-data-property axiom)) '|rdfs:subPropertyOf| (trans-data-property-owl (owlapi:data-property axiom))))) (list (append (trans-data-property-owl (owlapi:sub-data-property axiom)) `((|rdfs:subPropertyOf| nil ,(trans-data-property-owl (owlapi:data-property axiom))))))) (defmethod render ((stream stream) (axiom |OWLEquivalentDataPropertiesAxiom|) (syntax (eql :owl-rdf))) (mapcar #'(lambda (first second) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-data-property-owl first) '|owl:equivalentProperty| (trans-data-property-owl second)))) (append (trans-data-property-owl first) `((|owl:equivalentProperty| nil ,(trans-data-property-owl second))))) (owlapi:data-properties axiom) (rest (owlapi:data-properties axiom)))) (defmethod render ((stream stream) (axiom |OWLDisjointDataPropertiesAxiom|) (syntax (eql :owl-rdf))) (if (cddr (owlapi:data-properties axiom)) `((|owl:AllDisjointProperties| nil (|owl:members| nil ,(rdf-list2 (mapcar #'(lambda (x) (trans-data-property-owl x)) (owlapi:data-properties axiom)))) ,@(mapcan #'(lambda (annotation-axiom) (list (get-axiom-comment-closure annotation-axiom stream) (first (annotation-to-xml-list (owlapi:annotation annotation-axiom))))) (owlapi:get-annotation-axioms-for-axiom axiom)))) (progn (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-data-property-owl (first (owlapi:data-properties axiom))) '|owl:propertyDisjointWith| (trans-data-property-owl (second (owlapi:data-properties axiom)))))) (list (append (trans-data-property-owl (first (owlapi:data-properties axiom))) `((|owl:propertyDisjointWith| nil ,(trans-data-property-owl (second (owlapi:data-properties axiom)))))))))) (defmethod render ((stream stream) (axiom |OWLDataPropertyDomainAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-data-property-owl (owlapi:data-property axiom)) '|rdfs:domain| (trans-concept-owl (owlapi:data-property-domain axiom))))) (list (append (trans-data-property-owl (owlapi:data-property axiom)) `((|rdfs:domain| nil ,(trans-concept-owl (owlapi:data-property-domain axiom))))))) (defmethod render ((stream stream) (axiom |OWLDataPropertyRangeAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-data-property-owl (owlapi:data-property axiom)) '|rdfs:range| (trans-data-range-owl (owlapi:data-property-range axiom))))) (list (append (trans-data-property-owl (owlapi:data-property axiom)) `((|rdfs:range| nil ,(trans-data-range-owl (owlapi:data-property-range axiom))))))) (defmethod render ((stream stream) (axiom |OWLFunctionalDataPropertyAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-data-property-owl (owlapi:data-property axiom)) '|rdf:type| '|owl:FunctionalProperty|))) `((|owl:FunctionalProperty| nil ,(about-attribute-from (trans-data-property-owl (owlapi:data-property axiom)))))) (defmethod render ((stream stream) (axiom |OWLDatatypeDefinitionAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (about-attribute-from (trans-datatype-owl (owlapi:datatype-name axiom))) '|rdf:type| '|rdfs:Datatype|))) (list (append (trans-datatype-owl (owlapi:datatype-name axiom)) `((|owl:equivalentClass| nil ,(trans-data-range-owl (owlapi:data-range axiom))))))) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLHasKeyAxiom|) (syntax (eql :owl-rdf))) (let ((node-id (format nil "#~A" (get-blank-node-id)))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-concept-owl (owlapi:key-class axiom)) '|owl:hasKey| node-id t))) (list (append (trans-concept-owl (owlapi:key-class axiom)) `((|owl:hasKey| nil ,(rdf-list2 (append (mapcar #'trans-object-property-owl (owlapi:key-object-properties axiom)) (mapcar #'trans-data-property-owl (owlapi:key-data-properties axiom))) node-id))))))) ;;; ;;; ;;; (defun simplify-role (role) (labels ((do-it (role inverted-p) (if (symbolp role) (if inverted-p `(inv ,role) role) (if (and (consp role) (eq (first role) 'inv)) (do-it (second role) (not inverted-p)) (owlapi-runtime-error "Bad role: ~A" role))))) (do-it role nil))) (defmethod render ((stream stream) (axiom |OWLClassAssertionAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl (owlapi:ax-individual axiom)) '|rdf:type| (trans-concept-owl (owlapi:description axiom))))) `((|rdf:Description| ((|rdf:about| ,(trans-ind-owl (owlapi:ax-individual axiom)))) (|rdf:type| nil ,(trans-concept-owl (owlapi:description axiom)))))) (defmethod render ((stream stream) (axiom |OWLObjectPropertyAssertionAxiom|) (syntax (eql :owl-rdf))) (let ((rel (simplify-role (owlapi:rel-object-property axiom)))) (if (consp rel) ; lt. Spec! (progn (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl (owlapi:object axiom)) (second rel) (trans-ind-owl (owlapi:subject axiom))))) `((|rdf:Description| ((|rdf:about| ,(trans-ind-owl (owlapi:object axiom)))) (,(second rel) nil ,(trans-ind-owl (owlapi:subject axiom)))))) (progn (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl (owlapi:subject axiom)) rel (trans-ind-owl (owlapi:object axiom))))) `((|rdf:Description| ((|rdf:about| ,(trans-ind-owl (owlapi:subject axiom)))) (,rel nil ,(trans-ind-owl (owlapi:object axiom))))))))) (defmethod render ((stream stream) (axiom |OWLNegativeObjectPropertyAssertionAxiom|) (syntax (eql :owl-rdf))) `((|owl:NegativePropertyAssertion| nil (|owl:sourceIndividual| nil ,(trans-ind-owl (owlapi:subject axiom))) (|owl:assertionProperty| nil ,(trans-object-property-owl (owlapi:rel-object-property axiom))) (|owl:targetIndividual| nil ,(trans-ind-owl (owlapi:object axiom))) ,@(mapcan #'(lambda (annotation-axiom) (list (get-axiom-comment-closure annotation-axiom stream) (first (annotation-to-xml-list (owlapi:annotation annotation-axiom))))) (owlapi:get-annotation-axioms-for-axiom axiom))))) (defmethod render ((stream stream) (axiom |OWLSameIndividualsAxiom|) (syntax (eql :owl-rdf))) (mapcar #'(lambda (first second) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl first) '|owl:sameAs| (trans-ind-owl second)))) (append (trans-ind-owl first t) `((|owl:sameAs| nil ,(trans-ind-owl second t))))) (owlapi:individuals axiom) (rest (owlapi:individuals axiom)))) (defmethod render ((stream stream) (axiom |OWLDifferentIndividualsAxiom|) (syntax (eql :owl-rdf))) (if (cddr (owlapi:individuals axiom)) `((|owl:AllDifferent| nil (|owl:members| ((|rdf:parseType| |Collection|)) ,@(mapcar #'(lambda (x) (trans-ind-owl x t)) (owlapi:individuals axiom))) ,@(mapcan #'(lambda (annotation-axiom) (list (get-axiom-comment-closure annotation-axiom stream) (first (annotation-to-xml-list (owlapi:annotation annotation-axiom))))) (owlapi:get-annotation-axioms-for-axiom axiom)))) (progn (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl (first (owlapi:individuals axiom))) '|owl:differentFrom| (trans-ind-owl (second (owlapi:individuals axiom)))))) `((|rdf:Description| ((|rdf:about| ,(trans-ind-owl (first (owlapi:individuals axiom))))) (|owl:differentFrom| nil ,(trans-ind-owl (second (owlapi:individuals axiom)) t))))))) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLDataPropertyAssertionAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl (owlapi:subject axiom)) (owlapi:rel-data-property axiom) (trans-literal-owl (owlapi:data-literal axiom))))) `((|rdf:Description| ((|rdf:about| ,(trans-ind-owl (owlapi:subject axiom)))) (,(owlapi:rel-data-property axiom) nil ,(trans-literal-owl (owlapi:data-literal axiom)))))) (defmethod render ((stream stream) (axiom |OWLNegativeDataPropertyAssertionAxiom|) (syntax (eql :owl-rdf))) `((|owl:NegativePropertyAssertion| nil (|owl:sourceIndividual| nil ,(trans-ind-owl (owlapi:subject axiom))) (|owl:assertionProperty| nil ,(trans-data-property-owl (owlapi:rel-data-property axiom))) (|owl:targetValue| nil ,(trans-literal-owl (owlapi:data-literal axiom))) ,@(mapcan #'(lambda (annotation-axiom) (list (get-axiom-comment-closure annotation-axiom stream) (first (annotation-to-xml-list (owlapi:annotation annotation-axiom))))) (owlapi:get-annotation-axioms-for-axiom axiom))))) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLDeclarationAxiom|) (syntax (eql :owl-rdf))) (mapcar #'(lambda (entity) (let ((owl-entity (ecase (first entity) ((|OWLClass| |Class|) '|owl:Class|) (|ObjectProperty| '|owl:ObjectProperty|) (|DataProperty| '|owl:DataProperty|) (|Datatype| '|rdfs:Datatype|) (|AnnotationProperty| '|owl:AnnotationProperty|) ((|Individual| |NamedIndividual|) '|owl:NamedIndividual|)))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (second entity) '|rdf:type| owl-entity))) (list owl-entity nil (second entity)))) (if (consp (first (owlapi:entity axiom))) (owlapi:entity axiom) (list (owlapi:entity axiom))))) (defmethod render ((stream stream) (axiom |OWLImplicitDeclarationAxiom|) (syntax (eql :owl-rdf))) ;;; NICHT rendern! t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLAxiomAnnotationAxiom|) (syntax (eql :owl-rdf))) t) ;;; ;;; Old EntityAnnotationAxiom ;;; #| (defmethod render ((stream stream) (axiom |OWLEntityAnnotationAxiom|) (syntax (eql :owl-rdf))) '(tag-printer stream |EntityAnnotation| (render-axiom-annotations stream axiom syntax) (func-printer stream (entity axiom)) (func-printer stream `(,(case (intern (ensure-string (second (annotation axiom)))) ;; *implicit-annotation-properties* ((|http://www.w3.org/2000/01/rdf-schema#comment| |http://www.w3.org/2000/01/rdf-schema#Comment| !rdfs:comment) '|Comment|) ((|http://www.w3.org/2000/01/rdf-schema#label| |http://www.w3.org/2000/01/rdf-schema#Label| !rdfs:label) '|Label|) ((|http://www.w3.org/2000/01/rdf-schema#seeAlso| |http://www.w3.org/2000/01/rdf-schema#SeeAlso| !rdfs:seeAlso) '|seeAlso|) ((|http://www.w3.org/2002/07/owl#isDefinedBy| |http://www.w3.org/2002/07/owl#IsDefinedBy| !owl:isDefinedBy) '|isDefinedBy|) ((|http://www.w3.org/2002/07/owl#versionInfo| |http://www.w3.org/2002/07/owl#VersionInfo| !owl:versionInfo) '|priorVersion|) (otherwise (if *p4-mode* '|Comment| (intern (ensure-string (second (annotation axiom))))))) ,(format nil "~S" (second (third (annotation axiom))))))) t) |# ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLOntologyAnnotationAxiom|) (syntax (eql :owl-rdf))) (annotation-to-xml-list (owlapi:annotation axiom))) (defmethod render ((stream stream) (axiom |OWLAnnotationAssertionAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-ind-owl (owlapi:annotation-subject axiom)) (owlapi:annotation-property axiom) (trans-literal-owl (owlapi:annotation-value axiom))))) `((|rdf:Description| ((|rdf:about| ,(trans-ind-owl (owlapi:annotation-subject axiom)))) (,(owlapi:annotation-property axiom) nil ,(trans-literal-owl (owlapi:annotation-value axiom)))))) (defmethod render ((stream stream) (axiom |OWLAnnotationPropertyRangeAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-annotation-property-owl (owlapi:annotation-property2 axiom)) '|rdfs:range| (trans-data-range-owl (owlapi:annotation-property-range axiom))))) (list (append (trans-annotation-property-owl (owlapi:annotation-property2 axiom)) `((|rdfs:range| nil ,(trans-data-range-owl (owlapi:annotation-property-range axiom))))))) (defmethod render ((stream stream) (axiom |OWLAnnotationPropertyDomainAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-annotation-property-owl (owlapi:annotation-property1 axiom)) '|rdfs:domain| (trans-concept-owl (owlapi:annotation-property-domain axiom))))) (list (append (trans-annotation-property-owl (owlapi:annotation-property1 axiom)) `((|rdfs:domain| nil ,(trans-concept-owl (owlapi:annotation-property-domain axiom))))))) (defmethod render ((stream stream) (axiom |OWLSubAnnotationPropertyOfAxiom|) (syntax (eql :owl-rdf))) (render-axiom-annotation-axioms axiom stream (lambda (annotation-axiom) (annotation-to-axiom-annotation (owlapi:annotation annotation-axiom) (trans-object-property-owl (owlapi:annotation-sub-property axiom)) '|rdfs:subPropertyOf| (trans-annotation-property-owl (owlapi:annotation-super-property axiom))))) (list (append (trans-annotation-property-owl (owlapi:annotation-sub-property axiom)) `((|rdfs:subPropertyOf| nil ,(trans-annotation-property-owl (owlapi:annotation-super-property axiom))))))) ;;; ;;; OWL RDF ;;; (defmethod render ((stream stream) (ont owlapi:ontology) (syntax (eql :owl-rdf))) (let* ((*ontology* ont) (*axioms-rendered* 0) (*blank-node-id* 0) (all-axioms nil) (*dont-render-attributes* '(|INT-abbreviatesIRIs| |INT-kb| |INT-prefixes|)) (*abbreviate-iris* nil)) (with-prefixes (ont prefixes default) (let* ((default (without-# default)) (prefixes (cons (list nil default) prefixes))) (with-slots (owlapi:axioms owlapi:name) ont (xml-header stream) (indent stream) (xml-author-comment owlapi:name stream) (indent stream) (entity-definitions stream prefixes) (indent stream) (print-xml `(|rdf:RDF| (("xmlns" ,(with-# default)) ("xml:base" ,(without-# default)) ,@(mapcar #'(lambda (x) (list (format nil "xmlns:~A" (first x)) (second x) t)) (remove-if #'owlapi:is-default-prefix-p prefixes :key #'first))) (|owl:Ontology| ((|rdf:about| ,(make-url-from-filename owlapi:name))) ,(lambda () (let ((*add-prefixes* prefixes) (*abbreviate-iris* t)) (dolist (type '(|OWLOntologyVersionDeclarationAxiom| |OWLImportsDeclarationAxiom| |OWLOntologyAnnotationAxiom|)) (dolist (axiom (owlapi:get-axioms-of-type-for owlapi:axioms type)) (push axiom all-axioms) (render stream axiom syntax)))))) ,(lambda () (let ((*add-prefixes* prefixes) (*abbreviate-iris* t)) (dolist (type #| (not (or |OWLOntologyVersionDeclarationAxiom| |OWLImportsDeclarationAxiom| |OWLOntologyAnnotationAxiom| |OWLPrefixDeclarationAxiom|)) |# '( |OWLDeclarationAxiom| |OWLDatatypeDefinitionAxiom| |OWLClassAxiom| |OWLPropertyAxiom| |OWLIndividualAxiom| |OWLHasKeyAxiom| (and |OWLAnnotationAxiom| (not |OWLOntologyAnnotationAxiom|) (not |OWLAxiomAnnotationAxiom|)))) (dolist (axiom (owlapi:get-axioms-of-type-for owlapi:axioms type)) (push axiom all-axioms) (render stream axiom syntax)))))) stream) (indent stream) (xml-author-comment owlapi:name stream) (let ((axioms (remove-if #'(lambda (x) (or (typep x '|OWLAxiomAnnotationAxiom|) (typep x '|OWLOntologyAnnotationAxiom|) (typep x '|OWLPrefixDeclarationAxiom|))) owlapi:axioms))) (when (set-difference axioms all-axioms) (owlapi-warning "Upps! Forgot to render axioms of types ~A!" (remove-duplicates (mapcar #'type-of (set-difference axioms all-axioms)))))) *axioms-rendered*)))))
63,523
Common Lisp
.lisp
1,217
34.668036
109
0.516572
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
18393a4537823180baa2430d21e8c0c326eb3e6d95bae55c95f99850ab80cbd9
6,348
[ -1 ]
6,349
owlapi-package.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owlapi-package.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: CL-USER; Base: 10 -*- (in-package :cl-user) ;;; ;;;; owlapi-package.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Defines the owlapi package ;;; (defpackage owlapi (:nicknames nosa) (:use #+:racer-server racer common-lisp #+:racer-server thematic-substrate #+:racer-server nrql-symbols) (:export #:*count* #:*demo* #:demo #:define-constant #:*ano-concept* #:*cur-reasoner* #:*default-reasoner* #:*default-reasoner-name* #:*reasoners* #:+old-owl2-namespace+ #:+owl2-namespace+ #:+owlapi-owl-bottom+ #:+owlapi-owl-bottom-data-role+ #:+owlapi-owl-bottom-object-role+ #:+owlapi-owl-nothing+ #:+owlapi-owl-thing+ #:+owlapi-owl-top+ #:+owlapi-owl-top-data-role+ #:+owlapi-owl-top-object-role+ #:< #:<= #:<> #:= #:=> #:> #:>= #:a #:all #:all-names #:an #:and #:|AnnnotationProperty| #:annotated-ax #:annotation #:annotation-property #:annotation-property-domain #:annotation-property-range #:annotation-property1 #:annotation-property2 #:annotation-role #:annotation-sub-property #:annotation-subject #:annotation-super-property #:annotation-value #:annotations #:at-least #:at-most #:auto-declare-datatype-properties-p #:ax #:ax-individual #:ax1 #:ax2 #:axiom #:axiom-id #:axioms #:axioms-equal-p #:axioms-told #:boolean<> #:boolean= #:c1 #:c2 #:can-be-unloaded-p #:|Class| #:cls #:cls-or-id #:clsc #:clsd #:d-all #:d-and #:d-at-least #:d-at-most #:d-base-type #:d-complement #:d-exactly #:d-filler #:d-literal #:d-or #:d-possible-values #:d-restriction #:d-some #:data-literal #:data-properties #:data-property #:data-property-domain #:data-property-range #:data-range #:data-sub-property #:data-super-property #:|DataProperty| #:datarange-slots-equal-p #:|Datatype| #:datatype-name #:|Declaration| #:declared-annotation-properties #:declared-concepts #:declared-data-properties #:declared-datatypes #:declared-individuals #:declared-object-properties #:defmethod1 #:defun1 #:description #:descriptions #:direct-entailed-p #:dispose-axiom #:dispose-axioms-p #:dispose-ontology #:divisible #:dont-keep-axioms-p #:ends-with-#-p #:ensure-ends-with-colon #:ensure-list #:ensure-string #:entailed-p #:entities #:entity #:equal #:exactly #:expand-prefix #:find-owl-axiom #:find-owl-ontology #:find-reasoner #:first-object-property #:for-all-pairs-holds-p #:from #:from-to #:get-all-ontologies #:get-annotation-axioms-for-axiom #:get-axioms #:get-axioms-in #:get-axioms-of-type-for #:get-concept-synonyms #:get-current-date #:get-current-id #:get-ontologies #:get-ontology-names #:get-prefix-postfix #:get-role-synonyms #:get-temp-ontology-name #:has-value #:id-to-object-table #:individual #:individuals #:inds #:|is-AddAxiom-p| #:is-default-prefix-p #:is-entity-p #:is-file-url-p #:is-http-url-p #:is-ontology-p #:|is-OWLAxiomChange-p| #:|is-OWLOntologyChange-p| #:is-reasoner-p #:|is-RemoveAxiom-p| #:|is-SetOntologyURI-p| #:is-url-p #:key-class #:key-data-properties #:key-object-properties #:load-axiom #:load-axioms #:load-ontology #:loaded-p #:lookup-mode #:make-uri #:max #:mht #:min #:name #:|NamedIndividual| #:namespace #:no #:not #:not-divisible #:notify-reasoner-role-is-used-as-annotation-property #:notify-reasoner-role-is-used-as-datatype-property #:obj #:object #:object-properties #:object-property #:object-property-chain #:object-property-domain #:object-property-range #:object-sub-property #:object-super-property #:|ObjectAllValuesFrom| #:|ObjectComplementOf| #:|ObjectExactCardinality| #:|ObjectExistsSelf| #:|ObjectHasSelf| #:|ObjectHasValue| #:|ObjectIntersectionOf| #:|ObjectInverseOf| #:|ObjectMaxCardinality| #:|ObjectMinCardinality| #:|ObjectOneOf| #:|ObjectProperty| #:|ObjectPropertyAssertion| #:|ObjectPropertyChain| #:|ObjectPropertyDomain| #:|ObjectPropertyRange| #:|ObjectSomeValuesFrom| #:|ObjectUnionOf| #:one-of #:ontologies #:|Ontology| #:ontology #:ontology-prefixes #:or #:|OWLAnnotationAssertionAxiom| #:|OWLAnnotationAssertionAxiom-p| #:|OWLAnnotationAxiom| #:|OWLAnnotationAxiom-p| #:|OWLAnnotationPropertyDomainAxiom| #:|OWLAnnotationPropertyDomainAxiom-p| #:|OWLAnnotationPropertyRangeAxiom| #:|OWLAnnotationPropertyRangeAxiom-p| #:|OWLAntiSymmetricObjectPropertyAxiom| #:owlapi-abox #:owlapi-add-prefix #:|OWLAPI-AddAxiom| #:|OWLAPI-addAxiom| #:|OWLAPI-AddAxioms| #:|OWLAPI-addAxioms| #:|OWLAPI-addPrefix| #:|OWLAPI-applyChanges| #:owlapi-auto-batch-add-axioms-to #:owlapi-auto-batch-remove-axioms-from #:|OWLAPI-autoAddAxiomsTo| #:|OWLAPI-autoApplyChanges| #:|OWLAPI-autoBatchAddAxiomsTo| #:|OWLAPI-autoBatchRemoveAxiomsFrom| #:|OWLAPI-autoRemoveAxiomsFrom| #:|OWLAPI-AxiomLoaded?| #:|OWLAPI-AxiomToID| #:owlapi-batch-remove-axioms-from #:owlapi-batch-synchronize #:|OWLAPI-batchSynchronize| #:|OWLAPI-classify| #:|OWLAPI-clearChanges| #:|OWLAPI-clearOntologies| #:|OWLAPI-clearRegistry| #:|OWLAPI-considerDeclarations| #:|OWLAPI-contains| #:owlapi-defmacro #:owlapi-defmethod #:owlapi-defun #:|OWLAPI-describeOntologies| #:|OWLAPI-describeOntology| #:|OWLAPI-describeReasoner| #:|OWLAPI-describeReasoners| #:owlapi-disable-auto-mode #:owlapi-disable-incremental-updates #:owlapi-disable-memory-saving-mode #:|OWLAPI-disableAutoMode| #:|OWLAPI-disableIncrementalUpdates| #:|OWLAPI-disableLookupMode| #:|OWLAPI-disableMemorySavingMode| #:|OWLAPI-disableSimplifiedProtocol| #:|OWLAPI-disableTransientAxiomMode| #:|OWLAPI-dispose| #:owlapi-dispose-reasoner #:|OWLAPI-disposeAxiom| #:|OWLAPI-disposeAxioms| #:|OWLAPI-disposeOntologies| #:|OWLAPI-disposeOntology| #:|OWLAPI-disposeReasoner| #:|OWLAPI-dontRegisterDeclaredEntities| #:|OWLAPI-dontRegisterReferencedEntities| #:owlapi-enable-incremental-updates #:owlapi-enable-memory-saving-mode #:|OWLAPI-enableIncrementalUpdates| #:|OWLAPI-enableLookupMode| #:|OWLAPI-enableMemorySavingMode| #:|OWLAPI-enableSimplifiedProtocol| #:|OWLAPI-enableTransientAxiomMode| #:|OWLAPI-exportOntology| #:|OWLAPI-exportReasoner| #:|OWLAPI-findIDFromObject| #:|OWLAPI-findObjectFromID| #:owlapi-get-axioms #:|OWLAPI-getAllOntologies| #:|OWLAPI-getAncestorClasses| #:|OWLAPI-getAncestorProperties| #:|OWLAPI-getAnnotationAxiomsForAxiom| #:|OWLAPI-getAutoDeclareDataProperties| #:|OWLAPI-getAutoOntology| #:|OWLAPI-getAxiomCounter| #:|OWLAPI-getAxioms| #:|OWLAPI-getAxiomsIn| #:|OWLAPI-getAxiomsOfType| #:|OWLAPI-getAxiomsOfTypeIn| #:|OWLAPI-getAxiomsPerOntology| #:|OWLAPI-getChanges| #:|OWLAPI-getCurrentReasoner| #:|OWLAPI-getDataPropertyRelationships| #:|OWLAPI-getDescendantClasses| #:|OWLAPI-getDescendantProperties| #:|OWLAPI-getDifferentIndividuals| #:|OWLAPI-getDomains| #:|OWLAPI-getEquivalentClasses| #:|OWLAPI-getEquivalentProperties| #:|OWLAPI-getInconsistentClasses| #:|OWLAPI-getIndividuals| #:|OWLAPI-getInverseProperties| #:|OWLAPI-getLoadedOntologies| #:|OWLAPI-getObjectPropertyRelationships| #:|OWLAPI-getOntologies| #:|OWLAPI-getOWLAnnotationAssertionAxiom| #:|OWLAPI-getOWLAnnotationPropertyDomainAxiom| #:|OWLAPI-getOWLAnnotationPropertyRangeAxiom| #:|OWLAPI-getOWLAsymmetricObjectPropertyAxiom| #:|OWLAPI-getOWLAxiomAnnotationAxiom| #:|OWLAPI-getOWLClassAssertionAxiom| #:|OWLAPI-getOWLDataPropertyAssertionAxiom| #:|OWLAPI-getOWLDataPropertyDomainAxiom| #:|OWLAPI-getOWLDataPropertyRangeAxiom| #:|OWLAPI-getOWLDataSubPropertyAxiom| #:|OWLAPI-getOWLDatatypeDefinitionAxiom| #:|OWLAPI-getOWLDeclarationAxiom| #:|OWLAPI-getOWLDifferentIndividualsAxiom| #:|OWLAPI-getOWLDisjointClassesAxiom| #:|OWLAPI-getOWLDisjointDataPropertiesAxiom| #:|OWLAPI-getOWLDisjointObjectPropertiesAxiom| #:|OWLAPI-getOWLDisjointUnionAxiom| #:|OWLAPI-getOWLEntityAnnotationAxiom| #:|OWLAPI-getOWLEquivalentClassesAxiom| #:|OWLAPI-getOWLEquivalentDataPropertiesAxiom| #:|OWLAPI-getOWLEquivalentObjectPropertiesAxiom| #:|OWLAPI-getOWLFunctionalDataPropertyAxiom| #:|OWLAPI-getOWLFunctionalObjectPropertyAxiom| #:|OWLAPI-getOWLHasKeyAxiom| #:|OWLAPI-getOWLImplicitDeclarationAxiom| #:|OWLAPI-getOWLImportsDeclarationAxiom| #:|OWLAPI-getOWLInverseFunctionalObjectPropertyAxiom| #:|OWLAPI-getOWLInverseObjectPropertiesAxiom| #:|OWLAPI-getOWLIrreflexiveObjectPropertyAxiom| #:|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| #:|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| #:|OWLAPI-getOWLObjectPropertyAssertionAxiom| #:|OWLAPI-getOWLObjectPropertyChainSubPropertyAxiom| #:|OWLAPI-getOWLObjectPropertyDomainAxiom| #:|OWLAPI-getOWLObjectPropertyRangeAxiom| #:|OWLAPI-getOWLObjectSubPropertyAxiom| #:|OWLAPI-getOWLOntologyAnnotationAxiom| #:|OWLAPI-getOWLOntologyVersionDeclarationAxiom| #:|OWLAPI-getOWLPrefixDeclarationAxiom| #:|OWLAPI-getOWLReallyImplicitDeclarationAxiom| #:|OWLAPI-getOWLReflexiveObjectPropertyAxiom| #:|OWLAPI-getOWLSameIndividualsAxiom| #:|OWLAPI-getOWLSubAnnotationPropertyAxiom| #:|OWLAPI-getOWLSubAnnotationPropertyOfAxiom| #:|OWLAPI-getOWLSubClassAxiom| #:|OWLAPI-getOWLSymmetricObjectPropertyAxiom| #:|OWLAPI-getOWLTransitiveObjectPropertyAxiom| #:|OWLAPI-getPrefixes| #:|OWLAPI-getRanges| #:|OWLAPI-getReasoners| #:|OWLAPI-getRelatedIndividuals| #:|OWLAPI-getRelatedValues| #:|OWLAPI-getSameIndividuals| #:|OWLAPI-getSubClasses| #:|OWLAPI-getSubProperties| #:|OWLAPI-getSuperClasses| #:|OWLAPI-getSuperProperties| #:|OWLAPI-getTypes| #:|OWLAPI-hasDataPropertyRelationship| #:|OWLAPI-hasObjectPropertyRelationship| #:|OWLAPI-hasType| #:|OWLAPI-IDToAxiom| #:|OWLAPI-ignoreAnnotations| #:|OWLAPI-ignoreDeclarations| #:owlapi-import-ontology #:|OWLAPI-init| #:|OWLAPI-isAsymmetric| #:|OWLAPI-isClass| #:|OWLAPI-isClassified| #:|OWLAPI-isConsistent| #:|OWLAPI-isDefinedClass| #:|OWLAPI-isDefinedDataProperty| #:|OWLAPI-isDefinedIndividual| #:|OWLAPI-isDefinedObjectProperty| #:|OWLAPI-isDifferentIndividual| #:|OWLAPI-isEquivalentClass| #:|OWLAPI-isFunctional| #:|OWLAPI-isInverseFunctional| #:|OWLAPI-isIrreflexive| #:|OWLAPI-isRealised| #:|OWLAPI-isReflexive| #:|OWLAPI-isSameIndividual| #:|OWLAPI-isSatisfiable| #:|OWLAPI-isSubClassOf| #:|OWLAPI-isSymmetric| #:|OWLAPI-isTransitive| #:|OWLAPI-keepAnnotations| #:owlapi-load-ontology #:|OWLAPI-loadAxiom| #:|OWLAPI-loadAxioms| #:|OWLAPI-loadOntologies| #:|OWLAPI-loadOntology| #:|OWLAPI-manuallyApplyChanges| #:|OWLAPI-mergeOntologies| #:owlapi-new-ontology #:owlapi-new-reasoner #:|OWLAPI-newOntology| #:|OWLAPI-newReasoner| #:|OWLAPI-nextAxiomUseID| #:|OWLAPI-parse| #:|OWLAPI-parseNative| #:owlapi-parser-error #:|OWLAPI-readFunctionalOntologyDocument| #:|OWLAPI-readFunctionalOntologyFile| #:|OWLAPI-readOntology| #:|OWLAPI-readXMLOntologyDocument| #:|OWLAPI-readXMLOntologyFile| #:|OWLAPI-realize| #:owlapi-reasoner-name #:|OWLAPI-registerDeclaredEntities| #:|OWLAPI-registerLastAnswer| #:|OWLAPI-registerObject| #:|OWLAPI-registerReferencedEntities| #:|OWLAPI-reloadLoadedOntologies| #:|OWLAPI-RemoveAxiom| #:|OWLAPI-removeAxiom| #:|OWLAPI-RemoveAxioms| #:|OWLAPI-removeAxioms| #:|OWLAPI-removePrefix| #:|OWLAPI-resetAxiomCounter| #:|OWLAPI-restoreImage| #:owlapi-runtime-error #:|OWLAPI-saveOntology| #:|OWLAPI-setAutoDeclareDataProperties| #:|OWLAPI-setAxiomCounter| #:|OWLAPI-setCurrentReasoner| #:|OWLAPI-SetOntologyURI| #:|OWLAPI-setReturnPolicy| #:|OWLAPI-storeImage| #:owlapi-tbox #:|OWLAPI-unloadAxiom| #:|OWLAPI-unloadAxioms| #:|OWLAPI-unloadOntologies| #:|OWLAPI-unloadOntology| #:|OWLAPI-usesIncrementalUpdates| #:|OWLAPI-usesSimplifiedProtocol| #:owlapi-warning #:|OWLAPI-writeFunctionalOntologyFile| #:|OWLAPI-writeOntologyFile| #:|OWLAPI-writeXMLOntologyFile| #:|OWLAsymmetricObjectPropertyAxiom| #:|OWLAsymmetricObjectPropertyAxiom-p| #:|OWLAxiom| #:|OWLAxiom-p| #:|OWLAxiomAnnotationAxiom| #:|OWLAxiomAnnotationAxiom-p| #:|OWLAxiomChange| #:|OWLAxiomWithEntitySlotAxiom| #:|OWLAxiomWithEntitySlotAxiom-p| #:|OWLClass| #:|OWLClassAssertionAxiom| #:|OWLClassAssertionAxiom-p| #:|OWLClassAxiom| #:|OWLClassAxiom-p| #:|OWLDataPropertyAssertionAxiom| #:|OWLDataPropertyAssertionAxiom-p| #:|OWLDataPropertyAxiom| #:|OWLDataPropertyAxiom-p| #:|OWLDataPropertyDomainAxiom| #:|OWLDataPropertyDomainAxiom-p| #:|OWLDataPropertyRangeAxiom| #:|OWLDataPropertyRangeAxiom-p| #:|OWLDataSubPropertyAxiom| #:|OWLDataSubPropertyAxiom-p| #:|OWLDataSubPsropertyAxiom| #:|OWLDatatypeDefinitionAxiom| #:|OWLDatatypeDefinitionAxiom-p| #:|OWLDeclarationAxiom| #:|OWLDeclarationAxiom-p| #:|OWLDifferentIndividualsAxiom| #:|OWLDifferentIndividualsAxiom-p| #:|OWLDisjointClassesAxiom| #:|OWLDisjointClassesAxiom-p| #:|OWLDisjointDataPropertiesAxiom| #:|OWLDisjointDataPropertiesAxiom-p| #:|OWLDisjointObjectPropertiesAxiom| #:|OWLDisjointObjectPropertiesAxiom-p| #:|OWLDisjointUnionAxiom| #:|OWLDisjointUnionAxiom-p| #:|OWLEntityAnnotationAxiom| #:|OWLEntityAnnotationAxiom-p| #:|OWLEquivalentClassesAxiom| #:|OWLEquivalentClassesAxiom-p| #:|OWLEquivalentDataPropertiesAxiom| #:|OWLEquivalentDataPropertiesAxiom-p| #:|OWLEquivalentObjectPropertiesAxiom| #:|OWLEquivalentObjectPropertiesAxiom-p| #:|OWLFunctionalDataPropertyAxiom| #:|OWLFunctionalDataPropertyAxiom-p| #:|OWLFunctionalObjectPropertyAxiom| #:|OWLFunctionalObjectPropertyAxiom-p| #:|OWLHasKeyAxiom| #:|OWLHasKeyAxiom-p| #:|OWLImplicitDeclarationAxiom| #:|OWLImplicitDeclarationAxiom-p| #:|OWLImportsDeclarationAxiom| #:|OWLImportsDeclarationAxiom-p| #:|OWLIndividualAxiom| #:|OWLIndividualAxiom-p| #:|OWLIndividualRelationshipAxiom| #:|OWLIndividualRelationshipAxiom-p| #:|OWLInverseFunctionalObjectPropertyAxiom| #:|OWLInverseFunctionalObjectPropertyAxiom-p| #:|OWLInverseObjectPropertiesAxiom| #:|OWLInverseObjectPropertiesAxiom-p| #:|OWLIrreflexiveObjectPropertyAxiom| #:|OWLIrreflexiveObjectPropertyAxiom-p| #:owllink-roles-disjoint-p #:owllink-roles-equivalent-p #:|OWLLogicalAxiom| #:|OWLLogicalAxiom-p| #:|OWLNaryClassAxiom| #:|OWLNaryClassAxiom-p| #:|OWLNaryDataPropertyAxiom| #:|OWLNaryDataPropertyAxiom-p| #:|OWLNaryIndividualAxiom| #:|OWLNaryIndividualAxiom-p| #:|OWLNaryObjectPropertyAxiom| #:|OWLNaryObjectPropertyAxiom-p| #:|OWLNegativeDataPropertyAssertionAxiom| #:|OWLNegativeDataPropertyAssertionAxiom-p| #:|OWLNegativeObjectPropertyAssertionAxiom| #:|OWLNegativeObjectPropertyAssertionAxiom-p| #:|OWLObjectPropertyAssertionAxiom| #:|OWLObjectPropertyAssertionAxiom-p| #:|OWLObjectPropertyAxiom| #:|OWLObjectPropertyAxiom-p| #:|OWLObjectPropertyChainSubPropertyAxiom| #:|OWLObjectPropertyChainSubPropertyAxiom-p| #:|OWLObjectPropertyDomainAxiom| #:|OWLObjectPropertyDomainAxiom-p| #:|OWLObjectPropertyRangeAxiom| #:|OWLObjectPropertyRangeAxiom-p| #:|OWLObjectSubPropertyAxiom| #:|OWLObjectSubPropertyAxiom-p| #:|OWLOntologyAnnotationAxiom| #:|OWLOntologyAnnotationAxiom-p| #:|OWLOntologyChange| #:|OWLOntologyURIAttributeAxiom| #:|OWLOntologyURIAttributeAxiom-p| #:|OWLOntologyVersionDeclarationAxiom| #:|OWLOntologyVersionDeclarationAxiom-p| #:|OWLPrefixDeclarationAxiom| #:|OWLPrefixDeclarationAxiom-p| #:|OWLPropertyAxiom| #:|OWLPropertyAxiom-p| #:|OWLReallyImplicitDeclarationAxiom| #:|OWLReallyImplicitDeclarationAxiom-p| #:|OWLReflexiveObjectPropertyAxiom| #:|OWLReflexiveObjectPropertyAxiom-p| #:|OWLSameIndividualsAxiom| #:|OWLSameIndividualsAxiom-p| #:|OWLSubAnnotationPropertyOfAxiom| #:|OWLSubAnnotationPropertyOfAxiom-p| #:|OWLSubClassAxiom| #:|OWLSubClassAxiom-p| #:|OWLSymmetricObjectPropertyAxiom| #:|OWLSymmetricObjectPropertyAxiom-p| #:|OWLTransitiveObjectPropertyAxiom| #:|OWLTransitiveObjectPropertyAxiom-p| #:pairwise-equivalent-p #:pop-namespace-table #:prefix #:properties #:property #:reasoner #:reasoner-abox-coherent-p #:reasoner-abox-consistent-p #:reasoner-abox-realized-p #:reasoner-abox-sync #:reasoner-add-equation #:reasoner-add-implication #:reasoner-all-atomic-concepts #:reasoner-all-roles #:reasoner-annotation-property-p #:reasoner-antonym-individuals-p #:reasoner-atomic-concept-ancestors #:reasoner-atomic-concept-children #:reasoner-atomic-concept-descendants #:reasoner-atomic-concept-parents #:reasoner-atomic-concept-synonyms #:reasoner-atomic-role-ancestors #:reasoner-atomic-role-children #:reasoner-atomic-role-descendants #:reasoner-atomic-role-parents #:reasoner-atomic-role-synonyms #:reasoner-bottom-concept-p #:reasoner-bottom-data-property-p #:reasoner-bottom-object-property-p #:reasoner-classify #:reasoner-clear-tbox-and-abox #:reasoner-concept-ancestors #:reasoner-concept-children #:reasoner-concept-descendants #:reasoner-concept-equivalent-p #:reasoner-concept-p #:reasoner-concept-parents #:reasoner-concept-satisfiable-p #:reasoner-concept-subsumes-p #:reasoner-concept-synonyms #:reasoner-concepts-disjoint-p #:reasoner-concepts-equivalent-p #:reasoner-data-property-p #:reasoner-delete-prefix-mappings #:reasoner-dispose #:reasoner-ensure-role #:reasoner-equivalent-concepts #:reasoner-equivalent-roles #:reasoner-feature-p #:reasoner-get-abox-language #:reasoner-get-annotation-properties #:reasoner-get-antonym-individuals #:reasoner-get-data-properties #:reasoner-get-datatype-bottom-role #:reasoner-get-datatype-fillers #:reasoner-get-datatype-top-role #:reasoner-get-default-namespace-prefix #:reasoner-get-disjoint-concepts #:reasoner-get-disjoint-data-properties #:reasoner-get-disjoint-object-properties #:reasoner-get-individual-datatype-fillers #:reasoner-get-individual-successors #:reasoner-get-instances #:reasoner-get-object-bottom-role #:reasoner-get-object-properties #:reasoner-get-object-top-role #:reasoner-get-prefixes #:reasoner-get-role-domain #:reasoner-get-role-range #:reasoner-get-successors #:reasoner-get-synonym-individuals #:reasoner-get-tbox-language #:reasoner-get-types #:reasoner-inconsistent-concepts #:reasoner-individual-antonyms #:reasoner-individual-data-fillers #:reasoner-individual-has-data-filler-p #:reasoner-individual-instance-p #:reasoner-individual-p #:reasoner-individual-role-fillers #:reasoner-individual-synonyms #:reasoner-individuals-related-p #:reasoner-individuals-related1-p #:reasoner-instance-of-p #:reasoner-instantiators #:reasoner-inverse-feature-p #:reasoner-inverse-roles #:reasoner-is-class-p #:reasoner-kb-is-consistent-p #:reasoner-kb-sync #:reasoner-most-specific-instantiators #:reasoner-new-tbox-and-abox #:reasoner-no-annotation-properties #:reasoner-no-data-properties #:reasoner-no-object-properties #:reasoner-object-property-p #:reasoner-only-annotation-properties #:reasoner-only-data-properties #:reasoner-only-object-properties #:reasoner-process-annotation #:reasoner-realize #:reasoner-realize-abox #:reasoner-redundant-import-warning #:reasoner-register-prefix #:reasoner-remove-prefix #:reasoner-reset-prefix-cache #:reasoner-retrieve-concept-instances #:reasoner-retrieve-individual-filled-roles #:reasoner-retrieve-individual-fillers #:reasoner-retrieve-individual-predecessors #:reasoner-retrieve-individual-told-datatype-fillers #:reasoner-role-ancestors #:reasoner-role-asymmetric-p #:reasoner-role-children #:reasoner-role-descendants #:reasoner-role-disjoint-p #:reasoner-role-equivalent-p #:reasoner-role-functional-p #:reasoner-role-inverse-functional-p #:reasoner-role-irreflexive-p #:reasoner-role-parents #:reasoner-role-reflexive-p #:reasoner-role-satisfiable-p #:reasoner-role-subsumes-p #:reasoner-role-symmetric-p #:reasoner-role-synonyms #:reasoner-role-transitive-p #:reasoner-sync #:reasoner-synonym-individuals-p #:reasoner-syntax-message #:reasoner-taxonomy #:reasoner-tbox-classified-p #:reasoner-tbox-sync #:reasoner-top-concept-p #:reasoner-top-data-property-p #:reasoner-top-object-property-p #:referenced-annotaiton-properties #:referenced-annotation-properties #:referenced-concepts #:referenced-data-properties #:referenced-datatypes #:referenced-individuals #:referenced-object-properties #:register-additional-ontology-name #:rel-data-property #:rel-object-property #:remove-axiom #:remove-axioms #:reset-axiom-counter #:reset-id-counter #:role #:role-name #:role1 #:role2 #:roles #:rules #:second-object-property #:secondary-p #:self-reference #:set-equal #:set-primary-ontology-name #:shrink-whitespaces #:some #:start-with-#-p #:string-substitute #:string-to-boolean #:string<> #:string= #:sub-class #:sub-data-property #:sub-object-property #:sub-property #:subclass #:subject #:super-class #:super-property #:superclass #:superclasses #:to-be-implemented #:to-keyword #:told #:tree-find #:unequal #:unload-axiom #:unload-axiom1 #:unload-axioms #:unload-ontology #:unparse #:uri #:used-constructors #:warning-ignored-axiom #:warning-redundant-axiom #:whitespace-char-p #:with-# #:with-current-owllink-kb #:with-ids-p #:with-lookup-mode #:with-reasoner #:with-transient-axiom-mode #:without-# #:without-bottom #:without-bottom-data-property #:without-bottom-object-property #:without-colon #:without-starting-# #:without-top #:without-top-and-bottom #:without-top-and-bottom-data-properties #:without-top-and-bottom-object-properties #:without-top-data-property #:without-top-object-property))
27,704
Common Lisp
.lisp
872
28.024083
90
0.729223
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
9a5c3d453f699a0157550134bfb5b4741f355a5ffe057a21598d6ba406d8e8e2
6,349
[ -1 ]
6,350
owllink-xml.lisp
lambdamikel_OntoLisp/ontolisp-0.9/owllink-xml.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; owllink-xml.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: The implementation of the OWLlink XML and OWLlink S-Expression processor. ;;; (defvar *my-owllink2-parser* nil) (defvar *error-indicator* nil) (defvar *response-end-tag* nil) (defvar *owllink-readtable* (copy-readtable *readtable*)) #+(and :racer-server :cl-http) (declaim (special cl-user::*tcp-console-logging*)) ;;; ;;; ;;; ;;; Functional Parser accepts (SubClassOf A B), not (SubClassOf NIL A B) ;;; However, OWLlink internal message syntax uses mandatory empty argument list: ;;; (SubClassOf NIL A B) ;;; For converter mode required to set to t! (defparameter *use-empty-argument-lists-for-owl2-tags-in-sexpr-syntax-input* nil) ;;; ;;; ;;; (define-constant +owllink-namespace+ "http://www.owllink.org/owllink-xml#") ; Prefix "ol:" (define-constant +owllink-new-namespace+ "http://www.owllink.org/owllink#") ; Prefix "ol:" (define-constant +racer-extension-namespace+ "http://www.racer-systems.com/owllink/ext/racer#") ; Prefix "ra:" (define-constant +retraction-extension-namespace+ "http://www.owllink.org/ext/retraction#") ; Prefix "ret:" ;;; ;;; ;;; #| (defpackage |http://www.owllink.org/owllink| (:use :cl) (:nicknames |ol|) (:export "Tell" "Prefix" "name" "kb" "fullIRI")) (defpackage |http://www.w3.org/2002/07/owl| (:use :cl) (:nicknames |owl|) (:export "SubClassOf")) (defpackage |http://www.owllink.org/ext/retraction| (:use :cl) (:nicknames |ret|) (:export "Retract")) (defpackage |http://www.racer-systems.com/owllink/ext/racer#Racer| (:use :cl ; :racer ) (:nicknames |racer|) (:export "Racer")) |# ;;; ;;; ;;; (defclass owllink2-parser (nox:sax-consumer) ((url :initarg :url :accessor parser-url) (stream :initarg :stream :accessor parser-stream) (output-stream :initarg :output-stream :accessor parser-output-stream) (result :accessor result :initform nil) (answer :accessor answer :initform nil) (raw-input :accessor raw-input :initform nil))) #+:racer-server (defun owllink2-eval-request (req ent) (racer:with-racer-critical-section (racer:new-request "Evaluating OWLlink2 request...") (racer:set-progress-value 1) (let ((*error-indicator* "SyntaxError error")) (with-output-to-string (*standard-output*) (owllink2-eval-request1 'owllink2-parser req ent))) (racer:clear-request))) #| (defun transform-functional-input (sexpr &optional axiom-level-p) (if (consp sexpr) (let ((op (first sexpr))) (if (symbolp op) (let ((axiom-level-p (or axiom-level-p (member op '(|Tell| |Retract|))))) (if axiom-level-p `(,op ,@(mapcar #'(lambda (x) (transform-functional-input x t)) (rest sexpr))) (multiple-value-bind (attributes rest) (loop as x in (cdr sexpr) when (and (consp x) (eq (first x) '|Attribute|)) collect x into attributes else collect x into others finally (return (values attributes others))) `(,op ,(mapcar #'(lambda (x) (cdr x)) attributes) ,@(mapcar #'transform-functional-input rest))))) (mapcar #'transform-functional-input sexpr))) sexpr)) |# (defun transform-functional-input (sexpr) (labels ((remove-owl-prefix (sym) (let* ((name (symbol-name sym)) (num (and name (search "owl." name)))) (if (and num (zerop num)) (intern (subseq name 4)) sym)))) (if (consp sexpr) (let ((op (first sexpr))) (if (symbolp op) (let ((owl2-tag-p (is-owl2-tag-p op))) (if owl2-tag-p (if *converter-mode* `(,op nil ,@(mapcar #'transform-functional-input (rest sexpr))) `(,(remove-owl-prefix op) ,@(mapcar #'transform-functional-input (rest sexpr)))) (multiple-value-bind (attributes rest) (loop as x in (cdr sexpr) when (and (consp x) (eq (first x) '|Attribute|)) collect x into attributes else collect x into others finally (return (values attributes others))) `(,op ,(mapcar #'(lambda (x) (cdr x)) attributes) ,@(mapcar #'transform-functional-input rest))))) (mapcar #'transform-functional-input sexpr))) sexpr))) (defun is-owl2-tag-p (op) (cond ((member op '(|owl.Literal| |OWLLiteral|)) t) ((member op '(|ol.Literal| |Literal|)) nil) (t (gethash (let ((*last-request-xml-and-functional-namespaces* +owl2-standard-prefixes+)) (expand-functional-tag-name op)) *owl2-tags-input*)))) (defun transform-sexpr-input (sexpr) (labels ((remove-owl-prefix (sym) (let* ((name (symbol-name sym)) (num (and name (search "owl." name)))) (if (and num (zerop num)) (intern (subseq name 4)) sym)))) (cond ((consp sexpr) (let ((op (first sexpr))) (cond ((symbolp op) (if (is-owl2-tag-p op) (let* ((op (if *converter-mode* op (remove-owl-prefix op))) (res ;; (format t "~% owl2 ~A" op) ;; (SubClassOf NIL A B) oder (SubClassOf A B) im Input? ;; -> map to (SubClassOf A B), since OWL2 Functional Parser ;; doesnt accept attributes (if *use-empty-argument-lists-for-owl2-tags-in-sexpr-syntax-input* `(,op ,@(mapcar #'transform-sexpr-input (cddr sexpr))) `(,op ,@(mapcar #'transform-sexpr-input (cdr sexpr)))))) (if *converter-mode* (list* (first res) nil (rest res)) res)) (let* ((attributes (second sexpr)) (attributes (cond ((eq attributes '|nil|) nil) ((eq attributes '|t|) t) (t attributes)))) `(,op ,(loop as key in attributes by #'cddr as val in (cdr attributes) by #'cddr when (keywordp key) collect (list (intern (symbol-name key)) ; no Keyword arguments internally val)) ,@(mapcar #'transform-sexpr-input (cddr sexpr)))))) (t (mapcar #'transform-sexpr-input sexpr))))) ((symbolp sexpr) (cond ((eq sexpr '|nil|) nil) ((eq sexpr '|t|) t) (t sexpr))) (t sexpr)))) (defmacro process-owllink-request () `(progn (case *owllink2-output-syntax* (:owllink-xml (write-string "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" socket-stream))) (#+:racer-server racer:with-racer-critical-section #-:racer-server progn (#+:racer-server racer:with-logging #+:racer-server (socket-stream) #-:racer-server progn (handler-case (progn (ecase *owllink2-input-syntax* (:owllink-xml (nox:parse-from-stream stream url 'nox:xml-parser :consumer (setf *my-owllink2-parser* (make-instance parser-class :url url :stream socket-stream))) (let ((res (setf (answer *my-owllink2-parser*) (if *converter-mode* (result *my-owllink2-parser*) (|owllink-parse-RequestMessage| (result *my-owllink2-parser*)))))) (owllink-result-printer res socket-stream))) (:owllink-functional (setf *my-owllink2-parser* (make-instance parser-class :url url :stream socket-stream)) (setf (result *my-owllink2-parser*) (transform-functional-input (setf (raw-input *my-owllink2-parser*) (parse-from-stream stream)))) (let ((res (setf (answer *my-owllink2-parser*) (if *converter-mode* (result *my-owllink2-parser*) (|owllink-parse-FunctionalRequestMessageWithHeader| (result *my-owllink2-parser*)))))) (owllink-result-printer res socket-stream))) (:owllink-sexpr (setf *my-owllink2-parser* (make-instance parser-class :url url :stream socket-stream)) (setf (result *my-owllink2-parser*) (transform-sexpr-input (let ((*readtable* *owllink-readtable*) (old-case (readtable-case *readtable*))) (unwind-protect (progn (setf (readtable-case *readtable*) :preserve) (setf (raw-input *my-owllink2-parser*) (loop as res = (read stream nil :eof) when (eq res :eof) return lines else collect res into lines))) (setf (readtable-case *readtable*) old-case))))) (let ((res (setf (answer *my-owllink2-parser*) (if *converter-mode* (result *my-owllink2-parser*) (|owllink-parse-FunctionalRequestMessageWithHeader| (result *my-owllink2-parser*)))))) (owllink-result-printer res socket-stream))))) (error (c) (error-printer (let ((c #+:racer-server (racer:transform-to-html c) #-:racer-server c)) (if *error-indicator* (error-message "~A=~S" *error-indicator* c) (error-message "Bad request: ~S" c))) socket-stream))))))) #+:cl-http (defun owllink2-eval-request1 (parser-class socket-stream url) (let (#+:racer-server (*tbox-verbose* nil) #+:racer-server (*abox-verbose* nil) #+:racer-server (*auto-classify* ':lazy) #+:racer-server (*auto-realize* ':lazy) #+:racer-server (*read-eval* nil) (*read-default-float-format* 'double-float) (*package* (find-package :owl-syntaxes)) (*response-end-tag* nil) #+:racer-server (logging cl-user::*tcp-console-logging*)) (setf *telling-active* nil *last-request-xml-and-functional-namespaces* nil *last-request-xml-base* nil *last-request-rendering-options* nil) (let* ((length (http:get-header :content-length)) (i 0) char) (if (and length (> length 0)) (flet ((eval (stream) (http:with-successful-response (socket-stream :xml :content-location url ;;:expires (url:expiration-universal-time url) ;;:cache-control (url:response-cache-control-directives url) ;;:content-language (languages url) ) (process-owllink-request)))) (if (< length 10000) (let ((input-string (and length (make-string length)))) (loop (setf char (code-char (read-byte socket-stream))) (setf (aref input-string i) char) (incf i 1) (when (>= i length) (return))) #+:racer-server (when logging (princ input-string *trace-output*) (terpri *trace-output*)) (with-input-from-string (stream input-string) (eval stream))) (racer:with-temp-file ((stream) (loop (setf char (code-char (read-byte socket-stream))) #+:racer-server (when logging (princ char *trace-output*)) (write-char char stream) (incf i 1) (when (>= i length) (return)))) (eval stream)))) (http:with-successful-response (socket-stream :xml :content-location url ;;:expires (url:expiration-universal-time url) ;;:cache-control (url:response-cache-control-directives url) ;;:content-language (languages url) ) (error-printer (error-message "Message from client does not specify content length or content lenght is zero") socket-stream)))))) #+:aserve (defun owllink2-eval-request1 (parser-class req ent) (let (#+:racer-server (*tbox-verbose* nil) #+:racer-server (*abox-verbose* nil) #+:racer-server (*auto-classify* ':lazy) #+:racer-server (*auto-realize* ':lazy) (*read-eval* nil) (*read-default-float-format* 'double-float) (*package* (find-package :owl-syntaxes)) (*response-end-tag* nil) #+:racer-server (logging cl-user::*tcp-console-logging*)) (setf *telling-active* nil *last-request-xml-and-functional-namespaces* nil *last-request-xml-base* nil *last-request-rendering-options* nil) (let ((url (net.aserve:request-uri req)) (content-encoding (net.aserve:header-slot-value req :content-encoding)) input-string) (cond ((string= content-encoding "gzip") (let* ((body (net.aserve::binary-get-request-body req)) (so (make-string-output-stream)) (bis (excl:make-buffer-input-stream body)) (bi)) (util.zip::skip-gzip-header bis) (setq bi (make-instance 'util.zip:inflate-stream :input-handle bis)) (do ((byte (read-byte bi nil nil) (read-byte bi nil nil))) ((null byte) (setq input-string (get-output-stream-string so))) (write-char (code-char byte) so)))) (t (setf input-string (net.aserve::get-request-body req)))) #+:racer-server (when cl-user::*log-file* (with-open-file (log-stream cl-user::*log-file* :direction :output :if-exists :append :if-does-not-exist :create) (princ input-string log-stream) (terpri log-stream))) #+:racer-server (when logging (princ input-string *trace-output*) (terpri *trace-output*)) (with-input-from-string (stream input-string) (net.aserve:with-http-response (req ent :content-type "text/xml") (net.aserve:with-http-body (req ent) (let ((socket-stream net.html.generator:*html-stream*)) (process-owllink-request)))))))) ;;; ;;; ;;; (defun owllink-read-file1 (file &rest args &key (input-syntax :owllink-xml) (output-syntax :owllink-xml) &allow-other-keys) (declare (ignorable args)) (let ((*package* (find-package :owl-syntaxes)) (*owllink2-input-syntax* input-syntax) (*owllink2-output-syntax* output-syntax)) (setf *telling-active* nil *last-request-xml-and-functional-namespaces* nil *last-request-xml-base* nil *last-request-rendering-options* nil) (with-open-file (stream file) (let ((url (nox:make-file-url file)) (socket-stream *standard-output*) (parser-class 'owllink2-parser)) (process-owllink-request))))) (defun owllink-read-document1 (url &rest args) (declare (ignorable url args)) (owlapi:to-be-implemented 'owllink-read-document)) ;;; ;;; ;;; (defun simplify-tag (string) (cond ((let ((pos (search +owllink-namespace+ string))) (and pos (= 0 pos))) (let ((res (subseq string (length +owllink-namespace+)))) (if (and (string= res "Literal") ;; within OWLlink Tell? -> OWL Literal *telling-active*) "OWL***-Literal" res))) ((let ((pos (search +owllink-new-namespace+ string))) (and pos (= 0 pos))) (let ((res (subseq string (length +owllink-new-namespace+)))) (if (and (string= res "Literal") ;; within OWLlink Tell? -> OWL Literal *telling-active*) "OWL***-Literal" res))) ;;; ;;; ;;; ((let ((pos (search owlapi:+owl2-namespace+ string))) (and pos (= 0 pos))) (let ((res (subseq string (length owlapi:+owl2-namespace+)))) (if (string= res "Literal") "OWL***-Literal" res))) ((let ((pos (search owlapi:+old-owl2-namespace+ string))) (and pos (= 0 pos))) (let ((res (subseq string (length owlapi:+old-owl2-namespace+)))) (if (string= res "Literal") "OWL***-Literal" res))) ;;; ;;; ;;; #| ((let ((pos (search +retraction-extension-namespace+ string))) (and pos (= 0 pos))) (subseq string (length +retraction-extension-namespace+))) ((let ((pos (search +racer-extension-namespace+ string))) (and pos (= 0 pos))) (subseq string (length +racer-extension-namespace+))) |# (t string))) (defun transform-xml (xml) (let ((cdr-stack nil) (start nil) ;(last-open nil) (open nil)) ;;; (declare (ignorable last-open open)) (loop while xml do (let ((first (pop xml))) (when first (ecase first (:open (setf open (intern (owlapi:ensure-string (pop xml)))) (let ((cell (cond ((gethash open *owl2-tags-input*) (if *converter-mode* (list* ;;; tag name: (case open (|OWL***-Literal| '|OWLLiteral|) (otherwise open)) nil (nconc ;;; <Class IRI="xxx"/> -> ;;; (Class "xxx") (remove nil (mapcar #'(lambda (assoc) (let ((key (car assoc)) (val (cdr assoc)) (attributes-for-tag (gethash open *owl2-tags-input-attributes*))) (when (owlapi:=> attributes-for-tag (member key attributes-for-tag :test #'string=)) val))) (pop xml))) ;;; content? ;;; <Class>xxx</Class> -> ;;; (Class "xxx") (when (eq :content (first xml)) (pop xml) (let ((content (pop xml))) (cond ((or (eq open '|IRI|) (eq open '|abbreviatedIRI|) (eq open '|AbbreviatedIRI|) (eq open '|Import|)) (list content)) ((eq open '|OWL***-Literal|) (list content)) ((eq open '|http://www.racer-systems.com/owllink/ext/racer#Racer|) (list content))))))) (list* ;;; tag name: (case open (|OWL***-Literal| (if *owllink-mode* '|OWLLiteral| '|Literal|)) (otherwise open)) (nconc (remove nil (mapcar #'(lambda (assoc) (let ((key (car assoc)) (val (cdr assoc)) (attributes-for-tag (gethash open *owl2-tags-input-attributes*))) (when (owlapi:=> attributes-for-tag (member key attributes-for-tag :test #'string=)) val))) (pop xml))) (when (eq :content (first xml)) (pop xml) (let ((content (pop xml))) (cond ((or (eq open '|IRI|) (eq open '|abbreviatedIRI|) (eq open '|AbbreviatedIRI|) (eq open '|Import|)) (list content)) ((eq open '|OWL***-Literal|) (list content)) ((eq open '|http://www.racer-systems.com/owllink/ext/racer#Racer|) (list content))))))))) (t (cond ((eq open '|Literal|) ; needs value attribute... ;;; OWLlink Literal, e.g. ;;; <Set kb="http://www.owllink.org/examples/KB_1" key="abbreviatesIRIs"> ;;; <Literal>true</Literal> ;;; </Set> (pop xml) ; empty attributes (when (eq :content (first xml)) (pop xml) (let ((content (pop xml))) (list* ;;; tag name: open ;;; attributes in assoc-list `((|value| ,content)) nil)))) (t (list* ;;; tag name: open ;;; attributes in assoc-list (mapcar #'(lambda (assoc) (let ((key (intern (simplify-tag (car assoc)))) (val (cdr assoc))) `(,key ,val))) (pop xml)) ;;; content? (when (eq :content (first xml)) (pop xml) (let ((content (pop xml))) (cond ((or (eq open '|IRI|) (eq open '|abbreviatedIRI|) (eq open '|AbbreviatedIRI|) (eq open '|Import|)) (list content)) ((eq open '|http://www.racer-systems.com/owllink/ext/racer#Racer|) (list content)))))))))))) ;;(setf last-open open) (when cdr-stack (let ((cell (list cell))) (setf (cdr (last (first cdr-stack))) cell) ;; advance last pointer ;; keep "last" efficent (small list) (setf (first cdr-stack) cell))) (unless start (setf start cell)) (push cell cdr-stack))) (:close (pop cdr-stack)) (otherwise ))))) start)) ;;; ;;; ;;; (defmethod nox:start-document ((self owllink2-parser) locator) (declare (ignorable locator)) (setf (raw-input self) nil)) (defmethod nox:end-document ((self owllink2-parser) locator) (declare (ignorable locator)) (setf (result self) (list (transform-xml (reverse (raw-input self)))))) (defmethod nox:char-content ((self owllink2-parser) (content string) mode) (declare (ignore mode)) (with-slots (raw-input) self (push :content raw-input) (push (shrink-whitespaces content) raw-input) ;;;(push content raw-input) )) (defmethod nox:start-element ((self owllink2-parser) (tag nox:open-tag) mode) (declare (ignore mode)) (with-slots (raw-input) self (push :open raw-input) (when (or (string-equal (nox:token-string tag) "http://www.owllink.org/owllink-xml#Tell") (string-equal (nox:token-string tag) "http://www.owllink.org/owllink#Tell")) (setf *telling-active* t)) (when (or (string-equal (nox:token-string tag) "http://www.owllink.org/owllink-xml#RequestMessage") (string-equal (nox:token-string tag) "http://www.owllink.org/owllink#RequestMessage") (string-equal (nox:token-string tag) "http://www.w3.org/2002/07/owl#Ontology")) (setf *last-request-xml-and-functional-namespaces* (nox:tag-namespaces tag)) (let ((xml-base (assoc "http://www.w3.org/XML/1998/namespace#base" (nox:tag-attributes tag) :test #'string=))) (when xml-base (setf *last-request-xml-base* (cdr xml-base))) (when (and (stringp (nox::tag-base tag)) (not xml-base)) (setf *last-request-xml-base* (nox::tag-base tag))))) (push (simplify-tag (nox:token-string tag)) raw-input) (push (reverse (nox:tag-attributes tag)) raw-input))) (defmethod nox:end-element ((self owllink2-parser) tag mode) (declare (ignorable mode)) (with-slots (raw-input) self (push :close raw-input)) (when (or (string-equal (nox:token-string tag) "http://www.owllink.org/owllink-xml#Tell") (string-equal (nox:token-string tag) "http://www.owllink.org/owllink#Tell")) (setf *telling-active* nil))) ;;; ;;; ;;; (defun owllink-result-printer (expr stream) (if expr (ecase *owllink2-output-syntax* (:owllink-xml (if *converter-mode* (owllink-render-as-xml expr stream) (owllink-xml-printer expr stream))) (:owllink-sexpr (if *converter-mode* (owllink-render-as-sexpr expr stream) (owllink-sexpr-printer expr stream))) (:owllink-functional (if *converter-mode* (owllink-render-as-functional expr stream) (owllink-functional-printer expr stream)))) (error-printer "Empty OWLlink response (request not recognized?)" stream))) (defun error-printer (message stream) (let ((expr (owllink-error-message :error message))) (ecase *owllink2-output-syntax* (:owllink-xml (owllink-xml-printer expr stream)) (:owllink-sexpr (owllink-sexpr-printer expr stream)) (:owllink-functional (owllink-functional-printer expr stream))))) ;;; ;;; ;;; (defun owllink-xml-printer (expr stream) (let* ((*owllink-mode* t) (*dont-render-attributes* '(|INT-abbreviatesIRIs| |INT-kb| |INT-prefixes| |xmlns| |xmlns:owl|)) (*ensure-attributes-for-tag* '((|ResponseMessage| (|xmlns| |xmlns:owl|)))) (*add-prefixes* nil) (*abbreviate-iris* nil) (*content-attributes* '((|Literal| |value|))) (*map-tag-attributes-to-iri-attributes* '((|OneOf| |type|) (|List| |type|))) (*add-tag-content-as-attribute* '((|AnonymousIndividual| |nodeID|) (:otherwise |IRI|))) (*disable-owl2-tags-for* '(|Setting| |Property|)) (*dont-render-tags* '(|NamespacePrefix|)) (*dont-abbreviate-iris-in-tags* '(|Prefix|)) (additional-xml-answer-namespaces (loop as ns in *additional-answer-namespaces-used* as entry = (find ns *last-request-xml-and-functional-namespaces* :test #'string= :key #'cdr) when entry collect (list (first entry) ns)))) (setf (second expr) (remove-duplicates (append `(("xmlns" "http://www.owllink.org/owllink#") ,@(mapcar #'(lambda (x) (list (format nil "xmlns:~A" (first x)) (second x))) (remove-if-not #'(lambda (x) (member (first x) '("owl" #+:ignore "xsd") :test #'string-equal)) +owl2-standard-prefixes+)) ,@(mapcar #'(lambda (x) (list (format nil "xmlns:~A" (first x)) (second x))) additional-xml-answer-namespaces) #+:ignore ("xmlns:xsi" "http://www.w3.org/2001/XMLSchema-instance") #+:ignore ("xsi:schemaLocation" "http://www.owllink.org/owllink# http://www.owllink.org/owllink-20091116.xsd")) (second expr)) :test #'string= :key #'first)) (print-xml expr stream))) ;;; ;;; ;;; (defparameter *simplify-argument-lists* nil) (defparameter *simplify-singleton-messages* nil) (defparameter *simplify-boolean-and-string-messages* nil) (defparameter *simplify-ignore-warnings* nil) (defparameter *simplify-structuring-elements* nil) (defmacro with-rendering-options (&body body) `(let ((*simplify-argument-lists* *simplify-argument-lists*) (*simplify-singleton-messages* *simplify-singleton-messages*) (*simplify-boolean-and-string-messages* *simplify-boolean-and-string-messages*) (*simplify-ignore-warnings* *simplify-ignore-warnings*) (*simplify-structuring-elements* *simplify-structuring-elements*) (*simplify-remove-owl-entities* *simplify-remove-owl-entities*)) (dolist (x *last-request-rendering-options*) (let ((key (first x)) (value (second x))) (cond ((string-equal key "useOWLEntities") (setf *simplify-remove-owl-entities* (not (string-to-boolean value)))) ((string-equal key "removeEmptyArgumentLists") (setf *simplify-argument-lists* (string-to-boolean value))) ((string-equal key "simplifyBooleanAndStringAnswerMessages") (setf *simplify-boolean-and-string-messages* (string-to-boolean value))) ((string-equal key "noWarnings") (setf *simplify-ignore-warnings* (string-to-boolean value))) ((string-equal key "flattenStructuringElements") (setf *simplify-structuring-elements* (string-to-boolean value))) ((string-equal key "simplifyAtomicMessages") (setf *simplify-singleton-messages* (string-to-boolean value)))))) ,@body)) ;;; ;;; ;;; (defun owllink-functional-printer (expr stream) (let* ((*owllink-mode* t) (*dont-render-attributes* '(|INT-abbreviatesIRIs| |INT-kb| |INT-prefixes| ;;|xmlns| |xmlns:owl| |http://www.w3.org/2001/XMLSchema-instance#schemaLocation|)) (*ensure-attributes-for-tag* '((|ResponseMessage| (|xmlns| |xmlns:owl|)))) (*add-prefixes* nil) (*abbreviate-iris* nil) (*disable-owl2-tags-for* '(|Setting| |Property| |Set|)) (*dont-abbreviate-iris-in-tags* '(|Prefix|)) (*compress-tags-with-prefixes* (mapcar #'(lambda (x) (list (car x) (cdr x))) *last-request-xml-and-functional-namespaces*))) (with-rendering-options (func-printer stream expr)))) ;;; ;;; ;;; (defun owllink-sexpr-printer (s-expr stream) (let ((*owllink-mode* t) (*sexpr-rendering* t) (*dont-render-attributes* (if *simplify-ignore-warnings* '(|INT-abbreviatesIRIs| |warning| |INT-kb| |INT-prefixes| |http://www.w3.org/2001/XMLSchema-instance#schemaLocation| ) '(|INT-abbreviatesIRIs| |INT-kb| |INT-prefixes| |http://www.w3.org/2001/XMLSchema-instance#schemaLocation| ))) (*add-prefixes* nil) (*abbreviate-iris* nil) (*disable-owl2-tags-for* '(|Setting| |Property| |Set|)) (*dont-abbreviate-iris-in-tags* '(|Prefix|)) (*compress-tags-with-prefixes* (mapcar #'(lambda (x) (list (car x) (cdr x))) *last-request-xml-and-functional-namespaces*)) (attributes nil)) (with-rendering-options (macrolet ((tag-printer (tag &body cont) `(progn (if (member ,tag *dont-render-tags*) (progn ,@cont) (if (eq ,tag :no-tag) (progn (newline1 stream) (format stream "(") (let* ((*indent* (+ 2 *indent*))) ,@cont) (format stream ")")) (progn (when (toplevel-indent-p) (newline1 stream)) (newline1 stream) (format stream "(~A" ,tag) (let* ((*indent* (+ 2 *indent*))) ,@cont) (format stream ")"))))))) (labels ((do-it (s-expr) (cond ((and (consp s-expr) (eq (first s-expr) 'd-literal)) (let ((val (second s-expr)) (type (second (third s-expr)))) #| (if type (format stream "~S^^~A" val (iri-printer nil type)) (format stream "~S^^xsd:string" val)) |# (if type (tag-printer '|OWLLiteral| (format stream " ~S ~S" val (if (symbolp type) (symbol-name type) type))) (tag-printer '|OWLLiteral| (format stream " ~S" val))))) ((consp s-expr) (let ((tag (first s-expr)) (all-attributes (when *owllink-mode* (second s-expr))) (rest (if *owllink-mode* (cddr s-expr) (cdr s-expr)))) (setf attributes (remove-if #'(lambda (x) (and (member (first x) *dont-render-attributes*) (not (member (first x) (second (assoc tag *ensure-attributes-for-tag*)))))) all-attributes)) (let* ((tag (expand-functional-tag-name tag)) (*tag-stack* (cons tag *tag-stack*)) (*owl2-tags-disabled* (or *owl2-tags-disabled* (member tag *disable-owl2-tags-for*))) (is-owl2-tag-p (and (not *owl2-tags-disabled*) (gethash tag *owl2-tags*))) (*abbreviate-iris* (if (not *owllink-mode*) *abbreviate-iris* (and *owllink-mode* (let ((res (assoc '|INT-abbreviatesIRIs| all-attributes))) (if res (string-to-boolean (second res)) *abbreviate-iris*))))) (*add-prefixes* (if (not *owllink-mode*) *add-prefixes* (or (when *abbreviate-iris* (let ((res (assoc '|INT-prefixes| all-attributes))) ;; ueberschreiben stets! (if res (second res) *add-prefixes*))) *add-prefixes*))) (tag (compress-functional-tag-name tag)) (tag1 nil)) #+:ignore (multiple-value-bind (tag prefix) (get-tag-and-prefix tag) (declare (ignoreable prefix)) (setf tag1 (if prefix (intern (format nil "~A:~A" prefix tag)) tag))) (setf tag1 tag) (cond ((and *simplify-argument-lists* *simplify-singleton-messages* (not attributes) (not rest)) ;;; (OK) -> OK (when (toplevel-indent-p) (newline1 stream)) (do-it tag1)) ((and *simplify-boolean-and-string-messages* (eq tag '|BooleanResponse|) (not (cdr attributes))) (when (toplevel-indent-p) (newline1 stream)) (do-it (string-to-boolean (second (first attributes))))) ((and *simplify-boolean-and-string-messages* (eq tag '|StringResponse|) (not (cdr attributes))) (when (toplevel-indent-p) (newline1 stream)) (do-it (second (first attributes)))) ((and *simplify-remove-owl-entities* (not (eq (second *tag-stack*) '|Declaration|)) (member tag '(|Class| |NamedIndividual| |AnonymousIndividual| |ObjectProperty| |DataProperty| |AnnotationProperty|))) (newline1 stream) ;; gut? (iri-printer stream (first rest))) ((and *converter-mode* (stringp (first rest)) (member tag '(|Class| |NamedIndividual| |AnonymousIndividual| |ObjectProperty| |DataProperty| |AnnotationProperty|))) (tag-printer tag1 (progn (if *use-empty-argument-lists-for-owl2-tags-in-sexpr-syntax-input* (format stream " () ") (format stream " ")) (let ((iri (iri-owl (first rest)))) (if (position #\: iri) (format stream "|~A|" iri) (format stream "~A" iri)))))) ((and *converter-mode* (member tag '(|OWLLiteral|))) (tag-printer '|OWLLiteral| (progn (format stream " ~S ~S" (second rest) (first rest))))) (t (let ((no-tag-p (and *simplify-structuring-elements* (not attributes) (member tag '(|ClassSynset| |ObjectPropertySynset| |DataPropertySynset| |IndividualSynset| |SetOfClassSynsets| |SetOfObjectPropertySynsets| |SetOfDataPropertySynsets| |SetOfIndividualSynsets| ;;|SetOfIndividuals| ;;|SetOfClasses| ;;|SetOfLiterals| ;;|SetOfObjectProperties| ;;|SetOfDataProperties| ;;|SetOfAnnotationProperties| |ClassSubClassesPair| |ClassSuperClassesPair| |ObjectPropertySubObjectPropertiesPair| |ObjectPropertySuperObjectPropertiesPair| |DataPropertySubDataPropertiesPair| |DataPropertySuperDataPropertiesPair|))))) (if no-tag-p (if (toplevel-indent-p) (newline1 stream))) (tag-printer (if no-tag-p :no-tag tag1) (progn (if attributes (progn (format stream " (") (loop as (key val) in attributes do (let ((name (symbol-name key))) (cond ((member key '(|IRI| |fullIRI| |kb|)) (setf val (let ((*abbreviate-iris* nil)) (iri-printer nil val))) (if (needs-bars-p name) (format stream ":|~A| ~A" name val) (format stream ":~A ~A" name val))) (t (if (needs-bars-p name) (format stream ":|~A| \"~A\" " name val) (format stream ":~A \"~A\" " name val)))))) (format stream ") ")) (cond (is-owl2-tag-p (if *use-empty-argument-lists-for-owl2-tags-in-sexpr-syntax-input* (format stream " () ") (format stream " "))) (*simplify-argument-lists* (format stream " ")) (t (format stream " () ")))) (dolist (s-expr rest) (do-it s-expr)))))))))) ((symbolp s-expr) (newline1 stream) (iri-printer stream s-expr)) ((stringp s-expr) (newline1 stream) (string-printer stream s-expr)) (t (newline1 stream) (item-printer stream s-expr))))) (do-it s-expr)))))) ;;; ;;; ;;; #| (defun trace-owllink2 () (trace nox:start-element nox:end-element nox:start-document nox:end-document owllink2-eval-request owllink2-eval-request1)) (defun get-kb-from-xml () (pprint (ts::transform-xml (reverse (raw-input ts::*my-owllink2-parser*))))) (defun owllink-xml-test () (dolist (x (remove-if-not #'consp ; ontology, ontology name attributes, etc. (ts::transform-xml (reverse (raw-input ts::*my-owllink2-parser*))))) (terpri) (terpri) (princ "Input: ") (pprint x) (terpri) (princ "Output: ") (if (and (consp x) (eq (first x) '|Prefix|)) (pprint (ts::parse-prefix-declaration (list x))) (pprint (ts::parse-axiom (list x)))))) |# ;;; ;;; ;;; (defun owllink-cur-input-again-xml () (owllink-xml-printer (setf (answer *my-owllink2-parser*) (|owllink-parse-RequestMessage| (result *my-owllink2-parser*))) t) ;(owllink-get-cur-answer) ) (defun owllink-cur-input-again-functional () (owllink-functional-printer (setf (answer *my-owllink2-parser*) (|owllink-parse-FunctionalRequestMessageWithHeader| ;;|owllink-parse-RequestMessage| (result *my-owllink2-parser*))) t) ;(owllink-get-cur-answer) ) (defun owllink-cur-input-again-sexpr () (owllink-sexpr-printer (setf (answer *my-owllink2-parser*) (|owllink-parse-FunctionalRequestMessageWithHeader| ;;|owllink-parse-RequestMessage| (result *my-owllink2-parser*))) t) ;(owllink-get-cur-answer) ) (defun owllink-transform-again-sexpr () (let ((*converter-mode* t)) (owllink-render-as-sexpr (result *my-owllink2-parser*) t))) ;;; ;;; ;;; (defun owllink-render-as-functional (exprs &optional (stream t)) (mapcan #'(lambda (x) (owllink-functional-printer x stream)) (nconc (mapcar #'(lambda (x) (make-owllink-message '|NamespacePrefix| nil (list (car x) (cdr x)))) *last-request-xml-and-functional-namespaces*) exprs))) (defun owllink-render-as-sexpr (exprs &optional (stream t)) (mapcan #'(lambda (x) (owllink-sexpr-printer x stream)) (nconc (mapcar #'(lambda (x) (make-owllink-message '|NamespacePrefix| nil (list (intern (owlapi:ensure-string (car x))) (intern (owlapi:ensure-string (cdr x)))))) *last-request-xml-and-functional-namespaces*) exprs))) (defun owllink-render-as-xml (exprs &optional (stream t)) (mapcan #'(lambda (x) (owllink-xml-printer x stream)) exprs)) ;;; ;;; ;;; (defun owllink-get-cur-input () (pprint (result *my-owllink2-parser*))) (defun owllink-get-cur-raw-input () (pprint (raw-input *my-owllink2-parser*))) (defun owllink-get-cur-answer () (pprint (answer *my-owllink2-parser*))) ;;; ;;; ;;; (owlapi:defun1 owlapi-read-xml-ontology (uri &rest args &key ontology-name reasoner-name kb-name &allow-other-keys) (with-input-from-url (stream uri) (nox:parse-from-stream stream uri 'nox:xml-parser :consumer (setf *my-owllink2-parser* (make-instance 'owllink2-parser :url uri))) (let ((*use-xml-base* *last-request-xml-base*) (*owl-xml-mode* t)) (apply #'owlapi-process-functional-ontology (result *my-owllink2-parser*) :reasoner-name (or reasoner-name kb-name uri) :ontology-name ontology-name :allow-other-keys t args)))) ;;; ;;; ;;; (owlapi:owlapi-defun (|OWLAPI-readXMLOntologyFile|) (fn &rest args &key (ignore-import *ignore-import-p*) &allow-other-keys) (let* ((*import-level* 0) (*ignore-import-p* ignore-import) (fn (make-url-from-filename fn)) (*imported-ontologies* (list (intern (owlapi:ensure-string fn))))) (#+:racer-server racer:without-duplicate-warnings #-:racer-server progn (apply #'owlapi-read-xml-ontology fn :parser #'parse-ontology-document :allow-other-keys t args)))) (owlapi:owlapi-defun (|OWLAPI-readXMLOntologyDocument|) (url &rest args &key (ignore-import *ignore-import-p*) &allow-other-keys) (let* ((*import-level* 0) (*ignore-import-p* ignore-import) (*imported-ontologies* (list (intern (owlapi:ensure-string url))))) (#+:racer-server racer:without-duplicate-warnings #-:racer-server progn (apply #'owlapi-read-xml-ontology url :parser #'parse-ontology-document :allow-other-keys t args))))
65,294
Common Lisp
.lisp
1,274
28.029042
134
0.415737
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
703f69c6bb62db60a7e63002b7f8359a6228daaa2ae02a95b73543df2d50167b
6,350
[ -1 ]
6,351
functional-renderer.lisp
lambdamikel_OntoLisp/ontolisp-0.9/functional-renderer.lisp
;;; -*- Mode: Lisp; Syntax: Ansi-Common-Lisp; Package: OWL-SYNTAXES; Base: 10 -*- (in-package :owl-syntaxes) ;;; ;;;; functional-renderer.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; OntoLisp (NOSA): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp ;;; ;;; Copyright (c) 2007-2010 Michael Wessel and Racer Systems GmbH & Co. KG ;;; All Rights Reserved. ;;; ;;; Contributor(s): Michael Wessel (mailto:[email protected] ;;; mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Provides a renderer / printer for OWL 2 functional syntax. ;;; #+:racer-server (eval-when (:compile-toplevel :load-toplevel :execute) (racer:enable-boolean-readers) (wilbur:enable-node-shorthand)) ;;; ;;; OWL2 Functional Syntax Renderer ;;; (defparameter *converter-mode* nil) (defvar *ontology* nil) (defvar *blank-node-id* 0) (defvar *axioms-rendered* 0) (defvar *add-prefixes* nil) (defvar *p4-mode* nil) (defvar *catch-return* +owlapi-owl-top+) (defvar *comments* t) (defvar *functional-to-xml-mode* nil) (defvar *sexpr-rendering* nil) ;;; ;;; ;;; (define-constant +rdfs-comment+ #+:racer-server !rdfs:comment #-:racer-server (intern (concatenate 'string "http://www.w3.org/2000/01/rdf-schema#comment"))) (define-constant +rdfs-label+ #+:racer-server !rdfs:label #-:racer-server (intern (concatenate 'string "http://www.w3.org/2000/01/rdf-schema#label"))) (define-constant +rdfs-see-also+ #+:racer-server !rdfs:seeAlso #-:racer-server (intern (concatenate 'string "http://www.w3.org/2000/01/rdf-schema#seeAlso"))) (define-constant +owl-is-defined-by+ #+:racer-server !owl:isDefinedBy #-:racer-server (intern (concatenate 'string "http://www.w3.org/2002/07/owl#isDefinedBy"))) (define-constant +owl-version-info+ #+:racer-server !owl:versionInfo #-:racer-server (intern (concatenate 'string "http://www.w3.org/2002/07/owl#isDefinedBy"))) ;;; ;;; ;;; (define-constant +owl2-standard-prefixes+ '(("rdf" "http://www.w3.org/1999/02/22-rdf-syntax-ns#") ("rdfs" "http://www.w3.org/2000/01/rdf-schema#") ("xsd" "http://www.w3.org/2001/XMLSchema#") ("owl" "http://www.w3.org/2002/07/owl#"))) (defparameter *owl2-tags-input-attributes* ;;; (let ((hash (mht))) (loop as (key val) in '((|Ontology| ("ontologyIRI" "http://www.w3.org/2002/07/owl#ontologyIRI")) (|AnonymousIndividual| ("nodeID" "http://www.w3.org/1999/02/22-rdf-syntax-ns#nodeID" "http://www.w3.org/2002/07/owl#nodeID")) (|OWL***-Literal| ("http://www.w3.org/2002/07/owl#datatypeIRI"))) do (setf (gethash key hash) val)) hash)) (defparameter *owl2-tags-input* ;;; (let ((hash (mht))) (dolist (key '(|Import| |IRI| ; f. OWLXML |AbbreviatedIRI| ; f. OWLXML |Namespace| |Declaration| |Datatype| ;;;|Literal| |OWL***-Literal| |OWLClass| |Class| |ObjectProperty| |DataProperty| |AnnotationProperty| |SubAnnotationPropertyOf| |AnnotationPropertyDomain| |AnnotationPropertyRange| |InverseObjectProperty| |ObjectInverseOf| |Individual| |NamedIndividual| |AnonymousIndividual| |Ontology| |FacetRestriction| ; !!!! |DataOneOf| |DataComplementOf| |DataIntersectionOf| |DataUnionOf| |DatatypeRestriction| |EntityAnnotation| |AnnotationAssertion| |ObjectUnionOf| |ObjectIntersectionOf| |ObjectComplementOf| |ObjectOneOf| |ObjectAllValuesFrom| |ObjectSomeValuesFrom| |ObjectExistsSelf| |ObjectHasSelf| |ObjectHasValue| |ObjectMaxCardinality| |ObjectMinCardinality| |ObjectExactCardinality| |DataAllValuesFrom| |DataSomeValuesFrom| |DataHasValue| |DataMaxCardinality| |DataMinCardinality| |DataExactCardinality| |SubclassOf| |SubClassOf| |EquivalentClasses| |DisjointClasses| |DisjointUnion| |SubObjectPropertyChain| |ObjectPropertyChain| |SubObjectPropertyOf| |EquivalentObjectProperties| |DisjointObjectProperties| |ObjectPropertyDomain| |ObjectPropertyRange| |InverseObjectProperties| |FunctionalObjectProperty| |InverseFunctionalObjectProperty| |ReflexiveObjectProperty| |IrreflexiveObjectProperty| |SymmetricObjectProperty| |AsymmetricObjectProperty| |TransitiveObjectProperty| |SubDataPropertyOf| |EquivalentDataProperties| |DisjointDataProperties| |DataPropertyDomain| |DataPropertyRange| |FunctionalDataProperty| |HasKey| |DatatypeDefinition| |SameIndividual| |SameIndividuals| |DifferentIndividual| |DifferentIndividuals| |ClassAssertion| |ObjectPropertyAssertion| |NegativeObjectPropertyAssertion| |DataPropertyAssertion| |NegativeDataPropertyAssertion| |Annotation|)) (setf (gethash key hash) t)) hash)) ;;; ;;; ;;; (defvar *simplify-remove-owl-entities* t) (defvar *abbreviate-iris* t) (defvar *dont-render-tags* nil) (defvar *dont-render-attributes* nil) (defvar *ensure-attributes-for-tag* nil) (defvar *compress-tags-with-prefixes* nil) ;;; ;;; ;;; (defun iri-owl (iri &optional (separator #\:)) (let* ((iri (if (symbolp iri) (case iri (top "owl:Thing") (bottom "owl:Nothing") (otherwise iri)) iri)) (iri (format nil "~A" iri)) (iri (remove-sharp-brackets iri))) (labels ( #+:ignore (find-in (namespace prefixes) (let ((res (or (find namespace prefixes :test #'string-equal :key #'second) (find namespace +owl2-standard-prefixes+ :test #'string-equal :key #'second)))) res))) (cond ((and *abbreviate-iris* (and (> (length iri) 3) (or (string-equal "http" (subseq iri 0 4)) (string-equal "file" (subseq iri 0 4))))) (let* ((found (or (find-if #'(lambda (prefix) (let ((res (and (second prefix) ; not NIL! (search (second prefix) iri)))) (and res (zerop res)))) *add-prefixes*) (find-if #'(lambda (prefix) (let ((res (and (second prefix) (search (second prefix) iri)))) (and res (zerop res)))) +owl2-standard-prefixes+)))) (cond (found (let ((postfix (subseq iri (length (second found)))) (prefix (first found))) (if (is-default-prefix-p prefix) (if (string= prefix ":") ; OWL madness (format nil ":~A" postfix) (format nil "~A" postfix)) (if (char= separator #\&) (format nil "&~A;~A" prefix postfix) (values (format nil "~A~A~A" prefix separator postfix) ;;; second return value t = use abbreviatedIRI for attribute t))))) (t (let* ((pos (position #\: iri)) (prefix (subseq iri 0 pos))) (if (and pos (not (string-equal prefix "http")) (not (string-equal prefix "file")) (not (string-equal prefix "https"))) (if (char= separator #\&) (format nil "&~A;~A" prefix (subseq iri (1+ pos))) (format nil "~A~A~A" prefix separator (subseq iri (1+ pos)))) iri)))))) (t (let* ((pos (position #\: iri)) (prefix (subseq iri 0 pos))) ;;; bereits abgekuerzt? dann sicherstellen, ;;; dass abbreviatedIRI verwendet wird! ;;; aber nur, wenn nicht URL... (if (and pos (not (string-equal prefix "http")) (not (string-equal prefix "file")) (not (string-equal prefix "https"))) (if (char= separator #\&) (values (format nil "&~A;~A" prefix (subseq iri (1+ pos))) t) (if (is-default-prefix-p prefix) (values (format nil "~A" (subseq iri (1+ pos))) t) (values (format nil "~A~A~A" prefix separator (subseq iri (1+ pos))) t))) iri))))))) ;;; ;;; ;;; (defvar *owllink-mode* nil) (defvar *owl2-tags-disabled* nil) (defvar *disable-owl2-tags-for* nil) (defparameter *owl2-tags* (let ((hash (mht))) (dolist (key '(|Import| |Namespace| ;;; |Prefix| |Declaration| ;;; |Datatype| OWLlink Datatype |Literal| |OWLClass| |Class| |ObjectProperty| |DataProperty| |AnnotationProperty| |SubAnnotationPropertyOf| |AnnotationPropertyDomain| |AnnotationPropertyRange| |InverseObjectProperty| |ObjectInverseOf| |Individual| |NamedIndividual| |AnonymousIndividual| |Ontology| |Facet| |DataOneOf| |DataComplementOf| |DataIntersectionOf| |DataUnionOf| |DatatypeRestriction| |EntityAnnotation| |AnnotationAssertion| |ObjectUnionOf| |ObjectIntersectionOf| |ObjectComplementOf| |ObjectOneOf| |ObjectAllValuesFrom| |ObjectSomeValuesFrom| |ObjectExistsSelf| |ObjectHasSelf| |ObjectHasValue| |ObjectMaxCardinality| |ObjectMinCardinality| |ObjectExactCardinality| |DataAllValuesFrom| |DataSomeValuesFrom| |DataHasValue| |DataMaxCardinality| |DataMinCardinality| |DataExactCardinality| |SubclassOf| |SubClassOf| |EquivalentClasses| |DisjointClasses| |DisjointUnion| |SubObjectPropertyChain| |ObjectPropertyChain| |SubObjectPropertyOf| |EquivalentObjectProperties| |DisjointObjectProperties| |ObjectPropertyDomain| |ObjectPropertyRange| |InverseObjectProperties| |FunctionalObjectProperty| |InverseFunctionalObjectProperty| |ReflexiveObjectProperty| |IrreflexiveObjectProperty| |SymmetricObjectProperty| |AsymmetricObjectProperty| |TransitiveObjectProperty| |SubDataPropertyOf| |EquivalentDataProperties| |DisjointDataProperties| |DataPropertyDomain| |DataPropertyRange| |FunctionalDataProperty| |HasKey| |DatatypeDefinition| |SameIndividual| |SameIndividuals| |DifferentIndividual| |DifferentIndividuals| |ClassAssertion| |ObjectPropertyAssertion| |NegativeObjectPropertyAssertion| |DataPropertyAssertion| |NegativeDataPropertyAssertion| |Annotation|)) (setf (gethash key hash) t)) hash)) ;;; ;;; ;;; (defun toplevel-indent-p () (or (= *indent* 0) (= *indent* 2))) (defmacro newline1 (stream) `(progn (format ,stream "~%") (dotimes (i *indent*) (format ,stream " ")))) (defmacro tag-printer (stream tag &body cont) `(let ((tag ,(cond ((stringp tag) tag) ((symbolp tag) (symbol-name tag)) (t (format nil "~A" tag))))) (if (member tag *dont-render-tags*) (progn ,@cont) (progn (when (toplevel-indent-p) (newline1 stream)) (newline1 stream) (format ,stream "~A(" tag) (let* ((*indent* (+ 2 *indent*))) ,@cont) ;; (newline1 stream) (format ,stream ")"))))) (defmacro tag-printer1 (stream tag &body cont) `(progn (if (member ,tag *dont-render-tags*) (progn ,@cont) (progn (when (toplevel-indent-p) (newline1 stream)) (newline1 stream) (format ,stream "~A(" ,tag) (let* ((*indent* (+ 2 *indent*))) ,@cont) ;; (newline1 stream) (format ,stream ")"))))) (defmacro item-printer (stream item &optional (space-p t)) `(progn ,(if space-p `(format ,stream "~A " ,item) `(format ,stream "~A" ,item)))) (defmacro string-printer (stream item &optional (space-p t)) `(progn ,(if space-p `(format ,stream "\"~A\" " ,item) `(format ,stream "\"~A\"" ,item)))) (defun iri-printer (stream iri) (let ((iri (iri-owl iri))) (if (and (> (length iri) 4) (or (string-equal "http:" (subseq iri 0 5)) (string-equal "file:" (subseq iri 0 5)))) (if *sexpr-rendering* (item-printer stream (format nil "|~A|" iri)) (item-printer stream (format nil "<~A>" iri))) (if (and *sexpr-rendering* (needs-bars-p iri)) (item-printer stream (format nil "|~A|" iri)) (item-printer stream iri))))) (defun needs-bars-p (string) (find-if #'(lambda (x) (or (whitespace-char-p x) (not (alpha-char-p x)))) string)) (defun compress-functional-tag-name (name1 &optional (separator #\.)) (if (symbolp name1) (let* ((name (symbol-name name1)) (pos (position #\# name :from-end t)) (pos1 (position #\: name))) (cond ((and pos *compress-tags-with-prefixes*) (let* ((ns (subseq name 0 (1+ pos))) (prefix (first (find ns *compress-tags-with-prefixes* :key #'second :test #'string=)))) (if prefix (intern (format nil "~A~A~A" prefix separator (subseq name (1+ pos)))) (let ((prefix (subseq name 0 pos1))) (if (or (string-equal "http" prefix) (string-equal "ftp" prefix) (string-equal "file" prefix)) (if *sexpr-rendering* (intern (format nil "|~A|" name1)) (intern (format nil "<~A>" name1))) name1))))) (pos1 (let ((prefix (subseq name 0 pos1))) (if (is-default-prefix-p prefix) (intern (format nil "~A" (subseq name (1+ pos1)))) (if (or (string-equal "http" prefix) (string-equal "ftp" prefix) (string-equal "file" prefix)) (intern (format nil "<~A>" name1)) name1)))) (t name1))) name1)) (defvar *tag-stack* nil) (defun func-printer (stream s-expr) (cond ((consp s-expr) (let* ((tag (first s-expr)) (attributes (when *owllink-mode* (second s-expr))) (rest (if *owllink-mode* (cddr s-expr) (cdr s-expr)))) (cond ((eq tag :literal) ; owl functional export (s. trans-literal) (if (second rest) (format stream "~S^^~A" (first rest) (iri-printer nil (second (second rest)))) (format stream "~S^^xsd:string" (first rest)))) ((and *owllink-mode* (or (eq tag '|OWLLiteral|) ;;; not an OWLlink Literal (eq tag '|Literal|)) rest (consp (first rest))) (let ((val (second (first rest))) (type (second (third (first rest))))) (if type (format stream "~S^^~A" val (iri-printer nil type)) (format stream "~S^^xsd:string" val)))) ((and *owllink-mode* (eq tag '|OWLLiteral|)) (let ((type (first rest)) (val (second rest))) (newline1 stream) (if type (format stream "~S^^~A" val (iri-printer nil type)) (format stream "~S^^xsd:string" val)))) ((and (eq tag '|Attribute|) (member (first rest) *dont-render-attributes*) (not (member (first rest) (second (assoc tag *ensure-attributes-for-tag*)))))) (t (let* ((*owl2-tags-disabled* (when *owllink-mode* (or *owl2-tags-disabled* (member tag *disable-owl2-tags-for*)))) (is-owl2-tag-p (when *owllink-mode* (and (not *owl2-tags-disabled*) (gethash tag *owl2-tags*)))) (*abbreviate-iris* (if (not *owllink-mode*) *abbreviate-iris* (and *owllink-mode* (let ((res (assoc '|INT-abbreviatesIRIs| attributes))) (if res (string-to-boolean (second res)) *abbreviate-iris*))))) (*add-prefixes* (if (not *owllink-mode*) *add-prefixes* (or (when *abbreviate-iris* (let ((res (assoc '|INT-prefixes| attributes))) ; ueberschreiben stets! (if res (second res) *add-prefixes*))) *add-prefixes*))) (tag (if is-owl2-tag-p (intern (format nil "owl.~A" tag)) (compress-functional-tag-name tag))) (*tag-stack* (cons tag *tag-stack*))) (cond ((and *simplify-remove-owl-entities* (not (eq (second *tag-stack*) '|owl.Declaration|)) (member tag '(|owl.Class| |owl.NamedIndividual| |owl.AnonymousIndividual| |owl.ObjectProperty| |owl.DataProperty| |owl.AnnotationProperty|))) (newline1 stream) (iri-printer stream (first rest))) ((and *converter-mode* (stringp (first rest)) (member tag '(|owl.Class| |owl.NamedIndividual| |owl.AnonymousIndividual| |owl.ObjectProperty| |owl.DataProperty| |owl.AnnotationProperty|))) (newline1 stream) (tag-printer1 stream tag (iri-printer stream (first rest)))) (t (tag-printer1 stream tag (progn (dolist (s-expr attributes) (let ((*owllink-mode* nil)) (func-printer stream `(|Attribute| ,@s-expr)))) (dolist (s-expr rest) (func-printer stream s-expr))))))))))) ((symbolp s-expr) (newline1 stream) (iri-printer stream s-expr)) ((stringp s-expr) (newline1 stream) (if (and (> (length s-expr) 4) (or (string-equal "http:" (subseq s-expr 0 5)) (string-equal "file:" (subseq s-expr 0 5)))) (item-printer stream (format nil "<~A>" s-expr)) (string-printer stream s-expr))) (t (newline1 stream) (item-printer stream s-expr)))) ;;; ;;; ;;; (defun trans-data-range (expr) (cond ((symbolp expr) ;;; datatypeURI (if *functional-to-xml-mode* `(|Datatype| ,expr) expr)) ((consp expr) (case (first expr) (d-literal (trans-literal expr)) (d-base-type (trans-data-range (second expr))) (d-complement `(|DataComplementOf| ,(trans-data-range (second expr)))) (d-and `(|DataIntersectionOf| ,@(mapcar #'trans-data-range (rest expr)))) (d-or `(|DataUnionOf| ,@(mapcar #'trans-data-range (rest expr)))) (d-possible-values `(|DataOneOf| ,@(mapcar #'trans-data-range (rest expr)))) (d-restriction (let* ((basetype (second expr)) (facets-and-values (cddr expr)) (facets-and-values (apply #'append (loop as facet in facets-and-values collect (list (trans-facet (second facet)) (trans-literal (third facet))))))) `(|DatatypeRestriction| ,(trans-data-range basetype) ,@facets-and-values))))))) (defun trans-facet (facet) facet) (defun trans-ind (ind) (if *functional-to-xml-mode* `(|NamedIndividual| ,ind) ind)) (defun trans-cardinality (n) (if *functional-to-xml-mode* `(|Cardinality| ,n) n)) (defun trans-role (role) (if (consp role) (if (eq (first role) 'inv) (if *p4-mode* (progn (owlapi-warning "In P4 compatibility mode - cannot render ObjectInverseOf, skipping") (throw :cant-render *catch-return*)) `(|ObjectInverseOf| ,(trans-role (second role)))) ;;; property chain `(|ObjectPropertyChain| ,@(mapcar #'trans-role role))) (if *functional-to-xml-mode* `(|ObjectProperty| ,role) role))) (defun trans-annotation-role (role) (if *functional-to-xml-mode* `(|AnnotationProperty| ,role) role)) (defun trans-data-role (role) (if *functional-to-xml-mode* `(|DataProperty| ,role) role)) (defun trans-concept (concept) (cond ((symbolp concept) (if *functional-to-xml-mode* `(|Class| ,concept) concept)) ((stringp concept) (trans-concept (intern concept))) ((consp concept) (case (first concept) (not `(|ObjectComplementOf| ,(trans-concept (second concept)))) (and (if (and *p4-mode* (not (rest concept))) +owlapi-owl-top+ `(|ObjectIntersectionOf| ,@(mapcar #'trans-concept (rest concept))))) (or (if (and *p4-mode* (not (rest concept))) +owlapi-owl-bottom+ `(|ObjectUnionOf| ,@(mapcar #'trans-concept (rest concept))))) (some (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectSomeValuesFrom| ,(trans-role (second concept)) ,(trans-concept (third concept)))))) (all (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectAllValuesFrom| ,(trans-role (second concept)) ,(trans-concept (third concept)))))) (at-least (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectMinCardinality| ,(trans-cardinality (second concept)) ,(trans-role (third concept)) ,@(when (fourth concept) (list (trans-concept (fourth concept)))))))) (at-most (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectMaxCardinality| ,(trans-cardinality (second concept)) ,(trans-role (third concept)) ,@(when (fourth concept) (list (trans-concept (fourth concept)))))))) (exactly (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectExactCardinality| ,(trans-cardinality (second concept)) ,(trans-role (third concept)) ,@(when (fourth concept) (list (trans-concept (fourth concept)))))))) (one-of (if (and *p4-mode* (not (rest concept))) +owlapi-owl-bottom+ `(|ObjectOneOf| ,@(mapcar #'trans-ind (rest concept))))) (has-value (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectHasValue| ,(trans-role (second concept)) ,(trans-ind (third concept)))))) (self-reference (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|ObjectHasSelf| ,(trans-role (second concept)))))) (d-some (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|DataSomeValuesFrom| ,(trans-data-role (second concept)) ,(trans-concept (third concept)))))) (d-all (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|DataAllValuesFrom| ,(trans-data-role (second concept)) ,(trans-concept (third concept)))))) (d-at-least (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|DataMinCardinality| ,(trans-cardinality (second concept)) ,@(mapcar #'(lambda (role) (trans-data-role role)) (butlast (cddr concept))) ,(trans-data-range (first (last concept))))))) (d-at-most (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|DataMaxCardinality| ,(trans-cardinality (second concept)) ,@(mapcar #'(lambda (role) (trans-data-role role)) (butlast (cddr concept))) ,(trans-data-range (first (last concept))))))) (d-exactly (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|DataExactCardinality| ,(trans-cardinality (second concept)) ,@(mapcar #'(lambda (role) (trans-data-role role)) (butlast (cddr concept))) ,(trans-data-range (first (last concept))))))) (d-filler (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render `(|DataHasValue| ,(trans-data-role (second concept)) ,(trans-literal (third concept)))))) (d-restriction (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render (trans-data-range concept)))) (otherwise (let ((*catch-return* +owlapi-owl-top+)) (catch :cant-render (trans-data-range concept)))))))) (defun trans-literal (lit) (if (consp lit) (let ((val (second lit)) (type (third lit))) (declare (ignorable type)) (if type `(:literal ,val ,type) `(:literal ,val))) `(:literal ,lit))) ;;; ;;; ;;; (defun func-comment (stream comment) (format stream "// ~A" comment)) #+:racer-server (defun func-author-comment (name stream) (func-comment stream (format nil "Ontology \"~A\" rendered by ~A Version ~A Build ~A, ~A" name (user:get-product-name) (user:get-product-version) (user:get-build-version) (licgen::decode-date1 (get-universal-time) t)))) #-:racer-server (defun func-author-comment (name stream) (func-comment stream (format nil "Ontology \"~A\" rendered by the Lisp-OWLAPI" name))) (defun func-block-comment (stream comment) (let* ((expr (with-output-to-string (stream2) (pprint comment stream2))) (expr1 (cdr (coerce expr 'list)))) ; remove first newline (loop while expr1 do (let* ((pos (position #\newline expr1))) (if pos (let ((expr2 (subseq expr1 0 pos)) (expr3 (subseq expr1 (1+ pos)))) (format stream "~%// ~A" (coerce expr2 'string)) (setf expr1 expr3)) (progn (format stream "~%// ~A" (coerce expr1 'string)) (setf expr1 nil)))))) nil) ;;; ;;; ;;; (defmethod render-literal ((stream stream) lit (syntax (eql :owl-functional))) (func-printer stream (trans-literal (third lit)))) (defmethod render-annotation ((stream stream) annotation (syntax (eql :owl-functional)) &key axiom &allow-other-keys) (tag-printer stream |Annotation| (when axiom (render-axiom-annotations stream axiom syntax)) (func-printer stream (trans-annotation-role (second annotation))) (render-literal stream annotation syntax))) (defmethod render-axiom-annotations ((stream stream) axiom (syntax (eql :owl-functional))) (dolist (axiom (get-annotation-axioms-for-axiom axiom)) (render-annotation stream (annotation axiom) syntax :axiom axiom))) ;;; ;;; ;;; (defmethod render :around ((stream stream) (axiom |OWLAxiom|) (syntax (eql :owl-functional))) (incf *axioms-rendered*) (when *comments* (terpri stream) (terpri stream) (func-comment stream (format nil "Axiom ID ~A" (axiom-id axiom))) (terpri stream) (func-block-comment stream (cons (type-of axiom) (butlast (cdr (told axiom)))))) (call-next-method)) (defmethod render ((stream stream) (axiom |OWLAxiom|) (syntax (eql :owl-functional))) (decf *axioms-rendered*) (owlapi-warning "Warning - cannot render axioms of type ~A in syntax ~A" (type-of axiom) syntax) nil) (defmethod render ((stream stream) (axiom |OWLOntologyVersionDeclarationAxiom|) (syntax (eql :owl-functional))) (func-printer stream (uri axiom)) t) (defmethod render ((stream stream) (axiom |OWLImportsDeclarationAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |Import| (iri-printer stream (uri axiom))) t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLSubClassAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |SubClassOf| (render-axiom-annotations stream axiom syntax) (func-printer stream (trans-concept (first (descriptions axiom)))) (func-printer stream (trans-concept (second (descriptions axiom))))) t) (defmethod render ((stream stream) (axiom |OWLEquivalentClassesAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |EquivalentClasses| (render-axiom-annotations stream axiom syntax) (dolist (class (descriptions axiom)) (func-printer stream (trans-concept class)))) t) (defmethod render ((stream stream) (axiom |OWLDisjointClassesAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |DisjointClasses| (render-axiom-annotations stream axiom syntax) (dolist (class (descriptions axiom)) (func-printer stream (trans-concept class)))) t) (defmethod render ((stream stream) (axiom |OWLDisjointUnionAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |DisjointUnion| (render-axiom-annotations stream axiom syntax) (dolist (class (descriptions axiom)) (func-printer stream (trans-concept class)))) t) ;;; ;;; ;;; (defmacro with-p4-ignored-axiom (&body body) `(catch :cant-render ,@body)) (defmethod render ((stream stream) (axiom |OWLObjectSubPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (sub-object-property axiom))) (r2 (trans-role (object-property axiom)))) (tag-printer stream |SubObjectPropertyOf| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream r2)))) t) (defmethod render ((stream stream) (axiom |OWLObjectPropertyChainSubPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property-chain axiom))) (r2 (trans-role (object-property axiom)))) (tag-printer stream |SubObjectPropertyOf| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream r2)))) t) (defmethod render ((stream stream) (axiom |OWLEquivalentObjectPropertiesAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (mapcar #'trans-role (object-properties axiom)))) (tag-printer stream |EquivalentObjectProperties| (render-axiom-annotations stream axiom syntax) (dolist (prop r1) (func-printer stream prop))))) t) (defmethod render ((stream stream) (axiom |OWLDisjointObjectPropertiesAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (mapcar #'trans-role (object-properties axiom)))) (tag-printer stream |DisjointObjectProperties| (render-axiom-annotations stream axiom syntax) (dolist (prop r1) (func-printer stream prop))))) t) (defmethod render ((stream stream) (axiom |OWLObjectPropertyDomainAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |ObjectPropertyDomain| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-concept (object-property-domain axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLObjectPropertyRangeAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |ObjectPropertyRange| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-concept (object-property-range axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLInverseObjectPropertiesAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (mapcar #'trans-role (object-properties axiom)))) (tag-printer stream |InverseObjectProperties| (render-axiom-annotations stream axiom syntax) (dolist (prop r1) (func-printer stream prop))))) t) (defmethod render ((stream stream) (axiom |OWLFunctionalObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |FunctionalObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLInverseFunctionalObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |InverseFunctionalObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLReflexiveObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |ReflexiveObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLIrreflexiveObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |IrreflexiveObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLSymmetricObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |SymmetricObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLAsymmetricObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |AsymmetricObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLTransitiveObjectPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (object-property axiom)))) (tag-printer stream |TransitiveObjectProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLDataSubPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-role (sub-data-property axiom))) (r2 (trans-data-role (data-property axiom)))) (tag-printer stream |SubDataPropertyOf| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream r2)))) t) (defmethod render ((stream stream) (axiom |OWLEquivalentDataPropertiesAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (mapcar #'trans-data-role (data-properties axiom)))) (tag-printer stream |EquivalentDataProperties| (render-axiom-annotations stream axiom syntax) (dolist (prop r1) (func-printer stream prop))))) t) (defmethod render ((stream stream) (axiom |OWLDisjointDataPropertiesAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (mapcar #'trans-data-role (data-properties axiom)))) (tag-printer stream |DisjointDataProperties| (render-axiom-annotations stream axiom syntax) (dolist (prop r1) (func-printer stream prop))))) t) (defmethod render ((stream stream) (axiom |OWLDataPropertyDomainAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-role (data-property axiom)))) (tag-printer stream |DataPropertyDomain| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-concept (data-property-domain axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLDataPropertyRangeAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-role (data-property axiom)))) (tag-printer stream |DataPropertyRange| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-data-range (data-property-range axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLFunctionalDataPropertyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-role (data-property axiom)))) (tag-printer stream |FunctionalDataProperty| (render-axiom-annotations stream axiom syntax) (func-printer stream r1)))) t) (defmethod render ((stream stream) (axiom |OWLDatatypeDefinitionAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-range (datatype-name axiom)))) (tag-printer stream |DatatypeDefinition| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-data-range (data-range axiom)))))) t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLHasKeyAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (mapcar #'trans-role (key-object-properties axiom))) (r2 (mapcar #'trans-data-role (key-data-properties axiom)))) (tag-printer stream |HasKey| (render-axiom-annotations stream axiom syntax) (func-printer stream (trans-concept (key-class axiom))) (newline1 stream) (if r1 (format stream " ~A" (mapcar #'(lambda (x) (iri-printer nil x)) r1)) (format stream " ()")) (newline1 stream) (if r2 (format stream " ~A" (mapcar #'(lambda (x) (iri-printer nil x)) r2)) (format stream " ()")) (newline1 stream)))) t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLClassAssertionAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |ClassAssertion| (render-axiom-annotations stream axiom syntax) (cond (*p4-mode* (func-printer stream (trans-ind (ax-individual axiom))) (func-printer stream (trans-concept (description axiom)))) (t (func-printer stream (trans-concept (description axiom))) (func-printer stream (trans-ind (ax-individual axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLObjectPropertyAssertionAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (rel-object-property axiom)))) (tag-printer stream |ObjectPropertyAssertion| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-ind (subject axiom))) (func-printer stream (trans-ind (object axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLNegativeObjectPropertyAssertionAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (rel-object-property axiom)))) (tag-printer stream |NegativeObjectPropertyAssertion| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-ind (subject axiom))) (func-printer stream (trans-ind (object axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLSameIndividualsAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |SameIndividual| ; |SameIndividuals| ? (render-axiom-annotations stream axiom syntax) (dolist (ind (individuals axiom)) (func-printer stream (trans-ind ind)))) t) (defmethod render ((stream stream) (axiom |OWLDifferentIndividualsAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |DifferentIndividuals| (render-axiom-annotations stream axiom syntax) (dolist (ind (individuals axiom)) (func-printer stream (trans-ind ind)))) t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLDataPropertyAssertionAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-role (rel-data-property axiom)))) (tag-printer stream |DataPropertyAssertion| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-ind (subject axiom))) (func-printer stream (trans-literal (data-literal axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLNegativeDataPropertyAssertionAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-data-role (rel-data-property axiom)))) (tag-printer stream |NegativeDataPropertyAssertion| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-ind (subject axiom))) (func-printer stream (trans-literal (data-literal axiom)))))) t) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLDeclarationAxiom|) (syntax (eql :owl-functional))) (tag-printer stream |Declaration| (render-axiom-annotations stream axiom syntax) (func-printer stream (entity axiom))) t) (defmethod render ((stream stream) (axiom |OWLImplicitDeclarationAxiom|) (syntax (eql :owl-functional))) nil) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLAxiomAnnotationAxiom|) (syntax (eql :owl-functional))) nil) ;;; ;;; Old EntityAnnotationAxiom ;;; (defmethod render ((stream stream) (axiom |OWLEntityAnnotationAxiom|) (syntax (eql :owl-functional))) (dolist (entity (ensure-list (first (entity axiom)))) (let ((entity (cons entity (cdr (entity axiom))))) (tag-printer stream |EntityAnnotation| (render-axiom-annotations stream axiom syntax) (func-printer stream entity) (func-printer stream `(,(let ((sym (intern (ensure-string (second (annotation axiom)))))) (cond ((eq sym +rdfs-comment+) '|Comment|) ((eq sym +rdfs-label+) '|Label|) ((eq sym +rdfs-see-also+) '|seeAlso|) ((eq sym +owl-is-defined-by+) '|isDefinedBy|) ((eq sym +owl-version-info+) '|priorVersion|) (t (if *p4-mode* '|Comment| (intern (ensure-string (second (annotation axiom)))))))) ,(format nil "~A" (second (third (annotation axiom)))))))) t)) ;;; ;;; ;;; (defmethod render ((stream stream) (axiom |OWLOntologyAnnotationAxiom|) (syntax (eql :owl-functional))) (render-annotation stream (annotation axiom) syntax :axiom axiom) t) (defmethod render ((stream stream) (axiom |OWLAnnotationAssertionAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-annotation-role (annotation-property axiom)))) (tag-printer stream |AnnotationAssertion| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-ind (annotation-subject axiom))) (func-printer stream (if (and (consp (annotation-value axiom)) (member (first (annotation-value axiom)) '(d-literal))) (trans-literal (annotation-value axiom)) (annotation-value axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLAnnotationPropertyRangeAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-annotation-role (annotation-property2 axiom)))) (tag-printer stream |AnnotationPropertyRange| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-concept (annotation-property-range axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLAnnotationPropertyDomainAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-annotation-role (annotation-property1 axiom)))) (tag-printer stream |AnnotationPropertyDomain| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream (trans-concept (annotation-property-domain axiom)))))) t) (defmethod render ((stream stream) (axiom |OWLSubAnnotationPropertyOfAxiom|) (syntax (eql :owl-functional))) (with-p4-ignored-axiom (let ((r1 (trans-role (annotation-sub-property axiom))) (r2 (trans-role (annotation-super-property axiom)))) (tag-printer stream |SubAnnotationPropertyOf| (render-axiom-annotations stream axiom syntax) (func-printer stream r1) (func-printer stream r2)))) t) ;;; ;;; ;;; (defmacro with-prefixes ((ont var default) &body body) `(let* ((,default (or (expand-prefix :defaultnamespace) (reasoner-get-default-namespace-prefix (owlapi-tbox *cur-reasoner*)))) (,var (remove-if #'(lambda (x) (string-equal (first x) "xml")) (mapcar #'(lambda (x) (list (ensure-string (first x)) (ensure-string (second x)))) (append *add-prefixes* (reasoner-get-prefixes (owlapi-tbox *cur-reasoner*) nil) (mapcar #'(lambda (axiom) (list (without-colon (prefix axiom)) (uri axiom))) (get-axioms-of-type-for (axioms ,ont) '|OWLPrefixDeclarationAxiom|)))))) (,var (remove-duplicates ,var :test #'(lambda (x y) (and (string-equal (first x) (first y)) (string-equal (second x) (second y))))))) ,@body)) (defmethod render ((stream stream) (ont ontology) (syntax (eql :owl-functional))) (let* ((*ontology* ont) (*axioms-rendered* 0) (all-axioms nil)) (with-prefixes (ont prefixes default) (with-slots (name axioms) ont (func-author-comment name stream) (loop as (prefix namespace) in (cons (list nil default) (remove-if #'is-default-prefix-p prefixes :key #'first)) do (when namespace (tag-printer1 stream (if *p4-mode* '|Namespace| '|Prefix|) (if (is-default-prefix-p prefix) (format stream ":=<~A>" namespace) (format stream "~A:=<~A>" prefix namespace))))) (let ((*add-prefixes* (cons (list ":" default) (remove-if #'is-default-prefix-p prefixes :key #'first)))) (tag-printer stream |Ontology| (iri-printer stream (make-url-from-filename name)) (dolist (type '(|OWLOntologyVersionDeclarationAxiom| |OWLImportsDeclarationAxiom| |OWLOntologyAnnotationAxiom| #| (not (or |OWLOntologyVersionDeclarationAxiom| |OWLImportsDeclarationAxiom| |OWLOntologyAnnotationAxiom| |OWLPrefixDeclarationAxiom|)) |# |OWLDeclarationAxiom| |OWLDatatypeDefinitionAxiom| |OWLClassAxiom| |OWLPropertyAxiom| |OWLIndividualAxiom| |OWLHasKeyAxiom| (and |OWLAnnotationAxiom| (not |OWLOntologyAnnotationAxiom|) (not |OWLAxiomAnnotationAxiom|)))) (dolist (axiom (get-axioms-of-type-for axioms type)) (push axiom all-axioms) (render stream axiom syntax)))) ;;; (pprint (set-difference axioms all-axioms)) (newline1 stream) (newline1 stream) (func-author-comment name stream) #+:ignore (let ((axioms (remove-if #'(lambda (x) (or (typep x '|OWLAxiomAnnotationAxiom|) (typep x '|OWLOntologyAnnotationAxiom|) (typep x '|OWLPrefixDeclarationAxiom|))) axioms))) (when (set-difference axioms all-axioms) (owlapi-warning "Upps! Forgot to render axioms of types ~A!" (remove-duplicates (mapcar #'type-of (set-difference axioms all-axioms)))))) *axioms-rendered*)))))
62,969
Common Lisp
.lisp
1,401
30.386867
116
0.524881
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
7e68de709ab8f1358143c0cee178a2dd04756adc060260100ef403a19568c32c
6,351
[ -1 ]
6,352
packages-1.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/packages-1.lisp
;;; -*- package: cl-user; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; packages.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains the package definition for WILBUR. ;;; (in-package :cl-user) ;;; -------------------------------------------------------------------------------------- ;;; ;;; PACKAGE WILBUR ;;; (defpackage :wilbur (:nicknames :w :nox) ; so as not to have many packages anymore (:use :cl #+:mcl "CCL" #+:excl "excl" #+:excl "socket" #+:excl "mop" #+:sbcl "SB-SYS" #+:lispworks "MP") (:export #:*current-parser* #:*db* #:*name-reader* #:*nodes* #:-daml+oil-uri- #:-daml-first-uri- #:-daml-list-uri- #:-daml-nil-uri- #:-daml-rest-uri- #:-owl-first-uri- #:-owl-imports-uri- #:-owl-list-uri- #:-owl-nil-uri- #:-owl-rest-uri- #:-rdf-about-uri- #:-rdf-abouteach-uri- #:-rdf-abouteachprefix-uri- #:-rdf-alt-uri- #:-rdf-attr-map- #:-rdf-attrs- #:-rdf-bag-uri- #:-rdf-bagid-uri- #:-rdf-datatype-uri- #:-rdf-description-uri- #:-rdf-id-uri- #:-rdf-li-uri- #:-rdf-nodeid-uri- #:-rdf-object-uri- #:-rdf-parsetype-uri- #:-rdf-predicate-uri- #:-rdf-rdf-uri- #:-rdf-resource-uri- #:-rdf-seq-uri- #:-rdf-statement-uri- #:-rdf-subject-uri- #:-rdf-type-uri- #:-rdf-uri- #:-rdfs-class-uri- #:-rdfs-comment-uri- #:-rdfs-constraintproperty-uri- #:-rdfs-constraintresource-uri- #:-rdfs-container-uri- #:-rdfs-domain-uri- #:-rdfs-isdefinedby-uri- #:-rdfs-label-uri- #:-rdfs-literal-uri- #:-rdfs-range-uri- #:-rdfs-resource-uri- #:-rdfs-seealso-uri- #:-rdfs-subclassof-uri- #:-rdfs-subpropertyof-uri- #:-rdfs-uri- #:-whitespace-chars- #:-xml-lang-attr- #:about-and-id-both-present #:about-and-nodeid-both-present #:add-namespace #:add-triple #:add-value #:all-values #:attach-to-parent #:blank-node-db-mixin #:char-content #:char-content #:close-rdf-element #:close-tag #:collapse-whitespace #:collect-using-fsa #:comment #:container-required #:daml-cons #:daml-list #:daml-parser #:date-cleanup-db-mixin #:db #:db-add-triple #:db-blank-node-uri #:db-blank-node-uri-p #:db-clear #:db-clear-reasoner-cache #:db-del-source #:db-del-triple #:db-find-cbd #:db-find-source-desc #:db-get-values #:db-index-literals #:db-index-literals-p #:db-load #:db-load-using-source #:db-make-triple #:db-match-literals #:db-merge #:db-node-properties-partitioned #:db-node-type-p #:db-node-types #:db-query #:db-query-by-source #:db-reify #:db-resolve-blank-node-uri #:db-resolve-blank-node-uri #:db-sameas-clusters #:db-source-descs #:db-source-real-url #:db-sources #:db-startup-time #:db-supports-matching-p #:db-transform-literal #:db-triple-lock #:db-triples #:db-uri->blank-node #:deductive-closure-db-mixin #:defer-task #:define-readtable #:define-resource-pool #:del-namespace #:del-triple #:del-value #:dictionary #:dictionary-add-namespace #:dictionary-apropos-list #:dictionary-namespaces #:dictionary-node-class #:dictionary-nodes #:dictionary-remove-namespace #:dictionary-rename-namespace #:dictionary-unresolved-nodes #:do-string-dict #:dolist+ #:dsb #:dtd-termination-problem #:duplicate-namespace-prefix #:enable-literal-shorthand #:enable-node-shorthand #:end-document #:end-element #:entity-declaration #:entity-name #:error-definition-type #:error-expectation #:error-thing #:execute-deferred-task #:expand-name-with-namespace #:feature-not-supported #:file-url #:find-first-producer #:find-http-proxy #:find-long-name #:find-node #:find-short-name #:frame #:frames-related-p #:get-all-values #:get-canonical-uri #:get-entity #:get-header #:get-value #:http-body #:http-get #:http-head #:http-headers #:http-message #:http-status #:http-url #:http-version #:illegal-character-content #:index-uri #:index-uri-p #:indexed-db #:indexed-literal-db-mixin #:interned-literal #:interned-literal-db-mixin #:invert-path #:is-container-p #:iso8601-date-string #:literal #:literal-datatype #:literal-language #:literal-language-match-p #:literal-string #:literal-transform-db-mixin #:literal-value #:load-db #:load-db-from-stream #:locked-db-mixin #:make-container #:make-file-url #:make-http-url #:make-lock #:make-triple-collection #:make-url #:malformed-url #:maybe-use-namespace #:missing-definition #:missing-entity-definition #:missing-namespace-definition #:namespaces #:node #:node-name-resolved-p #:node-uri #:open-http-stream #:open-tag #:out-of-sequence-index #:owl-uri #:own-slots #:parse #:parse-db-from-file #:parse-db-from-stream #:parse-exif-date #:parse-from-file #:parse-from-stream #:parse-http-date #:parse-iso8601-date #:parse-url #:parse-using-parsetype #:parser-db #:parser-interpret-content #:parser-node #:parser-property #:path #:path-expression #:pi-termination-problem #:prioritize #:prioritize-list #:proc-instruction #:query #:quit-lisp-process #:rdf-error #:rdf-parser #:rdf-syntax-normalizer #:rdf-uri #:rdfs-uri #:read-using #:reify #:relatedp #:replay #:reverse-expand-name #:sax-consumer #:sax-consumer-mode #:sax-consumer-producer #:sax-filter #:sax-producer #:sax-producer-consumer #:simple-external-process #:source-close-stream #:source-desc #:source-desc-load-time #:source-desc-loaded-from #:source-desc-url #:source-locator #:source-modification #:source-open-stream #:source-original-stream #:source-with-modification #:split-list #:start-document #:start-element #:string->keyword #:string-dict-add #:string-dict-del #:string-dict-get #:string-dict-get-by-value #:string-source #:syntax-error #:tag-attribute #:tag-attributes #:tag-counterpart #:tag-empty-p #:tag-namespaces #:task #:task-node #:task-parameter #:task-type #:token #:token-string #:tree-parser #:triple #:triple-collection-add #:triple-collection-triples #:triple-object #:triple-predicate #:triple-sources #:triple-subject #:triple= #:unexpected-end-tag #:unknown-character-reference #:unknown-declaration #:unknown-parsetype #:url #:url-host #:url-path #:url-port #:url-string #:value #:walk-using-fsa #:with-db-lock #:with-http-response #:with-lock #:with-resource-from-pool #:with-temps #:without-closure #:xml-error #:xml-feature-not-supported #:xml-formatter #:xml-parser #:xml-warning #:xsd-uri #:with-tags #:format-with-tags #:princ-with-tags #:comma-separated #:xhtml-preamble #:xml-preamble #:with-rdf-page #:escape-json-string #:escape-xml-string #:serializer #:serializer-stream #:serializer-dump #:single-subject-triples #:rdf/xml-serializer))
12,566
Common Lisp
.lisp
415
25.455422
90
0.634223
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
942b82cba60221ac82917221b82802a9230af4a854187e51efa8fd1a2f529cc6
6,352
[ -1 ]
6,353
useful.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/useful.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; useful.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Useful functions and macros ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; GENERALLY USEFUL STUFF ;;; (defmacro with-temps ((&rest variables) &body body) `(let (,@(mapcar #'(lambda (variable) `(,variable (gentemp))) variables)) ,@body)) (defmacro dolist+ ((pattern list &optional (value nil value-supplied-p)) &body body) (if (symbolp pattern) `(dolist (,pattern ,list ,@(and value-supplied-p (list value))) ,@body) (let ((i (gentemp))) `(dolist (,i ,list ,@(and value-supplied-p (list value))) (destructuring-bind ,pattern ,i ,@body))))) (defmacro dsb (pattern form &body body) `(destructuring-bind ,pattern ,form ,@body)) (defun remove-weird (sequence item &rest options) (declare (dynamic-extent options)) (apply #'remove item sequence options)) (defun delete-weird (sequence item &rest options) (declare (dynamic-extent options)) (apply #'delete item sequence options)) (define-modify-macro removef (items &rest options) remove-weird) (define-modify-macro deletef (items &rest options) delete-weird) (define-modify-macro unionf (items) union) (defun eq~ (x y) (or (null x) (null y) (eq x y))) (declaim (inline eq~)) (defun string->keyword (string &optional (package :keyword)) (if package (intern (string-upcase string) package) string)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; STRING DICTIONARY ;;; ;;; Some care must be taken when using this, since (in the interest of making the ;;; implementation not cons so much) we have used destructive operations. ;;; (defun string-dict-get (keys&values key) (cdr (assoc key keys&values :test #'string=))) (defun string-dict-get-by-value (keys&values value) (car (rassoc value keys&values :test #'string=))) (defun string-dict-add (keys&values key value) (acons key value keys&values)) (defun string-dict-del (keys&values key) (delete key keys&values :key #'car :test #'string=)) (defmacro do-string-dict ((key value dict) &body body) `(loop for (,key . ,value) in ,dict do (progn ,@body))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; LIST MANIPULATION ;;; (defun split-list (head tail n &optional (no-split-p nil)) (if no-split-p (values tail nil) (if (and tail (plusp n)) (split-list (cons (first tail) head) (rest tail) (1- n) no-split-p) (values (nreverse head) tail)))) (defun prioritize-list (list possible-priority-items &key (test #'eql) (key #'identity)) (prioritize list :prefer possible-priority-items :test test :key key)) (defun prioritize (list &key (prefer nil) (exclude nil) (test #'eql) (key #'identity) (splitp nil)) (let* ((items (remove-if #'(lambda (item) (find-if #'(lambda (e) (funcall test e (funcall key item))) exclude)) list)) (priority-items (mapcan #'(lambda (p) (let ((item (find p items :test test :key key))) (and item (list item)))) prefer)) (other-items (remove-if #'(lambda (item) (find-if #'(lambda (p) (funcall test (funcall key p) (funcall key item))) priority-items)) items))) (if splitp (values priority-items other-items) (append priority-items other-items))))
8,303
Common Lisp
.lisp
171
45.701754
90
0.659674
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
3cdc0fa58ceb00f3799c4767f7947acd023b046eeaf13738dc3a6c3941d29535
6,353
[ -1 ]
6,354
packages.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/packages.lisp
;;; -*- package: cl-user; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; packages.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains the package definition for WILBUR. ;;; (in-package :cl-user) ;;; -------------------------------------------------------------------------------------- ;;; ;;; PACKAGE WILBUR ;;; (defpackage "WILBUR" (:nicknames "w" "nox") ; so as not to have many packages anymore (:use "common-lisp" #+:mcl "CCL" #+:excl "excl" #+:excl "socket" #+:excl "mop" #+:sbcl "SB-SYS" #+:lispworks "MP") (:export "*CURRENT-PARSER*" "*DB*" "*NAME-READER*" "*NODES*" "-DAML+OIL-URI-" "-DAML-FIRST-URI-" "-DAML-LIST-URI-" "-DAML-NIL-URI-" "-DAML-REST-URI-" "-OWL-FIRST-URI-" "-OWL-IMPORTS-URI-" "-OWL-LIST-URI-" "-OWL-NIL-URI-" "-OWL-REST-URI-" "-RDF-ABOUT-URI-" "-RDF-ABOUTEACH-URI-" "-RDF-ABOUTEACHPREFIX-URI-" "-RDF-ALT-URI-" "-RDF-ATTR-MAP-" "-RDF-ATTRS-" "-RDF-BAG-URI-" "-RDF-BAGID-URI-" "-RDF-DATATYPE-URI-" "-RDF-DESCRIPTION-URI-" "-RDF-ID-URI-" "-RDF-LI-URI-" "-RDF-NODEID-URI-" "-RDF-OBJECT-URI-" "-RDF-PARSETYPE-URI-" "-RDF-PREDICATE-URI-" "-RDF-RDF-URI-" "-RDF-RESOURCE-URI-" "-RDF-SEQ-URI-" "-RDF-STATEMENT-URI-" "-RDF-SUBJECT-URI-" "-RDF-TYPE-URI-" "-RDF-URI-" "-RDFS-CLASS-URI-" "-RDFS-COMMENT-URI-" "-RDFS-CONSTRAINTPROPERTY-URI-" "-RDFS-CONSTRAINTRESOURCE-URI-" "-RDFS-CONTAINER-URI-" "-RDFS-DOMAIN-URI-" "-RDFS-ISDEFINEDBY-URI-" "-RDFS-LABEL-URI-" "-RDFS-LITERAL-URI-" "-RDFS-RANGE-URI-" "-RDFS-RESOURCE-URI-" "-RDFS-SEEALSO-URI-" "-RDFS-SUBCLASSOF-URI-" "-RDFS-SUBPROPERTYOF-URI-" "-RDFS-URI-" "-WHITESPACE-CHARS-" "-XML-LANG-ATTR-" "ABOUT-AND-ID-BOTH-PRESENT" "ABOUT-AND-NODEID-BOTH-PRESENT" "ADD-NAMESPACE" "ADD-TRIPLE" "ADD-VALUE" "ALL-VALUES" "ATTACH-TO-PARENT" "BLANK-NODE-DB-MIXIN" "CHAR-CONTENT" "CHAR-CONTENT" "CLOSE-RDF-ELEMENT" "CLOSE-TAG" "COLLAPSE-WHITESPACE" "COLLECT-USING-FSA" "COMMENT" "CONTAINER-REQUIRED" "DAML-CONS" "DAML-LIST" "DAML-PARSER" "DATE-CLEANUP-DB-MIXIN" "DB" "DB-ADD-TRIPLE" "DB-BLANK-NODE-URI" "DB-BLANK-NODE-URI-P" "DB-CLEAR" "DB-CLEAR-REASONER-CACHE" "DB-DEL-SOURCE" "DB-DEL-TRIPLE" "DB-FIND-CBD" "DB-FIND-SOURCE-DESC" "DB-GET-VALUES" "DB-INDEX-LITERALS" "DB-INDEX-LITERALS-P" "DB-LOAD" "DB-LOAD-USING-SOURCE" "DB-MAKE-TRIPLE" "DB-MATCH-LITERALS" "DB-MERGE" "DB-NODE-PROPERTIES-PARTITIONED" "DB-NODE-TYPE-P" "DB-NODE-TYPES" "DB-QUERY" "DB-QUERY-BY-SOURCE" "DB-REIFY" "DB-RESOLVE-BLANK-NODE-URI" "DB-RESOLVE-BLANK-NODE-URI" "DB-SAMEAS-CLUSTERS" "DB-SOURCE-DESCS" "DB-SOURCE-REAL-URL" "DB-SOURCES" "DB-STARTUP-TIME" "DB-SUPPORTS-MATCHING-P" "DB-TRANSFORM-LITERAL" "DB-TRIPLE-LOCK" "DB-TRIPLES" "DB-URI->BLANK-NODE" "DEDUCTIVE-CLOSURE-DB-MIXIN" "DEFER-TASK" "DEFINE-READTABLE" "DEFINE-RESOURCE-POOL" "DEL-NAMESPACE" "DEL-TRIPLE" "DEL-VALUE" "DICTIONARY" "DICTIONARY-ADD-NAMESPACE" "DICTIONARY-APROPOS-LIST" "DICTIONARY-NAMESPACES" "DICTIONARY-NODE-CLASS" "DICTIONARY-NODES" "DICTIONARY-REMOVE-NAMESPACE" "DICTIONARY-RENAME-NAMESPACE" "DICTIONARY-UNRESOLVED-NODES" "DO-STRING-DICT" "DOLIST+" "DSB" "DTD-TERMINATION-PROBLEM" "DUPLICATE-NAMESPACE-PREFIX" "ENABLE-LITERAL-SHORTHAND" "ENABLE-NODE-SHORTHAND" "END-DOCUMENT" "END-ELEMENT" "ENTITY-DECLARATION" "ENTITY-NAME" "ERROR-DEFINITION-TYPE" "ERROR-EXPECTATION" "ERROR-THING" "EXECUTE-DEFERRED-TASK" "EXPAND-NAME-WITH-NAMESPACE" "FEATURE-NOT-SUPPORTED" "FILE-URL" "FIND-FIRST-PRODUCER" "FIND-HTTP-PROXY" "FIND-LONG-NAME" "FIND-NODE" "FIND-SHORT-NAME" "FRAME" "FRAMES-RELATED-P" "GET-ALL-VALUES" "GET-CANONICAL-URI" "GET-ENTITY" "GET-HEADER" "GET-VALUE" "HTTP-BODY" "HTTP-GET" "HTTP-HEAD" "HTTP-HEADERS" "HTTP-MESSAGE" "HTTP-STATUS" "HTTP-URL" "HTTP-VERSION" "ILLEGAL-CHARACTER-CONTENT" "INDEX-URI" "INDEX-URI-P" "INDEXED-DB" "INDEXED-LITERAL-DB-MIXIN" "INTERNED-LITERAL" "INTERNED-LITERAL-DB-MIXIN" "INVERT-PATH" "IS-CONTAINER-P" "ISO8601-DATE-STRING" "LITERAL" "LITERAL-DATATYPE" "LITERAL-LANGUAGE" "LITERAL-LANGUAGE-MATCH-P" "LITERAL-STRING" "LITERAL-TRANSFORM-DB-MIXIN" "LITERAL-VALUE" "LOAD-DB" "LOAD-DB-FROM-STREAM" "LOCKED-DB-MIXIN" "MAKE-CONTAINER" "MAKE-FILE-URL" "MAKE-HTTP-URL" "MAKE-LOCK" "MAKE-TRIPLE-COLLECTION" "MAKE-URL" "MALFORMED-URL" "MAYBE-USE-NAMESPACE" "MISSING-DEFINITION" "MISSING-ENTITY-DEFINITION" "MISSING-NAMESPACE-DEFINITION" "NAMESPACES" "NODE" "NODE-NAME-RESOLVED-P" "NODE-URI" "OPEN-HTTP-STREAM" "OPEN-TAG" "OUT-OF-SEQUENCE-INDEX" "OWL-URI" "OWN-SLOTS" "PARSE" "PARSE-DB-FROM-FILE" "PARSE-DB-FROM-STREAM" "PARSE-EXIF-DATE" "PARSE-FROM-FILE" "PARSE-FROM-STREAM" "PARSE-HTTP-DATE" "PARSE-ISO8601-DATE" "PARSE-URL" "PARSE-USING-PARSETYPE" "PARSER-DB" "PARSER-INTERPRET-CONTENT" "PARSER-NODE" "PARSER-PROPERTY" "PATH" "PATH-EXPRESSION" "PI-TERMINATION-PROBLEM" "PRIORITIZE" "PRIORITIZE-LIST" "PROC-INSTRUCTION" "QUERY" "QUIT-LISP-PROCESS" "RDF-ERROR" "RDF-PARSER" "RDF-SYNTAX-NORMALIZER" "RDF-URI" "RDFS-URI" "READ-USING" "REIFY" "RELATEDP" "REPLAY" "REVERSE-EXPAND-NAME" "SAX-CONSUMER" "SAX-CONSUMER-MODE" "SAX-CONSUMER-PRODUCER" "SAX-FILTER" "SAX-PRODUCER" "SAX-PRODUCER-CONSUMER" "SIMPLE-EXTERNAL-PROCESS" "SOURCE-CLOSE-STREAM" "SOURCE-DESC" "SOURCE-DESC-LOAD-TIME" "SOURCE-DESC-LOADED-FROM" "SOURCE-DESC-URL" "SOURCE-LOCATOR" "SOURCE-MODIFICATION" "SOURCE-OPEN-STREAM" "SOURCE-ORIGINAL-STREAM" "SOURCE-WITH-MODIFICATION" "SPLIT-LIST" "START-DOCUMENT" "START-ELEMENT" "STRING->KEYWORD" "STRING-DICT-ADD" "STRING-DICT-DEL" "STRING-DICT-GET" "STRING-DICT-GET-BY-VALUE" "STRING-SOURCE" "SYNTAX-ERROR" "TAG-ATTRIBUTE" "TAG-ATTRIBUTES" "TAG-COUNTERPART" "TAG-EMPTY-P" "TAG-NAMESPACES" "TASK" "TASK-NODE" "TASK-PARAMETER" "TASK-TYPE" "TOKEN" "TOKEN-STRING" "TREE-PARSER" "TRIPLE" "TRIPLE-COLLECTION-ADD" "TRIPLE-COLLECTION-TRIPLES" "TRIPLE-OBJECT" "TRIPLE-PREDICATE" "TRIPLE-SOURCES" "TRIPLE-SUBJECT" "TRIPLE=" "UNEXPECTED-END-TAG" "UNKNOWN-CHARACTER-REFERENCE" "UNKNOWN-DECLARATION" "UNKNOWN-PARSETYPE" "URL" "URL-HOST" "URL-PATH" "URL-PORT" "URL-STRING" "VALUE" "WALK-USING-FSA" "WITH-DB-LOCK" "WITH-HTTP-RESPONSE" "WITH-LOCK" "WITH-RESOURCE-FROM-POOL" "WITH-TEMPS" "WITHOUT-CLOSURE" "XML-ERROR" "XML-FEATURE-NOT-SUPPORTED" "XML-FORMATTER" "XML-PARSER" "XML-WARNING" "XSD-URI" "WITH-TAGS" "FORMAT-WITH-TAGS" "PRINC-WITH-TAGS" "COMMA-SEPARATED" "XHTML-PREAMBLE" "XML-PREAMBLE" "WITH-RDF-PAGE" "ESCAPE-JSON-STRING" "ESCAPE-XML-STRING" "SERIALIZER" "SERIALIZER-STREAM" "SERIALIZER-DUMP" "SINGLE-SUBJECT-TRIPLES" "RDF/XML-SERIALIZER"))
12,579
Common Lisp
.lisp
415
25.486747
90
0.634203
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
9cc9dbdf391e68caf4373d800e04202265506c8b7118c5d40f607f71bf77ba3c
6,354
[ -1 ]
6,355
xml-util.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/xml-util.lisp
;;; -*- package: NOX; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; xml-util.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains useful functions and other definitions for ;;; implementing an XML parser (or some other stuff, for that matter). These ;;; are separated from the actual parser so that one could replace the actual ;;; parser with another implementation (not me, but someone else might do it). ;;; (in-package "NOX") ;;; -------------------------------------------------------------------------------------- ;;; ;;; XML CONDITION CLASSES ;;; ;;; XML-ERROR abstract ;;; SYNTAX-ERROR concrete ;;; PI-TERMINATION-PROBLEM concrete ;;; DTD-TERMINATION-PROBLEM concrete ;;; UNEXPECTED-END-TAG concrete ;;; UNKNOWN-DECLARATION concrete ;;; UNKNOWN-CHARACTER-REFERENCE concrete ;;; MALFORMED-URL concrete ;;; XML-FEATURE-NOT-SUPPORTED concrete ;;; MISSING-DEFINITION abstract ;;; MISSING-ENTITY-DEFINITION concrete, continuable ;;; MISSING-NAMESPACE-DEFINITION concrete, continuable ;;; XML-WARNING concrete, warning ;;; (define-condition wilbur-error (simple-error) ((thing :initarg :thing :reader error-thing)) (:report (lambda (condition stream) (format stream (simple-condition-format-control condition) (error-thing condition))))) (define-condition xml-error (wilbur-error) ()) (define-condition syntax-error (xml-error) () (:default-initargs :format-control "XML -- syntax error (why: ~:[unknown~;~:*~A~])")) (define-condition pi-termination-problem (syntax-error) () (:default-initargs :format-control "XML -- unterminated PI ~S")) (define-condition dtd-termination-problem (syntax-error) () (:default-initargs :format-control "XML -- improperly terminated DTD")) (define-condition unexpected-end-tag (syntax-error) ((expectation :initarg :expectation :initform nil :reader error-expectation)) (:report (lambda (condition stream) (format stream "XML -- unexpected end tag ~S~@[ (looking for ~S)~]" (error-thing condition) (error-expectation condition))))) (define-condition unknown-declaration (syntax-error) () (:default-initargs :format-control "XML -- unknown declaration ~S")) (define-condition unknown-character-reference (syntax-error) () (:default-initargs :format-control "XML -- unknown character reference ~S")) (define-condition malformed-url (syntax-error) () (:default-initargs :format-control "XML -- unparseable URL ~S")) (define-condition xml-feature-not-supported (xml-error) () (:default-initargs :format-control "XML -- ~S is not supported")) (define-condition missing-definition (xml-error) ((definition-type :initarg :type :reader error-definition-type)) (:report (lambda (condition stream) (format stream "XML -- missing ~A definition ~S" (error-definition-type condition) (error-thing condition))))) (define-condition missing-entity-definition (missing-definition) () (:default-initargs :type :entity)) (define-condition missing-namespace-definition (missing-definition) () (:default-initargs :type :namespace)) (define-condition xml-warning (simple-warning) ()) (defmacro xml-warning (message &rest args) `(warn 'xml-warning :format-control "XML -- ~?" :format-arguments (list ,message (list ,@args)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RESOURCE POOLS ;;; #-:mcl (defstruct (resource-pool (:conc-name pool-)) data constructor initializer destructor) #-(or :mcl :excl :sbcl :lispworks) (defmacro without-interrupts (&body body) (warn "No working WITHOUT-INTERRUPTS in this implementation") `(progn ,@body)) #-:mcl (defmacro atomic-push (thing place) `(without-interrupts (push ,thing ,place))) #-:mcl (defmacro atomic-pop (place) `(without-interrupts (pop ,place))) (defun allocate-resource-from-pool (pool &rest args) #+:mcl (declare (ignore args)) #+:mcl (ccl::allocate-resource pool) #-:mcl (let ((res (or (atomic-pop (pool-data pool)) (apply (pool-constructor pool) args))) (init (pool-initializer pool))) (when init (funcall init res)) res)) (defun free-resource-to-pool (pool resource) #+:mcl (ccl::free-resource pool resource) #-:mcl (let ((des (pool-destructor pool))) (when des (funcall des resource)) (atomic-push resource (pool-data pool)))) (defmacro define-resource-pool (name constructor &optional initializer destructor) #+:mcl (let ((r (gentemp)) (c (gentemp)) (i (gentemp)) (d (gentemp))) `(let ((,c ,constructor) (,i ,initializer) (,d ,destructor)) (ccl::defresource ,name :constructor (let (,r) (prog1 (setf ,r (funcall ,c)) (funcall ,i ,r))) :initializer ,i :destructor ,d))) #-:mcl `(defparameter ,name (make-resource-pool :constructor ,constructor :initializer ,initializer :destructor ,destructor))) (defmacro with-resource-from-pool ((var pool) &body body) #+:mcl `(ccl::using-resource (,var ,pool) ,@body) #-:mcl (let ((flag (gentemp)) (g-pool (gentemp))) `(let* ((,g-pool ,pool) (,flag (allocate-resource-from-pool ,g-pool)) (,var ,flag)) (unwind-protect (progn ,@body) (when ,flag (free-resource-to-pool ,g-pool ,flag)))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HELPERS ;;; (defun make-base-string (size &rest args) (declare (dynamic-extent args)) (remf args :element-type) (apply #'make-array size :element-type #+:sbcl 'extended-char #-:sbcl 'base-char args)) (declaim (inline make-base-string)) (defvar *current-parser* nil) (defmacro with-loop&read-char ((char stream &optional (eof-error-p t)) &body body) `(loop (let ((,char (read-char ,stream nil nil t))) (cond ((or ,char (not ,eof-error-p)) ,@body) (t (error 'syntax-error :thing "eof while scanning")))))) (defun read-using (readtable stream &optional recursivep) (let ((old-readtable *readtable*)) (handler-case (let ((*readtable* readtable)) (read stream t nil recursivep)) (syntax-error (c) (setf *readtable* old-readtable) (error c))))) (defmacro define-readtable (readtablevar copied-from &body body) `(defparameter ,readtablevar (let ((*readtable* (copy-readtable ,copied-from))) ,@body *readtable*))) (defmacro define-macro-character (character (&rest args) &body body) `(set-macro-character ',character #'(lambda (,@args) ,@body))) (defvar *ruc-buffer* nil) (defvar *ruc-ee-buffer* nil) (define-resource-pool *xml-parse-buffers* #'(lambda () (make-base-string 2048 :adjustable t :fill-pointer 0)) #'(lambda (vector) (setf (fill-pointer vector) 0))) (defvar *leave-unknown-entities-unexpanded-p* t) (defun read-until-char-expanding-entities (stream char save-last-p &optional (buffer *ruc-ee-buffer*)) (setf (fill-pointer buffer) 0) (with-loop&read-char (c stream) (cond ((char= c char) (when save-last-p (unread-char c stream)) (return (concatenate 'string buffer))) ((char= c #\&) (let ((name (read-until-char stream #\;))) (if (char= (char name 0) #\#) (multiple-value-bind (c1 c2 c3) (resolve-character-reference name) (vector-push-extend c1 buffer) (when c2 (vector-push-extend c2 buffer) (when c3 (vector-push-extend c3 buffer)))) (let ((def (get-entity *current-parser* name))) (unless def (unless *leave-unknown-entities-unexpanded-p* (cerror "Do not expand" 'missing-entity-definition :thing name)) (setf def (format nil "&~A;" name))) (dotimes (i (length def)) (vector-push-extend (char def i) buffer)))))) (t (vector-push-extend c buffer))))) (defun resolve-character-reference (ref) (let ((n (ignore-errors (if (char= (char ref 1) #\x) (parse-integer ref :start 2 :radix 16) (parse-integer ref :start 1 :radix 10))))) (if (and (integerp n) (< n 65536)) (let ((b (integer-length n))) ; poor man's UTF8 enconding :-) (cond ((<= b 7) (code-char n)) ((<= b 11) (values (code-char (logior #b11000000 (ash n -6))) (code-char (logior #b10000000 (logand n #b00111111))))) ((<= b 16) (values (code-char (logior #b11100000 (ash n -12))) (code-char (logior #b10000000 (logand (ash n -6)) #b00111111)) (code-char (logior #b10000000 (logand n #b00111111))))))) (error 'unknown-character-reference :thing ref)))) (defun read-until-char (stream char &optional (buffer *ruc-buffer*)) (setf (fill-pointer buffer) 0) (with-loop&read-char (c stream) (if (char= c char) (return (concatenate 'string buffer)) (vector-push-extend c buffer)))) (defun read-until-%%> (stream char &aux chars) (with-loop&read-char (c stream) (cond ((not (char= c char)) (push c chars)) ((or (not (char= (setf c (read-char stream t nil t)) char)) (not (char= (peek-char nil stream t nil t) #\>))) (push char chars) (push c chars)) (t (read-char stream t nil t) ; skip #\> (return (concatenate 'string (nreverse chars))))))) (eval-when (:compile-toplevel :load-toplevel :execute) (defmacro whitespace-char-p (char) (with-temps (c) `(let ((,c ,char)) ;; let's assume this works for now :-) (or (char= ,c #\Space) (not (graphic-char-p ,c))))))) (eval-when (:compile-toplevel :load-toplevel) (defconstant -whitespace-chars- (let ((chars nil)) (dotimes (i 256) (let ((c (code-char i))) (when (whitespace-char-p c) (push c chars)))) (concatenate 'string chars)))) (defun name&prefix (string) (let ((i (position #\: string))) (cond ((null i) (values string nil)) ((zerop i) (values (subseq string 1) nil)) ((= i (1- (length string))) (values nil (subseq string 0 i))) (t (values (subseq string (1+ i)) (subseq string 0 i)))))) (defun skip-whitespace (stream &optional pop-char-p) (let ((char (peek-char t stream t nil t))) (if pop-char-p (read-char stream t nil t) char))) (defun collapse-whitespace (string) ;; new version with "poor man's Unicode support" :-( (labels ((collapse (mode old new) (if old (dsb (c &rest old) old (cond ((zerop (logand (char-code c) #b10000000)) (if (whitespace-char-p c) (collapse (if (eq mode :start) :start :white) old new) (collapse :collect old (if (eq mode :white) (list* c #\Space new) (cons c new))))) ((= (logand (char-code c) #b11100000) 192) (collapse :collect (cdr old) (if (eq mode :white) (list* (car old) c #\Space new) (list* (car old) c new)))) ((= (logand (char-code c) #b11110000) 224) (collapse :collect (cddr old) (if (eq mode :white) (list* (cadr old) (car old) c #\Space new) (list* (cadr old) (car old) c new)))) (t (error "Cannot decode this: ~S" (cons c old))))) (concatenate 'string (nreverse new))))) (declare (dynamic-extent #'collapse)) (collapse :start (coerce string 'list) nil))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; URL FUNCTIONS ;;; ;;; We currently support http, file, urn, mailto and tel URL parsing. ;;; (defun parse-url (u &optional (errorp nil)) (cond ((string= u "http://" :end1 7) (flet ((url (host port &optional (path "/")) `(:host ,host :port ,port :path ,(if (zerop (length path)) "/" path)))) (let ((i (position #\: u :start 7)) (j (position #\/ u :start 7))) (cond ((and (null i) (null j)) (values :http (url (subseq u 7) 80 "/"))) ((and i (< i (or j most-positive-fixnum))) (let ((h (subseq u 7 i))) (multiple-value-bind (p j) (parse-integer u :start (1+ i) :junk-allowed t) (values :http (url h p (subseq u j)))))) (t (values :http (url (subseq u 7 j) 80 (subseq u j)))))))) ((string= u "file://" :end1 7) (let ((p (subseq u 7))) (values :file `(:path ,(translate-logical-pathname (canonical->host-specific-path p)))))) ((string= u "mailto:" :end1 7) (values :mailto `(:path ,(subseq u 7)))) ((string= u "tel:" :end1 4) (if (char= (char u 4) #\+) (values :tel `(:number ,(subseq u 5) :plusp t)) (values :tel `(:number ,(subseq u 4) :plusp nil)))) ((string= u "urn:" :end1 4) (values :urn `(:path ,(subseq u 4)))) (errorp (error 'malformed-url :thing u)) (t (let ((i (position #\: u))) (values :unknown `(:scheme ,(subseq u 0 i) :path ,(subseq u (1+ i)))))))) (defun host-specific->canonical-path (path) #+(and :mcl (not :openmcl)) (substitute #\/ #\: (subseq path (position #\: path))) #+(or (not :mcl) :openmcl) ; = unix, since we do not do Windows yet (maybe never) path) (defun canonical->host-specific-path (path) #+(and :mcl (not :openmcl)) (let ((p (namestring (translate-logical-pathname "home:")))) (concatenate 'string (subseq p 0 (position #\: p)) (substitute #\: #\/ path))) #+(or (not :mcl) :openmcl) ; = unix, since we do not do Windows yet (maybe never) path) (defun make-file-url (pathname) (format nil "file://~A" (host-specific->canonical-path (namestring (translate-logical-pathname (pathname pathname)))))) (defun make-http-url (host port path) (format nil "http://~A~@[:~S~]~A" host port (or path "/"))) (defun make-mailto-url (address) (format nil "mailto:~A" address)) (defun make-tel-url (number &optional (include-plus-p t)) (format nil "tel:~@[+~]~A" (not include-plus-p) number)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XML TOKEN CLASSES ;;; ;;; The lexical scanner of the parser (function read-xml-token) returns instances of ;;; XML token classes. Some of these are processed by the parser, some are ignored. ;;; ;;; TOKEN abstract ;;; TAG abstract ;;; OPEN-TAG processed ;;; CLOSE-TAG processed ;;; PROC-INSTRUCTION ignored ;;; DTD-DECLARATION abstract ;;; ENTITY-DECLARATION processed ;;; ELEMENT-DECLARATION ignored w/ warning ;;; ATTLIST-DECLARATION ignored w/ warning ;;; COMMENT ignored ;;; CHAR-CONTENT processed (this is a string, not an instance) ;;; DTD-BRACKET abstract ;;; DTD-START ignored w/ warning (if external DTD) ;;; DTD-END ignored ;;; (defclass token () ((string :initarg :string :accessor token-string))) (defclass tag (token) ((counterpart :initform nil :accessor tag-counterpart))) (defmethod print-object ((self tag) stream) (print-unreadable-object (self stream :type t) (princ (token-string self) stream))) (defclass open-tag (tag) ((original-name :initform nil :accessor tag-original-name) (attributes :initform nil :accessor tag-attributes) (emptyp :initform nil :accessor tag-empty-p) (namespaces :initarg :namespaces :accessor tag-namespaces) (base :initarg :base :initform nil :accessor tag-base))) (defun tag-attribute (tag attribute) ; assuming OPEN-TAG (string-dict-get (tag-attributes tag) attribute)) (defun (setf tag-attribute) (value tag attribute) ; assuming OPEN-TAG (setf (tag-attributes tag) (string-dict-add (tag-attributes tag) attribute value)) value) (defclass close-tag (tag) ()) (defclass proc-instruction (token) ()) (defclass dtd-declaration (token) ()) (defclass entity-declaration (dtd-declaration) ((name :initarg :name :reader entity-name))) (defclass element-declaration (dtd-declaration) ((name :initarg :name :reader element-name) (contentspec :initarg :contentspec :reader element-contentspec))) (defclass attlist-declaration (dtd-declaration) ((name :initarg :name :reader attlist-name) ;; should be more )) (defclass comment (dtd-declaration) ()) (defclass dtd-bracket (token) ()) (defclass dtd-start (dtd-bracket) ((externalp :initarg :externalp :initform nil :reader dtd-external-p) (stuff :initarg :stuff :initform nil :reader dtd-stuff))) (defclass dtd-end (dtd-bracket) ()) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-CONSUMER ;;; SIMPLE SAX 1 -LIKE INTERFACE ("CL-SAX") ;;; (defclass sax-consumer () ((producer :initarg :producer :initform nil :accessor sax-consumer-producer) (debugp :initarg :debugp :initform nil :reader sax-consumer-debug-p))) (defgeneric start-element (consumer tag mode)) (defgeneric end-element (consumer tag mode)) (defgeneric char-content (consumer char-content mode)) (defgeneric proc-instruction (consumer instruction mode)) (defgeneric start-document (consumer locator)) (defgeneric end-document (consumer mode)) (defgeneric maybe-use-namespace (consumer prefix uri)) (defun debug-format (consumer string &rest args) (when (sax-consumer-debug-p consumer) (apply #'format *debug-io* string args))) (defmethod find-first-producer ((consumer sax-consumer)) (find-first-producer (sax-consumer-producer consumer))) (defmethod sax-consumer-mode ((self sax-consumer)) nil) (defmethod start-element ((self sax-consumer) (tag open-tag) mode) (debug-format self "~&START ~A ~S ~S ~S" (token-string tag) (tag-attributes tag) mode (tag-base tag))) (defmethod end-element ((self sax-consumer) (tag open-tag) mode) (debug-format self "~&END ~A ~S ~S" (token-string tag) mode (tag-base tag))) (defmethod char-content ((self sax-consumer) (char-content string) mode) (debug-format self "~&CHARACTERS ~S ~S" char-content mode)) (defmethod proc-instruction ((self sax-consumer) (tag proc-instruction) mode) (debug-format self "~&PI ~S ~S" (token-string tag) mode)) (defmethod start-document ((self sax-consumer) locator) (debug-format self "~&START DOCUMENT ~S" locator)) (defmethod end-document ((self sax-consumer) mode) (debug-format self "~&END DOCUMENT ~S" mode)) (defmethod maybe-use-namespace ((self sax-consumer) prefix uri) (debug-format self "&NAMESPACE ~S ~S" prefix uri)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-PRODUCER ;;; (defclass sax-producer () ((consumer :accessor sax-producer-consumer))) (defmethod find-first-producer ((producer sax-producer)) producer) (defmethod initialize-instance :after ((self sax-producer) &key (consumer (make-instance 'sax-consumer :debugp t)) &allow-other-keys) (setf (sax-producer-consumer self) consumer)) (defmethod (setf sax-producer-consumer) :after ((consumer sax-consumer) (producer sax-producer)) (setf (sax-consumer-producer consumer) producer)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-FILTER ;;; (defclass sax-filter (sax-consumer sax-producer) ((blockp :initform nil :initarg :blockp :accessor sax-filter-block-p))) (defmethod start-element ((self sax-filter) (tag open-tag) mode) (unless (sax-filter-block-p self) (start-element (sax-producer-consumer self) tag mode))) (defmethod end-element ((self sax-filter) (tag open-tag) mode) (unless (sax-filter-block-p self) (end-element (sax-producer-consumer self) tag mode))) (defmethod char-content ((self sax-filter) (content string) mode) (unless (sax-filter-block-p self) (char-content (sax-producer-consumer self) content mode))) (defmethod proc-instruction ((self sax-filter) (tag proc-instruction) mode) (unless (sax-filter-block-p self) (proc-instruction (sax-producer-consumer self) tag mode))) (defmethod start-document ((self sax-filter) locator) (unless (sax-filter-block-p self) (start-document (sax-producer-consumer self) locator))) (defmethod end-document ((self sax-filter) mode) (unless (sax-filter-block-p self) (end-document (sax-producer-consumer self) mode))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS NODE-POSITION-TRACKER ;;; (defclass node-position-tracker (sax-filter) ((path-taken :initform nil :accessor tracker-path-taken) (horizontal-index :initform 0 :accessor tracker-horizontal-index))) (defmethod start-element :around ((self node-position-tracker) (tag open-tag) mode) (declare (ignore mode)) (push (1+ (tracker-horizontal-index self)) (tracker-path-taken self)) (setf (tracker-horizontal-index self) 0) (call-next-method)) (defmethod end-element :around ((self node-position-tracker) (tag open-tag) mode) (declare (ignore mode)) (call-next-method) (setf (tracker-horizontal-index self) (pop (tracker-path-taken self))))
27,594
Common Lisp
.lisp
662
35.838369
90
0.603722
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
e3e645b855b4357c4c259eb9528315746933c8c15c9499f507636a53d6524f52
6,355
[ -1 ]
6,356
nox-package.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/nox-package.lisp
;;; -*- package: CL-USER; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; nox-package.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Definition for the package NOX ;;; (in-package "CL-USER") ;;; -------------------------------------------------------------------------------------- ;;; ;;; PACKAGE NOX ;;; (defpackage "NOX" (:nicknames "NOKIA-XML-CL" "WILBUR-XML") (:use "COMMON-LISP" #+:mcl "CCL" #+:excl "EXCL" #+:sbcl "SB-SYS") (:export "XML-ERROR" ; from xml-util.lisp "ERROR-THING" "SYNTAX-ERROR" "PI-TERMINATION-PROBLEM" "DTD-TERMINATION-PROBLEM" "UNEXPECTED-END-TAG" "ERROR-EXPECTATION" "UNKNOWN-DECLARATION" "UNKNOWN-CHARACTER-REFERENCE" "MALFORMED-URL" "FEATURE-NOT-SUPPORTED" "MISSING-DEFINITION" "ERROR-DEFINITION-TYPE" "MISSING-ENTITY-DEFINITION" "MISSING-NAMESPACE-DEFINITION" "XML-WARNING" "*CURRENT-PARSER*" "READ-USING" "STRING-DICT-GET" "STRING-DICT-GET-BY-VALUE" "STRING-DICT-ADD" "STRING-DICT-DEL" "DO-STRING-DICT" "MAKE-FILE-URL" "MAKE-HTTP-URL" "PARSE-URL" "TOKEN" "TOKEN-STRING" "OPEN-TAG" "CLOSE-TAG" "ENTITY-DECLARATION" "ENTITY-NAME" "COMMENT" "CHAR-CONTENT" "TAG-COUNTERPART" "TAG-ATTRIBUTE" "TAG-ATTRIBUTES" "TAG-EMPTY-P" "TAG-NAMESPACES" "START-ELEMENT" "END-ELEMENT" "CHAR-CONTENT" "PROC-INSTRUCTION" "START-DOCUMENT" "END-DOCUMENT" "MAYBE-USE-NAMESPACE" "SAX-CONSUMER" "SAX-CONSUMER-PRODUCER" "SAX-CONSUMER-MODE" "SAX-PRODUCER" "SAX-PRODUCER-CONSUMER" "SAX-FILTER" "FIND-FIRST-PRODUCER" "-WHITESPACE-CHARS-" "WITH-RESOURCE-FROM-POOL" "DEFINE-RESOURCE-POOL" "COLLAPSE-WHITESPACE" "*NAME-READER*" ; from xml-parser.lisp "XML-PARSER" "GET-ENTITY" "GET-CANONICAL-URI" "PARSE" "EXPAND-NAME-WITH-NAMESPACE" "PARSE-FROM-STREAM" "PARSE-FROM-FILE" "XML-FORMATTER" "REPLAY" "REVERSE-EXPAND-NAME" "TREE-PARSER" "STRING->KEYWORD" "PARSER-INTERPRET-CONTENT" "-RDF-URI-" ; from rdf-constants.lisp "-RDFS-URI-" "-XSD-URI-" "RDF-URI" "RDFS-URI" "XSD-URI" "OWL-URI" "-RDF-ATTRS-" "-RDF-ATTR-MAP-" "-RDF-ID-URI-" "-RDF-RESOURCE-URI-" "-RDF-ABOUT-URI-" "-RDF-ABOUTEACH-URI-" "-RDF-ABOUTEACHPREFIX-URI-" "-RDF-BAGID-URI-" "-RDF-PARSETYPE-URI-" "-RDF-DATATYPE-URI-" "-RDF-NODEID-URI-" "-XML-LANG-ATTR-" "-RDF-DESCRIPTION-URI-" "-RDF-TYPE-URI-" "-RDF-RDF-URI-" "-RDF-LI-URI-" "-RDF-STATEMENT-URI-" "-RDF-SUBJECT-URI-" "-RDF-PREDICATE-URI-" "-RDF-OBJECT-URI-" "-RDF-BAG-URI-" "-RDF-SEQ-URI-" "-RDF-ALT-URI-" "-RDF-FIRST-URI-" "-RDF-REST-URI-" "-RDF-NIL-URI-" "-RDFS-RESOURCE-URI-" "-RDFS-CLASS-URI-" "-RDFS-SUBCLASSOF-URI-" "-RDFS-SUBPROPERTYOF-URI-" "-RDFS-SEEALSO-URI-" "-RDFS-ISDEFINEDBY-URI-" "-RDFS-CONSTRAINTRESOURCE-URI-" "-RDFS-CONSTRAINTPROPERTY-URI-" "-RDFS-RANGE-URI-" "-RDFS-DOMAIN-URI-" "-RDFS-COMMENT-URI-" "-RDFS-LABEL-URI-" "-RDFS-LITERAL-URI-" "-RDFS-CONTAINER-URI-" "-OWL-LIST-URI-" "-OWL-FIRST-URI-" "-OWL-REST-URI-" "-OWL-NIL-URI-" "-OWL-IMPORTS-URI-"))
8,051
Common Lisp
.lisp
215
34.065116
90
0.655428
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
67df9a86d9808292e3da286ce9b7bebf38a1b413e447c201887b9fc34174aed2
6,356
[ -1 ]
6,357
core-constants-2.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/core-constants-2.lisp
;;; -*- package: nox; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; core-constants.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains definitions for various constants used by the ;;; RDF parser (mostly URIs). Given that the XML parser has to deal with the ;;; issue of RDF M+S vagueness on the namespaces of RDF attributes (such as ;;; "about"), the definitions in this file are in the NOX package. ;;; ;;; Generally, I hate this stuff since I never seem to get the constant ;;; definitions right vis-a-vis compile time vs. load-time. :-( ;;; (in-package :nox) (defmacro define-constant (name value &optional doc) `(defconstant ,name (if (boundp ',name) (symbol-value ',name) ,value) ,@(when doc (list doc)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HELPERS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -rdf-uri- #."http://www.w3.org/1999/02/22-rdf-syntax-ns#") (define-constant -rdfs-uri- #."http://www.w3.org/2000/01/rdf-schema#") (define-constant -xsd-uri- #."http://www.w3.org/2001/XMLSchema#") (define-constant -owl-uri- #."http://www.w3.org/2002/07/owl#") (define-constant -daml-uri- #."http://www.daml.org/2000/12/daml+oil#") (defmacro rdf-uri (string) `(concatenate 'string -rdf-uri- ,string)) (defmacro rdfs-uri (string) `(concatenate 'string -rdfs-uri- ,string)) (defmacro xsd-uri (string) `(concatenate 'string -xsd-uri- ,string)) (defmacro owl-uri (string) `(concatenate 'string -owl-uri- ,string)) (defmacro daml-uri (string) `(concatenate 'string -daml-uri- ,string)) (define-constant -alternate-rdf-uri- #."http://www.w3.org/TR/REC-rdf-syntax/") (define-constant -alternate-rdfs-uri- #."http://www.w3.org/TR/1999/PR-rdf-schema-19990303#")) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF M+S ATTRIBUTE URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -rdf-id-uri- #.(rdf-uri "ID")) (define-constant -rdf-resource-uri- #.(rdf-uri "resource")) (define-constant -rdf-about-uri- #.(rdf-uri "about")) (define-constant -rdf-abouteach-uri- #.(rdf-uri "aboutEach")) (define-constant -rdf-abouteachprefix-uri- #.(rdf-uri "aboutEachPrefix")) (define-constant -rdf-bagid-uri- #.(rdf-uri "bagID")) (define-constant -rdf-parsetype-uri- #.(rdf-uri "parseType")) (define-constant -rdf-datatype-uri- #.(rdf-uri "datatype")) (define-constant -rdf-nodeid-uri- #.(rdf-uri "nodeID")) (define-constant -xml-lang-attr- "xml:lang")) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF M+S RESOURCE, PROPERTY, ETC. URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -rdf-description-uri- #.(rdf-uri "Description")) (define-constant -rdf-type-uri- #.(rdf-uri "type")) (define-constant -rdf-rdf-uri- #.(rdf-uri "RDF")) (define-constant -rdf-li-uri- #.(rdf-uri "li")) (define-constant -rdf-statement-uri- #.(rdf-uri "Statement")) (define-constant -rdf-subject-uri- #.(rdf-uri "subject")) (define-constant -rdf-predicate-uri- #.(rdf-uri "predicate")) (define-constant -rdf-object-uri- #.(rdf-uri "object")) (define-constant -rdf-xmlliteral-uri- #.(rdf-uri "XMLLiteral")) (define-constant -rdf-bag-uri- #.(rdf-uri "Bag")) (define-constant -rdf-seq-uri- #.(rdf-uri "Seq")) (define-constant -rdf-alt-uri- #.(rdf-uri "Alt")) (define-constant -rdf-list-uri- #.(rdf-uri "List")) (define-constant -rdf-first-uri- #.(rdf-uri "first")) (define-constant -rdf-rest-uri- #.(rdf-uri "rest")) (define-constant -rdf-nil-uri- #.(rdf-uri "nil"))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF SCHEMA URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -rdfs-resource-uri- #.(rdfs-uri "Resource")) (define-constant -rdfs-class-uri- #.(rdfs-uri "Class")) (define-constant -rdfs-subclassof-uri- #.(rdfs-uri "subClassOf")) (define-constant -rdfs-subpropertyof-uri- #.(rdfs-uri "subPropertyOf")) (define-constant -rdfs-seealso-uri- #.(rdfs-uri "seeAlso")) (define-constant -rdfs-isdefinedby-uri- #.(rdfs-uri "isDefinedBy")) (define-constant -rdfs-constraintresource-uri- #.(rdfs-uri "ConstraintResource")) (define-constant -rdfs-constraintproperty-uri- #.(rdfs-uri "ConstraintProperty")) (define-constant -rdfs-range-uri- #.(rdfs-uri "range")) (define-constant -rdfs-domain-uri- #.(rdfs-uri "domain")) (define-constant -rdfs-comment-uri- #.(rdfs-uri "comment")) (define-constant -rdfs-label-uri- #.(rdfs-uri "label")) (define-constant -rdfs-literal-uri- #.(rdfs-uri "Literal")) (define-constant -rdfs-datatype-uri- #.(rdfs-uri "Datatype")) (define-constant -rdfs-container-uri- #.(rdfs-uri "Container ")) (define-constant -rdfs-member-uri- #.(rdfs-uri "member"))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XSD URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -xsd-string-uri- #.(xsd-uri "string")) (define-constant -xsd-boolean-uri- #.(xsd-uri "boolean")) ;;(define-constant -xsd-decimal-uri- #.(xsd-uri "decimal")) (define-constant -xsd-float-uri- #.(xsd-uri "float")) (define-constant -xsd-double-uri- #.(xsd-uri "double")) (define-constant -xsd-datetime-uri- #.(xsd-uri "dateTime")) ;;(define-constant -xsd-time-uri- #.(xsd-uri "time")) (define-constant -xsd-date-uri- #.(xsd-uri "date")) ;;(define-constant -xsd-gyearmonth-uri- #.(xsd-uri "gYearMonth")) ;;(define-constant -xsd-gyear-uri- #.(xsd-uri "gYear")) ;;(define-constant -xsd-gmonthday-uri- #.(xsd-uri "gMonthDay")) ;;(define-constant -xsd-gday-uri- #.(xsd-uri "gDay")) ;;(define-constant -xsd-gmonth-uri- #.(xsd-uri "gMonth")) ;;(define-constant -xsd-hexbinary-uri- #.(xsd-uri "hexBinary")) ;;(define-constant -xsd-base64binary-uri- #.(xsd-uri "base64Binary")) ;;(define-constant -xsd-anyuri-uri- #.(xsd-uri "anyURI")) (define-constant -xsd-normalizedstring-uri- #.(xsd-uri "normalizedString")) ;;(define-constant -xsd-token-uri- #.(xsd-uri "token")) ;;(define-constant -xsd-language-uri- #.(xsd-uri "language")) ;;(define-constant -xsd-nmtoken-uri- #.(xsd-uri "NMTOKEN")) ;;(define-constant -xsd-name-uri- #.(xsd-uri "Name")) ;;(define-constant -xsd-ncname-uri- #.(xsd-uri "NCName")) (define-constant -xsd-integer-uri- #.(xsd-uri "integer")) ;;(define-constant -xsd-nonpositiveinteger-uri- #.(xsd-uri "nonPositiveInteger")) ;;(define-constant -xsd-negativeinteger-uri- #.(xsd-uri "negativeInteger")) ;;(define-constant -xsd-long-uri- #.(xsd-uri "long")) (define-constant -xsd-int-uri- #.(xsd-uri "int")) ;;(define-constant -xsd-short-uri- #.(xsd-uri "short")) ;;(define-constant -xsd-byte-uri- #.(xsd-uri "byte")) ;;(define-constant -xsd-nonnegativeinteger-uri- #.(xsd-uri "nonNegativeInteger")) ;;(define-constant -xsd-unsignedlong-uri- #.(xsd-uri "unsignedLong")) ;;(define-constant -xsd-unsignedint-uri- #.(xsd-uri "unsignedInt")) ;;(define-constant -xsd-unsignedshort-uri- #.(xsd-uri "unsignedShort")) ;;(define-constant -xsd-unsignedbyte-uri- #.(xsd-uri "unsignedByte")) ;;(define-constant -xsd-positiveinteger-uri- #.(xsd-uri "positiveInteger")) ) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF ATTRIBUTE LISTS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -rdf-attrs- '#.`(,-rdf-id-uri- ,-rdf-resource-uri- ,-rdf-about-uri- ,-rdf-abouteach-uri- ,-rdf-abouteachprefix-uri- ,-rdf-bagid-uri- ,-rdf-parsetype-uri- ,-rdf-datatype-uri- ,-rdf-nodeid-uri- ,-xml-lang-attr-)) (define-constant -rdf-attr-map- #.`'((,"ID" . ,-rdf-id-uri-) (,"resource" . ,-rdf-resource-uri-) (,"about" . ,-rdf-about-uri-) (,"aboutEach" . ,-rdf-abouteach-uri-) (,"aboutEachPrefix" . ,-rdf-abouteachprefix-uri-) (,"bagID" . ,-rdf-bagid-uri-) (,"parseType" . ,-rdf-parsetype-uri-) (,"datatype" . ,-rdf-datatype-uri-) (,"nodeID" . ,-rdf-nodeid-uri-)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; OWL URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -owl-list-uri- #.(owl-uri "List")) (define-constant -owl-first-uri- #.(owl-uri "first")) (define-constant -owl-rest-uri- #.(owl-uri "rest")) (define-constant -owl-nil-uri- #.(owl-uri "nil")) (define-constant -owl-imports-uri- #.(owl-uri "imports"))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; DAML+OIL URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (define-constant -daml-list-uri- #.(daml-uri "List")) (define-constant -daml-first-uri- #.(daml-uri "first")) (define-constant -daml-rest-uri- #.(daml-uri "rest")) (define-constant -daml-nil-uri- #.(daml-uri "nil")))
14,486
Common Lisp
.lisp
250
55.528
90
0.610512
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
d405f404679a440d3bc01fea64c9a6d1894d66c42998e909e8fa45164a6bc094
6,357
[ -1 ]
6,358
core-constants.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/core-constants.lisp
;;; -*- package: NOX; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; core-constants.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains definitions for various constants used by the ;;; RDF parser (mostly URIs). Given that the XML parser has to deal with the ;;; issue of RDF M+S vagueness on the namespaces of RDF attributes (such as ;;; "about"), the definitions in this file are in the NOX package. ;;; ;;; Generally, I hate this stuff since I never seem to get the constant ;;; definitions right vis-a-vis compile time vs. load-time. :-( ;;; (in-package "NOX") ;;; -------------------------------------------------------------------------------------- ;;; ;;; HELPERS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -rdf-uri- #."http://www.w3.org/1999/02/22-rdf-syntax-ns#") (defconstant -rdfs-uri- #."http://www.w3.org/2000/01/rdf-schema#") (defconstant -xsd-uri- #."http://www.w3.org/2001/XMLSchema#") (defconstant -owl-uri- #."http://www.w3.org/2002/07/owl#") (defconstant -daml-uri- #."http://www.daml.org/2000/12/daml+oil#") (defmacro rdf-uri (string) `(concatenate 'string -rdf-uri- ,string)) (defmacro rdfs-uri (string) `(concatenate 'string -rdfs-uri- ,string)) (defmacro xsd-uri (string) `(concatenate 'string -xsd-uri- ,string)) (defmacro owl-uri (string) `(concatenate 'string -owl-uri- ,string)) (defmacro daml-uri (string) `(concatenate 'string -daml-uri- ,string)) (defconstant -alternate-rdf-uri- #."http://www.w3.org/TR/REC-rdf-syntax/") (defconstant -alternate-rdfs-uri- #."http://www.w3.org/TR/1999/PR-rdf-schema-19990303#")) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF M+S ATTRIBUTE URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -rdf-id-uri- #.(rdf-uri "ID")) (defconstant -rdf-resource-uri- #.(rdf-uri "resource")) (defconstant -rdf-about-uri- #.(rdf-uri "about")) (defconstant -rdf-abouteach-uri- #.(rdf-uri "aboutEach")) (defconstant -rdf-abouteachprefix-uri- #.(rdf-uri "aboutEachPrefix")) (defconstant -rdf-bagid-uri- #.(rdf-uri "bagID")) (defconstant -rdf-parsetype-uri- #.(rdf-uri "parseType")) (defconstant -rdf-datatype-uri- #.(rdf-uri "datatype")) (defconstant -rdf-nodeid-uri- #.(rdf-uri "nodeID")) (defconstant -xml-lang-attr- "xml:lang")) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF M+S RESOURCE, PROPERTY, ETC. URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -rdf-description-uri- #.(rdf-uri "Description")) (defconstant -rdf-type-uri- #.(rdf-uri "type")) (defconstant -rdf-rdf-uri- #.(rdf-uri "RDF")) (defconstant -rdf-li-uri- #.(rdf-uri "li")) (defconstant -rdf-statement-uri- #.(rdf-uri "Statement")) (defconstant -rdf-subject-uri- #.(rdf-uri "subject")) (defconstant -rdf-predicate-uri- #.(rdf-uri "predicate")) (defconstant -rdf-object-uri- #.(rdf-uri "object")) (defconstant -rdf-xmlliteral-uri- #.(rdf-uri "XMLLiteral")) (defconstant -rdf-bag-uri- #.(rdf-uri "Bag")) (defconstant -rdf-seq-uri- #.(rdf-uri "Seq")) (defconstant -rdf-alt-uri- #.(rdf-uri "Alt")) (defconstant -rdf-list-uri- #.(rdf-uri "List")) (defconstant -rdf-first-uri- #.(rdf-uri "first")) (defconstant -rdf-rest-uri- #.(rdf-uri "rest")) (defconstant -rdf-nil-uri- #.(rdf-uri "nil"))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF SCHEMA URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -rdfs-resource-uri- #.(rdfs-uri "Resource")) (defconstant -rdfs-class-uri- #.(rdfs-uri "Class")) (defconstant -rdfs-subclassof-uri- #.(rdfs-uri "subClassOf")) (defconstant -rdfs-subpropertyof-uri- #.(rdfs-uri "subPropertyOf")) (defconstant -rdfs-seealso-uri- #.(rdfs-uri "seeAlso")) (defconstant -rdfs-isdefinedby-uri- #.(rdfs-uri "isDefinedBy")) (defconstant -rdfs-constraintresource-uri- #.(rdfs-uri "ConstraintResource")) (defconstant -rdfs-constraintproperty-uri- #.(rdfs-uri "ConstraintProperty")) (defconstant -rdfs-range-uri- #.(rdfs-uri "range")) (defconstant -rdfs-domain-uri- #.(rdfs-uri "domain")) (defconstant -rdfs-comment-uri- #.(rdfs-uri "comment")) (defconstant -rdfs-label-uri- #.(rdfs-uri "label")) (defconstant -rdfs-literal-uri- #.(rdfs-uri "Literal")) (defconstant -rdfs-datatype-uri- #.(rdfs-uri "Datatype")) (defconstant -rdfs-container-uri- #.(rdfs-uri "Container ")) (defconstant -rdfs-member-uri- #.(rdfs-uri "member"))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XSD URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -xsd-string-uri- #.(xsd-uri "string")) (defconstant -xsd-boolean-uri- #.(xsd-uri "boolean")) ;;(defconstant -xsd-decimal-uri- #.(xsd-uri "decimal")) (defconstant -xsd-float-uri- #.(xsd-uri "float")) (defconstant -xsd-double-uri- #.(xsd-uri "double")) (defconstant -xsd-datetime-uri- #.(xsd-uri "dateTime")) ;;(defconstant -xsd-time-uri- #.(xsd-uri "time")) (defconstant -xsd-date-uri- #.(xsd-uri "date")) ;;(defconstant -xsd-gyearmonth-uri- #.(xsd-uri "gYearMonth")) ;;(defconstant -xsd-gyear-uri- #.(xsd-uri "gYear")) ;;(defconstant -xsd-gmonthday-uri- #.(xsd-uri "gMonthDay")) ;;(defconstant -xsd-gday-uri- #.(xsd-uri "gDay")) ;;(defconstant -xsd-gmonth-uri- #.(xsd-uri "gMonth")) ;;(defconstant -xsd-hexbinary-uri- #.(xsd-uri "hexBinary")) ;;(defconstant -xsd-base64binary-uri- #.(xsd-uri "base64Binary")) ;;(defconstant -xsd-anyuri-uri- #.(xsd-uri "anyURI")) (defconstant -xsd-normalizedstring-uri- #.(xsd-uri "normalizedString")) ;;(defconstant -xsd-token-uri- #.(xsd-uri "token")) ;;(defconstant -xsd-language-uri- #.(xsd-uri "language")) ;;(defconstant -xsd-nmtoken-uri- #.(xsd-uri "NMTOKEN")) ;;(defconstant -xsd-name-uri- #.(xsd-uri "Name")) ;;(defconstant -xsd-ncname-uri- #.(xsd-uri "NCName")) (defconstant -xsd-integer-uri- #.(xsd-uri "integer")) ;;(defconstant -xsd-nonpositiveinteger-uri- #.(xsd-uri "nonPositiveInteger")) ;;(defconstant -xsd-negativeinteger-uri- #.(xsd-uri "negativeInteger")) ;;(defconstant -xsd-long-uri- #.(xsd-uri "long")) (defconstant -xsd-int-uri- #.(xsd-uri "int")) ;;(defconstant -xsd-short-uri- #.(xsd-uri "short")) ;;(defconstant -xsd-byte-uri- #.(xsd-uri "byte")) ;;(defconstant -xsd-nonnegativeinteger-uri- #.(xsd-uri "nonNegativeInteger")) ;;(defconstant -xsd-unsignedlong-uri- #.(xsd-uri "unsignedLong")) ;;(defconstant -xsd-unsignedint-uri- #.(xsd-uri "unsignedInt")) ;;(defconstant -xsd-unsignedshort-uri- #.(xsd-uri "unsignedShort")) ;;(defconstant -xsd-unsignedbyte-uri- #.(xsd-uri "unsignedByte")) ;;(defconstant -xsd-positiveinteger-uri- #.(xsd-uri "positiveInteger")) ) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF ATTRIBUTE LISTS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -rdf-attrs- '#.`(,-rdf-id-uri- ,-rdf-resource-uri- ,-rdf-about-uri- ,-rdf-abouteach-uri- ,-rdf-abouteachprefix-uri- ,-rdf-bagid-uri- ,-rdf-parsetype-uri- ,-rdf-datatype-uri- ,-rdf-nodeid-uri- ,-xml-lang-attr-)) (defconstant -rdf-attr-map- #.`'((,"ID" . ,-rdf-id-uri-) (,"resource" . ,-rdf-resource-uri-) (,"about" . ,-rdf-about-uri-) (,"aboutEach" . ,-rdf-abouteach-uri-) (,"aboutEachPrefix" . ,-rdf-abouteachprefix-uri-) (,"bagID" . ,-rdf-bagid-uri-) (,"parseType" . ,-rdf-parsetype-uri-) (,"datatype" . ,-rdf-datatype-uri-) (,"nodeID" . ,-rdf-nodeid-uri-)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; OWL URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -owl-list-uri- #.(owl-uri "List")) (defconstant -owl-first-uri- #.(owl-uri "first")) (defconstant -owl-rest-uri- #.(owl-uri "rest")) (defconstant -owl-nil-uri- #.(owl-uri "nil")) (defconstant -owl-imports-uri- #.(owl-uri "imports"))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; DAML+OIL URIS ;;; (eval-when (:compile-toplevel :load-toplevel) (defconstant -daml-list-uri- #.(daml-uri "List")) (defconstant -daml-first-uri- #.(daml-uri "first")) (defconstant -daml-rest-uri- #.(daml-uri "rest")) (defconstant -daml-nil-uri- #.(daml-uri "nil")))
13,950
Common Lisp
.lisp
247
54.076923
90
0.605885
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
67da4a98192d19c1c9329254b2b092ed54a0ddf020a70f9f6b0f3c978adc20bd
6,358
[ -1 ]
6,359
xml-util-2.lisp.orig
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/xml-util-2.lisp.orig
;;; -*- package: NOX; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; xml-util.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains useful functions and other definitions for ;;; implementing an XML parser (or some other stuff, for that matter). These ;;; are separated from the actual parser so that one could replace the actual ;;; parser with another implementation (not me, but someone else might do it). ;;; (in-package :nox) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XML CONDITION CLASSES ;;; ;;; XML-ERROR abstract ;;; SYNTAX-ERROR concrete ;;; PI-TERMINATION-PROBLEM concrete ;;; DTD-TERMINATION-PROBLEM concrete ;;; UNEXPECTED-END-TAG concrete ;;; UNKNOWN-DECLARATION concrete ;;; UNKNOWN-CHARACTER-REFERENCE concrete ;;; MALFORMED-URL concrete ;;; XML-FEATURE-NOT-SUPPORTED concrete ;;; MISSING-DEFINITION abstract ;;; MISSING-ENTITY-DEFINITION concrete, continuable ;;; MISSING-NAMESPACE-DEFINITION concrete, continuable ;;; XML-WARNING concrete, warning ;;; (define-condition wilbur-error (simple-error) ((thing :initarg :thing :reader error-thing)) (:report (lambda (condition stream) (format stream (simple-condition-format-control condition) (error-thing condition))))) (define-condition xml-error (wilbur-error) ()) (define-condition syntax-error (xml-error) () (:default-initargs :format-control "XML -- syntax error (why: ~:[unknown~;~:*~A~])")) (define-condition pi-termination-problem (syntax-error) () (:default-initargs :format-control "XML -- unterminated PI ~S")) (define-condition dtd-termination-problem (syntax-error) () (:default-initargs :format-control "XML -- improperly terminated DTD")) (define-condition unexpected-end-tag (syntax-error) ((expectation :initarg :expectation :initform nil :reader error-expectation)) (:report (lambda (condition stream) (format stream "XML -- unexpected end tag ~S~@[ (looking for ~S)~]" (error-thing condition) (error-expectation condition))))) (define-condition unknown-declaration (syntax-error) () (:default-initargs :format-control "XML -- unknown declaration ~S")) (define-condition unknown-character-reference (syntax-error) () (:default-initargs :format-control "XML -- unknown character reference ~S")) (define-condition malformed-url (syntax-error) () (:default-initargs :format-control "XML -- unparseable URL ~S")) (define-condition xml-feature-not-supported (xml-error) () (:default-initargs :format-control "XML -- ~S is not supported")) (define-condition missing-definition (xml-error) ((definition-type :initarg :type :reader error-definition-type)) (:report (lambda (condition stream) (format stream "XML -- missing ~A definition ~S" (error-definition-type condition) (error-thing condition))))) (define-condition missing-entity-definition (missing-definition) () (:default-initargs :type :entity)) (define-condition missing-namespace-definition (missing-definition) () (:default-initargs :type :namespace)) (define-condition xml-warning (simple-warning) ()) (defmacro xml-warning (message &rest args) `(warn 'xml-warning :format-control "XML -- ~?" :format-arguments (list ,message (list ,@args)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RESOURCE POOLS ;;; #-:mcl (defstruct (resource-pool (:conc-name pool-)) data constructor initializer destructor) #-(or :mcl :excl :sbcl :lispworks) #+(or (and :lispworks :lispworks6)) (defvar *resource-pool-lock* (mp:make-lock :name "NOX Resource Pool")) #-(or :mcl :excl :sbcl (and :lispworks (not :lispworks6))) (defmacro without-interrupts (&body body) (warn "No working WITHOUT-INTERRUPTS in this implementation") `(progn ,@body)) #+(and :lispworks (not :lispworks6)) (defmacro without-interrupts (&body forms) `(lw:without-interrupts .,forms)) #-:mcl (defmacro nox-atomic-push (thing place) #+:lispworks6 `(mp:with-lock (*resource-pool-lock*) (push ,thing ,place)) #-:lispworks6 `(without-interrupts (push ,thing ,place))) #-:mcl (defmacro nox-atomic-pop (place) #+:lispworks6 `(mp:with-lock (*resource-pool-lock*) (pop ,place)) #-:lispworks6 `(without-interrupts (pop ,place)) ) (defun allocate-resource-from-pool (pool &rest args) #+:mcl (declare (ignore args)) #+:mcl (ccl::allocate-resource pool) #-:mcl (let ((res (or (nox-atomic-pop (pool-data pool)) (apply (pool-constructor pool) args))) (init (pool-initializer pool))) (when init (funcall init res)) res)) (defun free-resource-to-pool (pool resource) #+:mcl (ccl::free-resource pool resource) #-:mcl (let ((des (pool-destructor pool))) (when des (funcall des resource)) (nox-atomic-push resource (pool-data pool)))) (defmacro define-resource-pool (name constructor &optional initializer destructor) #+:mcl (let ((r (gentemp)) (c (gentemp)) (i (gentemp)) (d (gentemp))) `(let ((,c ,constructor) (,i ,initializer) (,d ,destructor)) (ccl::defresource ,name :constructor (let (,r) (prog1 (setf ,r (funcall ,c)) (funcall ,i ,r))) :initializer ,i :destructor ,d))) #-:mcl `(defparameter ,name (make-resource-pool :constructor ,constructor :initializer ,initializer :destructor ,destructor))) (defmacro with-resource-from-pool ((var pool) &body body) #+:mcl `(ccl::using-resource (,var ,pool) ,@body) #-:mcl (let ((flag (gentemp)) (g-pool (gentemp))) `(let* ((,g-pool ,pool) (,flag (allocate-resource-from-pool ,g-pool)) (,var ,flag)) (unwind-protect (progn ,@body) (when ,flag (free-resource-to-pool ,g-pool ,flag)))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HELPERS ;;; (declaim (inline make-base-string)) (defun make-base-string (size &rest args) (declare (dynamic-extent args)) (remf args :element-type) (apply #'make-array size :element-type #+:sbcl 'extended-char #-:sbcl 'base-char args)) (declaim (inline make-base-string)) (defvar *current-parser* nil) (defmacro with-loop&read-char ((char stream &optional (eof-error-p t)) &body body) `(loop (let ((,char (read-char ,stream nil nil t))) (cond ((or ,char (not ,eof-error-p)) ,@body) (t (error 'syntax-error :thing "eof while scanning")))))) (defun read-using (readtable stream &optional recursivep) (let ((old-readtable *readtable*)) (handler-case (let ((*readtable* readtable)) (read stream t nil recursivep)) (syntax-error (c) (setf *readtable* old-readtable) (error c))))) (defmacro define-readtable (readtablevar copied-from &body body) `(defparameter ,readtablevar (let ((*readtable* (copy-readtable ,copied-from))) ,@body *readtable*))) (defmacro define-macro-character (character (&rest args) &body body) `(set-macro-character ',character #'(lambda (,@args) ,@body))) (defvar *ruc-buffer* nil) (defvar *ruc-ee-buffer* nil) (define-resource-pool *xml-parse-buffers* #'(lambda () (make-base-string 2048 :adjustable t :fill-pointer 0)) #'(lambda (vector) (setf (fill-pointer vector) 0))) (defvar *leave-unknown-entities-unexpanded-p* t) (defun read-until-char-expanding-entities (stream char save-last-p &optional (buffer *ruc-ee-buffer*)) (setf (fill-pointer buffer) 0) (with-loop&read-char (c stream) (cond ((char= c char) (when save-last-p (unread-char c stream)) (return (concatenate 'string buffer))) ((char= c #\&) (let ((name (read-until-char stream #\;))) (if (char= (char name 0) #\#) (multiple-value-bind (c1 c2 c3) (resolve-character-reference name) (vector-push-extend c1 buffer) (when c2 (vector-push-extend c2 buffer) (when c3 (vector-push-extend c3 buffer)))) (let ((def (get-entity *current-parser* name))) (unless def (unless *leave-unknown-entities-unexpanded-p* (cerror "Do not expand" 'missing-entity-definition :thing name)) (setf def (format nil "&~A;" name))) (dotimes (i (length def)) (vector-push-extend (char def i) buffer)))))) (t (vector-push-extend c buffer))))) (defun resolve-character-reference (ref) (let ((n (ignore-errors (if (char= (char ref 1) #\x) (parse-integer ref :start 2 :radix 16) (parse-integer ref :start 1 :radix 10))))) (if (and (integerp n) (< n 65536)) (let ((b (integer-length n))) ; poor man's UTF8 enconding :-) (cond ((<= b 7) (code-char n)) ((<= b 11) (values (code-char (logior #b11000000 (ash n -6))) (code-char (logior #b10000000 (logand n #b00111111))))) ((<= b 16) (values (code-char (logior #b11100000 (ash n -12))) (code-char (logior #b10000000 (logand (ash n -6)) #b00111111)) (code-char (logior #b10000000 (logand n #b00111111))))) (t #\Space))) ; Changed, rm: Make sure there is a character returned. (error 'unknown-character-reference :thing ref)))) (defun read-until-char (stream char &optional (buffer *ruc-buffer*)) (setf (fill-pointer buffer) 0) (with-loop&read-char (c stream) (if (char= c char) (return (concatenate 'string buffer)) (vector-push-extend c buffer)))) (defun read-until-%%> (stream char &aux chars) (with-loop&read-char (c stream) (cond ((not (char= c char)) (push c chars)) ((or (not (char= (setf c (read-char stream t nil t)) char)) (not (char= (peek-char nil stream t nil t) #\>))) (push char chars) (push c chars)) (t (read-char stream t nil t) ; skip #\> (return (concatenate 'string (nreverse chars))))))) (eval-when (:compile-toplevel :load-toplevel :execute) (defun whitespace-char-p (char) ;; let's assume this works for now :-) (or (char= char #\Space) (not (graphic-char-p char))))) (eval-when (:compile-toplevel :load-toplevel) (define-constant -whitespace-chars- (let ((chars nil)) (dotimes (i 256) (let ((c (code-char i))) (when ;; (whitespace-char-p c) changed, rm: consider only standard chars (and (standard-char-p c) (whitespace-char-p c)) (push c chars)))) (concatenate 'string chars)))) (defun name&prefix (string) (let ((i (position #\: string))) (cond ((null i) (values string nil)) ((zerop i) (values (subseq string 1) nil)) ((= i (1- (length string))) (values nil (subseq string 0 i))) (t (values (subseq string (1+ i)) (subseq string 0 i)))))) (defun skip-whitespace (stream &optional pop-char-p) (let ((char (peek-char t stream t nil t))) (if pop-char-p (read-char stream t nil t) char))) (defun collapse-whitespace (string) (let* ((mode :start) (n (length string)) (chars (make-array n :element-type 'character :fill-pointer 0))) (dotimes (i n) (let ((c (char string i))) (case mode (:collect (if (whitespace-char-p c) (setf mode :white) (vector-push c chars))) (:white (unless (whitespace-char-p c) (vector-push #\Space chars) (vector-push c chars) (setf mode :collect))) (:start (unless (whitespace-char-p c) (vector-push c chars) (setf mode :collect)))))) (concatenate 'string chars))) ;;; ---------------------------------------------------------------------------- ;;; ;;; STRING DICTIONARY ;;; ;;; Some care must be taken when using this, since (in the interest making ;;; the implementation not cons so much) we have used destructive operations. ;;; (defun string-dict-get (keys&values key) (cdr (assoc key keys&values :test #'string=))) (defun string-dict-get-by-value (keys&values value) (car (rassoc value keys&values :test #'string=))) (defun string-dict-add (keys&values key value) (acons key value keys&values)) (defun string-dict-del (keys&values key) (delete key keys&values :key #'car :test #'string=)) (defmacro do-string-dict ((key value dict) &body body) `(loop for (,key . ,value) in ,dict do (progn ,@body))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; URL FUNCTIONS ;;; ;;; We currently support http, file, urn, mailto and tel URL parsing. ;;; (defun parse-url (u &optional (errorp nil)) (cond ((string= u "http://" :end1 7) (flet ((url (host port &optional (path "/")) `(:host ,host :port ,port :path ,(if (zerop (length path)) "/" path)))) (let ((i (position #\: u :start 7)) (j (position #\/ u :start 7))) (cond ((and (null i) (null j)) (values :http (url (subseq u 7) 80 "/"))) ((and i (< i (or j most-positive-fixnum))) (let ((h (subseq u 7 i))) (multiple-value-bind (p j) (parse-integer u :start (1+ i) :junk-allowed t) (values :http (url h p (subseq u j)))))) (t (values :http (url (subseq u 7 j) 80 (subseq u j)))))))) ((string= u "file://" :end1 7) (let ((p (subseq u 7))) (values :file `(:path ,(translate-logical-pathname (canonical->host-specific-path p)))))) ((string= u "mailto:" :end1 7) (values :mailto `(:path ,(subseq u 7)))) ((string= u "tel:" :end1 4) (if (char= (char u 4) #\+) (values :tel `(:number ,(subseq u 5) :plusp t)) (values :tel `(:number ,(subseq u 4) :plusp nil)))) ((string= u "urn:" :end1 4) (values :urn `(:path ,(subseq u 4)))) (errorp (error 'malformed-url :thing u)) (t (let ((i (position #\: u))) (values :unknown `(:scheme ,(subseq u 0 i) :path ,(subseq u (1+ i)))))))) (defun host-specific->canonical-path (path) #+(and :mcl (not :openmcl)) (substitute #\/ #\: (subseq path (position #\: path))) #+(or (not :mcl) :openmcl) ; = unix, since we do not do Windows yet (maybe never) path) (defun canonical->host-specific-path (path) #+(and :mcl (not :openmcl)) (let ((p (namestring (translate-logical-pathname "home:")))) (concatenate 'string (subseq p 0 (position #\: p)) (substitute #\: #\/ path))) #+(or (not :mcl) :openmcl) ; = unix, since we do not do Windows yet (maybe never) path) (defun make-file-url (pathname) (format nil "file://~A" (host-specific->canonical-path (namestring (translate-logical-pathname (pathname pathname)))))) (defun make-http-url (host port path) (format nil "http://~A~@[:~S~]~A" host port (or path "/"))) (defun make-mailto-url (address) (format nil "mailto:~A" address)) (defun make-tel-url (number &optional (include-plus-p t)) (format nil "tel:~@[+~]~A" (not include-plus-p) number)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XML TOKEN CLASSES ;;; ;;; The lexical scanner of the parser (function read-xml-token) returns instances of ;;; XML token classes. Some of these are processed by the parser, some are ignored. ;;; ;;; TOKEN abstract ;;; TAG abstract ;;; OPEN-TAG processed ;;; CLOSE-TAG processed ;;; PROC-INSTRUCTION ignored ;;; DTD-DECLARATION abstract ;;; ENTITY-DECLARATION processed ;;; ELEMENT-DECLARATION ignored w/ warning ;;; ATTLIST-DECLARATION ignored w/ warning ;;; COMMENT ignored ;;; CHAR-CONTENT processed (this is a string, not an instance) ;;; DTD-BRACKET abstract ;;; DTD-START ignored w/ warning (if external DTD) ;;; DTD-END ignored ;;; (defclass token () ((string :initarg :string :accessor token-string))) (defclass tag (token) ((counterpart :initform nil :accessor tag-counterpart))) (defmethod print-object ((self tag) stream) (print-unreadable-object (self stream :type t) (princ (token-string self) stream))) (defclass open-tag (tag) ((original-name :initform nil :accessor tag-original-name) (attributes :initform nil :accessor tag-attributes) (emptyp :initform nil :accessor tag-empty-p) (namespaces :initarg :namespaces :accessor tag-namespaces) (base :initarg :base :initform nil :accessor tag-base))) (defun tag-attribute (tag attribute) ; assuming OPEN-TAG (string-dict-get (tag-attributes tag) attribute)) (defun (setf tag-attribute) (value tag attribute) ; assuming OPEN-TAG (setf (tag-attributes tag) (string-dict-add (tag-attributes tag) attribute value)) value) (defclass close-tag (tag) ()) (defclass proc-instruction (token) ()) (defclass dtd-declaration (token) ()) (defclass entity-declaration (dtd-declaration) ((name :initarg :name :reader entity-name))) (defclass element-declaration (dtd-declaration) ((name :initarg :name :reader element-name) (contentspec :initarg :contentspec :reader element-contentspec))) (defclass attlist-declaration (dtd-declaration) ((name :initarg :name :reader attlist-name) ;; should be more )) (defclass comment (dtd-declaration) ()) (defclass dtd-bracket (token) ()) (defclass dtd-start (dtd-bracket) ((externalp :initarg :externalp :initform nil :reader dtd-external-p) (stuff :initarg :stuff :initform nil :reader dtd-stuff))) (defclass dtd-end (dtd-bracket) ()) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-CONSUMER ;;; SIMPLE SAX 1 -LIKE INTERFACE ("CL-SAX") ;;; (defclass sax-consumer () ((producer :initarg :producer :initform nil :accessor sax-consumer-producer) (debugp :initarg :debugp :initform nil :reader sax-consumer-debug-p))) (defgeneric start-element (consumer tag mode)) (defgeneric end-element (consumer tag mode)) (defgeneric char-content (consumer char-content mode)) (defgeneric proc-instruction (consumer instruction mode)) (defgeneric start-document (consumer locator)) (defgeneric end-document (consumer mode)) (defgeneric maybe-use-namespace (consumer prefix uri)) (defun debug-format (consumer string &rest args) (when (sax-consumer-debug-p consumer) (apply #'format *debug-io* string args))) (defmethod find-first-producer ((consumer sax-consumer)) (find-first-producer (sax-consumer-producer consumer))) (defmethod sax-consumer-mode ((self sax-consumer)) nil) (defmethod start-element ((self sax-consumer) (tag open-tag) mode) (debug-format self "~&START ~A ~S ~S ~S" (token-string tag) (tag-attributes tag) mode (tag-base tag))) (defmethod end-element ((self sax-consumer) (tag open-tag) mode) (debug-format self "~&END ~A ~S ~S" (token-string tag) mode (tag-base tag))) (defmethod char-content ((self sax-consumer) (char-content string) mode) (debug-format self "~&CHARACTERS ~S ~S" char-content mode)) (defmethod proc-instruction ((self sax-consumer) (tag proc-instruction) mode) (debug-format self "~&PI ~S ~S" (token-string tag) mode)) (defmethod start-document ((self sax-consumer) locator) (debug-format self "~&START DOCUMENT ~S" locator)) (defmethod end-document ((self sax-consumer) mode) (debug-format self "~&END DOCUMENT ~S" mode)) (defmethod maybe-use-namespace ((self sax-consumer) prefix uri) (debug-format self "&NAMESPACE ~S ~S" prefix uri)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-PRODUCER ;;; (defclass sax-producer () ((consumer :accessor sax-producer-consumer))) (defmethod find-first-producer ((producer sax-producer)) producer) (defmethod initialize-instance :after ((self sax-producer) &key (consumer (make-instance 'sax-consumer :debugp t)) &allow-other-keys) (setf (sax-producer-consumer self) consumer)) (defmethod (setf sax-producer-consumer) :after ((consumer sax-consumer) (producer sax-producer)) (setf (sax-consumer-producer consumer) producer)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-FILTER ;;; (defclass sax-filter (sax-consumer sax-producer) ((blockp :initform nil :initarg :blockp :accessor sax-filter-block-p))) (defmethod start-element ((self sax-filter) (tag open-tag) mode) (unless (sax-filter-block-p self) (start-element (sax-producer-consumer self) tag mode))) (defmethod end-element ((self sax-filter) (tag open-tag) mode) (unless (sax-filter-block-p self) (end-element (sax-producer-consumer self) tag mode))) (defmethod char-content ((self sax-filter) (content string) mode) (unless (sax-filter-block-p self) (char-content (sax-producer-consumer self) content mode))) (defmethod proc-instruction ((self sax-filter) (tag proc-instruction) mode) (unless (sax-filter-block-p self) (proc-instruction (sax-producer-consumer self) tag mode))) (defmethod start-document ((self sax-filter) locator) (unless (sax-filter-block-p self) (start-document (sax-producer-consumer self) locator))) (defmethod end-document ((self sax-filter) mode) (unless (sax-filter-block-p self) (end-document (sax-producer-consumer self) mode))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS NODE-POSITION-TRACKER ;;; (defclass node-position-tracker (sax-filter) ((path-taken :initform nil :accessor tracker-path-taken) (horizontal-index :initform 0 :accessor tracker-horizontal-index))) (defmethod start-element :around ((self node-position-tracker) (tag open-tag) mode) (declare (ignore mode)) (push (1+ (tracker-horizontal-index self)) (tracker-path-taken self)) (setf (tracker-horizontal-index self) 0) (call-next-method)) (defmethod end-element :around ((self node-position-tracker) (tag open-tag) mode) (declare (ignore mode)) (call-next-method) (setf (tracker-horizontal-index self) (pop (tracker-path-taken self))))
28,714
Common Lisp
.lisp
689
35.857765
90
0.605191
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
7af8f26a256bbac6bfcef09755c407a94cfb2fd2c92929a6330f1bc2cff572c8
6,359
[ -1 ]
6,360
xml-util-2.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/xml-util-2.lisp
;;; -*- package: NOX; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; xml-util.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains useful functions and other definitions for ;;; implementing an XML parser (or some other stuff, for that matter). These ;;; are separated from the actual parser so that one could replace the actual ;;; parser with another implementation (not me, but someone else might do it). ;;; (in-package :nox) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XML CONDITION CLASSES ;;; ;;; XML-ERROR abstract ;;; SYNTAX-ERROR concrete ;;; PI-TERMINATION-PROBLEM concrete ;;; DTD-TERMINATION-PROBLEM concrete ;;; UNEXPECTED-END-TAG concrete ;;; UNKNOWN-DECLARATION concrete ;;; UNKNOWN-CHARACTER-REFERENCE concrete ;;; MALFORMED-URL concrete ;;; XML-FEATURE-NOT-SUPPORTED concrete ;;; MISSING-DEFINITION abstract ;;; MISSING-ENTITY-DEFINITION concrete, continuable ;;; MISSING-NAMESPACE-DEFINITION concrete, continuable ;;; XML-WARNING concrete, warning ;;; (define-condition wilbur-error (simple-error) ((thing :initarg :thing :reader error-thing)) (:report (lambda (condition stream) (format stream (simple-condition-format-control condition) (error-thing condition))))) (define-condition xml-error (wilbur-error) ()) (define-condition syntax-error (xml-error) () (:default-initargs :format-control "XML -- syntax error (why: ~:[unknown~;~:*~A~])")) (define-condition pi-termination-problem (syntax-error) () (:default-initargs :format-control "XML -- unterminated PI ~S")) (define-condition dtd-termination-problem (syntax-error) () (:default-initargs :format-control "XML -- improperly terminated DTD")) (define-condition unexpected-end-tag (syntax-error) ((expectation :initarg :expectation :initform nil :reader error-expectation)) (:report (lambda (condition stream) (format stream "XML -- unexpected end tag ~S~@[ (looking for ~S)~]" (error-thing condition) (error-expectation condition))))) (define-condition unknown-declaration (syntax-error) () (:default-initargs :format-control "XML -- unknown declaration ~S")) (define-condition unknown-character-reference (syntax-error) () (:default-initargs :format-control "XML -- unknown character reference ~S")) (define-condition malformed-url (syntax-error) () (:default-initargs :format-control "XML -- unparseable URL ~S")) (define-condition xml-feature-not-supported (xml-error) () (:default-initargs :format-control "XML -- ~S is not supported")) (define-condition missing-definition (xml-error) ((definition-type :initarg :type :reader error-definition-type)) (:report (lambda (condition stream) (format stream "XML -- missing ~A definition ~S" (error-definition-type condition) (error-thing condition))))) (define-condition missing-entity-definition (missing-definition) () (:default-initargs :type :entity)) (define-condition missing-namespace-definition (missing-definition) () (:default-initargs :type :namespace)) (define-condition xml-warning (simple-warning) ()) (defmacro xml-warning (message &rest args) `(warn 'xml-warning :format-control "XML -- ~?" :format-arguments (list ,message (list ,@args)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RESOURCE POOLS ;;; #-:mcl (defstruct (resource-pool (:conc-name pool-)) data constructor initializer destructor) #+(or (and :lispworks :lispworks6)) (defvar *resource-pool-lock* (mp:make-lock :name "NOX Resource Pool")) #-(or :mcl :excl :sbcl (and :lispworks (not :lispworks6))) (defmacro without-interrupts (&body body) (warn "No working WITHOUT-INTERRUPTS in this implementation") `(progn ,@body)) #-:mcl (defmacro nox-atomic-push (thing place) #+:lispworks6 `(mp:with-lock (*resource-pool-lock*) (push ,thing ,place)) #-:lispworks6 `(without-interrupts (push ,thing ,place))) #-:mcl (defmacro nox-atomic-pop (place) #+:lispworks6 `(mp:with-lock (*resource-pool-lock*) (pop ,place)) #-:lispworks6 `(without-interrupts (pop ,place)) ) (defun allocate-resource-from-pool (pool &rest args) #+:mcl (declare (ignore args)) #+:mcl (ccl::allocate-resource pool) #-:mcl (let ((res (or (nox-atomic-pop (pool-data pool)) (apply (pool-constructor pool) args))) (init (pool-initializer pool))) (when init (funcall init res)) res)) (defun free-resource-to-pool (pool resource) #+:mcl (ccl::free-resource pool resource) #-:mcl (let ((des (pool-destructor pool))) (when des (funcall des resource)) (nox-atomic-push resource (pool-data pool)))) (defmacro define-resource-pool (name constructor &optional initializer destructor) #+:mcl (let ((r (gentemp)) (c (gentemp)) (i (gentemp)) (d (gentemp))) `(let ((,c ,constructor) (,i ,initializer) (,d ,destructor)) (ccl::defresource ,name :constructor (let (,r) (prog1 (setf ,r (funcall ,c)) (funcall ,i ,r))) :initializer ,i :destructor ,d))) #-:mcl `(defparameter ,name (make-resource-pool :constructor ,constructor :initializer ,initializer :destructor ,destructor))) (defmacro with-resource-from-pool ((var pool) &body body) #+:mcl `(ccl::using-resource (,var ,pool) ,@body) #-:mcl (let ((flag (gentemp)) (g-pool (gentemp))) `(let* ((,g-pool ,pool) (,flag (allocate-resource-from-pool ,g-pool)) (,var ,flag)) (unwind-protect (progn ,@body) (when ,flag (free-resource-to-pool ,g-pool ,flag)))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HELPERS ;;; (declaim (inline make-base-string)) (defun make-base-string (size &rest args) (declare (dynamic-extent args)) (remf args :element-type) (apply #'make-array size :element-type #+:sbcl 'extended-char #-:sbcl 'base-char args)) (defvar *current-parser* nil) (defmacro with-loop&read-char ((char stream &optional (eof-error-p t)) &body body) `(loop (let ((,char (read-char ,stream nil nil t))) (cond ((or ,char (not ,eof-error-p)) ,@body) (t (error 'syntax-error :thing "eof while scanning")))))) (defun read-using (readtable stream &optional recursivep) (let ((old-readtable *readtable*)) (handler-case (let ((*readtable* readtable)) (read stream t nil recursivep)) (syntax-error (c) (setf *readtable* old-readtable) (error c))))) (defmacro define-readtable (readtablevar copied-from &body body) `(defparameter ,readtablevar (let ((*readtable* (copy-readtable ,copied-from))) ,@body *readtable*))) (defmacro define-macro-character (character (&rest args) &body body) `(set-macro-character ',character #'(lambda (,@args) ,@body))) (defvar *ruc-buffer* nil) (defvar *ruc-ee-buffer* nil) (define-resource-pool *xml-parse-buffers* #'(lambda () (make-base-string 2048 :adjustable t :fill-pointer 0)) #'(lambda (vector) (setf (fill-pointer vector) 0))) (defvar *leave-unknown-entities-unexpanded-p* t) (defun read-until-char-expanding-entities (stream char save-last-p &optional (buffer *ruc-ee-buffer*)) (setf (fill-pointer buffer) 0) (with-loop&read-char (c stream) (cond ((char= c char) (when save-last-p (unread-char c stream)) (return (concatenate 'string buffer))) ((char= c #\&) (let ((name (read-until-char stream #\;))) (if (char= (char name 0) #\#) (multiple-value-bind (c1 c2 c3) (resolve-character-reference name) (vector-push-extend c1 buffer) (when c2 (vector-push-extend c2 buffer) (when c3 (vector-push-extend c3 buffer)))) (let ((def (get-entity *current-parser* name))) (unless def (unless *leave-unknown-entities-unexpanded-p* (cerror "Do not expand" 'missing-entity-definition :thing name)) (setf def (format nil "&~A;" name))) (dotimes (i (length def)) (vector-push-extend (char def i) buffer)))))) (t (vector-push-extend c buffer))))) (defun resolve-character-reference (ref) (let ((n (ignore-errors (if (char= (char ref 1) #\x) (parse-integer ref :start 2 :radix 16) (parse-integer ref :start 1 :radix 10))))) (if (and (integerp n) (< n 65536)) (let ((b (integer-length n))) ; poor man's UTF8 enconding :-) (cond ((<= b 7) (code-char n)) ((<= b 11) (values (code-char (logior #b11000000 (ash n -6))) (code-char (logior #b10000000 (logand n #b00111111))))) ((<= b 16) (values (code-char (logior #b11100000 (ash n -12))) (code-char (logior #b10000000 (logand (ash n -6)) #b00111111)) (code-char (logior #b10000000 (logand n #b00111111))))) (t #\Space))) ; Changed, rm: Make sure there is a character returned. (error 'unknown-character-reference :thing ref)))) (defun read-until-char (stream char &optional (buffer *ruc-buffer*)) (setf (fill-pointer buffer) 0) (with-loop&read-char (c stream) (if (char= c char) (return (concatenate 'string buffer)) (vector-push-extend c buffer)))) (defun read-until-%%> (stream char &aux chars) (with-loop&read-char (c stream) (cond ((not (char= c char)) (push c chars)) ((or (not (char= (setf c (read-char stream t nil t)) char)) (not (char= (peek-char nil stream t nil t) #\>))) (push char chars) (push c chars)) (t (read-char stream t nil t) ; skip #\> (return (concatenate 'string (nreverse chars))))))) (eval-when (:compile-toplevel :load-toplevel :execute) (defun whitespace-char-p (char) ;; let's assume this works for now :-) (or (char= char #\Space) (not (graphic-char-p char))))) (eval-when (:compile-toplevel :load-toplevel) (define-constant -whitespace-chars- (let ((chars nil)) (dotimes (i 256) (let ((c (code-char i))) (when ;; (whitespace-char-p c) changed, rm: consider only standard chars (and (standard-char-p c) (whitespace-char-p c)) (push c chars)))) (concatenate 'string chars)))) (defun name&prefix (string) (let ((i (position #\: string))) (cond ((null i) (values string nil)) ((zerop i) (values (subseq string 1) nil)) ((= i (1- (length string))) (values nil (subseq string 0 i))) (t (values (subseq string (1+ i)) (subseq string 0 i)))))) (defun skip-whitespace (stream &optional pop-char-p) (let ((char (peek-char t stream t nil t))) (if pop-char-p (read-char stream t nil t) char))) (defun collapse-whitespace (string) (let* ((mode :start) (n (length string)) (chars (make-array n :element-type 'character :fill-pointer 0))) (dotimes (i n) (let ((c (char string i))) (case mode (:collect (if (whitespace-char-p c) (setf mode :white) (vector-push c chars))) (:white (unless (whitespace-char-p c) (vector-push #\Space chars) (vector-push c chars) (setf mode :collect))) (:start (unless (whitespace-char-p c) (vector-push c chars) (setf mode :collect)))))) (concatenate 'string chars))) ;;; ---------------------------------------------------------------------------- ;;; ;;; STRING DICTIONARY ;;; ;;; Some care must be taken when using this, since (in the interest making ;;; the implementation not cons so much) we have used destructive operations. ;;; (defun string-dict-get (keys&values key) (cdr (assoc key keys&values :test #'string=))) (defun string-dict-get-by-value (keys&values value) (car (rassoc value keys&values :test #'string=))) (defun string-dict-add (keys&values key value) (acons key value keys&values)) (defun string-dict-del (keys&values key) (delete key keys&values :key #'car :test #'string=)) (defmacro do-string-dict ((key value dict) &body body) `(loop for (,key . ,value) in ,dict do (progn ,@body))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; URL FUNCTIONS ;;; ;;; We currently support http, file, urn, mailto and tel URL parsing. ;;; (defun parse-url (u &optional (errorp nil)) (cond ((string= u "http://" :end1 7) (flet ((url (host port &optional (path "/")) `(:host ,host :port ,port :path ,(if (zerop (length path)) "/" path)))) (let ((i (position #\: u :start 7)) (j (position #\/ u :start 7))) (cond ((and (null i) (null j)) (values :http (url (subseq u 7) 80 "/"))) ((and i (< i (or j most-positive-fixnum))) (let ((h (subseq u 7 i))) (multiple-value-bind (p j) (parse-integer u :start (1+ i) :junk-allowed t) (values :http (url h p (subseq u j)))))) (t (values :http (url (subseq u 7 j) 80 (subseq u j)))))))) ((string= u "file://" :end1 7) (let ((p (subseq u 7))) (values :file `(:path ,(translate-logical-pathname (canonical->host-specific-path p)))))) ((string= u "mailto:" :end1 7) (values :mailto `(:path ,(subseq u 7)))) ((string= u "tel:" :end1 4) (if (char= (char u 4) #\+) (values :tel `(:number ,(subseq u 5) :plusp t)) (values :tel `(:number ,(subseq u 4) :plusp nil)))) ((string= u "urn:" :end1 4) (values :urn `(:path ,(subseq u 4)))) (errorp (error 'malformed-url :thing u)) (t (let ((i (position #\: u))) (values :unknown `(:scheme ,(subseq u 0 i) :path ,(subseq u (1+ i)))))))) (defun host-specific->canonical-path (path) #+(and :mcl (not :openmcl)) (substitute #\/ #\: (subseq path (position #\: path))) #+(or (not :mcl) :openmcl) ; = unix, since we do not do Windows yet (maybe never) path) (defun canonical->host-specific-path (path) #+(and :mcl (not :openmcl)) (let ((p (namestring (translate-logical-pathname "home:")))) (concatenate 'string (subseq p 0 (position #\: p)) (substitute #\: #\/ path))) #+(or (not :mcl) :openmcl) ; = unix, since we do not do Windows yet (maybe never) path) (defun make-file-url (pathname) (format nil "file://~A" (host-specific->canonical-path (namestring (translate-logical-pathname (pathname pathname)))))) (defun make-http-url (host port path) (format nil "http://~A~@[:~S~]~A" host port (or path "/"))) (defun make-mailto-url (address) (format nil "mailto:~A" address)) (defun make-tel-url (number &optional (include-plus-p t)) (format nil "tel:~@[+~]~A" (not include-plus-p) number)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; XML TOKEN CLASSES ;;; ;;; The lexical scanner of the parser (function read-xml-token) returns instances of ;;; XML token classes. Some of these are processed by the parser, some are ignored. ;;; ;;; TOKEN abstract ;;; TAG abstract ;;; OPEN-TAG processed ;;; CLOSE-TAG processed ;;; PROC-INSTRUCTION ignored ;;; DTD-DECLARATION abstract ;;; ENTITY-DECLARATION processed ;;; ELEMENT-DECLARATION ignored w/ warning ;;; ATTLIST-DECLARATION ignored w/ warning ;;; COMMENT ignored ;;; CHAR-CONTENT processed (this is a string, not an instance) ;;; DTD-BRACKET abstract ;;; DTD-START ignored w/ warning (if external DTD) ;;; DTD-END ignored ;;; (defclass token () ((string :initarg :string :accessor token-string))) (defclass tag (token) ((counterpart :initform nil :accessor tag-counterpart))) (defmethod print-object ((self tag) stream) (print-unreadable-object (self stream :type t) (princ (token-string self) stream))) (defclass open-tag (tag) ((original-name :initform nil :accessor tag-original-name) (attributes :initform nil :accessor tag-attributes) (emptyp :initform nil :accessor tag-empty-p) (namespaces :initarg :namespaces :accessor tag-namespaces) (base :initarg :base :initform nil :accessor tag-base))) (defun tag-attribute (tag attribute) ; assuming OPEN-TAG (string-dict-get (tag-attributes tag) attribute)) (defun (setf tag-attribute) (value tag attribute) ; assuming OPEN-TAG (setf (tag-attributes tag) (string-dict-add (tag-attributes tag) attribute value)) value) (defclass close-tag (tag) ()) (defclass proc-instruction (token) ()) (defclass dtd-declaration (token) ()) (defclass entity-declaration (dtd-declaration) ((name :initarg :name :reader entity-name))) (defclass element-declaration (dtd-declaration) ((name :initarg :name :reader element-name) (contentspec :initarg :contentspec :reader element-contentspec))) (defclass attlist-declaration (dtd-declaration) ((name :initarg :name :reader attlist-name) ;; should be more )) (defclass comment (dtd-declaration) ()) (defclass dtd-bracket (token) ()) (defclass dtd-start (dtd-bracket) ((externalp :initarg :externalp :initform nil :reader dtd-external-p) (stuff :initarg :stuff :initform nil :reader dtd-stuff))) (defclass dtd-end (dtd-bracket) ()) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-CONSUMER ;;; SIMPLE SAX 1 -LIKE INTERFACE ("CL-SAX") ;;; (defclass sax-consumer () ((producer :initarg :producer :initform nil :accessor sax-consumer-producer) (debugp :initarg :debugp :initform nil :reader sax-consumer-debug-p))) (defgeneric start-element (consumer tag mode)) (defgeneric end-element (consumer tag mode)) (defgeneric char-content (consumer char-content mode)) (defgeneric proc-instruction (consumer instruction mode)) (defgeneric start-document (consumer locator)) (defgeneric end-document (consumer mode)) (defgeneric maybe-use-namespace (consumer prefix uri)) (defun debug-format (consumer string &rest args) (when (sax-consumer-debug-p consumer) (apply #'format *debug-io* string args))) (defmethod find-first-producer ((consumer sax-consumer)) (find-first-producer (sax-consumer-producer consumer))) (defmethod sax-consumer-mode ((self sax-consumer)) nil) (defmethod start-element ((self sax-consumer) (tag open-tag) mode) (debug-format self "~&START ~A ~S ~S ~S" (token-string tag) (tag-attributes tag) mode (tag-base tag))) (defmethod end-element ((self sax-consumer) (tag open-tag) mode) (debug-format self "~&END ~A ~S ~S" (token-string tag) mode (tag-base tag))) (defmethod char-content ((self sax-consumer) (char-content string) mode) (debug-format self "~&CHARACTERS ~S ~S" char-content mode)) (defmethod proc-instruction ((self sax-consumer) (tag proc-instruction) mode) (debug-format self "~&PI ~S ~S" (token-string tag) mode)) (defmethod start-document ((self sax-consumer) locator) (debug-format self "~&START DOCUMENT ~S" locator)) (defmethod end-document ((self sax-consumer) mode) (debug-format self "~&END DOCUMENT ~S" mode)) (defmethod maybe-use-namespace ((self sax-consumer) prefix uri) (debug-format self "&NAMESPACE ~S ~S" prefix uri)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-PRODUCER ;;; (defclass sax-producer () ((consumer :accessor sax-producer-consumer))) (defmethod find-first-producer ((producer sax-producer)) producer) (defmethod initialize-instance :after ((self sax-producer) &key (consumer (make-instance 'sax-consumer :debugp t)) &allow-other-keys) (setf (sax-producer-consumer self) consumer)) (defmethod (setf sax-producer-consumer) :after ((consumer sax-consumer) (producer sax-producer)) (setf (sax-consumer-producer consumer) producer)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SAX-FILTER ;;; (defclass sax-filter (sax-consumer sax-producer) ((blockp :initform nil :initarg :blockp :accessor sax-filter-block-p))) (defmethod start-element ((self sax-filter) (tag open-tag) mode) (unless (sax-filter-block-p self) (start-element (sax-producer-consumer self) tag mode))) (defmethod end-element ((self sax-filter) (tag open-tag) mode) (unless (sax-filter-block-p self) (end-element (sax-producer-consumer self) tag mode))) (defmethod char-content ((self sax-filter) (content string) mode) (unless (sax-filter-block-p self) (char-content (sax-producer-consumer self) content mode))) (defmethod proc-instruction ((self sax-filter) (tag proc-instruction) mode) (unless (sax-filter-block-p self) (proc-instruction (sax-producer-consumer self) tag mode))) (defmethod start-document ((self sax-filter) locator) (unless (sax-filter-block-p self) (start-document (sax-producer-consumer self) locator))) (defmethod end-document ((self sax-filter) mode) (unless (sax-filter-block-p self) (end-document (sax-producer-consumer self) mode))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS NODE-POSITION-TRACKER ;;; (defclass node-position-tracker (sax-filter) ((path-taken :initform nil :accessor tracker-path-taken) (horizontal-index :initform 0 :accessor tracker-horizontal-index))) (defmethod start-element :around ((self node-position-tracker) (tag open-tag) mode) (declare (ignore mode)) (push (1+ (tracker-horizontal-index self)) (tracker-path-taken self)) (setf (tracker-horizontal-index self) 0) (call-next-method)) (defmethod end-element :around ((self node-position-tracker) (tag open-tag) mode) (declare (ignore mode)) (call-next-method) (setf (tracker-horizontal-index self) (pop (tracker-path-taken self))))
28,525
Common Lisp
.lisp
684
35.856725
90
0.604402
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
358b9932923eebe7e088ff3b1ff03631c1bd86f76317e7cc3faa783470f70592
6,360
[ -1 ]
6,361
nox-package-2.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/nox/nox-package-2.lisp
;;; -*- package: CL-USER; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; nox-package.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Definition for the package NOX ;;; (in-package :cl-user) ;;; -------------------------------------------------------------------------------------- ;;; ;;; PACKAGE NOX ;;; (defpackage :nox (:nicknames :nokia-xml-cl :wilbur-xml #+:allegro "NOX") (:use :common-lisp #+:mcl :ccl #+:excl :excl #+:sbcl :sb-sys) (:export #:xml-error ; from xml-util.lisp #:define-constant #:error-thing #:syntax-error #:pi-termination-problem #:dtd-termination-problem #:unexpected-end-tag #:error-expectation #:unknown-declaration #:unknown-character-reference #:malformed-url #:feature-not-supported #:missing-definition #:error-definition-type #:missing-entity-definition #:missing-namespace-definition #:xml-warning #:*current-parser* #:read-using #:string-dict-get #:string-dict-get-by-value #:string-dict-add #:string-dict-del #:do-string-dict #:make-file-url #:make-http-url #:parse-url #:token #:token-string #:open-tag #:close-tag #:entity-declaration #:entity-name #:comment #:char-content #:tag-counterpart #:tag-attribute #:tag-attributes #:tag-empty-p #:tag-namespaces #:start-element #:end-element #:char-content #:proc-instruction #:start-document #:end-document #:maybe-use-namespace #:sax-consumer #:sax-consumer-producer #:sax-consumer-mode #:sax-producer #:sax-producer-consumer #:sax-filter #:find-first-producer #:-whitespace-chars- #:with-resource-from-pool #:define-resource-pool #:collapse-whitespace #:*name-reader* ; from xml-parser.lisp #:xml-parser #:get-entity #:get-canonical-uri #:parse #:expand-name-with-namespace #:parse-from-stream #:parse-from-file #:xml-formatter #:replay #:reverse-expand-name #:tree-parser #:string->keyword #:parser-interpret-content #:-rdf-uri- ; from rdf-constants.lisp #:-rdfs-uri- #:-xsd-uri- #:rdf-uri #:rdfs-uri #:-rdf-attrs- #:-rdf-attr-map- #:-rdf-id-uri- #:-rdf-resource-uri- #:-rdf-about-uri- #:-rdf-abouteach-uri- #:-rdf-abouteachprefix-uri- #:-rdf-bagid-uri- #:-rdf-parsetype-uri- #:-rdf-datatype-uri- #:-rdf-nodeid-uri- #:-xml-lang-attr- #:-rdf-description-uri- #:-rdf-type-uri- #:-rdf-rdf-uri- #:-rdf-li-uri- #:-rdf-statement-uri- #:-rdf-subject-uri- #:-rdf-predicate-uri- #:-rdf-object-uri- #:-rdf-bag-uri- #:-rdf-seq-uri- #:-rdf-alt-uri- #:-rdf-first-uri- #:-rdf-rest-uri- #:-rdf-nil-uri- #:-rdfs-resource-uri- #:-rdfs-class-uri- #:-rdfs-subclassof-uri- #:-rdfs-subpropertyof-uri- #:-rdfs-seealso-uri- #:-rdfs-isdefinedby-uri- #:-rdfs-constraintresource-uri- #:-rdfs-constraintproperty-uri- #:-rdfs-range-uri- #:-rdfs-domain-uri- #:-rdfs-comment-uri- #:-rdfs-label-uri- #:-rdfs-literal-uri- #:-rdfs-container-uri- #:tag-base #:tag-original-name #:parser-base #:parser-filepos #:*current-parser* #:wilbur-error))
8,123
Common Lisp
.lisp
216
33.972222
90
0.653165
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
a8636ae9e5f92c665156cedefbe841ae1e777e34b9109a6f2b537eb73e252603
6,361
[ -1 ]
6,362
ivanhoe.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/goodies/ivanhoe.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; ivanhoe.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: The old "db-hiding" frame API ("Ivanhoe") is grandfathered here. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; OLD "TOP-LEVEL" API ;;; (defvar *db* nil) ; "current" database (defun triple (subject predicate object &optional source) (db-make-triple *db* subject predicate object source)) (defun add-triple (triple) (db-add-triple *db* triple)) (defun del-triple (triple) (db-del-triple *db* triple)) (defun query (subject predicate object) (db-query *db* subject predicate object)) (defun reify (triple &key (statement-uri nil) (source nil)) (db-reify triple *db* statement-uri source)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; FRAME SYSTEM API IMPLEMENTATION ;;; (defun frame (uri &rest slot/value-pairs) (let ((frame (node uri))) (dolist (slot/value-pair slot/value-pairs) (destructuring-bind (slot . value) slot/value-pair (add-value frame slot value))) frame)) (defun own-slots (frame) (remove-duplicates (mapcar #'triple-predicate (db-query *db* frame nil nil)))) (defun value (frame &rest paths) (declare (dynamic-extent paths)) (flet ((v (path) (get-value frame path *db*))) (declare (dynamic-extent #'v)) (apply #'values (mapcar #'v paths)))) (defun all-values (frame &rest paths) (declare (dynamic-extent paths)) (flet ((av (path) (get-all-values frame path *db*))) (declare (dynamic-extent #'av)) (apply #'values (mapcar #'av paths)))) (defun add-value (frame path value) (db-add-triple *db* (db-make-triple *db* frame path value)) value) (defun del-value (frame path &optional value) (dolist (triple (db-query *db* frame path value)) (db-del-triple *db* triple))) (defun relatedp (source path sink &optional action) (frames-related-p source path sink *db* action)) (defun load-db (source &rest options) (declare (dynamic-extent options)) (apply #'db-load *db* source options))
6,862
Common Lisp
.lisp
129
51.44186
90
0.681168
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
12b133ad76cf7d4f6f8d230e94efd5e4d2a3b06712e74e0f2d16ed24c5858681
6,362
[ -1 ]
6,363
index-and-match.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/goodies/index-and-match.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; index-and-match.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Some additional triple database functionality. ;;; (in-package "WILBUR") ;;; ---------------------------------------------------------------------------- ;;; ;;; MIXIN CLASS BLANK-NODE-DB-MIXIN ;;; (defclass blank-node-db-mixin () ; mix before class db ((startup-time :initform (get-universal-time) :reader db-startup-time) (blank-node-uri-prefix :initarg :blank-node-uri-prefix :initform "anon:" :reader db-blank-node-uri-prefix) (blank-node-index :initform 0 :accessor db-blank-node-index) (blank-node->uri :initform (make-hash-table :test #'eq) :reader db-blank-node->uri) (uri->blank-node :initform (make-hash-table :test #'equal) :reader db-uri->blank-node))) (defmethod db-resolve-blank-node-uri ((db blank-node-db-mixin) uri) (gethash uri (db-uri->blank-node db))) (defmethod db-blank-node-uri ((db blank-node-db-mixin) (node node) &optional (createp t)) (let ((node->uri (db-blank-node->uri db))) (or (gethash node node->uri) (when createp (let ((uri (format nil "~A~X~X" (db-blank-node-uri-prefix db) (incf (db-blank-node-index db)) (db-startup-time db)))) (setf (gethash uri (db-uri->blank-node db)) node (gethash node node->uri) uri)))))) (defmethod db-blank-node-uri-p ((db blank-node-db-mixin) uri) (let ((prefix (db-blank-node-uri-prefix db))) (string= uri prefix :end1 (length prefix)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; MIXIN CLASS INDEXED-LITERAL-DB-MIXIN ;;; (defclass indexed-literal-db-mixin () ; mix before class db ((new-literals-lock :initform (make-lock) :reader db-new-literals-lock) (new-literals :initform nil :accessor db-new-literals) (max-string-length :initarg :max-string-length :initform 4 :reader db-literal-index-max-string-length) (min-string-length :initarg :min-string-length :initform 2 :reader db-literal-index-min-string-length) (supports-matching-p :initform #+(or :cl-ppcre :excl) t #-(or :cl-ppcre :excl) nil :reader db-supports-matching-p) (index-literals-p :initarg :index-literals-p :initform nil :reader db-index-literals-p) (literal-substring-index :initform (make-hash-table :test #'equal) :reader db-literal-substring-index))) (defmethod (setf db-literal-index-get) :after ((literal interned-literal) (db indexed-literal-db-mixin) string) (declare (ignore string)) (with-lock ((db-new-literals-lock db)) (push literal (db-new-literals db)))) (defun db-literal-index-add-substrings (db string literal) (let ((min (db-literal-index-min-string-length db)) (max (db-literal-index-max-string-length db)) (hash (db-literal-substring-index db))) (mapl #'(lambda (s1) (mapl #'(lambda (s2) (when (<= min (length s2) max) (pushnew literal (gethash (concatenate 'string (reverse s2)) hash) :test #'literal=))) (reverse s1))) (concatenate 'list string)) literal)) (defmethod db-find-literals ((db indexed-literal-db-mixin) substring) ;; Note: this function matches strings approximately (the substring is broken into ;; segments shorter than the max indexed substring, and segments shorter than the ;; min indexed substring are thrown away. Assumption is that this function is only ;; used to perform initial filtering for an implementation of (say) a regexp match. (let ((min (db-literal-index-min-string-length db)) (max (db-literal-index-max-string-length db)) (n (length substring)) (hash (db-literal-substring-index db))) (if (<= n max) (gethash substring hash) (reduce #'(lambda (s1 s2) (intersection s1 s2 :test #'literal=)) (mapcar #'(lambda (s) (gethash s hash)) (let ((substrings nil)) (dotimes (i (ceiling n max)) (let* ((j (* i max)) (k (min (+ j max) n))) (when (>= (- k j) min) (push (subseq substring j k) substrings)))) substrings)))))) (defmethod db-find-literals-multiple ((db indexed-literal-db-mixin) substring &rest more-substrings) (declare (dynamic-extent more-substrings)) (if more-substrings (intersection (apply #'db-find-literals-multiple db more-substrings) (db-find-literals db substring) :test #'literal=) (db-find-literals db substring))) (defmethod db-index-literals ((db indexed-literal-db-mixin)) (when (db-index-literals-p db) (loop (let ((literal (with-lock ((db-new-literals-lock db)) (pop (db-new-literals db))))) (if literal (db-literal-index-add-substrings db (literal-string literal) literal) (return-from db-index-literals)))))) (defun convert-match-pattern (pattern) (let* ((chars nil) (strings (mapcan #'(lambda (c) (cond ((char= c #\*) (list (concatenate 'string (nreverse (shiftf chars nil))) nil)) ((= (char-code c) 0) (when chars (list (concatenate 'string (nreverse chars))))) (t (push c chars) nil))) (concatenate 'list pattern (string (code-char 0)))))) (values (remove-if #'(lambda (s) (or (null s) (< (length s) 2))) strings) (apply #'concatenate 'string (mapcar #'(lambda (s) (or s ".*")) strings))))) #+(and :cl-ppcre (not :excl)) (defmethod db-match-literals ((db indexed-literal-db-mixin) (pattern string)) (multiple-value-bind (substrings pattern) (convert-match-pattern pattern) (let ((regexp (cl-ppcre:create-scanner pattern))) (remove-if-not #'(lambda (literal) (cl-ppcre:all-matches regexp (literal-string literal))) (apply #'db-find-literals-multiple db substrings))))) #+(and :excl (not :cl-ppcre)) (defmethod db-match-literals ((db indexed-literal-db-mixin) (pattern string)) (multiple-value-bind (substrings pattern) (convert-match-pattern pattern) (let ((regexp (compile-regexp pattern))) (remove-if-not #'(lambda (literal) (match-regexp regexp (literal-string literal))) (apply #'db-find-literals-multiple db substrings))))) #-(or :cl-ppcre :excl) (defmethod db-match-literals ((db indexed-literal-db-mixin) (pattern string)) (declare (ignore db pattern)) nil)
11,138
Common Lisp
.lisp
242
42.330579
90
0.668322
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
86aa153972f2991bc598a6c8780fd6c1159128b7f1392bc714884c1a234370cf
6,363
[ -1 ]
6,364
#source-engine.lisp#
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/goodies/#source-engine.lisp#
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The contents of this file are subject to the NOKOS License Version 1.0a (the ;;; "License"); you may not use this file except in compliance with the License. ;;; ;;; Software distributed under the License is distributed on an "AS IS" basis, WITHOUT ;;; WARRANTY OF ANY KIND, either express or implied. See the License for the specific ;;; language governing rights and limitations under the License. ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2005 Nokia and others. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Version: $Id: wilbur2-file-header.lisp,v 1.1 2004/08/10 16:24:46 ora Exp $ ;;; ;;; Purpose: ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defclass source () ((uri :initarg :uri :reader source-uri)))
1,306
Common Lisp
.lisp
38
32.736842
90
0.524941
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
40807136e8155627f8b406f5dbe706304321fd93d9975f789d923aff6b6083bc
6,364
[ -1 ]
6,365
literal-transforms.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/goodies/literal-transforms.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; literal-transforms.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Interface to load/creation-time literal transformation framework. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS LITERAL-TRANSFORM-DB-MIXIN ;;; (defclass literal-transform-db-mixin () ()) (defmethod db-make-literal ((db literal-transform-db-mixin) string &key language datatype property) (multiple-value-bind (string language datatype) (db-transform-literal db string property :language language :datatype datatype) (call-next-method db string :language language :datatype datatype))) (defmethod db-transform-literal ((db literal-transform-db-mixin) string property &key language datatype) (declare (ignore property)) (values string language datatype))
5,640
Common Lisp
.lisp
97
56.597938
90
0.696658
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
4bd47fc60688fb06e57f8c18878df57e6e66687067698bd278173556127b91a5
6,365
[ -1 ]
6,366
rdf-inspector.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/goodies/rdf-inspector.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; rdf-inspector.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains various kinds of functionality for visualizing as well ;;; as browsing RDF data and WilburQL queries (using the MCL Inspector, PowerGrapher ;;; and GraphWiz). ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS NODE-INSPECTOR ;;; ;;; Extension of the MCL Inspector to allow browsing of RDF graphs. ;;; (defclass node-inspector (inspector::usual-inspector) ((out-links :accessor inspector-out-links) (in-links :accessor inspector-in-links))) (defmethod inspector::inspector-class ((node node)) 'node-inspector) (defmethod initialize-instance :after ((i node-inspector) &rest args) (declare (ignore args)) (flet ((sort-triples (triples) (sort (copy-list triples) #'string< :key #'(lambda (x) (node-uri (triple-predicate x)))))) (let ((node (inspector::inspector-object i))) (setf (inspector-out-links i) (sort-triples (query node nil nil)) (inspector-in-links i) (sort-triples (query nil nil node)))))) (defmethod inspector::compute-line-count ((i node-inspector)) (+ (length (inspector-out-links i)) (length (inspector-in-links i)) 3)) (defmethod inspector::line-n ((i node-inspector) n) (let ((node (inspector::inspector-object i)) (k (+ (length (inspector-out-links i)) 2))) (cond ((zerop n) (values (node-uri node) "URI" :colon)) ((= n 1) (values nil "Properties" :comment)) ((< n k) (let ((triple (elt (inspector-out-links i) (- n 2)))) (values (triple-object triple) (node-name (triple-predicate triple)) :colon))) ((= n k) (values nil "Incoming" :comment)) (t (let ((triple (elt (inspector-in-links i) (- n k 1)))) (values (triple-subject triple) (node-name (triple-predicate triple)) :colon)))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS RDF-CLASS-TREE ;;; CLASS RDF-CLASS-NODE ;;; ;;; Extension of PowerGrapher to allow visualization of RDF graphs and class trees. ;;; (defclass rdf-class-tree (pg:tree) ()) (defmethod pg:compute-root-nodes ((self rdf-class-tree) &key root (level most-positive-fixnum) &allow-other-keys) (let ((class (node root))) (list (pg:make-node self 'rdf-class-node class level nil :class class)))) (defclass rdf-class-node (wu:selectable-rectangle-mixin pg:text-node) ((class :initarg :class :reader pg:node-key))) (defmethod pg:compute-node-text ((self rdf-class-node)) (find-short-name *nodes* (node-uri (pg:node-key self)))) (defmethod pg:compute-node-children ((self rdf-class-node) level) (mapcar #'(lambda (triple) (let ((class (triple-subject triple))) (pg:make-node (pg:node-collection self) (class-of self) class level self :class class))) (query nil !rdfs:subClassOf (pg:node-key self)))) (defmethod wu:item-action ((self rdf-class-node)) (inspect (pg:node-key self))) (defun make-rdf-class-tree (root &rest args) (declare (dynamic-extent args)) (apply #'make-instance 'pg:tree-window :root root :window-title (find-short-name *nodes* (node-uri root)) :tree-class 'rdf-class-tree args)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS RDF-QUERY-TREE ;;; ;;; Extension of PowerGrapher to allow visualization of WQL queries. ;;; (defclass rdf-query-tree (pg:tree) ((children :initform nil :accessor tree-children) (terminal-nodes :initform nil :accessor tree-terminal-nodes))) (defmethod pg:compute-root-nodes ((self rdf-query-tree) &key root (level most-positive-fixnum) query &allow-other-keys) (let ((n (node root)) (children (make-hash-table :test #'eq)) (terminal-nodes nil)) (instrumented-walk-using-fsa n (make-path-fsa query) #'(lambda (node terminalp transitions) (when terminalp (pushnew node terminal-nodes)) (dolist (tr transitions) (dolist (value (db-get-slot-values *db* node (pt-input tr))) (pushnew value (gethash node children)))) nil) *db*) (setf (tree-children self) children (tree-terminal-nodes self) terminal-nodes) (list (pg:make-node self 'rdf-query-node n level nil :node n)))) (defclass rdf-query-node (pg:text-node) ((node :initarg :node :reader pg:node-key) (terminalp :initarg :terminalp :reader node-terminal-p))) (defmethod view-draw-contents :after ((self rdf-query-node)) (when (member (pg:node-key self) (tree-terminal-nodes (pg:node-collection self))) (wu:draw-rect self #@(1 1) (subtract-points (view-size self) #@(1 1)) :black nil))) (defmethod pg:compute-node-children ((self rdf-query-node) level) (let ((node (pg:node-key self)) (tree (pg:node-collection self))) (etypecase node (string nil) (node (mapcar #'(lambda (child) (pg:make-node tree (class-of self) child level self :node child)) (gethash node (tree-children tree))))))) (defmethod pg:compute-node-text ((self rdf-query-node)) (let ((key (pg:node-key self))) (etypecase key (string (format nil "~S" key)) (node (let ((uri (node-uri key))) (if uri (find-short-name *nodes* uri) (format nil "(~S)" (sxhash key)))))))) (defun make-rdf-query-tree (root query &rest args) (declare (dynamic-extent args)) (apply #'make-instance 'pg:tree-window :root root :query query :tree-class 'rdf-query-tree :window-title (prin1-to-string query) args)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; Code to allow visualization of RDF graphs and WQL queries using GraphViz. ;;; (defun make-rdf-query-dot (root query stream) (let ((n (node root)) (links (make-hash-table :test #'eq)) (terminal-nodes nil)) (flet ((node= (x y) (eq (if (typep x 'inverse-slot) (inverse-slot-node x) x) (if (typep y 'inverse-slot) (inverse-slot-node x) y)))) (instrumented-walk-using-fsa n (make-path-fsa query) #'(lambda (node terminalp transitions) (when terminalp (pushnew node terminal-nodes)) (dolist (tr transitions) (dolist (value (db-get-slot-values *db* node (pt-input tr))) (pushnew (cons value (pt-input tr)) (gethash node links) :test #'(lambda (x y) (and (eq (car x) (car y)) (node= (cdr x) (cdr y))))))) nil) *db*) (format stream "digraph G {~%") (maphash #'(lambda (node links) (dolist (link links) (destructuring-bind (child . prop) link (etypecase prop (inverse-slot (format stream " ~S -> ~S [label=~S];~%" (find-short-name *nodes* (node-uri node)) (find-short-name *nodes* (node-uri child)) (find-short-name *nodes* (node-uri (inverse-slot-node prop))))) (node (format stream " ~S -> ~S [label=~S];~%" (find-short-name *nodes* (node-uri node)) (find-short-name *nodes* (node-uri child)) (find-short-name *nodes* (node-uri prop)))))))) links) (dolist (node terminal-nodes) (format stream " ~S [peripheries=2];~%" (find-short-name *nodes* (node-uri node)))) (format stream "}~%")))) (defun instrumented-walk-using-fsa (root fsa action db) (let* ((*walk-states/temporary* *walk-states/temporary*) (states (clrhash (or (pop *walk-states/temporary*) (make-hash-table :test #'eq))))) (labels ((w (f i) (unless (member i (gethash f states) :test #'=) (push i (gethash f states)) (let ((transitions (svref fsa i))) (or (funcall action f (first transitions) (rest transitions)) (when (typep f 'node) (dolist (link (rest transitions)) (dolist (v (db-get-slot-values db f (pt-input link))) (let ((values (w v (pt-index link)))) (when values (return-from instrumented-walk-using-fsa values))))))))))) (declare (dynamic-extent #'w)) (when fsa (w root 0))))) (defun make-dot (db output-file) (with-open-file-output (stream output-file) (make-dot-into-stream db stream))) (defun make-dot-into-stream (db stream) (let ((nodes (make-hash-table :test 'eq))) (flet ((normalize (node) (cond ((typep node 'literal) (let ((sym (gentemp))) (setf (gethash sym nodes) (literal-string node)) sym)) ((null (node-uri node)) (let ((sym (gentemp))) (setf (gethash sym nodes) node) sym)) (t (find-short-name *nodes* (node-uri node)))))) (format stream "digraph G {~%") (dolist (tr (db-triples db)) (let ((s (normalize (triple-subject tr))) (p (normalize (triple-predicate tr))) (o (normalize (triple-object tr)))) (format stream "~S -> ~S [label=~S];~%" s o p))) (maphash #'(lambda (node label) (cond ((stringp label) (format stream "~S [shape=plaintext, label=\"\\\"~A\\\"\"];~%" node label)) ((null label) (unless label (format stream "~S [label=\"\"];~%" node))))) nodes) (format stream "}~%")))) (defun fsa->dot (fsa stream) (format stream "digraph G {~%") (dotimes (i (length fsa)) (destructuring-bind (terminalp &rest transitions) (elt fsa i) (dolist (tr transitions) (format stream " ~S -> ~S [label=~S];~%" i (pt-index tr) (find-short-name *nodes* (node-uri (pt-input tr))))) (when terminalp (format stream " ~S [peripheries=2];~%" i)))) (format stream "}~%"))
16,801
Common Lisp
.lisp
339
38.522124
97
0.546661
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
7dd24af8e44cbfa7563392866060d274164ffbba5ab3d820589444ac0adde9b9
6,366
[ -1 ]
6,367
db-additions.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/goodies/db-additions.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; db-additions.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Some additional triple database functionality ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defmethod db-reify ((triple triple) (db db) &optional (statement-uri nil) (source nil)) (let ((node (node statement-uri))) (flet ((make-and-add-triple (p o) (db-add-triple db (db-make-triple db node (node p) o source)))) (make-and-add-triple -rdf-subject-uri- (triple-subject triple)) (make-and-add-triple -rdf-predicate-uri- (triple-predicate triple)) (make-and-add-triple -rdf-object-uri- (triple-object triple)) (make-and-add-triple -rdf-type-uri- (node -rdf-statement-uri-)) node))) (defmethod is-container-p ((db db) (node node) &optional errorp) ;; We may have to extend this to handle subclasses of containers (let ((container-types (list (node -rdf-bag-uri-) (node -rdf-seq-uri-) (node -rdf-alt-uri-)))) (dolist (triple (db-query db node (node -rdf-type-uri-) nil)) (when (find (triple-object triple) container-types) (return-from is-container-p t))) (when errorp (cerror "Ignore" 'container-required :thing node)))) (defmethod db-find-cbd ((db db) (node node)) ;; Calculates the Concise Bounded Description as per Patrick Stickler's spec at ;; http://www.w3.org/Submission/2004/SUBM-CBD-20040930/ (cbd (list node) nil nil nil db)) (defun cbd (nodes triples cbd-nodes cbd-triples db) (cond (nodes (let ((n (first nodes))) (if (member n cbd-nodes) (cbd (rest nodes) triples cbd-nodes cbd-triples db) (cbd (rest nodes) (append triples (db-query db n nil nil)) (cons n cbd-nodes) cbd-triples db)))) (triples (let ((tr (first triples))) (if (member tr cbd-triples) (cbd nil (rest triples) cbd-nodes cbd-triples db) (cbd (let ((s (triple-reified-p tr db)) (o (triple-object tr))) (if (and (typep o 'node) (not (typep o 'literal)) (null (node-uri o))) (cons o s) s)) (rest triples) cbd-nodes (cons tr cbd-triples) db)))) (t (values cbd-triples cbd-nodes)))) (defmethod db-node-local-properties ((db db) (node node)) (remove-duplicates (mapcar #'triple-predicate (db-query db node nil nil)))) (defun triple-reified-p (triple db) (let ((s-statements (db-query db nil !rdf:subject (triple-subject triple)))) (when s-statements (let ((o-statements (db-query db nil !rdf:object (triple-object triple)))) (when o-statements (let ((predicate (triple-predicate triple))) (flet ((predicate-not-found (node) (null (db-query db node !rdf:predicate predicate)))) (declare (dynamic-extent #'predicate-not-found)) (remove-if #'predicate-not-found (intersection (mapcar #'triple-subject s-statements) (mapcar #'triple-subject o-statements)))))))))) (defun get-some-values (frame path db index) (assert (null index)) (db-get-values db frame path)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; QUERY EXPRESSION MANIPULATION ;;; (defun merge-query-expressions (query1 query2) (canonical-path `(:or ,(canonical-path query1) ,(canonical-path query2)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS LITERAL-TRANSFORM-DB-MIXIN ;;; (defclass literal-transform-db-mixin () ()) (defmethod db-make-literal ((db literal-transform-db-mixin) string &key language datatype property) (multiple-value-bind (string language datatype) (db-transform-literal db string property :language language :datatype datatype) (call-next-method db string :language language :datatype datatype))) (defmethod db-transform-literal ((db literal-transform-db-mixin) string property &key language datatype) (declare (ignore property)) (values string language datatype)) (defclass date-cleanup-db-mixin (literal-transform-db-mixin) ()) (defmethod db-transform-literal ((db date-cleanup-db-mixin) string (property node) &key language datatype) ;; Heuristically transforms time stamps into xsd:date (or xsd:dateTime) literals. ;; Only attempt this for dc:date and its recursive sub-properties (if (or datatype (not (frames-related-p property !rdfs:subPropertyOf !dc:date db nil))) (call-next-method) (multiple-value-bind (universal-time omit-time-p) ;; Is it an EXIF-style timestamp? (parse-exif-date string) (unless universal-time ;; Is it an ISO8601 timestamp? (multiple-value-setq (universal-time omit-time-p) (ignore-errors (parse-iso8601-date string)))) (if universal-time (values (iso8601-date-string universal-time omit-time-p) language (if omit-time-p !xsd:date !xsd:dateTime)) (call-next-method)))))
9,808
Common Lisp
.lisp
197
46.218274
90
0.665971
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
91cc1a164908f46b9c49a8b7b565e819408bf3d75ef8c477f25f6686f1396985
6,367
[ -1 ]
6,368
hash-table.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/hash-table.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; hash-table.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: A portable interface to hash-tables. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; Some Common Lisp implementations clearly have better hash-table implementations ;;; than others. I tend to like the MCL/OpenMCL implementation, and I particularly ;;; dislike the Allegro implementation. In order to allow alternatives to the Common ;;; Lisp standard hash-tables, we have introduced alternative functions here. ;;; ;;; If the feature :wilbur-own-hashtables is present we use the implementation in this ;;; file; this implementation is based on Ingvar Mattson's public domain package ;;; "genhash" (available from http://www.cliki.net/genhash). ;;; ;;; the general philosophy here is the same as in the hash-table encapsulation of the ;;; BEEF frame system (e.g., beef-gethash, etc.). ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defstruct (wilbur-hash-table (:conc-name wht-) (:constructor make-wht (buckets allocated-buckets test))) buckets allocated-buckets (used-buckets 0) (stored-items 0) (test nil :read-only t)) (defmethod print-object ((self wilbur-hash-table) stream) (print-unreadable-object (self stream :type t :identity t) (format stream "~S ~S/~S" (wht-test self) (wht-used-buckets self) (wht-allocated-buckets self)))) (defun expand-hash-table (table) (let* ((new-size (1+ (* 2 (wht-allocated-buckets table)))) (new-buckets (make-array new-size :initial-element nil)) (old-data (wht-buckets table))) (setf (wht-allocated-buckets table) new-size (wht-used-buckets table) 0 (wht-buckets table) new-buckets) (loop for bucket across old-data do (dolist (chunk bucket) (setf (wilbur-gethash (car chunk) table) (cdr chunk)))) table)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defun wilbur-make-hash-table (&key test (size 17 #-:wilbur-own-hashtables size-provided-p)) #-:wilbur-own-hashtables (if size-provided-p (make-hash-table :test test :size size) (make-hash-table :test test)) #+:wilbur-own-hashtables (make-wht (make-array size :initial-element nil) size test)) (defun wilbur-gethash (key hash-table &optional default) #-:wilbur-own-hashtables (gethash key hash-table default) #+:wilbur-own-hashtables (let ((bucket (svref (wht-buckets hash-table) (mod (sxhash key) (wht-allocated-buckets hash-table)))) (test (wht-test hash-table))) (dolist (chunk bucket (values default nil)) (when (funcall test (car chunk) key) (return (values (cdr chunk) t)))))) (defun (setf wilbur-gethash) (value key hash-table &optional default) #-:wilbur-own-hashtables (setf (gethash key hash-table default) value) #+:wilbur-own-hashtables (declare (ignore default)) #+:wilbur-own-hashtables (progn (when (= (wht-allocated-buckets hash-table) (wht-used-buckets hash-table)) (expand-hash-table hash-table)) (let* ((buckets (wht-buckets hash-table)) (size (wht-allocated-buckets hash-table)) (bucket-ix (mod (sxhash key) size)) (bucket (svref buckets bucket-ix)) check) (cond ((null (svref buckets bucket-ix)) (setf (svref buckets bucket-ix) (cons (cons key value) bucket)) (incf (wht-used-buckets hash-table)) (incf (wht-stored-items hash-table))) ((setf check (member key bucket :key #'car :test (wht-test hash-table))) (setf (cdr (car check)) value)) (t (setf (svref buckets bucket-ix) (cons (cons key value) bucket)) (incf (wht-stored-items hash-table)))) value))) (defun wilbur-remhash (key hash-table) #-:wilbur-own-hashtables (remhash key hash-table) #+:wilbur-own-hashtables (progn (when (wilbur-gethash key hash-table nil) (let* ((buckets (wht-buckets hash-table)) (bucket-ix (mod (sxhash key) (wht-allocated-buckets hash-table))) (bucket (svref buckets bucket-ix))) (setf (svref buckets bucket-ix) (delete key bucket :test (wht-test hash-table) :key 'car)) (unless (svref buckets bucket-ix) (decf (wht-used-buckets hash-table))) (decf (wht-stored-items hash-table)))) t)) (defun wilbur-clrhash (hash-table) #-:wilbur-own-hashtables (clrhash hash-table) #+:wilbur-own-hashtables (progn (setf (wht-used-buckets hash-table) 0) (loop for ix from 0 below (wht-allocated-buckets hash-table) do (setf (svref (wht-buckets hash-table) ix) nil)) hash-table)) (defun wilbur-hash-table-count (hash-table) #-:wilbur-own-hashtables (hash-table-count hash-table) #+:wilbur-own-hashtables (wht-stored-items hash-table)) (defun wilbur-hash-table-size (hash-table) #-:wilbur-own-hashtables (hash-table-size hash-table) #+:wilbur-own-hashtables (wht-used-buckets hash-table)) (defun wilbur-maphash (function hash-table) #-:wilbur-own-hashtables (maphash function hash-table) #+:wilbur-own-hashtables (let ((buckets (wht-buckets hash-table))) (loop for bucket across buckets do (dolist (chunk bucket) (funcall function (car chunk) (cdr chunk)))))) #-:wilbur-own-hashtables (declaim (inline wilbur-make-hash-table wilbur-gethash (setf wilbur-gethash) wilbur-remhash wilbur-clrhash wilbur-hash-table-count wilbur-hash-table-size wilbur-maphash))
10,281
Common Lisp
.lisp
221
43.728507
90
0.680677
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
bb5f1c72af7b96c8c6fd829b065368758086253e1ba928884b103b0ced42eb5e
6,368
[ -1 ]
6,369
http.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/http.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; http.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This is a simple implementation of an HTTP client, conditionalized for ;;; several platforms and environments. OK, so it is somewhat braindead, but at least ;;; it works. Note: We currently support MCL, OpenMCL and Allegro. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS URL ;;; CLASS HTTP-URL ;;; CLASS FILE-URL ;;; CLASS URN ;;; CLASS TEL-URL ;;; CLASS MAILTO-URL ;;; CLASS UNKNOWN-SCHEME-URL ;;; (defclass url () ((string :initform nil :accessor url-string) (path :initarg :path :reader url-path))) (defmethod print-object ((url url) stream) (print-unreadable-object (url stream :type t) (prin1 (url-string url) stream))) (defclass http-url (url) ((host :initarg :host :reader url-host) (port :initarg :port :initform nil :reader url-port))) (defmethod initialize-instance :after ((url http-url) &rest initargs) (declare (ignore initargs)) (let ((port (url-port url))) (setf (url-string url) (format nil "http://~A~@[:~S~]~@[~A~]" (url-host url) (and port (not (= port 80)) port) (url-path url))))) (defclass file-url (url) ()) (defmethod initialize-instance :after ((url file-url) &rest initargs) (declare (ignore initargs)) (setf (url-string url) (format nil "file://~A" (namestring (url-path url))))) (defclass urn (url) ()) (defmethod initialize-instance :after ((url urn) &rest initargs) (declare (ignore initargs)) (setf (url-string url) (format nil "urn:~A" (url-path url)))) (defclass tel-url (url) ((number :initarg :number :reader url-number) (plusp :initarg :plusp :initform nil :reader url-plus-p))) (defmethod initialize-instance :after ((url tel-url) &rest initargs) (declare (ignore initargs)) (setf (url-string url) (format nil "tel:~:[~;+~]~A" (url-plus-p url) (url-number url)))) (defclass mailto-url (url) ()) (defmethod initialize-instance :after ((url mailto-url) &rest initargs) (declare (ignore initargs)) (setf (url-string url) (format nil "mailto:~A" (url-path url)))) (defclass unknown-scheme-url (url) ((scheme :initarg :scheme :reader url-scheme))) (defmethod initialize-instance :after ((url unknown-scheme-url) &rest initargs) (declare (ignore initargs)) (setf (url-string url) (format nil "~A:~A" (url-scheme url) (url-path url)))) (defvar *url-scheme->class* '(:http http-url :file file-url :urn urn :tel tel-url :mailto mailto-url)) (defun make-url (string) (multiple-value-bind (scheme args) (parse-url string) (apply #'make-instance (getf *url-scheme->class* scheme 'unknown-scheme-url) args))) (defun make-relative-url-string (string base) (let ((ns (length string)) (nb (length base)) (i (position #\/ base :from-end t))) (cond ((and (> ns nb) (char= (char string nb) #\#) (string= string base :end1 nb)) (subseq string nb)) ((and i (> ns (1+ i)) (string= string base :end1 (1+ i) :end2 (1+ i))) (subseq string (1+ i))) (t string)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HTTP CONDITIONS ;;; (define-condition http-error (wilbur-error) ((thing :initarg :thing :reader http-error-thing)) (:default-initargs :format-control "HTTP --- ~A") (:report (lambda (c s) (funcall #'report-http-error c s)))) (define-condition http-bad-response (http-error) ((got :initform nil :initarg :got :reader http-error-got)) (:default-initargs :format-control "HTTP --- Expected ~A, got ~A")) (define-condition http-bad-redirect (http-bad-response) () (:default-initargs :format-control "HTTP --- ~A header not found")) (define-condition http-not-found (http-error) () (:default-initargs :format-control "HTTP --- Entity ~A not found")) (define-condition http-too-many-redirects (http-error) () (:default-initargs :format-control "HTTP --- Too many redirects: last was ~A")) (define-condition http-incomplete-entity (http-error) () (:default-initargs :format-control "HTTP --- Incomplete entity: expected ~A more bytes")) (define-condition http-bad-request (http-error) () (:default-initargs :format-control "HTTP --- Bad request")) (define-condition http-server-error (http-error) () (:default-initargs :format-control "HTTP --- Server error")) (define-condition http-unsupported-status (http-error) () (:default-initargs :format-control "HTTP --- Unsupported status code ~S")) (defmethod report-http-error ((condition http-error) stream) (apply #'format stream (simple-condition-format-control condition) (http-error-thing condition) (simple-condition-format-arguments condition))) (defmethod report-http-error ((condition http-bad-response) stream) (format stream (simple-condition-format-control condition) (http-error-thing condition) (http-error-got condition))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; LOW-LEVEL HTTP STREAM GENERIC FUNCTIONS ;;; (defgeneric open-http-stream (url proxy)) (defgeneric make-http-body-stream (socket-stream)) (defgeneric http-stream-character-count (stream)) (defgeneric (setf http-stream-character-count) (new-value stream)) (defgeneric http-stream-enable-input-chunking (stream)) (defgeneric http-stream-disable-input-chunking (stream)) (defgeneric http-stream-chunked-p (http-stream)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HIGH-LEVEL HTTP REQUEST GENERIC FUNCTIONS ;;; (defgeneric http-request (url method &key proxy accept)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS HTTP-MESSAGE ;;; (defclass http-message () ((status :initarg :status :reader http-status) (version :initarg :version :reader http-version) (headers :initarg :headers :initform nil :accessor http-headers) (request-time :initarg :request-time :initform (get-universal-time) :reader http-request-time) (response-time :initform (get-universal-time) :reader http-response-time) (url :initform nil :initarg :url :reader http-url) (body :initarg :body :initform nil :reader http-body) #+:http-using-aserve (native-request :initarg :request :initform nil :reader http-native-request))) #+(and :excl :http-using-aserve) (defun finalize-http-message (message) (let ((request (http-native-request message))) (when request (net.aserve.client:client-request-close request)))) #+(and :excl :http-using-aserve) (defmethod initialize-instance :after ((self http-message) &rest args) (declare (ignore args)) (schedule-finalization self #'finalize-http-message)) (defmethod print-object ((self http-message) stream) (print-unreadable-object (self stream :identity t :type t) (prin1 (http-status self) stream))) (defmethod get-header ((message http-message) (header string)) (get-header (http-headers message) header)) (defmethod get-header ((headers list) (header string)) #-:http-using-aserve (string-dict-get headers header) #+:http-using-aserve (cdr (assoc (intern (string-upcase header) :keyword) headers))) (defmethod add-header ((headers list) (header string) value) (string-dict-add headers header value)) (defun infer-character-count (headers) (parse-integer (get-header headers "Content-Length") :junk-allowed t)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HTTP CLIENT API ;;; #+(and :realmcl (not :http-using-aserve)) (defmethod http-request ((url http-url) method &key (proxy (find-http-proxy)) (accept "application/rdf+xml, application/xml, text/xml")) (let ((time (get-universal-time))) (with-open-stream (input (open-http-stream url proxy)) (multiple-value-bind (status version headers) (http-get-headers input url (ecase method (:get "GET") (:head "HEAD")) accept) (make-instance 'http-message :status status :version version :headers headers :request-time time :url url :body (and (eq method :get) (let ((chunkedp (string= (get-header headers "Transfer-Encoding") "chunked")) (stream (make-http-body-stream input))) (if chunkedp (http-stream-enable-input-chunking stream) (setf (http-stream-character-count stream) (infer-character-count headers))) stream))))))) #+(and :openmcl (not :http-using-aserve)) (defmethod http-request ((url http-url) method &key (proxy (find-http-proxy)) (accept "application/rdf+xml, application/xml, text/xml, */*")) (let ((time (get-universal-time))) (multiple-value-bind (status version headers body) (make-curl-http-request method url proxy accept) (when (eq method :head) (close (shiftf body nil))) (make-instance 'http-message :status status :version version :headers headers :request-time time :url url :body body)))) #+:http-using-aserve (defmethod http-request ((url http-url) method &key (proxy (find-http-proxy)) (accept "application/rdf+xml")) (let* ((time (get-universal-time)) (request (net.aserve.client:make-http-client-request (url-string url) :method method :accept accept :proxy proxy))) (net.aserve.client:read-client-response-headers request) (make-instance 'http-message :status (net.aserve.client:client-request-response-code request) :version nil :headers (net.aserve.client:client-request-headers request) :request-time time :url url :body (net.aserve.client:client-request-socket request)))) #+(and :openmcl (not :http-using-aserve)) (defun make-curl-http-request (method url proxy accept) (declare (special *http-parse-buffers*)) (let* ((input (simple-external-process "curl" "-s" (and proxy "-x") proxy "--header" (format nil "Accept: ~A" accept) (ecase method (:get "-i") (:head "--head")) (strip-trailing-hash (url-string url))))) (multiple-value-bind (status version headers) (with-resource-from-pool (parse-buffer *http-parse-buffers*) (read-headers-into-pb parse-buffer input) (compute-response parse-buffer)) (values status version headers input)))) (defconstant -new-line-string- (concatenate 'string (list #\Return #\Linefeed))) (defun make-http-request (method url-path url-host accept) (format nil "~@:(~A~) ~A HTTP/1.1~A~ Host: ~A~A~ Accept: ~A~A~ Connection: close~A~A" method (strip-trailing-hash url-path) -new-line-string- url-host -new-line-string- accept -new-line-string- -new-line-string- -new-line-string-)) (defun http-get-headers (input url operation accept) (declare (special *http-parse-buffers*)) (write-sequence (make-http-request operation (url-path url) (url-host url) accept) input) (force-output input) (with-resource-from-pool (parse-buffer *http-parse-buffers*) (read-headers-into-pb parse-buffer input) (compute-response parse-buffer))) (defun http-connection-reusable-p (headers) (not (string= "close" (get-header headers "Connection")))) (defun strip-trailing-hash (string) (let ((i (1- (length string)))) (if (char= (char string i) #\#) (subseq string 0 i) string))) (defun add-trailing-hash (string) (if (ends-in-hash-p string) string (concatenate 'string string "#"))) (defparameter *http-max-redirects* 5) ; see RFC 2616 (defmethod http-request :around ((url http-url) method &rest args) (declare (dynamic-extent args)) (let ((true-url nil)) (dotimes (i *http-max-redirects*) (let* ((response (apply #'call-next-method url method args)) (status (http-status response))) (case status ;; OK (200 (return-from http-request (values response true-url))) ;; Moved Permanently, Found, See Other ((301 302 303) (let ((location (get-header response "Location"))) (if (null location) (error 'http-bad-redirect :thing "Location") (let ((stream (http-body response))) (when stream (close stream)) (setf url (make-url (strip-trailing-hash location))) (when (= status 303) (setf true-url url)))))) ;; Bad Request (400 (error 'http-bad-request)) ;; Not Found (404 (error 'http-not-found :thing (url-string url))) ;; Internal Server Error (500 (error 'http-server-error)) ;; something else... (t (error 'http-unsupported-status :thing (http-status response)))))) (error 'http-too-many-redirects :thing url))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; FAST HTTP HEADER PARSING ;;; (defparameter *http-parse-buffer-size* 4096) (defparameter *http-expected-headers* 20) (defstruct (http-response-parse-buffer (:conc-name pb-)) (buf (make-string *http-parse-buffer-size*)) (left-bounds (make-array *http-expected-headers*)) (right-bounds (make-array *http-expected-headers*)) seen-headers) (defun clear-pb (pb) (setf (pb-seen-headers pb) 0)) (define-resource-pool *http-parse-buffers* #'make-http-response-parse-buffer #'clear-pb) (defun stretch-pb-buf (pb delta) (let* ((old (pb-buf pb)) (new (make-string (+ (length old) delta)))) (setf (substring new 0) old (pb-buf pb) new))) (defun stretch-pb-headers (pb delta) (let* ((old-left (pb-left-bounds pb)) (old-right (pb-right-bounds pb)) (len (+ (length old-left) delta)) (new-left (make-array len)) (new-right (make-array len))) (setf (subseq new-left 0) old-left (subseq new-right 0) old-right (pb-left-bounds pb) new-left (pb-right-bounds pb) new-right))) (defparameter *http-parsepuf-buffer-default-delta* 2048) (defparameter *http-parsebuf-headers-default-delta* 20) (defun read-headers-into-pb (pb stream) (let ((len (length (pb-buf pb))) (max-lines (length (pb-left-bounds pb)))) (flet ((push-char (char index) (when (>= index len) (stretch-pb-buf pb *http-parsepuf-buffer-default-delta*) (incf len *http-parsepuf-buffer-default-delta*)) (setf (char (pb-buf pb) index) char)) (push-left-bound (pos index) (when (>= index max-lines) (stretch-pb-headers pb *http-parsebuf-headers-default-delta*) (incf max-lines *http-parsebuf-headers-default-delta*)) (setf (svref (pb-left-bounds pb) index) pos)) (push-right-bound (pos index) (setf (svref (pb-right-bounds pb) index) pos))) (declare (inline push-char push-left-bound push-right-bound)) (loop with state = :want-cr with bounds-index = 0 initially (push-left-bound 0 0) for index from 0 do (let ((ch (read-char stream nil nil))) (cond ((null ch) (error 'http-bad-response :thing state :got :eof)) (t (push-char ch index) (ecase state (:want-cr (when (eql #\Return ch) (setf state :need-lf) (push-right-bound index bounds-index) (incf bounds-index))) (:need-lf (unless (eql #\Linefeed ch) (error 'http-bad-response :thing #\Linefeed :got ch)) (setf state :maybe-end)) (:maybe-end (push-left-bound index bounds-index) (setf state (if (eql #\Return ch) :end :want-cr))) (:end (unless (eql #\Linefeed ch) (error 'http-bad-response :thing #\Linefeed :got ch)) (setf (pb-seen-headers pb) bounds-index) (return)))))))))) (defun compute-response (pb) (let ((buf (pb-buf pb))) (declare (type string buf)) (flet ((parse-response-line (start end) (declare (ignore end)) (let (version) (cond ((string= buf "HTTP/1.0" :start1 start :end1 (+ start 8)) (setf version :http/1.0)) ((string= buf "HTTP/1.1" :start1 start :end1 (+ start 8)) (setf version :http/1.1)) (t (error 'http-bad-response :thing "HTTP/1.0 or HTTP/1.1" :got (substring buf start (+ start 8))))) (values (parse-integer buf :start 9 :end 12 :radix 10) version))) (parse-header-line (start end) (multiple-value-bind (header index) (collect-to-char #\: buf :start start :end end) (if (not index) (error 'http-bad-response :thing #\:) (let ((value-start (position #\Space buf :start (1+ index) :end end :test-not #'char=))) (values header (substring buf value-start end))))))) (declare (inline parse-response-line parse-header-line)) (let ((left (pb-left-bounds pb)) (right (pb-right-bounds pb))) (multiple-value-bind (response-code protocol-version) (parse-response-line (svref left 0) (svref right 0)) (do ((index 1 (1+ index)) (headers nil) (line-count (pb-seen-headers pb))) ((>= index line-count) (values response-code protocol-version headers)) (multiple-value-bind (header value) (parse-header-line (svref left index) (svref right index)) (setf headers (add-header headers header value))))))))) (defun substring (string start &optional end downcasep) (declare (type string string) (type fixnum start) (optimize (speed 3) (safety 0))) (let* ((end (or end (length string))) (rv (make-string (- end start)))) (declare (type fixnum end)) (do ((r-index start (1+ r-index)) (w-index 0 (1+ w-index))) ((>= r-index end) rv) (declare (type fixnum r-index w-index)) (setf (char rv w-index) (let ((c (char string r-index))) (if downcasep (char-downcase c) c)))))) (defun (setf substring) (new-value string &optional (start 0) end downcasep) (declare (type string string new-value)) (let* ((end (or end (length string))) (end (min (+ start (length new-value)) end))) (declare (type fixnum end)) (do ((w-index start (1+ w-index)) (r-index 0 (1+ r-index))) ((>= w-index end) new-value) (declare (type fixnum r-index w-index)) (setf (char string w-index) (let ((c (char new-value r-index))) (if downcasep (char-downcase c) c)))))) (defun collect-to-char (char string &key (start 0) end downcasep) (declare (type string string) (type fixnum start) (optimize (speed 3) (safety 0))) (let ((end-index (position char string :start start :end end :test #'char=))) (when end-index (values (substring string start end-index downcasep) end-index)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HTTP DATE PARSING ;;; ;;; RFC 2616 says the following: ;;; ;;; HTTP-date = rfc1123-date | rfc850-date | asctime-date ;;; rfc1123-date = wkday "," SP date1 SP time SP "GMT" ;;; rfc850-date = weekday "," SP date2 SP time SP "GMT" ;;; asctime-date = wkday SP date3 SP time SP 4DIGIT ;;; date1 = 2DIGIT SP month SP 4DIGIT ;;; ; day month year (e.g., 02 Jun 1982) ;;; date2 = 2DIGIT "-" month "-" 2DIGIT ;;; ; day-month-year (e.g., 02-Jun-82) ;;; date3 = month SP ( 2DIGIT | ( SP 1DIGIT )) ;;; ; month day (e.g., Jun 2) ;;; time = 2DIGIT ":" 2DIGIT ":" 2DIGIT ;;; ; 00:00:00 - 23:59:59 ;;; wkday = "Mon" | "Tue" | "Wed" ;;; | "Thu" | "Fri" | "Sat" | "Sun" ;;; weekday = "Monday" | "Tuesday" | "Wednesday" ;;; | "Thursday" | "Friday" | "Saturday" | "Sunday" ;;; month = "Jan" | "Feb" | "Mar" | "Apr" ;;; | "May" | "Jun" | "Jul" | "Aug" ;;; | "Sep" | "Oct" | "Nov" | "Dec ;;; (defun parse-http-date (string) (labels ((parse-month (s i) (do ((j 1 (1+ j)) (m '("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec") (rest m))) ((or (> j 12) (string= (first m) s :start2 i :end2 (+ i 3))) (and (< j 13) j)))) (parse-int (s start end) (parse-integer s :start start :end end :junk-allowed t)) (encode-date (year month date hour minute second) (when (and year month date hour minute second) (encode-universal-time second minute hour date month year 0))) (parse-time (s i) (values (parse-int s i (+ i 2)) (parse-int s (+ i 3) (+ i 5)) (parse-int s (+ i 6) (+ i 8))))) (cond ;; -- RFC 1123 ((char= (char string 3) #\,) (let ((date (parse-int string 5 7)) (month (parse-month string 8)) (year (parse-int string 12 16))) (multiple-value-bind (hour minute second) (parse-time string 17) (encode-date year month date hour minute second)))) ;; -- ASCTIME ((char= (char string 3) #\Space) (let ((month (parse-month string 4)) (date (parse-int string 8 10))) (multiple-value-bind (hour minute second) (parse-time string 11) (multiple-value-bind (a b c d e year) (decode-universal-time (get-universal-time)) (declare (ignore a b c d e)) (encode-date year month date hour minute second))))) ;; -- RFC 850, with the assumption of 21st century (t (let ((p (position #\, string :test #'char=))) (when p (let ((date (parse-int string (+ p 2) (+ p 4))) (month (parse-month string (+ p 5))) (year (parse-int string (+ p 9) (+ p 11)))) (multiple-value-bind (hour minute second) (parse-time string (+ p 12)) (encode-date (and year (+ year 2000)) month date hour minute second))))))))) (defun parse-iso8601-date (string) (labels ((fail-char-p (s c p) (not (and (> (length s) p) (char= (char s p) c)))) (time-zone (s p) (ecase (char s p) (#\Z 0) (#\- (parse-integer string :start (1+ p) :end (+ p 3))) (#\+ (- (parse-integer string :start (1+ p) :end (+ p 3))))))) (let ((year (parse-integer string :start 0 :end 4))) (if (fail-char-p string #\- 4) (values (encode-universal-time 0 0 0 1 1 year) t) (let ((month (parse-integer string :start 5 :end 7))) (if (fail-char-p string #\- 7) (values (encode-universal-time 0 0 0 1 month year) t) (let ((day (parse-integer string :start 8 :end 10))) (if (fail-char-p string #\T 10) (values (encode-universal-time 0 0 0 day month year) t) (let ((hour (parse-integer string :start 11 :end 13)) (min (parse-integer string :start 14 :end 16))) (if (fail-char-p string #\: 16) (values (encode-universal-time 0 min hour day month year (time-zone string 16)) nil) (let ((sec (parse-integer string :start 17 :end 19))) (values (encode-universal-time sec min hour day month year (time-zone string 19)) nil)))))))))))) (defun parse-exif-date (string) (when (and (>= (length string) 10) (char= (char string 4) #\:) (char= (char string 7) #\:)) (ignore-errors (let ((day (parse-integer string :start 8 :end 10)) (month (parse-integer string :start 5 :end 7)) (year (parse-integer string :start 0 :end 4)) (omit-time-p t) (hour 0) (min 0) (sec 0)) (when (and (>= (length string) 16) (char= (char string 13) #\:)) (setf hour (parse-integer string :start 11 :end 13) min (parse-integer string :start 14 :end 16) omit-time-p nil) (when (and (= (length string) 19) (char= (char string 16) #\:)) (setf sec (parse-integer string :start 17 :end 19)))) (values (encode-universal-time sec min hour day month year) omit-time-p))))) (defun iso8601-date-string (universal-time &optional omit-time-p) (multiple-value-bind (sec min hour day month year weekday dst-p time-zone) (decode-universal-time universal-time) (declare (ignore weekday)) (when (and dst-p (not (zerop time-zone))) (decf time-zone)) ; thanks to Richard Newman for thinking of this (if omit-time-p (format nil "~4,'0D-~2,'0D-~2,'0D" year month day) (format nil "~4,'0D-~2,'0D-~2,'0DT~2,'0D:~2,'0D:~2,'0D~A~@[~2,'0D:00~]" year month day hour min sec (cond ((zerop time-zone) "Z") ((> time-zone 0) "-") (t "+")) (and (not (zerop time-zone)) (abs time-zone)))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; PROXIES ;;; ;;#-(and :openmcl :darwin :uffi) (defvar *http-proxy* nil) ;;#-(and :openmcl :darwin :uffi) (defun find-http-proxy () (or (get-env "HTTP-PROXY") *http-proxy*)) ;;#+(and :openmcl :darwin :uffi) #+:junk (eval-when (:compile-toplevel :load-toplevel :execute) (uffi:load-foreign-library (translate-logical-pathname "wilbur:libs;FindProxies;build;FindProxies.dylib"))) #+(and :openmcl :darwin :uffi) (uffi:def-function ("FindHTTPProxy" %find-http-proxy) ((host (* :char)) (host-size :unsigned-int)) :returning :unsigned-byte) ;;#+(and :openmcl :darwin :uffi) #+:junk (defun find-http-proxy () (let ((buffer (uffi:allocate-foreign-string 256))) (unwind-protect (progn (%find-http-proxy buffer 256) (let ((proxy-string (unless (%null-ptr-p buffer) ;; UFFI:CONVERT-FROM-FOREIGN-STRING broken (%get-cstring buffer)))) (unless (zerop (length proxy-string)) proxy-string))) (uffi:free-foreign-object buffer)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SIMPLE-UNTYI-MIXIN ;;; (defclass simple-untyi-mixin () ((last-char :initform nil :accessor stream-last-char))) (defmethod stream-tyi :around ((stream simple-untyi-mixin)) (or (shiftf (stream-last-char stream) nil) (call-next-method))) (defmethod stream-untyi ((stream simple-untyi-mixin) char) (if (stream-last-char stream) (error "Two UNTYIs in a row on ~S" stream) (setf (stream-last-char stream) char))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS HTTP-NETWORK-STREAM (FOR MCL) ;;; #+(and :realmcl (not :http-using-aserve)) (defclass http-network-stream (ccl::opentransport-tcp-stream) ((via-proxy-p :initform nil :initarg :via-proxy-p :reader stream-via-proxy-p) (url-path :initarg :url-path :initform nil :accessor stream-url-path)) (:default-initargs :reuse-local-port-p t :writebufsize ccl::*ot-conn-outbuf-size*)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS HTTP-BODY-STREAM (FOR MCL) ;;; #+(and :realmcl (not :http-using-aserve)) (defclass http-body-stream (simple-untyi-mixin input-stream) ((chunkedp :initform nil :initarg :chunkedp :accessor http-stream-chunked-p) (count :initform 0 :initarg :character-count :accessor http-stream-character-count) (eofp :initform nil :accessor stream-eofp) (network :initarg :network-stream ;; XXX: Why did I change this? It's totally gratutious. ;; Make a decision before the final release. :reader http-stream-network-stream))) ;;; Now we eagerly read the chunk length. Note that there is still a serious problem with ;;; this stream, in that it doesn't know if it's really eofp and our buffering seems to ;;; get in the way of the correct OT errors being raised. I thought that reimplementing ;;; would fix that problem, but further reflection showed it just catches one case. ;;; ;;; Ultimately, it looks like the only solution is to implement this directly over OT, ;;; which is what CL-HTTP does. Or just tell people that we don't support read-sequence. #+(and :realmcl (not :http-using-aserve)) (defmethod stream-tyi ((stream http-body-stream)) (with-slots (network count chunkedp eofp) stream (cond (chunkedp (flet ((read-chunk-length () (let* ((line (loop for char = (stream-tyi network) while (not (char= char #\Linefeed)) collecting char)) (new-count (parse-integer (concatenate 'string line) :radix 16 :junk-allowed t))) (setf count new-count) (when (zerop new-count) (setf eofp t))))) (declare (dynamic-extent read-chunk-length)) (when (null count) (read-chunk-length)) (prog1 (stream-tyi network) (when (zerop (decf count)) (stream-tyi network) (stream-tyi network) (read-chunk-length))))) ((null count) (stream-tyi network)) (t (prog1 (stream-tyi network) (when (zerop (decf count)) (setf eofp t))))))) #+(and :realmcl (not :http-using-aserve)) (defmethod stream-close :after ((stream http-body-stream)) (stream-close (http-stream-network-stream stream))) #+(and :realmcl (not :http-using-aserve)) (defmethod stream-abort :after ((stream http-body-stream)) (stream-abort (http-stream-network-stream stream))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HTTP STREAM METHODS (FOR MCL) ;;; #+(and :realmcl (not :http-using-aserve)) (defmethod open-http-stream ((url http-url) (proxy http-url)) (make-instance 'http-network-stream :host (url-host proxy) :port (url-port proxy) :via-proxy-p t)) #+(and :realmcl (not :http-using-aserve)) (defmethod open-http-stream ((url http-url) (proxy null)) (make-instance 'http-network-stream :host (url-host url) :port (url-port url))) #+(and :realmcl (not :http-using-aserve)) (defmethod make-http-body-stream ((stream http-network-stream)) (make-instance 'http-body-stream :network-stream stream)) #+(and :realmcl (not :http-using-aserve)) (defmethod http-stream-enable-input-chunking ((stream http-body-stream)) (setf (http-stream-chunked-p stream) t) (setf (http-stream-character-count stream) nil)) #+(and :realmcl (not :http-using-aserve)) (defmethod http-stream-disable-input-chunking ((stream http-body-stream)) (setf (http-stream-chunked-p stream) nil))
36,562
Common Lisp
.lisp
859
36.600698
90
0.601299
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
18494305c37bc246478418843802eaa5c2dfa54f2578bdf2ff6aab7d10f275b1
6,369
[ -1 ]
6,370
data.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/data.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; data.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains functionality for managing "RDF data", namely nodes, ;;; triples, etc. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; TOP-LEVEL NODE API ;;; (declaim (special *nodes*)) ; forward reference (defun node (thing) (etypecase thing (string (or (find-node *nodes* thing) (setf (find-node *nodes* thing) (dictionary-make-node *nodes* thing)))) (null (dictionary-make-node *nodes* nil)) (url (node (url-string thing))) (node thing))) (defun add-namespace (prefix uri) (dictionary-add-namespace *nodes* prefix uri)) (defun del-namespace (prefix) (dictionary-remove-namespace *nodes* prefix)) (defun namespaces () (mapcar #'first (dictionary-namespaces *nodes*))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF CONDITION CLASSES ;;; ;;; RDF-ERROR abstract ;;; FEATURE-NOT-SUPPORTED concrete, continuable ;;; ABOUT-AND-ID-BOTH-PRESENT concrete, continuable ;;; ABOUT-AND-NODEID-BOTH-PRESENT concrete, continuable ;;; UNKNOWN-PARSETYPE concrete, continuable ;;; ILLEGAL-CHARACTER-CONTENT concrete, continuable ;;; CONTAINER-REQUIRED concrete, continuable ;;; OUT-OF-SEQUENCE-INDEX concrete ;;; DUPLICATE-NAMESPACE-PREFIX concrete ;;; QUERY-SYNTAX-ERROR concrete ;;; DATATYPE-PARSE-ERROR concrete, continuable ;;; CANNOT-INVERT-DEFAULT-VALUE concrete ;;; UNIDENTIFIED-NODE concrete, continuable ;;; UNSPECIFIED-LOAD-ERROR concrete, continuable ;;; (define-condition rdf-error (wilbur-error) ()) (define-condition feature-not-supported (rdf-error) () (:default-initargs :format-control "RDF -- ~S not supported")) (define-condition feature-disabled (rdf-error) () (:default-initargs :format-control "RDF -- ~S is disabled")) (define-condition about-and-id-both-present (rdf-error) () (:default-initargs :format-control "RDF -- \"about\" and \"ID\" both present")) (define-condition about-and-nodeid-both-present (rdf-error) () (:default-initargs :format-control "RDF -- \"about\" and \"nodeID\" both present")) (define-condition unknown-parsetype (rdf-error) () (:default-initargs :format-control "RDF -- unknown parsetype ~S")) (define-condition illegal-character-content (rdf-error) () (:default-initargs :format-control "RDF -- character content not allowed: ~S")) (define-condition container-required (rdf-error) () (:default-initargs :format-control "RDF -- ~S is not a container")) (define-condition out-of-sequence-index (rdf-error) () (:default-initargs :format-control "RDF -- index URI ~S allocated out of sequence")) (define-condition duplicate-namespace-prefix (rdf-error) () (:default-initargs :format-control "RDF -- duplicate namespace prefix ~S")) (define-condition query-syntax-error (rdf-error) () (:default-initargs :format-control "RDF -- no operands for query operator ~A")) (define-condition cannot-invert-default-value (rdf-error) () (:default-initargs :format-control "RDF -- cannot invert a default value expression ~S")) (define-condition datatype-parse-error (rdf-error) () (:default-initargs :format-control "RDF -- cannot parse datatype literal ~S")) (define-condition unidentified-node (rdf-error) () (:default-initargs :format-control "RDF -- externally unidentifiable node ~S")) (define-condition unspecified-load-error (rdf-error) () (:default-initargs :format-control "RDF -- load of ~S failed")) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS NODE ;;; (defclass node () ((uri :initarg :uri :initform nil :accessor node-uri) (name-resolved-p :initarg :name-resolved-p :initform t :accessor node-name-resolved-p))) (defmethod print-object ((node node) stream) (declare (special *nodes*)) ; forward ref. (let ((uri (node-uri node))) (cond ((null uri) (print-unreadable-object (node stream :type t :identity t) (princ "--" stream))) ((node-name-resolved-p node) (multiple-value-bind (name successp) (find-short-name *nodes* uri) (format stream "!~:[~S~;~A~]" successp name))) (t (format stream "!~A" uri))))) (defmethod node-name ((node node)) (let ((uri (node-uri node))) (when uri (if (node-name-resolved-p node) (find-short-name *nodes* uri) uri)))) (defmethod make-load-form ((node node) &optional env) (declare (ignore env)) (if (node-name-resolved-p node) `(node ,(node-uri node)) `(unresolved-node ,(node-uri node)))) (defvar *index-uris* (make-array 32 :fill-pointer 0 :adjustable t)) (defun index-uri (index db) (let ((delta (- (length *index-uris*) index))) (cond ((>= delta 0) (elt *index-uris* (1- index))) ((= delta -1) (let ((u (node (rdf-uri (format nil "_~S" index))))) (vector-push-extend u *index-uris*) ;; doing path-based reasoning may require this: (db-new-container-membership-property db u) u)) (t (error 'out-of-sequence-index :thing index))))) (defun index-uri-p (node) (find node *index-uris*)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS DICTIONARY ;;; (defclass dictionary () ((nodes :initform (make-hash-table :test #'equal) :initarg :nodes :reader dictionary-nodes) (namespaces :initform nil :accessor dictionary-namespaces) (unresolved-nodes :initform (make-hash-table :test #'equal) :initarg :unresolved-nodes :accessor dictionary-unresolved-nodes) (node-class :initarg :node-class :initform 'node :reader dictionary-node-class))) (defmethod initialize-instance :after ((self dictionary) &rest args) (declare (ignore args)) (dictionary-add-namespace self "rdf" -rdf-uri-) (dictionary-add-namespace self "rdfs" -rdfs-uri-) (dictionary-add-namespace self "owl" -owl-uri-) (dictionary-add-namespace self "xsd" -xsd-uri-)) (defmethod dictionary-add-namespace ((dictionary dictionary) prefix uri) (declare (special *db*)) ; forward ref. (let* ((namespaces (dictionary-namespaces dictionary)) (old-uri (string-dict-get namespaces prefix))) (cond ((null old-uri) (setf (dictionary-namespaces dictionary) (string-dict-add namespaces prefix uri)) (maphash #'(lambda (name node) (let ((uri (find-long-name dictionary name))) (when uri (remhash name (dictionary-unresolved-nodes dictionary)) (setf (node-uri node) uri (node-name-resolved-p node) t (find-node dictionary uri) node) (db-node-resolved *db* node name)))) (dictionary-unresolved-nodes dictionary))) ((not (string= uri old-uri)) (setf prefix (string-downcase (symbol-name (gentemp prefix)))) (setf (dictionary-namespaces dictionary) (string-dict-add namespaces prefix uri)))) (when (and (boundp '*db*) *db*) (db-add-namespace *db* prefix uri)) prefix)) (defmethod dictionary-remove-namespace ((dictionary dictionary) prefix) (setf (dictionary-namespaces dictionary) (string-dict-del (dictionary-namespaces dictionary) prefix)) prefix) (defmethod dictionary-rename-namespace ((dictionary dictionary) old-prefix new-prefix) (if (string-dict-get (dictionary-namespaces dictionary) new-prefix) (error 'duplicate-namespace-prefix :thing new-prefix) (let ((uri (string-dict-get (dictionary-namespaces dictionary) old-prefix))) (dictionary-remove-namespace dictionary old-prefix) (dictionary-add-namespace dictionary new-prefix uri) new-prefix))) (defmethod dictionary-make-node ((dictionary dictionary) uri) (make-instance (dictionary-node-class dictionary) :uri uri)) (defmethod find-node ((dictionary dictionary) uri) (when uri (gethash uri (dictionary-nodes dictionary)))) (defmethod (setf find-node) (node (dictionary dictionary) uri) (when uri (setf (gethash uri (dictionary-nodes dictionary)) node))) (defmethod find-short-name ((dictionary dictionary) uri &optional use-entities-p) (reverse-expand-name uri (dictionary-namespaces dictionary) use-entities-p)) (defmethod find-long-name ((dictionary dictionary) name) (expand-name-with-namespace name (dictionary-namespaces dictionary))) (defun unresolved-node (name) (let ((uri (find-long-name *nodes* name))) (if uri (node uri) (let ((unresolved (dictionary-unresolved-nodes *nodes*))) (or (gethash name unresolved) (setf (gethash name unresolved) (make-instance 'node :uri name :name-resolved-p nil))))))) (defmethod find-unresolved-nodes ((dictionary dictionary)) (let ((nodes nil)) (maphash #'(lambda (uri node) (declare (ignore uri)) (push node nodes)) (dictionary-unresolved-nodes dictionary)) nodes)) (defmethod dictionary-apropos-list ((dictionary dictionary) (pattern string)) (let ((nodes nil)) (maphash #'(lambda (name node) (when (name-contains-pattern-p name pattern) (push node nodes))) (dictionary-nodes dictionary)) (sort nodes #'string< :key #'node-uri))) (defun name-contains-pattern-p (name pattern) ;; NOTE: This is a naive string search algorithm; I will switch to, say, Boyer-Moore ;; when I have more time. (let ((nn (length name)) (np (length pattern))) (cond ((= nn np) (string= name pattern)) ((> nn np) (dotimes (i (- nn np -1)) (when (string= name pattern :start1 i :end1 (+ i np)) (return-from name-contains-pattern-p t))))))) (defvar *nodes* (make-instance 'dictionary)) (eval-when (:compile-toplevel :load-toplevel :execute) (defun inline-node-reader (stream char) (declare (ignore char)) (if (char= (peek-char nil stream t nil t) #\") (node (read stream t nil t)) (unresolved-node (read-using *name-reader* stream t)))) (defun enable-node-shorthand () (set-macro-character #\! #'inline-node-reader)) (enable-node-shorthand)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS TRIPLE ;;; #+:wilbur-triples-as-classes (defclass triple () ((subject :initarg :subject :reader triple-subject) (predicate :initarg :predicate :reader triple-predicate) (object :initarg :object :accessor triple-object) (sources :initarg :sources :initform nil :accessor triple-sources))) #-:wilbur-triples-as-classes (defstruct (triple (:constructor %make-triple (subject predicate object &optional sources))) subject predicate object sources) (defmethod print-object ((triple triple) stream) (print-unreadable-object (triple stream :type t :identity t) (format stream "~S ~S ~S" (triple-subject triple) (triple-predicate triple) (triple-object triple)))) (defmethod triple= ((triple1 triple) (triple2 triple)) (and (eq (triple-subject triple1) (triple-subject triple2)) (eq (triple-predicate triple1) (triple-predicate triple2)) (eq (triple-object triple1) (triple-object triple2)))) (defmethod triple= (thing1 thing2) (declare (ignore thing1 thing2)) nil) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS DB ;;; (defclass db () ((triples :initform nil :accessor db-triples) (source-descs :initform nil :accessor db-source-descs) (path-fsas :initform (make-hash-table :test #'equal) :reader db-path-fsas) (literal-class :initarg :literal-class :initform 'literal ; could also be STRING or any subclass of LITERAL :reader db-literal-class))) (defmethod initialize-instance :after ((self db) &key (emptyp t) &allow-other-keys) (unless emptyp (warn "Schema loading not supported for ~S" self))) (defmethod print-object ((db db) stream) (print-unreadable-object (db stream :type t :identity t) (format stream "size ~S" (length (db-triples db))))) (defmethod db-make-literal ((db db) string &rest options) (declare (dynamic-extent options)) (let ((class (db-literal-class db))) (if (eq class 'string) string (apply #'make-instance class :string string :allow-other-keys t options)))) (defmethod db-make-triple ((db db) subject predicate object &optional source) #+:wilbur-triples-as-classes (make-instance 'triple :subject subject :predicate predicate :object object :sources (and source (list source))) #-:wilbur-triples-as-classes (%make-triple subject predicate object (and source (list source)))) (defmethod db-add-triple ((db db) (triple triple) &optional (source nil source-supplied-p)) (let ((sources (triple-sources triple)) (old-triple (db-find-triple db triple))) (cond (old-triple (let ((old-sources (triple-sources old-triple))) (cond ((or (null sources) (if source-supplied-p (member source old-sources) (subsetp sources old-sources))) (values old-triple nil nil)) (t (unionf (triple-sources old-triple) sources) (values old-triple nil sources))))) (t (push triple (db-triples db)) (values triple t sources))))) (defmethod db-del-triple ((db db) (triple triple) &optional source) (when source (let ((new-sources (removef (triple-sources triple) source))) (when new-sources (return-from db-del-triple (values triple nil new-sources))))) (removef (db-triples db) triple) (values triple t nil)) (defmethod db-del-source ((db db) (source node)) (removef (db-triples db) source :key #'triple-sources :test #'find)) (defmethod db-query-by-source ((db db) (source node)) (remove source (db-triples db) :key #'triple-sources :test-not #'find)) (defmethod db-sources ((db db)) ;; Bogus implementation, for small databases only, included for "completeness" (let ((sources nil)) (dolist (triple (db-triples db) sources) (dolist (source (triple-sources triple)) (pushnew source sources))))) (defmethod db-query ((db db) subject predicate object) (flet ((matching-triple-p (triple) (and (eq~ (triple-subject triple) subject) (eq~ (triple-predicate triple) predicate) (eq~ (triple-object triple) object)))) (declare (dynamic-extent #'matching-triple-p)) (remove-if-not #'matching-triple-p (db-triples db)))) (defmethod db-find-triple ((db db) (triple triple)) (find triple (db-triples db) :test #'triple=)) (defmethod db-merge ((to db) (from db) &optional (source nil)) (dolist (triple (if source (db-query-by-source from source) (db-triples from))) (db-add-triple to triple))) (defmethod db-clear ((db db)) (setf (db-triples db) nil)) (defmethod db-count-triples ((db db)) (length (db-triples db))) (defmethod db-new-container-membership-property ((db db) (property node)) nil) (defmethod db-add-namespace ((db db) prefix uri) (declare (ignore prefix uri)) nil) (defmethod db-node-resolved ((db null) (node node) old-name) (warn "Node name ~S resolved with NULL database" old-name) (values node old-name)) (defmethod db-node-resolved ((db db) (node node) old-name) (values node old-name)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS FAST-TEMPORARY-DB ;;; (defclass fast-temporary-db (db) ()) (defmethod db-add-triple ((db fast-temporary-db) (triple triple) &optional source) (declare (ignore source)) (push triple (db-triples db)) (values triple t (triple-sources triple))) (defmethod db-del-triple ((db fast-temporary-db) (triple triple) &optional source) (declare (ignore source)) (removef (db-triples db) triple) (values triple t nil)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; "CLASS" TRIPLE-INDEX ;;; (defun make-triple-index (multiple-components-p) (declare (ignore multiple-components-p)) (wilbur-make-hash-table :test #'eq)) (eval-when (:load-toplevel :compile-toplevel :execute) (defmacro triple-index-get (index &rest components) (if (rest components) `(%triple-index-get-double ,index ,@components) `(%triple-index-get-single ,index ,(first components)))) (defmacro triple-index-add (triple index &rest components) (if (rest components) `(%triple-index-add-double ,triple ,index ,@components) `(%triple-index-add-single ,triple ,index ,(first components)))) (defmacro triple-index-rem (triple index &rest components) (if (rest components) `(%triple-index-rem-double ,triple ,index ,@components) `(%triple-index-rem-single ,triple ,index ,@components))) (defmacro %triple-index-get-single (index component) (with-temps (i) `(let ((,i ,index)) (wilbur-gethash ,component ,i)))) (defmacro %triple-index-get-double (index c1 c2) (with-temps (i sub-index) `(let* ((,i ,index) (,sub-index (wilbur-gethash ,c1 ,i))) (when ,sub-index (wilbur-gethash ,c2 ,sub-index))))) ) (defun triple-index-clear (index) (wilbur-clrhash index)) ;; (declaim (inline %triple-index-get-single)) (defun %triple-index-add-single (triple index component) (push triple (wilbur-gethash component index))) (declaim (inline %triple-index-add-single)) (defun %triple-index-rem-single (triple index component) (removef (wilbur-gethash component index) triple)) (declaim (inline %triple-index-rem-single)) (defun ensure-sub-index (key1 index) (or (wilbur-gethash key1 index) (setf (wilbur-gethash key1 index) (wilbur-make-hash-table :test #'eq :size 30)))) (declaim (inline ensure-sub-index)) (defun %triple-index-add-double (triple index c1 c2) (push triple (wilbur-gethash c2 (ensure-sub-index c1 index)))) (declaim (inline %triple-index-add-double)) (defun %triple-index-rem-double (triple index c1 c2) (removef (wilbur-gethash c2 (ensure-sub-index c1 index)) triple)) (declaim (inline %triple-index-rem-double)) (defmacro with-spo-case (((sub pre obj) subject predicate object) &key spo sp so s po p o all) `(let ((,sub ,subject) (,pre ,predicate) (,obj ,object)) (cond (,sub (cond (,pre (if ,obj ,spo ,sp)) (,obj ,so) (t ,s))) (,pre (if ,obj ,po ,p)) (,obj ,o) (t ,all)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS TRIPLE-COLLECTION ;;; (defstruct (triple-collection (:constructor %make-triple-collection ())) (triples nil) (index (make-triple-index t))) (defun make-triple-collection (&optional triples) (let ((collection (%make-triple-collection))) (dolist (triple triples) (triple-collection-add collection triple)) collection)) (defun triple-collection-find (collection triple) (find (triple-object triple) (triple-index-get (triple-collection-index collection) (triple-predicate triple) (triple-subject triple)) :key #'triple-object)) (defun triple-collection-add (collection triple) (or (triple-collection-find collection triple) (progn (push triple (triple-collection-triples collection)) (triple-index-add triple (triple-collection-index collection) (triple-predicate triple) (triple-subject triple)) triple))) (defun triple-collection-clear (collection) (triple-index-clear (triple-collection-index collection)) (setf (triple-collection-triples collection) nil)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS INDEXED-DB ;;; (defclass indexed-db (db) ((index-sp :initform (make-triple-index t) :reader db-index-sp) (index-po :initform (make-triple-index t) :reader db-index-po) (index-s :initform (make-triple-index nil) :reader db-index-s) (index-p :initform (make-triple-index nil) :reader db-index-p) (index-o :initform (make-triple-index nil) :reader db-index-o) (by-source :initform (make-triple-index nil) :reader db-by-source)) (:default-initargs :rdf-schema-pathname "wilbur:schemata;rdf-schema.rdf" :populate-with nil)) (defmethod initialize-instance :after ((self indexed-db) &key (emptyp nil) rdf-schema-pathname populate-with &allow-other-keys) (unless emptyp (db-load self (make-file-url rdf-schema-pathname) :db self :merge-results-p nil) (dolist (url populate-with) (db-load self (make-url url) :db self :merge-results-p nil)))) (defmethod db-add-triple ((db indexed-db) (triple triple) &optional source) (declare (ignore source)) (multiple-value-bind (actual-triple addedp new-sources) (call-next-method) (cond (addedp ; CASE 1: Triple actually added (let ((s (triple-subject triple)) (p (triple-predicate triple)) (o (triple-object triple))) (triple-index-add triple (db-index-sp db) p s ) (triple-index-add triple (db-index-po db) p o) (triple-index-add triple (db-index-s db) s ) (triple-index-add triple (db-index-p db) p ) (triple-index-add triple (db-index-o db) o) (when new-sources (dolist (source new-sources) (triple-index-add triple (db-by-source db) source))) (values triple t new-sources))) (new-sources ; CASE 2: Only new source(s) added (dolist (source new-sources) (triple-index-add triple (db-by-source db) source)) (values actual-triple nil new-sources)) (t ; CASE 3: Nothing added, source null (values actual-triple nil nil))))) ;;; needs to be fixed vis-a-vis sources (defmethod db-del-triple ((db indexed-db) (triple triple) &optional source) (let ((sources (triple-sources triple))) (multiple-value-bind (triple deletedp new-sources) (call-next-method) (cond (deletedp (let ((s (triple-subject triple)) (p (triple-predicate triple)) (o (triple-object triple))) (triple-index-rem triple (db-index-sp db) p s ) (triple-index-rem triple (db-index-po db) p o) (triple-index-rem triple (db-index-s db) s ) (triple-index-rem triple (db-index-p db) p ) (triple-index-rem triple (db-index-o db) o) (dolist (src sources) (triple-index-rem triple (db-by-source db) src)) (values triple t nil))) (t (triple-index-rem triple (db-by-source db) source) (values triple nil new-sources)))))) (defmethod db-query ((db indexed-db) subject predicate object) (macrolet ((filter (k tr s) `(remove ,k ,tr :test-not #'eq :key ,s))) (with-spo-case ((s p o) subject predicate object) :spo (filter o (triple-index-get (db-index-sp db) p s) #'triple-object) :sp (triple-index-get (db-index-sp db) p s) :so (filter o (triple-index-get (db-index-s db) s) #'triple-object) :s (triple-index-get (db-index-s db) s) :po (triple-index-get (db-index-po db) p o) :p (triple-index-get (db-index-p db) p) :o (triple-index-get (db-index-o db) o) :all (db-triples db)))) #+:junk (defmethod db-query ((db indexed-db) subject predicate object) (macrolet ((filter (k tr s) `(remove ,k ,tr :test-not #'eq :key ,s))) (cond (subject (cond (predicate (if object (filter object (triple-index-get (db-index-sp db) predicate subject) #'triple-object) (triple-index-get (db-index-sp db) predicate subject))) (object ;; "SO": should we use subject or object index? (filter object (triple-index-get (db-index-s db) subject) #'triple-object)) (t (triple-index-get (db-index-s db) subject)))) (object (if predicate (triple-index-get (db-index-po db) predicate object) (triple-index-get (db-index-o db) object))) (predicate (triple-index-get (db-index-p db) predicate)) (t (db-triples db))))) (defmethod db-find-triple ((db indexed-db) (triple triple)) (find (triple-object triple) (triple-index-get (db-index-sp db) (triple-predicate triple) (triple-subject triple)) :key #'triple-object)) (defmethod db-del-source ((db indexed-db) (source node)) (dolist (triple (db-query-by-source db source)) (db-del-triple db triple source))) (defmethod db-query-by-source ((db indexed-db) (source node)) (triple-index-get (db-by-source db) source)) (defmethod db-sources ((db indexed-db)) (let ((sources nil)) (wilbur-maphash #'(lambda (key data) (declare (ignore data)) (push key sources)) (db-by-source db)) sources)) (defmethod db-clear :after ((db indexed-db)) (triple-index-clear (db-index-sp db)) (triple-index-clear (db-index-po db)) (triple-index-clear (db-index-s db)) (triple-index-clear (db-index-p db)) (triple-index-clear (db-index-o db)) (triple-index-clear (db-by-source db))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS LOCKED-DB-MIXIN ;;; (defclass locked-db-mixin () ((triple-lock :initform (make-lock) :reader db-triple-lock))) (defmacro with-triple-lock (db &body body) `(with-lock ((db-triple-lock ,db)) ,@body)) (defmethod db-add-triple :around ((db locked-db-mixin) (triple triple) &optional source) (declare (ignore source)) (with-triple-lock db (call-next-method))) (defmethod db-del-triple :around ((db locked-db-mixin) (triple triple) &optional source) (declare (ignore source)) (with-triple-lock db (call-next-method))) (defmethod db-merge :around ((to locked-db-mixin) (from db) &optional source) (declare (ignore source)) (with-triple-lock to (call-next-method))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; "TOP-LEVEL" DATA API ;;; (defvar *db* nil) ; "current" database (defun triple (subject predicate object &optional source) (db-make-triple *db* subject predicate object source)) (defun add-triple (triple) (db-add-triple *db* triple)) (defun del-triple (triple) (db-del-triple *db* triple nil)) (defun query (subject predicate object) (db-query *db* subject predicate object)) (defun reify (triple &key (statement-uri nil) (source nil)) (db-reify triple *db* statement-uri source)) (defun local-properties (node) (db-node-local-properties *db* node)) (defun all-values (frame path) (db-get-values *db* frame path)) (defun add-value (frame path value) (db-add-triple *db* (db-make-triple *db* frame path value)) value) (defun del-value (frame path &optional value) (dolist (triple (db-query *db* frame path value)) (db-del-triple *db* triple nil))) (defun value (frame path) (let ((v (first (db-get-values *db* frame path)))) (if (typep v 'literal) (literal-value v) v))) (defun relatedp (source path sink &optional action) (frames-related-p source path sink *db* action))
32,414
Common Lisp
.lisp
788
36.854061
90
0.649409
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
db5f5281dc042ce8979fc9e3ed1621529e990afc71c925e83abf1ff6134d99a0
6,370
[ -1 ]
6,371
rdf-parser.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/rdf-parser.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; rdf-parser.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file contains an implementation of an RDF parser, using a ;;; "near streaming" algorithm based on a simple state machine. The parser ;;; implements all of RDF M+S excluding "aboutEachPrefix" (what, are you ;;; surprised?) as well as RDFCore. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS RDF-SYNTAX-NORMALIZER ;;; (defclass rdf-syntax-normalizer (sax-filter) ()) (defmethod sax-consumer-mode ((self rdf-syntax-normalizer)) (sax-consumer-mode (sax-producer-consumer self))) (defmethod start-element ((self rdf-syntax-normalizer) (tag open-tag) mode) (let ((attributes (tag-attributes tag)) (properties nil) (consumer (sax-producer-consumer self)) (namespaces (tag-namespaces tag))) (do-string-dict (key value attributes) (cond ((null (find key -rdf-attrs- :test #'string=)) (setf properties (string-dict-add properties key value) attributes (string-dict-del attributes key))) ((string= key -rdf-abouteachprefix-uri-) (cerror "Ignore" 'feature-not-supported :thing "aboutEachPrefix") (setf attributes (string-dict-del attributes key))))) (setf (tag-attributes tag) attributes) (start-element consumer tag mode) (do-string-dict (key value properties) (unless (or (string= key -xml-lang-attr-) (string= key "xml:space") (string= key "xml:base")) (let ((new-tag (make-instance 'open-tag :string key :base (tag-base tag) :namespaces namespaces))) (start-element consumer new-tag (sax-consumer-mode self)) (char-content consumer value (sax-consumer-mode self)) (end-element consumer new-tag (sax-consumer-mode self))))))) (defmethod maybe-use-namespace ((self rdf-syntax-normalizer) prefix uri) (maybe-use-namespace (sax-producer-consumer self) prefix uri)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS RDF-PARSER ;;; (defclass temporary-parser-db (interned-literal-db-mixin fast-temporary-db) ()) (defclass rdf-parser (sax-consumer) ((base :initform nil :accessor parser-base) (locator :initform nil :accessor parser-locator) (db :initarg :db :initform nil :accessor parser-db) (states :initform nil :accessor parser-states) (literal :accessor parser-literal) (rdfcorep :initarg rdfcorep :initform t :accessor parser-rdfcore-p) (harvest-namespaces-p :initarg :harvest-namespaces-p :initform t :reader parser-harvest-namespaces-p) (db-class :initarg :db-class :initform 'temporary-parser-db :reader parser-db-class) (initial-state :initarg :initial-state :initform :scan :reader parser-initial-state) (nodeids :initform nil :accessor parser-nodeids) (load-queue :initform nil :accessor parser-load-queue)) (:default-initargs :producer (make-instance 'xml-parser :consumer (make-instance 'rdf-syntax-normalizer)))) (define-condition close-rdf-element (condition) ()) (defstruct (state (:constructor make-state (mode &optional node property statement-id language datatype))) mode node triple property (statement-id nil) (language nil) (datatype nil) (index 0) task-queue) (defun add-state (parser mode &rest args) (declare (dynamic-extent args)) (push (apply #'make-state mode args) (parser-states parser))) (defun parser-task-state (parser) (find :description (parser-states parser) :key #'state-mode)) (defmethod sax-consumer-mode ((parser rdf-parser)) (state-mode (first (parser-states parser)))) (defstruct (task (:constructor make-task (type node &rest parameters))) type node parameters) (defmacro task-parameter (task parameter) `(getf (task-parameters ,task) ,parameter)) (defmethod defer-task ((parser rdf-parser) type node &rest args) (declare (dynamic-extent args)) (pushnew (apply #'make-task type node args) (state-task-queue (parser-task-state parser)) :test #'(lambda (p q) (and (eq (task-type p) (task-type q)) (eq (task-node p) (task-node q)))))) (defmethod make-container ((parser rdf-parser) elements &optional container-uri (container-type-uri -rdf-bag-uri-)) (let ((node (ensure-node parser container-uri nil)) (i 0)) (add-as-triple parser node (ensure-node parser -rdf-type-uri- t) (ensure-node parser container-type-uri t)) (dolist (element elements) (add-as-triple parser node (index-uri (incf i) (parser-db parser)) element)) node)) (defmethod initialize-instance :after ((parser rdf-parser) &key &allow-other-keys) (let ((normalizer (sax-producer-consumer (sax-consumer-producer parser)))) (setf (sax-producer-consumer normalizer) parser) (unless (parser-db parser) (setf (parser-db parser) (make-instance (parser-db-class parser) :emptyp t))))) (defun uri (parser uri should-exist-p) (let* ((base (first (parser-base parser))) (base-end-char (char base (1- (length base)))) (ends-in-hash-p (char= base-end-char #\#))) (cond ((or (null uri) (find #\: uri :test #'char=) (char= (char uri 0) #\/)) ;; FULL URI W/ SCHEME uri) ((char= (char uri 0) #\#) ;; FRAGMENT IDENTIFIER (concatenate 'string base (if ends-in-hash-p (subseq uri 1) uri))) ((not should-exist-p) ;; ESTABLISHES A FRAGMENT (NO HASH IN FRONT) (concatenate 'string base (if ends-in-hash-p nil "#") uri)) ((char= base-end-char #\/) ;; RELATIVE URI, BASE ENDS IN SLASH (concatenate 'string base uri)) (t ;; RELATIVE URI, BASE DOES NOT END IN SLASH (let ((i (position #\/ base :from-end t :test #'char=))) (concatenate 'string (subseq base 0 (and i (1+ i))) uri)))))) (defun ensure-node (parser uri should-exist-p) (cond ((and (stringp uri) (zerop (length uri))) (node (first (parser-base parser)))) ((typep uri 'node) uri) (t (node (uri parser uri should-exist-p))))) (defun ensure-named-bnode (parser nodeid) (or (cdr (assoc nodeid (parser-nodeids parser) :test #'string=)) (let ((node (ensure-node parser nil nil))) (push (cons nodeid node) (parser-nodeids parser)) node))) (defmethod parse ((parser rdf-parser) stream locator) (setf (parser-load-queue parser) nil) (catch :terminate-rdf-parser (parse (find-first-producer parser) stream locator)) (dolist (url (parser-load-queue parser)) (ensure-ontology-loaded parser url)) (parser-locator parser)) (defmethod ensure-ontology-loaded ((parser rdf-parser) url) ;; simplistic ontology loader, can be overridden (cond ((or (db-source-loaded-p *db* (db-find-source-desc *db* url nil)) (db-query *db* (node url) !rdf:type !owl:Ontology)) (format t "owl:imports ~a already done~%" url) nil) (t (format t "~&Import of ~S~%" url) (db-load *db* url :merge-results-p t :verbosep nil) t))) (defmethod add-as-triple ((parser rdf-parser) (subject node) (predicate string) object &optional statement-id) (add-as-triple parser subject (ensure-node parser predicate t) object statement-id)) (defmethod add-as-triple ((parser rdf-parser) (subject node) (predicate node) object &optional statement-id) (let* ((db (parser-db parser)) (source (parser-locator parser)) (triple (db-make-triple db subject predicate object source))) (db-add-triple db triple) (dolist (state (parser-states parser)) ;; for higher order statements (dolist (task (state-task-queue state)) (when (and (eq (task-type task) :bagid) (eq subject (task-node task))) (push (cons triple statement-id) (task-parameter task :statements)) (return-from add-as-triple triple)))) (when statement-id ;; no bagid but statement-id exists (db-reify triple db (uri parser statement-id nil) source)) triple)) (defun new-index-uri (parser db) (index-uri (incf (state-index (first (parser-states parser)))) db)) (defun parse-db-from-stream (stream locator &rest options &key (parser-class 'rdf-parser) &allow-other-keys) (declare (dynamic-extent options)) (remf options :parser-class) (multiple-value-bind (source-node parser) (apply #'parse-from-stream stream locator parser-class options) (values (parser-db parser) source-node))) (defmethod maybe-use-namespace ((self rdf-parser) prefix uri) (when (and (parser-harvest-namespaces-p self) (not (string-dict-get (dictionary-namespaces *nodes*) prefix))) (add-namespace prefix uri))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; RDF PARSER STATE MACHINE TRANSITIONS ;;; (defmethod start-document ((parser rdf-parser) locator) (setf (parser-locator parser) (node locator) (parser-base parser) (list locator) (parser-nodeids parser) nil) (add-state parser (parser-initial-state parser))) (defmethod end-document ((parser rdf-parser) mode) (declare (ignore mode)) nil) (defmethod start-element :before ((parser rdf-parser) (tag open-tag) mode) (declare (ignore mode)) (push (tag-base tag) (parser-base parser))) (defmethod end-element :after ((parser rdf-parser) (tag open-tag) mode) (declare (ignore mode)) (pop (parser-base parser))) (defmethod start-element ((parser rdf-parser) (tag open-tag) (mode (eql :scan))) (cond ((string= (token-string tag) -rdf-rdf-uri-) (add-state parser :description)) ((string= (token-string tag) -rdf-description-uri-) (start-element parser tag :description)))) (defmethod start-element ((parser rdf-parser) (tag open-tag) (mode (eql :description))) (let ((each (tag-attribute tag -rdf-abouteach-uri-)) (about (tag-attribute tag -rdf-about-uri-)) (id (tag-attribute tag -rdf-id-uri-)) (nodeid (tag-attribute tag -rdf-nodeid-uri-))) (when (and about id) (cerror "Use \"about\"" 'about-and-id-both-present)) (when (and (or about id) nodeid) (cerror "Ignore \"nodeID\"" 'about-and-nodeid-both-present) (setf nodeid nil)) (let ((type (token-string tag)) (node (if nodeid (ensure-named-bnode parser nodeid) (ensure-node parser (and (null each) (or about id)) (and (null each) (null id)))))) (if each (if (parser-rdfcore-p parser) (cerror "Ignore \"aboutEach\"" 'feature-disabled :feature "aboutEach") (defer-task parser :abouteach node :target (ensure-node parser each t))) (let* ((bagid (tag-attribute tag -rdf-bagid-uri-)) (state (first (parser-states parser))) (parent (state-node state))) (when bagid (defer-task parser :bagid node :bagid bagid :statements nil)) (when parent (attach-to-parent parser parent node (state-statement-id state))))) (unless (string= type -rdf-description-uri-) (add-as-triple parser node -rdf-type-uri- (ensure-node parser type t))) (add-state parser :property node)))) (defmethod attach-to-parent ((parser rdf-parser) (parent node) (child node) &optional statement-id) (let ((state (first (parser-states parser)))) (cond ((eq (state-mode state) :collection) (setf parent (state-node state)) (add-as-triple parser parent -rdf-first-uri- child) (setf (state-triple state) (add-as-triple parser parent -rdf-rest-uri- (setf (state-node state) (ensure-node parser nil t))))) ((eq (state-mode state) :daml-collection) (let ((parent (state-node state)) (node (ensure-node parser nil t))) (add-as-triple parser parent -rdf-type-uri- (ensure-node parser -daml-list-uri- t)) (add-as-triple parser parent -daml-first-uri- child) (add-as-triple parser parent -daml-rest-uri- node) (setf (state-node state) node))) (t (add-as-triple parser parent (state-property (first (parser-states parser))) child statement-id))))) (defmethod start-element ((parser rdf-parser) (tag open-tag) (mode (eql :property))) (when (string= (token-string tag) -owl-imports-uri-) (pushnew (tag-attribute tag -rdf-resource-uri-) (parser-load-queue parser))) (let* ((state (first (parser-states parser))) (node (state-node state)) (property-uri (token-string tag)) (property (ensure-node parser (cond ((string= property-uri -rdf-li-uri-) ;; (defer-task parser :container node) (new-index-uri parser (parser-db parser))) (t property-uri)) t)) (resource-uri (tag-attribute tag -rdf-resource-uri-)) (nodeid (tag-attribute tag -rdf-nodeid-uri-)) (statement-id (tag-attribute tag -rdf-id-uri-))) (cond (resource-uri (let ((value (ensure-node parser resource-uri t))) (setf (state-property state) property) (attach-to-parent parser node value statement-id) (add-state parser :property value))) (nodeid (let ((value (ensure-named-bnode parser nodeid))) (setf (state-property state) property) (attach-to-parent parser node value statement-id) (add-state parser :property value))) (t (parse-using-parsetype parser node property (tag-attribute tag -rdf-parsetype-uri-) statement-id (tag-attribute tag -xml-lang-attr-) (tag-attribute tag -rdf-datatype-uri-)))))) (defmethod parse-using-parsetype ((parser rdf-parser) node property parsetype &optional statement-id language datatype) (cond ((null parsetype) (add-state parser :description node property statement-id language datatype)) ((string-equal parsetype "Literal") (setf (parser-literal parser) nil) (add-state parser :literal node property)) ((string-equal parsetype "Resource") (add-as-triple parser node property (setf node (ensure-node parser nil t)) statement-id) (add-state parser :property node)) ((string-equal parsetype "Collection") ; adapted from daml-parser (let ((list-node (ensure-node parser nil t))) (add-as-triple parser node property list-node) (add-state parser :collection list-node))) ((string= parsetype "daml:collection") (let ((list-node (ensure-node parser nil t))) (add-as-triple parser node property list-node) (add-state parser :daml-collection list-node))) (t (cerror "Ignore parseType" 'unknown-parsetype :thing parsetype)))) (defmethod start-element ((parser rdf-parser) (tag open-tag) (mode (eql :literal))) (add-state parser :literal) (push tag (parser-literal parser))) (declaim (special *db*)) (defmethod end-element ((parser rdf-parser) (tag open-tag) (mode (eql :literal))) (let ((state (first (parser-states parser)))) (call-next-method) (cond ((not (null (state-node state))) (let ((string (with-output-to-string (s) (replay (make-instance 'xml-formatter :stream s) (nreverse (parser-literal parser)))))) (add-as-triple parser (state-node state) (state-property state) (db-make-literal (or *db* (parser-db parser)) string)))) ((not (tag-empty-p tag)) (push (tag-counterpart tag) (parser-literal parser)))))) (defmethod end-element ((parser rdf-parser) (tag open-tag) (mode (eql :scan))) nil) (defmethod end-element :after ((parser rdf-parser) (tag open-tag) (mode (eql :property))) (let ((state (parser-task-state parser))) (when state (dolist (task (shiftf (state-task-queue state) nil)) (execute-deferred-task parser task (task-type task)))))) (defmethod execute-deferred-task ((parser rdf-parser) task type) (let ((db (parser-db parser)) (source (node (first (parser-base parser))))) (ecase type ;; (:container ;; (is-container-p db (task-node task) t) ;; t) (:abouteach (let ((target (task-parameter task :target)) (index-predicates nil)) (is-container-p db target t) (dolist (triple (db-query db target nil nil)) (let ((uri (node-uri (triple-predicate triple)))) (when (find uri *index-uris* :test #'string=) (push (ensure-node parser uri t) index-predicates)))) (dolist (triple (db-query db (task-node task) nil nil)) (db-del-triple db triple) (dolist (p index-predicates) (add-as-triple parser (triple-object (first (db-query db target p nil))) (triple-predicate triple) (triple-object triple) source))))) (:bagid (let ((statements (task-parameter task :statements))) (when statements (make-container parser (mapcar #'(lambda (s) (destructuring-bind (triple . id) s (db-reify triple db (and id (uri parser id nil)) source))) statements) (uri parser (task-parameter task :bagid) nil)))))))) (defmethod end-element :after ((parser rdf-parser) (tag open-tag) (mode (eql :description))) (when (string= (token-string tag) -rdf-rdf-uri-) (signal 'close-rdf-element))) (defmethod end-element ((parser rdf-parser) (tag open-tag) mode) (declare (ignore mode)) (pop (parser-states parser))) (defmethod char-content ((parser rdf-parser) (content string) (mode (eql :description))) (let* ((state (first (parser-states parser))) (datatype (state-datatype state)) (property (state-property state))) (add-as-triple parser (state-node state) property (db-make-literal (or *db* (parser-db parser)) content :language (state-language state) :datatype (and datatype (node datatype)) :property property) (state-statement-id state)))) (defmethod char-content ((parser rdf-parser) (content string) (mode (eql :literal))) (push content (parser-literal parser))) (defmethod char-content ((parser rdf-parser) (content string) (mode (eql :scan))) ;; ignore character content in :scan mode nil) (defmethod char-content ((parser rdf-parser) (content string) mode) (declare (ignore mode)) (cerror "Ignore" 'illegal-character-content :thing content)) (defmethod start-element ((parser rdf-parser) (tag open-tag) (mode (eql :collection))) (start-element parser tag :description)) (defmethod start-element ((parser rdf-parser) (tag open-tag) (mode (eql :daml-collection))) (start-element parser tag :description)) (defmethod end-element :before ((parser rdf-parser) (tag open-tag) (mode (eql :collection))) (let* ((db (parser-db parser)) (triple (db-del-triple db (state-triple (first (parser-states parser)))))) (add-as-triple parser (triple-subject triple) (triple-predicate triple) (ensure-node parser -rdf-nil-uri- t)))) (defmethod end-element :before ((parser rdf-parser) (tag nox:open-tag) (mode (eql :daml-collection))) (let* ((node (state-node (first (parser-states parser)))) (db (parser-db parser)) (triple (db-del-triple db (first (db-query db nil nil node))))) (add-as-triple parser (triple-subject triple) (triple-predicate triple) (ensure-node parser -daml-nil-uri- t)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CONSTRUCTORS FOR COLLECTIONS ;;; (defun rdf-list (&rest items) (declare (dynamic-extent items)) (if items (rdf-cons (first items) (apply #'rdf-list (rest items))) !rdf:nil)) (defun rdf-cons (first rest &optional uri) (let ((pair (node uri))) (add-triple (triple pair !rdf:type (node -rdf-list-uri-))) (add-triple (triple pair (node -rdf-first-uri-) first)) (add-triple (triple pair (node -rdf-rest-uri-) rest)) pair)) (defun daml-list (&rest items) (if items (daml-cons (first items) (apply #'daml-list (rest items))) !daml:nil)) (defun daml-cons (first rest &optional uri) (let ((pair (node uri))) (add-triple (triple pair !rdf:type (node -daml-list-uri-))) (add-triple (triple pair (node -daml-first-uri-) first)) (add-triple (triple pair (node -daml-rest-uri-) rest)) pair))
26,294
Common Lisp
.lisp
608
36.708882
90
0.631334
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
99777f0e73468477a0e56ce46ddd406e9faa4e8468b713bf5ef874649752f7e2
6,371
[ -1 ]
6,372
literal.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/literal.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; literal.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Definition of the class LITERAL and associated functionality ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; LITERAL PROTOCOL ;;; (defgeneric literal-string (literal)) (defgeneric literal-language (literal)) (defgeneric literal-datatype (literal)) (defgeneric literal-value (literal)) (defgeneric (setf literal-value) (value literal)) (defgeneric compute-literal-value (literal datatype string)) (defgeneric literal= (literal other-literal)) (defgeneric compute-literal-value-error (literal datatype string &rest options)) (defgeneric literal-value->string (datatype value)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS LITERAL ;;; (defclass literal () ((string :initarg :string :initform nil :reader literal-string) (language :initarg :language :initform nil :reader literal-language) (datatype :initarg :datatype :initform nil :reader literal-datatype) (value :accessor literal-value))) (defmethod literal-string ((literal string)) literal) (defmethod literal-language ((literal string)) nil) (defmethod literal-datatype ((literal string)) nil) (defmethod literal-value ((literal string)) literal) (defmethod literal-value :around ((literal literal)) (if (slot-boundp literal 'value) (call-next-method) (setf (literal-value literal) (compute-literal-value literal (literal-datatype literal) (literal-string literal))))) (defmethod print-object ((self literal) stream) (princ #\# stream) (print-literal-for-ntriples self stream)) (defmethod compute-literal-value ((literal literal) (datatype null) string) string) (defun %literal= (string datatype language other-literal) (and (string= string (literal-string other-literal)) (if datatype (eql datatype (literal-datatype other-literal)) (let ((other-language (literal-language other-literal))) (or (and (null language) (null other-language)) (string-equal language other-language)))))) (defmethod literal= ((literal string) (other-literal string)) (string= literal other-literal)) (defmethod literal= ((literal literal) (other-literal literal)) (%literal= (literal-string literal) (literal-datatype literal) (literal-language literal) other-literal)) (defmethod literal= ((literal literal) (other-literal string)) (%literal= other-literal nil nil literal)) (defmethod literal= ((literal string) (other-literal literal)) (%literal= literal nil nil other-literal)) (defmethod literal= (literal other-literal) (declare (ignore literal other-literal)) nil) (defmethod literal-language-match-p ((literal literal) language) (string-equal (literal-language literal) language :end1 (length language))) (defmethod literal-language-match-p (thing language) (declare (ignore thing language)) nil) (defmethod compute-literal-value-error ((literal literal) (datatype node) string &key (value string) (warn-only-p nil)) (unless warn-only-p (cerror (format nil "Use value ~S instead" value) 'datatype-parse-error :thing string)) (warn "Ignoring literal datatype ~S for literal ~S" datatype string) value) ;;; -------------------------------------------------------------------------------------- ;;; ;;; LITERAL PARSING ;;; ;;; This is the template for COMPUTE-LITERAL-VALUE methods: ;;; ;;; (defmethod compute-literal-value ((literal literal) ;;; (datatype (eql !xsd:...)) ;;; string) ;;; ...) ;;; (defmethod compute-literal-value ((literal literal) (datatype node) string) (compute-literal-value-error literal datatype string :warn-only-p t)) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:string)) string) string) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:boolean)) string) (cond ((or (string= string "1") (string= string "true")) t) ((or (string= string "0") (string= string "false")) nil) (t (compute-literal-value-error literal datatype string :value nil)))) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:float)) string) (compute-literal-value-float literal datatype string)) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:double)) string) (compute-literal-value-float literal datatype string)) (defun compute-literal-value-float (literal datatype string) (multiple-value-bind (value n) (read-from-string string :eof-error-p nil) (if (and value (numberp value) (= n (length string))) (float value) (compute-literal-value-error literal datatype string :value 1.0)))) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:dateTime)) string) (or (ignore-errors (parse-iso8601-date string)) (compute-literal-value-error literal datatype string :value 0))) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:date)) string) (or (and (= (length string) 10) (ignore-errors (parse-iso8601-date string))) (compute-literal-value-error literal datatype string :value 0))) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:normalizedString)) string) (flet ((illegalp (c) (or (char= c #\Return) (char= c #\Linefeed) (char= c #\Tab)))) (declare (dynamic-extent #'illegalp)) (if (find-if #'illegalp string) (compute-literal-value-error literal datatype string :value (substitute-if #\Space #'illegalp string)) string))) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:integer)) string) (compute-literal-value-integer literal datatype string)) (defmethod compute-literal-value ((literal literal) (datatype (eql !xsd:int)) string) (compute-literal-value-integer literal datatype string)) (defun compute-literal-value-integer (literal datatype string) (or (parse-integer string :junk-allowed t) (compute-literal-value-error literal datatype string :value 0))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; OUTPUT FUNCTIONS ;;; (defmethod print-literal-for-ntriples ((literal literal) stream) (let ((datatype (literal-datatype literal))) (format stream "~S~@[@~A~]~@[^^<~A>~]" (literal-string literal) (literal-language literal) (and datatype (find-short-name *nodes* (node-uri datatype)))))) (defmethod literal-value->string ((datatype (eql !xsd:string)) (value string)) value) (defmethod literal-value->string ((datatype (eql !xsd:boolean)) value) (if value "true" "false")) (defmethod literal-value->string ((datatype (eql !xsd:float)) (value float)) (prin1-to-string value)) (defmethod literal-value->string ((datatype (eql !xsd:double)) (value float)) (prin1-to-string value)) (defmethod literal-value->string ((datatype (eql !xsd:dateTime)) (value integer)) (iso8601-date-string value)) (defmethod literal-value->string ((datatype (eql !xsd:date)) (value integer)) (iso8601-date-string value t)) (defmethod literal-value->string ((datatype (eql !xsd:normalizedString)) (value string)) (flet ((illegalp (c) (or (char= c #\Return) (char= c #\Linefeed) (char= c #\Tab)))) (declare (dynamic-extent #'illegalp)) (assert (not (find-if #'illegalp value))) value)) (defmethod literal-value->string ((datatype (eql !xsd:integer)) (value integer)) (prin1-to-string value)) (defmethod literal-value->string ((datatype (eql !xsd:int)) (value integer)) (prin1-to-string value)) (defmethod literal-value->string ((datatype null) (value string)) value) ;;; -------------------------------------------------------------------------------------- ;;; ;;; LITERAL SHORTHAND SYNTAX ;;; (defun literal (string &rest options) (declare (dynamic-extent options)) (apply #'db-make-literal *db* string options)) (defmethod make-load-form ((literal literal) &optional env) (declare (ignore env)) (let ((datatype (literal-datatype literal)) (language (literal-language literal))) `(literal ,(literal-string literal) ,@(and datatype `(:datatype ,datatype)) ,@(and language `(:language ,language))))) (eval-when (:compile-toplevel :load-toplevel :execute) (defun inline-literal-reader (stream char arg) (declare (ignore arg)) (unread-char char stream) (let ((string (read stream t nil t))) ;; later, when I get around to it, we will also read datatype and language (literal string))) (defun enable-literal-shorthand () (set-dispatch-macro-character #\# #\" #'inline-literal-reader)) (enable-literal-shorthand)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS INTERNED-LITERAL ;;; MIXIN CLASS INTERNED-LITERAL-DB-MIXIN ;;; CLASS INTERNED-LITERAL-INDEXED-DB ;;; (defclass interned-literal (literal node) ()) (defmethod literal= ((literal interned-literal) (other-literal interned-literal)) (eq literal other-literal)) (defclass interned-literal-db-mixin () ; mix with class db ((literal-index :initform (make-hash-table :test #'equal) :reader db-literal-index)) (:default-initargs :literal-class 'interned-literal)) (defmethod db-literal-index-get ((db interned-literal-db-mixin) string &key datatype language &allow-other-keys) (find-if #'(lambda (literal) (%literal= string datatype language literal)) (gethash string (db-literal-index db)))) (defmethod (setf db-literal-index-get) ((literal interned-literal) (db interned-literal-db-mixin) string) ;; "It is an error" to call this without first checking for the prior existence ;; of the literal in the index (push literal (gethash string (db-literal-index db))) literal) (defmethod db-make-literal ((db interned-literal-db-mixin) string &rest options) (declare (dynamic-extent options)) (or (apply #'db-literal-index-get db string options) (setf (db-literal-index-get db string) (call-next-method)))) (defclass interned-literal-indexed-db (interned-literal-db-mixin indexed-db) ()) (defmethod db-literal-index-find ((db interned-literal-db-mixin) string) (let ((literals nil)) (maphash #'(lambda (key value) (when (name-contains-pattern-p key string) (setf literals (append value literals)))) (db-literal-index db)) (copy-list literals)))
16,554
Common Lisp
.lisp
353
40.813031
90
0.636753
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
c8111c38873419473226dbdc230fe95092f141e0fc0e36df5c9446f67128a813
6,372
[ -1 ]
6,373
transaction.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/transaction.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; transaction.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Transaction functionality for triple store databases ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defclass transaction-db-mixin () ((transaction-lock :initform (make-lock) :reader db-transaction-lock) (transaction-level :initform 0 :accessor db-transaction-level))) (defmacro with-transaction-lock (db &body body) `(with-lock ((db-transaction-lock ,db)) ,@body)) (defmacro with-transaction (db &key form commit rollback) (with-temps (d abortp) `(let ((,d ,db)) (with-transaction-lock ,d (unwind-protect (let ((,abortp t)) (incf (db-transaction-level ,d)) (prog1 ,form (setf ,abortp nil))) (when (zerop (decf (db-transaction-level ,d))) (if ,abortp ,rollback ,commit))))))) (defmethod db-add-triple :around ((db locked-db-mixin) (triple triple)) (with-triple-lock db (call-next-method))) (defmethod db-del-triple :around ((db locked-db-mixin) (triple triple) &optional source) (declare (ignore source)) (with-triple-lock db (call-next-method))) (defmethod db-merge :around ((to locked-db-mixin) (from db) &optional source) (declare (ignore source)) (with-triple-lock to (call-next-method)))
6,122
Common Lisp
.lisp
115
51.313043
90
0.687458
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
59b466ff9ed38d318fded531aecde8e7ff868e129c7eba4f06821192f84bc654
6,373
[ -1 ]
6,374
reasoner.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/reasoner.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; reasoner.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file implements an RDFS reasoner, originally based on (but extending) ;;; this paper: ;;; ;;; Ora Lassila: "Taking the RDF Model Theory Out for a Spin", in: Ian Horrocks & ;;; James Hendler (eds.): "The Semantic Web - ISWC 2002", Lecture Notes in Computer ;;; Science 2342, pp.307-317, Springer Verlag, 2002 ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; MIXIN CLASS DEDUCTIVE-CLOSURE-DB-MIXIN ;;; (defclass deductive-closure-db-mixin () ((closurep :initarg :closurep :initform t :accessor db-closure-p) (use-rule-engine-p :initarg :use-rule-engine-p :initform t :reader db-use-rule-engine-p) (sameas-clusters :initform (make-hash-table :test #'eq) :reader db-sameas-clusters) (ifp-additions :initform (make-triple-collection) :reader db-ifp-additions)) (:default-initargs :rdf-schema-pathname "wilbur:schemata;true-rdf-schema.rdf")) (defmacro without-closure ((db) &body body) (let ((d (gentemp)) (closurep (gentemp))) `(let* ((,d ,db) (,closurep nil)) (unwind-protect (progn (shiftf ,closurep (db-closure-p ,d) nil) ,@body) (setf (db-closure-p ,d) ,closurep))))) (defvar *subprop-query* nil) (defvar *subprops-of-subprop* (list !rdfs:subPropertyOf)) (declaim (special *rewritten-paths*)) ; forward ref. (defmethod db-add-triple ((db deductive-closure-db-mixin) (triple triple) &optional source) (declare (ignore source)) (multiple-value-bind (triple addedp new-sources) (call-next-method) (when addedp (db-add-triple-post-process db triple)) (values triple addedp new-sources))) (defmethod db-add-triple-post-process ((db deductive-closure-db-mixin) (triple triple)) (let ((p (triple-predicate triple)) (o (triple-object triple))) (db-add-triple db (db-make-triple db p !rdf:type !rdf:Property) :closure) (cond ((eq p !rdf:type) (db-add-triple db (db-make-triple db o !rdf:type !rdfs:Class) :closure)) ((eq p !owl:sameAs) (db-update-sameas-clusters db (triple-subject triple))) ((member p *subprops-of-subprop*) (db-clear-reasoner-cache db) (when (member o *subprops-of-subprop*) (setf *subprops-of-subprop* (db-get-values db !rdfs:subPropertyOf (subprop-query db)) *subprop-query* nil))) ((and (typep o 'literal) (literal-datatype o)) (db-add-triple db (db-make-triple db o !rdf:type !rdf:XMLLiteral) :closure))))) (defmethod db-del-triple ((db deductive-closure-db-mixin) (triple triple) &optional source) (declare (ignore source)) (multiple-value-bind (triple deletedp new-sources) (call-next-method) (when (and deletedp (eq (triple-predicate triple) !owl:sameAs)) (db-update-sameas-clusters db (triple-subject triple)) (db-update-sameas-clusters db (triple-object triple))) (values triple deletedp new-sources))) (defmethod db-merge :after ((to deductive-closure-db-mixin) (from db) &optional source) (declare (ignore source)) (db-clear-reasoner-cache to)) (defmethod db-new-container-membership-property ((db deductive-closure-db-mixin) (property node)) (flet ((tr (s p o) (db-add-triple db (db-make-triple db s p o)))) (tr property !rdf:type !rdfs:ContainerMembershipProperty) (tr property !rdfs:subPropertyOf !rdfs:member))) (defmethod db-get-values :around ((db deductive-closure-db-mixin) (frame node) path) ;; We cannot check the status of reasoning, since WilburQL queries are executed without ;; reasoning, yet owl:sameAs support has to work... this could be a problem, but for now ;; we just ignore the whole matter. (let* ((sameas-clusters (db-sameas-clusters db)) (other-frames (gethash frame sameas-clusters))) ;;(remove-duplicates (cond ((eq path !owl:sameAs) (if (db-closure-p *db*) ; why is this *db* ?? other-frames (call-next-method))) ((rest other-frames) (reduce #'union (mapcar #'(lambda (f) (call-next-method db f path)) other-frames))) (t (call-next-method))) ;; :test #'(lambda (x y) ;; (find x (gethash y sameas-clusters)))) )) (defmethod db-get-values ((db deductive-closure-db-mixin) (frame node) path) (let ((path (rewrite-path path db))) (without-closure (db) (call-next-method db frame path)))) (defmethod db-get-values ((db deductive-closure-db-mixin) (frame (eql !rdfs:Resource)) (path inverse-slot)) (let ((link (inverse-slot-node path))) (if (or (eq link !rdf:type) (eq link !rdfs:subClassOf)) ;;(cons :all (call-next-method)) (list :all) (call-next-method)))) (defmethod frames-related-p ((source node) path (sink node) (db deductive-closure-db-mixin) action) (let ((path (rewrite-path path db))) (without-closure (db) (call-next-method source path sink db action)))) (defmethod db-update-sameas-clusters ((db deductive-closure-db-mixin) (node node)) (let ((cluster (without-closure (db) (db-get-values db node '(:rep* (:or !owl:sameAs (:inv !owl:sameAs)))))) (clusters (db-sameas-clusters db))) (if (rest cluster) (dolist (i cluster) (setf (gethash i clusters) cluster)) (remhash node clusters)))) (defun show-sameas-clusters (db) (maphash #'(lambda (key value) (format t "~&~S: ~S" key value)) (db-sameas-clusters db))) (defmethod db-node-duplicates ((db deductive-closure-db-mixin) (node node)) (gethash node (db-sameas-clusters db))) (defmethod db-nodes-same-p ((db deductive-closure-db-mixin) (node1 node) (node2 node)) (member node2 (db-node-duplicates db node1))) (defmethod db-remove-node-duplicates ((db deductive-closure-db-mixin) nodes) ;; this needs to be optimized for long lists (how long? what's the threshold?) (let ((to-be-removed nil)) (delete-if #'(lambda (node) (or (member node to-be-removed) (dolist (dup (db-node-duplicates db node)) (push dup to-be-removed)))) (sort (copy-list nodes) #'(lambda (node1 node2) (declare (ignore node2)) (node-uri node1)))))) (defmethod db-identified-node ((db deductive-closure-db-mixin) (node node) &optional (error-if-unidentified-p nil)) (let* ((nodes (db-node-duplicates db node)) (candidate (if nodes (or (find-if #'node-uri nodes) node) node))) (when (and error-if-unidentified-p (null (node-uri candidate))) (cerror "Ignore" 'unidentifed-node :thing node)) candidate)) (defmethod db-identified-node ((db deductive-closure-db-mixin) (literal literal) &optional error-if-unidentified-p) (declare (ignore error-if-unidentified-p)) literal) ;;; -------------------------------------------------------------------------------------- ;;; ;;; PATH REWRITING ;;; (defvar *rewritten-paths* (make-hash-table :test #'equal)) (defvar *known-rewrite-rules* (make-hash-table :test #'eq)) (defun rewrite-path (path db) (if (or (typep path 'path) (not (db-closure-p db))) path (or (gethash path *rewritten-paths*) (let ((p (rewrite-path-for-subproperties (rewrite-path-for-types (if (db-use-rule-engine-p db) (rewrite-path-using-rule-engine path db) path) db) db))) (setf (gethash path *rewritten-paths*) (make-instance 'path :db db :expression p)))))) (defmacro define-rewrite-function (name (expr db) &body body) (let ((op (gentemp)) (var (gentemp))) `(defun ,name (,expr ,db) (typecase ,expr (node ,@body) (cons (let ((,op (first ,expr))) (case ,op ((:value :norewrite) ,expr) (t (cons ,op (mapcar #'(lambda (,var) (,name ,var ,db)) (rest ,expr))))))) (t ,expr))))) (define-rewrite-function rewrite-path-for-types (path db) (case path (!rdf:type '(:or (:seq !rdf:type (:rep* !rdfs:subClassOf)) (:seq :predicate-of-object !rdfs:range (:rep* !rdfs:subClassOf)) (:seq :predicate-of-subject !rdfs:domain (:rep* !rdfs:subClassOf)) (:value !rdfs:Resource))) (!rdfs:subClassOf ;; '(:or (:rep* !rdfs:subClassOf) (:value !rdfs:Resource)) '(:or (:seq+ (:rep+ !rdfs:subClassOf) (:value !rdfs:Resource)) :self)) (!rdfs:subPropertyOf '(:rep* !rdfs:subPropertyOf)) (t path))) (define-rewrite-function rewrite-path-for-subproperties (path db) (let ((props (db-get-values db path (subprop-query db)))) (if (rest props) `(:or ,@props) (first props)))) (defvar *rule-rewrite-change-p*) (define-rewrite-function rewrite-path-using-rules (path db) (let ((new-path (gethash path *known-rewrite-rules*))) (cond (new-path (setf *rule-rewrite-change-p* t) new-path) (t path)))) (defun rewrite-path-using-rule-engine (path db) ;; Keep rewriting until nothing changes... (loop (let ((*rule-rewrite-change-p* nil)) (setf path (rewrite-path-using-rules path db)) (unless *rule-rewrite-change-p* (return-from rewrite-path-using-rule-engine path))))) (defun subprop-query (db) (or *subprop-query* (progn (clrhash *rewritten-paths*) (setf *subprop-query* (make-instance 'path :db db :expression `(:rep* (:inv (:or ,@*subprops-of-subprop*)))))))) (defun db-collect-rewrite-rules (db) (clrhash *known-rewrite-rules*) (dolist (rule (db-get-values db !wilbur:Rule '(:inv !rdf:type))) (setf (gethash rule *known-rewrite-rules*) (cond ((db-node-type-p db rule !wilbur:PathRewriteRule) (read-from-string (literal-string (first (db-get-values db rule !wilbur:path))))) ((db-node-type-p db rule !wilbur:AccessDaemon) (make-access-daemon rule)))))) (defun db-clear-reasoner-cache (db) ;;(when (typep db 'pre-rewrite-cached-access-mixin) ;; (db-clear-cache db)) (clrhash (db-path-fsas db)) (clrhash *rewritten-paths*) (setf *subprop-query* nil) (db-update-ifps db)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CONVENIENCE CLASS EDB ;;; (defclass edb (deductive-closure-db-mixin interned-literal-indexed-db) ()) ;;; -------------------------------------------------------------------------------------- ;;; ;;; TYPE HIERARCHY ANALYSIS ;;; (defmethod db-node-type-p ((db deductive-closure-db-mixin) (node node) (type node)) (frames-related-p node !rdf:type type *db* nil)) (defmethod db-node-subtype-p ((db deductive-closure-db-mixin) (type node) (supertype node)) (frames-related-p type !rdfs:subClassOf supertype db nil)) (defmethod db-node-types ((db db) (node node)) (sort-types (db-get-values db node !rdf:type) db)) (defun sort-types (types db &key (key #'identity)) (sort types #'(lambda (c1 c2) (db-node-subtype-p db c1 c2)) :key key)) (defmethod db-node-types-expanded ((db db) (node node)) (labels ((partition (type other-types) (let* ((supers (sort-types (db-get-values db type '(:rep* !rdfs:subClassOf)) db)) (others (remove-if #'(lambda (type) (member type supers)) other-types))) (if others (cons supers (partition (first others) (rest others))) (list supers))))) (let ((types (db-node-types db node))) (when types (partition (first types) (rest types)))))) (defmethod db-node-types-expanded ((db deductive-closure-db-mixin) (node node)) (labels ((partition (type other-types) (let* ((supers (sort-types (db-get-values db type !rdfs:subClassOf) db)) (others (remove-if #'(lambda (type) (member type supers)) other-types))) (if others (cons supers (partition (first others) (rest others))) (list supers))))) (let ((types (db-node-types db node))) (when types (partition (first types) (rest types)))))) (defmethod db-node-properties ((db deductive-closure-db-mixin) (node node)) (let ((triples (make-triple-collection (db-query db node nil nil))) (sameas (gethash node (db-sameas-clusters db)))) (flet ((add-queried-triples (prop) (dolist (value (db-get-values db node prop)) (triple-collection-add triples (db-make-triple db node prop value))))) (add-queried-triples !rdf:type) (add-queried-triples !rdfs:subClassOf) (add-queried-triples !rdfs:subPropertyOf) (dolist (n sameas) (unless (eq n node) (triple-collection-add triples (db-make-triple db node !owl:sameAs n)))) (triple-collection-triples triples)))) (defmethod db-node-properties-partitioned ((db deductive-closure-db-mixin) (node node) &aux (hintsp nil)) (let ((types (db-node-types-expanded db node)) (triples (make-triple-collection)) (sameas (pushnew node (gethash node (db-sameas-clusters *db*))))) (labels ((add-queried-properties (n property exclude) (dolist (value (db-get-values db n property)) (unless (find value exclude) (triple-collection-add triples (triple node property value))))) (collect-properties (n) (dolist (triple (db-query db n nil nil)) (unless (eq (triple-predicate triple) !owl:sameAs) (triple-collection-add triples triple))) (add-queried-properties n !rdf:type '(!rdfs:Resource)) (add-queried-properties n !rdfs:subClassOf sameas) (add-queried-properties n !rdfs:subPropertyOf sameas)) (triple~ (a b) (and (eq (triple-predicate a) (triple-predicate b)) (eq (triple-object a) (triple-object b))))) (dolist (n sameas) (collect-properties n)) (let ((properties (remove-duplicates (triple-collection-triples triples) :test #'triple~))) (flet ((construct-property-sets (some-types) (let ((props nil) (type-props nil) (used-types nil)) (dolist (property properties) (let ((p (triple-predicate property)) (o (triple-object property))) (cond ((and (eq p !rdf:type) (find o some-types)) (push property type-props) (removef some-types o) (push o used-types) (removef properties property)) ((and (not (eq (first (db-get-values db p !rdfs:domain)) !rdfs:Resource)) (some #'(lambda (type) (unless (eq type !rdfs:Resource) (frames-related-p p !rdfs:domain type db nil))) (append used-types some-types))) (push property props) (removef properties property))))) (if hintsp `(:types ,(sort-types (mapcar #'triple-object type-props) db) :properties ,props) (append (sort-types type-props db :key #'triple-object) props))))) (append (mapcar #'construct-property-sets types) (list (if hintsp `(:types (!rdfs:Resource) :properties ,properties) (cons (db-make-triple db node !rdf:type !rdfs:Resource) properties))))))))) (defmethod db-node-properties :around ((db deductive-closure-db-mixin) (node node)) (let ((nodes (gethash node (db-sameas-clusters db)))) (if nodes (reduce #'(lambda (x y) (union x y :test #'triple=)) (mapcar #'(lambda (n) (call-next-method db n)) nodes)) (call-next-method)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; INVERSE FUNCTIONAL PROPERTIES ;;; ;;; This is a hack, and will go away at some point when we figure out a better way to ;;; do inverse functional properties. In the meantime, I am sorry. ;;; (defmethod db-update-single-ifp ((db deductive-closure-db-mixin) (ifp node) &optional (obj-subj-map (make-hash-table :test #'eq))) (let ((additions (db-ifp-additions db))) (dolist (triple (db-query db nil ifp nil)) (push (triple-subject triple) (gethash (triple-object triple) obj-subj-map))) (maphash #'(lambda (value nodes) (declare (ignore value)) (when (rest nodes) (let ((root (first nodes))) (dolist (node (rest nodes)) (let ((triple (db-make-triple db root !owl:sameAs node))) (db-add-triple db triple) (triple-collection-add additions triple)))))) obj-subj-map))) (defmethod db-update-ifps ((db deductive-closure-db-mixin)) (dolist (triple (triple-collection-triples (db-ifp-additions db))) (let ((triple (db-find-triple db triple))) (unless (triple-sources triple) (db-del-triple db triple)))) (triple-collection-clear (db-ifp-additions db)) (let ((obj-subj-map (make-hash-table :test #'eq))) (dolist (ifp (db-get-values db !owl:InverseFunctionalProperty '(:inv !rdf:type))) (clrhash obj-subj-map) (db-update-single-ifp db ifp obj-subj-map))))
21,413
Common Lisp
.lisp
486
39.6893
90
0.653059
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
4d56f2a505154f8ec05b73dadda2e095aff509e6a37ad64a9047643bcb7a7f67
6,374
[ -1 ]
6,375
wilbur-ql.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/wilbur-ql.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; wilbur-ql.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: This file implements the Wilbur Query Language (WilburQL) which essentially ;;; is a simple API on top of the RDF data manager (in "core-data.lisp"). Much of the ;;; functionality is modeled after the BEEF frame system: ;;; ;;; Ora Lassila: "BEEF Reference Manual - A Programmer's Guide to the BEEF Frame ;;; System", Second Version, Report HTKK-TKO-C46, Otaniemi (Finland), Department of ;;; Computer Science, Helsinki University of Technology, 1991 ;;; ;;; Juha Hynynen and Ora Lassila: "On the Use of Object-Oriented Paradigm in a ;;; Distributed Problem Solver", AI Communications 2(3): 142-151 (1989) ;;; ;;; A description of the WilburQL itself can be found in the following paper: ;;; ;;; Ora Lassila: "Taking the RDF Model Theory Out for a Spin", in: Ian Horrocks & ;;; James Hendler (eds.): "The Semantic Web - ISWC 2002", Lecture Notes in Computer ;;; Science 2342, pp.307-317, Springer Verlag, 2002 ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS PATH ;;; ;;; The path grammar implementation is derived from BEEF frame system. ;;; (defclass path () ((expression :accessor path-expression) (db :initarg :db :reader path-db) (fsa :accessor path-fsa))) (defmethod print-object ((path path) stream) (print-unreadable-object (path stream :type t) (prin1 (path-expression path) stream))) (defmethod initialize-instance :after ((self path) &rest args &key expression) (declare (ignore args)) (multiple-value-bind (fsa expression) (db-make-path-fsa (path-db self) expression) (setf (path-fsa self) fsa (path-expression self) expression))) (defmethod invert ((path path)) (make-instance 'path :db (path-db path) :expression (invert-path (path-expression path)))) (defstruct (path-node (:conc-name pn-) (:copier nil) (:constructor new-pn (link))) (link nil :read-only t) ; slot name i.e. link in the path (follows nil)) ; possible followers of this node (defstruct (path-fsa-state (:conc-name ps-) (:copier nil) (:constructor new-ps (positions))) (positions nil :read-only t) ; positions defining this state (transitions nil)) ; transitions from this state (defstruct (path-fsa-transition (:conc-name pt-) (:copier nil) (:constructor new-pt (input index))) (input nil :read-only t) ; input symbol (= predicate name) (index nil :read-only t)) ; index of the target state (defmethod print-object ((self path-fsa-transition) stream) (print-unreadable-object (self stream :type t) (let ((input (pt-input self))) (typecase input (inverse-slot (format stream ":inv ~S->~D" (inverse-slot-node input) (pt-index self))) (node (format stream "~S->~D" input (pt-index self))) (default-value (format stream "(:value ~S)->~D" (default-value-value input) (pt-index self))) (t (format stream "~S->~D" input (pt-index self))))))) (defun canonical-path (expr) (db-canonical-path *db* expr)) (defmethod db-canonical-path-op ((db db) op &rest args) (declare (ignore op args)) nil) (defmethod db-canonical-path ((db db) expr) (labels ((canonical (expr) (etypecase expr (cons (destructuring-bind (op arg &rest args) expr (if arg (case op ((:rep* :rep+ :inv :value :filter :restrict :lang :test :daemon :norewrite) (assert (null args) nil "Extra operands for ~S in ~S" op expr) (case op (:rep+ (canonical `(:seq ,arg (:rep* ,arg)))) (:rep* `(,op ,(canonical arg))) (:inv (canonical (invert-path arg))) (:value (make-default-value arg)) (:filter (make-instance 'path-uri-filter :key arg)) (:restrict (make-instance 'path-node-restriction :key arg)) (:lang (make-instance 'path-lang-filter :key arg)) (:test (make-instance 'functional-restriction :key arg)) (:daemon (make-access-daemon arg)) (:norewrite (canonical arg)))) ((:seq :seq+ :or) (if args (let ((arg (canonical arg))) (unless (or (atom arg) (not (eq op (first arg)))) (psetq arg (second arg) args (append (cddr arg) args))) (cond ((rest args) (canonical `(,op ,arg (,op ,@args)))) ((eq op :or) `(,op ,(canonical (first args)) ,(canonical arg))) (t `(,op ,(canonical arg) ,(canonical (first args)))))) (canonical arg))) (t (or (apply #'db-canonical-path-op db op (mapcar #'canonical (cons arg args))) (error "Unknown query operator ~S" op)))) (error 'query-syntax-error :thing op)))) (string (node expr)) (keyword (assert (member expr '(:members :any :predicate-of-object :predicate-of-subject :self))) expr) ((or node inverse-slot default-value path-filter access-daemon) expr) (symbol (error "Symbol ~S not allowed as a path expression" expr))))) (canonical expr))) (defun invert-path (expr &optional (canonicalizep nil)) (labels ((remove-defaults (x) (remove-if #'(lambda (y) (typecase y (default-value t) (cons (eq (car y) :value)))) x)) (i (p) (etypecase p (cons (ecase (first p) (:or `(,(first p) ,@(mapcar #'i (reverse (remove-defaults (rest p)))))) ((:seq :seq+) `(,(first p) ,@(mapcar #'i (reverse (remove-defaults (rest p)))))) ((:rep* :rep+) ; REP+ added, is this correct? `(,(first p) ,(i (second p)))) (:inv (second p)))) (node (make-inverse-slot p)) (inverse-slot (inverse-slot-node p)) (keyword (if (eq p :self) :self (make-inverse-slot p))) (default-value (error 'cannot-invert-default-value :thing (default-value-value p))) (path-filter p)))) (i (if canonicalizep (canonical-path expr) expr)))) (defun make-path-fsa (expr) (warn "Use of MAKE-PATH-FSA is deprecated. Use DB-MAKE-PATH-FSA instead.") (db-make-path-fsa *db* expr)) (defmethod db-make-path-fsa ((db db) expr &aux e) (when expr (let ((path-fsas (db-path-fsas db))) (values (or (gethash expr path-fsas) (setf e (db-canonical-path db expr) (gethash expr path-fsas) (db-construct-new-path-fsa db e))) e)))) (defvar *fsa-states/temporary* (make-array 8 :adjustable t :fill-pointer 0)) (defun construct-new-path-fsa (expr) (declare (ignore expr)) (error "Use of CONSTRUCT-NEW-PATH-FSA is deprecated.")) (defmethod db-construct-new-path-fsa ((db db) expr &aux inputs) (labels ((decorate (x) (if (atom x) (let ((node (list (new-pn x)))) (pushnew x inputs) (values node node nil)) (case (pop x) (:seq (multiple-value-bind (first1 last1 null1) (decorate (first x)) (multiple-value-bind (first2 last2 null2) (decorate (second x)) (add-followers last1 first2) (values (if null1 (union first1 first2) first1) (if null2 (union last1 last2) last2) (and null1 null2))))) (:seq+ (multiple-value-bind (first1 last1 null1) (decorate (first x)) (multiple-value-bind (first2 last2) (decorate (second x)) (add-followers last1 first2) (values (if null1 (union first1 first2) first1) (union last1 last2) null1)))) (:or (multiple-value-bind (first1 last1 null1) (decorate (first x)) (multiple-value-bind (first2 last2 null2) (decorate (second x)) (values (union first1 first2) (union last1 last2) (or null1 null2))))) (:rep* (multiple-value-bind (first last) (decorate (first x)) (add-followers last first) (values first last t)))))) (add-followers (from to) (dolist (i from) (unionf (pn-follows i) to))) (add-state (positions) (or (position positions *fsa-states/temporary* :key #'ps-positions :test #'(lambda (x y) (and (subsetp x y) (subsetp y x)))) (vector-push-extend (new-ps positions) *fsa-states/temporary*)))) (setf (fill-pointer *fsa-states/temporary*) 0) (add-state (decorate `(:seq ,expr nil))) (do ((i 0 (1+ i))) ((= i (length *fsa-states/temporary*))) (let ((state (elt *fsa-states/temporary* i))) (dolist (input inputs) (let ((positions nil)) (dolist (p (ps-positions state)) (when (eq (pn-link p) input) (unionf positions (pn-follows p)))) (when positions (let ((index (add-state positions))) (when input (push (new-pt input index) (ps-transitions state))))))))) (map 'simple-vector #'(lambda (s) (cons (and (member nil (ps-positions s) :key #'pn-link) t) (reverse (ps-transitions s)))) *fsa-states/temporary*))) (defmacro with-hash-pool ((var pool) &body body) `(let* ((,pool ,pool) (,var (clrhash (or (pop ,pool) (make-hash-table :test #'eq))))) (unwind-protect (progn ,@body) (clrhash ,var)))) (defvar *walk-states/temporary* (list (make-hash-table :test #'eq) (make-hash-table :test #'eq) (make-hash-table :test #'eq))) (defvar *collect-nodes/temporary* (list (make-hash-table :test #'eq) (make-hash-table :test #'eq) (make-hash-table :test #'eq))) (defun walk-using-fsa (root fsa action db) (with-hash-pool (states *walk-states/temporary*) (labels ((walk (f i) (unless (member i (gethash f states) :test #'=) (push i (gethash f states)) (let ((transitions (svref fsa i))) (or (when (first transitions) (funcall action f)) (when (or (typep f 'node) (typep f 'literal) (null f)) ;;(when (typep f 'node) (dolist (link (rest transitions)) (dolist (v (db-get-values db f (pt-input link))) (let ((values (walk v (pt-index link)))) (when values (return-from walk-using-fsa values))))))))))) (declare (dynamic-extent #'walk)) (when fsa (walk root 0))))) (defun walk-using-fsa-remembering-path (root fsa action db) (with-hash-pool (states *walk-states/temporary*) (labels ((walk (f i pn pp) ;; (format t "~&WALK: ~S ~S ~S ~S ~S" f i pn pp (gethash f states)) (unless (member i (gethash f states) :test #'=) (push i (gethash f states)) ;; (format t "~&PUSH: ~S ~S" f i) (let ((transitions (svref fsa i)) (pn (cons f pn))) (or (when (first transitions) (funcall action f pn pp)) (when (typep f 'node) (dolist (link (rest transitions)) (multiple-value-bind (values predicates) (db-get-values db f (pt-input link)) (assert (= (length values) (length predicates))) (loop for v in values for p in predicates do (progn ;; (format t "~&LOOP: ~S ~S" v p) (let ((values (walk v (pt-index link) pn (cons p pp)))) (when values (return-from walk-using-fsa-remembering-path values))))))))))))) (declare (dynamic-extent #'walk)) (when fsa (walk root 0 nil nil))))) (defun collect-using-fsa (root fsa db) (with-hash-pool (node-hash *collect-nodes/temporary*) (let ((nodes nil)) (flet ((collect-results (n) (unless (gethash n node-hash) (setf (gethash n node-hash) t) (push n nodes) nil))) (declare (dynamic-extent #'collect-results)) (walk-using-fsa root fsa #'collect-results db) (nreverse nodes))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; STRUCTURE CLASS INVERSE-SLOT ;;; STRUCTURE CLASS DEFAULT-VALUE ;;; (defvar *inverse-slots* (make-hash-table :test #'eq)) (defun make-inverse-slot (node) (or (gethash node *inverse-slots*) (setf (gethash node *inverse-slots*) (%make-inverse-slot node)))) (defstruct (inverse-slot (:copier nil) (:constructor %make-inverse-slot (node))) node) (defmethod print-object ((self inverse-slot) stream) (print-unreadable-object (self stream :type t) (let ((node (inverse-slot-node self))) (if (typep node 'node) (multiple-value-bind (name shortp) (find-short-name *nodes* (node-uri (inverse-slot-node self))) (format stream (if shortp "!~A" "!~S") name)) (prin1 node stream))))) (defstruct (default-value (:copier nil) (:constructor make-default-value (value))) value) (defmethod print-object ((self default-value) stream) (print-unreadable-object (self stream :type t) (prin1 (default-value-value self) stream))) (defstruct (access-daemon (:copier nil) (:constructor make-access-daemon (property))) property) (defmethod print-object ((self access-daemon) stream) (print-unreadable-object (self stream :type t) (prin1 (access-daemon-property self) stream))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS PATH-FILTER ;;; CLASS PATH-URI-FILTER ;;; CLASS FUNCTIONAL-RESTRICTION ;;; (defclass path-filter () ((key :initarg :key :reader path-filter-key))) (defmethod print-object ((self path-filter) stream) (print-unreadable-object (self stream :type t) (prin1 (path-filter-key self) stream))) (defgeneric path-filter-match-p (filter node)) (defmethod path-filter-match-p ((filter path-filter) node) (declare (ignore node)) nil) (defclass path-uri-filter (path-filter) ()) (defmethod path-filter-match-p ((filter path-uri-filter) (node node)) (name-contains-pattern-p (node-uri node) (path-filter-key filter))) (defmethod path-filter-match-p ((filter path-uri-filter) (literal literal)) (name-contains-pattern-p (literal-string literal) (path-filter-key filter))) (defclass path-lang-filter (path-filter) ()) (defmethod path-filter-match-p ((filter path-lang-filter) (literal literal)) (let ((key (path-filter-key filter)) (lang (literal-language literal))) (cond ((null lang) (null key)) (key (let ((n (length key))) (and (<= n (length lang)) (string= key lang :end2 n))))))) (defclass path-node-restriction (path-filter) ()) (defmethod path-filter-match-p ((filter path-node-restriction) (node node)) (eq node (path-filter-key filter))) (defmethod path-filter-match-p ((filter path-node-restriction) (node null)) t) (defmethod path-filter-match-p ((filter path-node-restriction) (literal literal)) nil) (defclass functional-restriction (path-filter) ()) (defmethod path-filter-match-p ((filter functional-restriction) node) (funcall (path-filter-key filter) node)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS NODE (FRAME SYSTEM API ADDITIONS) ;;; ;; It is difficult to use EQL-specializers here, since the reasoner may rewrite path ;; expressions and thus change the applicable methods list on the fly... (defmethod db-get-values ((db db) (frame literal) path) (if (eq path !rdf:type) (let ((datatype (literal-datatype frame))) (if datatype (list datatype !rdf:XMLLiteral !rdfs:Resource) (list !rdfs:Literal !rdfs:Resource))) (call-next-method))) (defun collect-inverse-members (node db) (mapcan #'(lambda (u) (mapcar #'triple-subject (db-query db nil u node))) (coerce *index-uris* 'list))) (defun db-extract (db frame path triples key) (declare (ignore db frame path)) (when triples (mapcar key triples))) (defmethod db-get-values ((db db) frame path &aux (f (if (eq frame :all) nil frame))) ;; Here's where Wilbur spends its time... (etypecase path (node (mapcar #'triple-object (db-query db f path nil))) (inverse-slot (let ((slot (inverse-slot-node path))) (etypecase slot (node (mapcar #'triple-subject (db-query db nil slot f))) (symbol (ecase slot (:predicate-of-object (mapcar #'triple-object (db-query db nil f nil))) (:predicate-of-subject (mapcar #'triple-subject (db-query db nil f nil))) (:members (collect-inverse-members f db)) (:any (mapcar #'triple-subject (db-query db nil nil f)))))))) (path (collect-using-fsa f (path-fsa path) db)) (symbol (ecase path (:predicate-of-object (mapcar #'triple-predicate (remove-duplicates (db-query db nil nil f) :key #'triple-predicate))) (:predicate-of-subject (mapcar #'triple-predicate (remove-duplicates (db-query db f nil nil) :key #'triple-predicate))) (:self (list f)) (:members (loop for i from 1 for v = (first (db-get-values db f (node (index-uri i db)))) while v collect v)) (:any (mapcar #'triple-object (db-query db f nil nil))))) (default-value (list (default-value-value path))) (cons (collect-using-fsa f (db-make-path-fsa db path) db)) (path-filter (and (path-filter-match-p path f) (list (or f (path-filter-key path))))) (access-daemon (db-compute-daemon-values db f (access-daemon-property path))))) (defmethod db-compute-daemon-values ((db db) frame slot) (case slot (!wilbur:timeStamp (list (db-make-literal db (iso8601-date-string (get-universal-time)) :datatype !xsd:dateTime))) (!wilbur:tripleCount (when (find frame (db-sources db)) (list (db-make-literal db (prin1-to-string (length (db-query-by-source db frame))) :datatype !xsd:integer)))))) (defmethod frames-related-p ((source node) path (sink node) (db db) action) (%frames-related-p source path sink db action)) (defun %frames-related-p (source path sink db action) ;; this does not do any reasoning! (typecase path (node (not (null (db-query db source path sink)))) (inverse-slot (frames-related-p sink (inverse-slot-node path) source db action)) (cons (frames-related-p source (make-instance 'path :db db :expression path) sink db action)) (path (flet ((is-sink-p (node) (when action (funcall action node)) (eq node sink))) (declare (dynamic-extent #'is-sink-p)) (walk-using-fsa source (path-fsa path) #'is-sink-p db))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS RESUMABLE-QUERY ;;; (defclass resumable-query () ((results :initarg :results :initform nil :accessor resumable-query-results))) (defmethod db-get-values-resumable ((db db) frame path &key (resumable-query (db-get-values db frame path)) (count most-positive-fixnum)) (let* ((results (resumable-query-results resumable-query)) (n (length results))) (cond ((> count n) (let ((head (subseq results 0 count))) (setf (resumable-query-results resumable-query) (subseq results count)) (values head resumable-query))) (t (setf (resumable-query-results resumable-query) nil) (values results nil)))))
25,047
Common Lisp
.lisp
574
37.057491
90
0.604245
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
a8b1ebdd3ae9de6fdb8ad8718f4eec67e158ff9b97594a749fdb265b7a463b85
6,375
[ -1 ]
6,376
hash-table-2.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/hash-table-2.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; hash-table.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: A portable interface to hash-tables. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; Some Common Lisp implementations clearly have better hash-table implementations ;;; than others. I tend to like the MCL/OpenMCL implementation, and I particularly ;;; dislike the Allegro implementation. In order to allow alternatives to the Common ;;; Lisp standard hash-tables, we have introduced alternative functions here. ;;; ;;; If the feature :wilbur-own-hashtables is present we use the implementation in this ;;; file; this implementation is based on Ingvar Mattson's public domain package ;;; "genhash" (available from http://www.cliki.net/genhash). ;;; ;;; the general philosophy here is the same as in the hash-table encapsulation of the ;;; BEEF frame system (e.g., beef-gethash, etc.). ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defstruct (wilbur-hash-table (:conc-name wht-) (:constructor make-wht (buckets allocated-buckets test))) buckets allocated-buckets (used-buckets 0) (stored-items 0) (test nil :read-only t)) (defmethod print-object ((self wilbur-hash-table) stream) (print-unreadable-object (self stream :type t :identity t) (format stream "~S ~S/~S" (wht-test self) (wht-used-buckets self) (wht-allocated-buckets self)))) (defun expand-hash-table (table) (let* ((new-size (1+ (* 2 (wht-allocated-buckets table)))) (new-buckets (make-array new-size :initial-element nil)) (old-data (wht-buckets table))) (setf (wht-allocated-buckets table) new-size (wht-used-buckets table) 0 (wht-buckets table) new-buckets) (loop for bucket across old-data do (dolist (chunk bucket) (setf (wilbur-gethash (car chunk) table) (cdr chunk)))) table)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; (defun wilbur-make-hash-table (&key test (size 17 #-:wilbur-own-hashtables size-provided-p)) #-:wilbur-own-hashtables (if size-provided-p (make-hash-table :test test :size size) (make-hash-table :test test)) #+:wilbur-own-hashtables (make-wht (make-array size :initial-element nil) size test)) (defun wilbur-gethash (key hash-table &optional default) #-:wilbur-own-hashtables (gethash key hash-table default) #+:wilbur-own-hashtables (let ((bucket (svref (wht-buckets hash-table) (mod (sxhash key) (wht-allocated-buckets hash-table)))) (test (wht-test hash-table))) (dolist (chunk bucket (values default nil)) (when (funcall test (car chunk) key) (return (values (cdr chunk) t)))))) (defun (setf wilbur-gethash) (value key hash-table &optional default) #-:wilbur-own-hashtables (setf (gethash key hash-table default) value) #+:wilbur-own-hashtables (declare (ignore default)) #+:wilbur-own-hashtables (progn (when (= (wht-allocated-buckets hash-table) (wht-used-buckets hash-table)) (expand-hash-table hash-table)) (let* ((buckets (wht-buckets hash-table)) (size (wht-allocated-buckets hash-table)) (bucket-ix (mod (sxhash key) size)) (bucket (svref buckets bucket-ix)) check) (cond ((null (svref buckets bucket-ix)) (setf (svref buckets bucket-ix) (cons (cons key value) bucket)) (incf (wht-used-buckets hash-table)) (incf (wht-stored-items hash-table))) ((setf check (member key bucket :key #'car :test (wht-test hash-table))) (setf (cdr (car check)) value)) (t (setf (svref buckets bucket-ix) (cons (cons key value) bucket)) (incf (wht-stored-items hash-table)))) value))) (defun wilbur-remhash (key hash-table) #-:wilbur-own-hashtables (remhash key hash-table) #+:wilbur-own-hashtables (progn (when (wilbur-gethash key hash-table nil) (let* ((buckets (wht-buckets hash-table)) (bucket-ix (mod (sxhash key) (wht-allocated-buckets hash-table))) (bucket (svref buckets bucket-ix))) (setf (svref buckets bucket-ix) (delete key bucket :test (wht-test hash-table) :key 'car)) (unless (svref buckets bucket-ix) (decf (wht-used-buckets hash-table))) (decf (wht-stored-items hash-table)))) t)) (defun wilbur-clrhash (hash-table) #-:wilbur-own-hashtables (clrhash hash-table) #+:wilbur-own-hashtables (progn (setf (wht-used-buckets hash-table) 0) (loop for ix from 0 below (wht-allocated-buckets hash-table) do (setf (svref (wht-buckets hash-table) ix) nil)) hash-table)) (defun wilbur-hash-table-count (hash-table) #-:wilbur-own-hashtables (hash-table-count hash-table) #+:wilbur-own-hashtables (wht-stored-items hash-table)) (defun wilbur-hash-table-size (hash-table) #-:wilbur-own-hashtables (hash-table-size hash-table) #+:wilbur-own-hashtables (wht-used-buckets hash-table)) (defun wilbur-maphash (function hash-table) #-:wilbur-own-hashtables (maphash function hash-table) #+:wilbur-own-hashtables (let ((buckets (wht-buckets hash-table))) (loop for bucket across buckets do (dolist (chunk bucket) (funcall function (car chunk) (cdr chunk)))))) #+:wilbur-own-hashtables (declaim (inline wilbur-make-hash-table wilbur-gethash (setf wilbur-gethash) wilbur-remhash wilbur-clrhash wilbur-hash-table-count wilbur-hash-table-size wilbur-maphash))
10,281
Common Lisp
.lisp
221
43.728507
90
0.680677
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
a2d21e901ebf925c1ba92a69174bdad17f463ebeb6937354e0858e13e515d2a8
6,376
[ -1 ]
6,377
data-sources.lisp
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/core/data-sources.lisp
;;; -*- package: WILBUR; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; data-sources.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: Implements the interface to various (loadable) data sources. ;;; (in-package "WILBUR") ;;; -------------------------------------------------------------------------------------- ;;; ;;; BASIC DATA SOURCE INTERFACE ;;; (defmethod db-load ((db db) source &rest options &key (error-handling :signal) (merge-results-p (eq error-handling :signal)) (clear-temporary-db-p t) (verbosep *load-verbose*) (appendp nil) &allow-other-keys) ;; returns: SOURCE-DESC, # TRIPLES, ERRORS (declare (dynamic-extent options)) (remf options :merge-results-p) (when verbosep (format *error-output* "~&Loading RDF: ~S..." (source-locator source)) (force-output *error-output*)) (multiple-value-bind (source-desc temporary-db errors) (apply #'db-load-using-source db source options) (when (and source-desc temporary-db merge-results-p) (unless appendp (db-del-source db (source-desc-url source-desc))) (db-merge db temporary-db)) (multiple-value-prog1 (values source-desc (if (and temporary-db clear-temporary-db-p) (prog1 (length (db-triples temporary-db)) (unless (eq db temporary-db) (db-clear temporary-db))) temporary-db) errors) (when source-desc (setf (source-desc-load-annotations source-desc) errors)) (when verbosep (format *error-output* "~:[done~;failed~].~%" errors))))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SOURCE-DESC ;;; (defclass source-desc () ((url :initarg :url :initform nil :reader source-desc-url) (loaded-from :initform nil :accessor source-desc-loaded-from :initarg :locator :reader source-locator) (load-time :initform nil :accessor source-desc-load-time) (load-annotations :initform nil :accessor source-desc-load-annotations) (prefix :initarg :prefix :initform nil :accessor source-desc-prefix))) (defmethod print-object ((self source-desc) stream) (print-unreadable-object (self stream :type t :identity t) (prin1 (source-desc-url self) stream))) (defmethod source-locator :around ((self source-desc)) (or (call-next-method) (source-desc-url self))) (defmethod db-find-source-desc ((db db) (url string) &optional (createp t)) (db-find-source-desc db (make-url url) createp)) (defmethod db-find-source-desc ((db db) (url url) &optional (createp t)) (let ((sources (db-source-descs db)) (url-node (node (url-string url)))) (or (find url-node sources :key #'source-desc-url) (find url-node sources :key #'source-desc-loaded-from) (and createp (first (push (make-instance 'source-desc :url url-node) (db-source-descs db))))))) (defmethod db-find-source-desc ((db db) (url node) &optional (createp t)) (db-find-source-desc db (node-uri url) createp)) (defmethod db-source-real-url ((db db) (source node)) (let ((desc (db-find-source-desc db source nil))) (and desc (source-desc-loaded-from desc)))) (defmethod db-source-loaded-p ((db db) source) (declare (ignore source)) nil) ;;; -------------------------------------------------------------------------------------- ;;; ;;; DB-LOAD-USING-SOURCE AND FRIENDS ;;; (defmethod db-load-using-source ((db db) (source string) &rest options) (declare (dynamic-extent options)) (apply #'db-load-using-source db (db-find-source-desc db source) options)) (defmethod db-load-using-source ((db db) (source url) &rest options) (declare (dynamic-extent options)) (apply #'db-load-using-source db (db-find-source-desc db source) options)) (defmethod db-load-using-source ((db db) source ; was: source-desc &rest options &key (locator nil locatorp) (error-handling :signal) &allow-other-keys) ;; returns: SOURCE-DESC, TEMPORARY DB, ERRORS (declare (dynamic-extent options)) (assert (typep source 'source-desc)) (unless (db-find-source-desc db (source-desc-url source) nil) (push source (db-source-descs db))) (let ((errors nil)) ;; This mimics the possible expansion of WITH-OPEN-FILE (multiple-value-bind (temporary-db source-node) (handler-case (let ((abortp t)) (multiple-value-bind (stream true-url) (source-open-stream source) (remf options :error-handling) (unwind-protect (multiple-value-prog1 (apply #'source-fill-db source nil stream (if locatorp locator (url-string true-url)) options) (setf abortp nil)) (source-close-stream source stream abortp)))) (error (e) (ecase error-handling (:signal (cerror "Keep going" e)) (:collect (push e errors) (continue e)) (:collect-first (push e errors) nil)))) (when (source-desc-prefix source) (add-namespace (source-desc-prefix source) (node-uri (if (source-desc-loaded-from source) (source-desc-url source) source-node)))) (unless errors (setf (source-desc-load-time source) (get-universal-time) (source-desc-loaded-from source) source-node)) (values source temporary-db errors)))) (defmethod source-fill-db (source db stream locator &rest options) (declare (ignore source db)) (apply #'parse-db-from-stream stream locator options)) (defmethod source-close-stream (source stream &optional abortp) (declare (ignore source)) (close stream :abort abortp)) (defmethod source-locator ((source string)) ; assuming it is a URL source) (defmethod source-locator ((source url)) (url-string source)) (defmethod source-open-stream ((source source-desc)) (source-open-stream (node-uri (or (source-desc-loaded-from source) (source-desc-url source))))) (defmethod source-open-stream ((source string)) (source-open-stream (make-url source))) (defmethod source-open-stream ((source file-url)) (values (open (url-path source)) source)) (defmethod source-open-stream ((source http-url)) (multiple-value-bind (response true-url) (http-request source :get) (values (http-body response) (or true-url source)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS SOURCE-WITH-MODIFICATION ;;; (defclass source-with-modification () ((original-source :accessor source-original-source) (original-stream :initform nil :accessor source-original-stream))) (defmethod initialize-instance :after ((self source-with-modification) &rest options &key original-source &allow-other-keys) (declare (ignore options)) (setf (source-original-source self) (if (stringp original-source) (make-url original-source) original-source))) (defgeneric source-modification (source original-stream)) (defmethod source-locator ((source source-with-modification)) (source-locator (source-original-source source))) (defmethod source-open-stream ((source source-with-modification)) (source-modification source (setf (source-original-stream source) (source-open-stream (source-original-source source))))) (defmethod source-close-stream :after ((source source-with-modification) stream &optional abortp) (declare (ignore stream)) (source-close-stream (source-original-source source) (shiftf (source-original-stream source) nil) abortp)) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS COMPUTED-SOURCE ;;; (defclass computed-source () ()) (defmethod db-load-using-source ((db db) (source computed-source) &rest options &key (locator (source-locator source)) &allow-other-keys) (multiple-value-bind (source-desc temp-db errors) (apply #'source-fill-db source db nil locator options) (setf (source-desc-load-time source-desc) (get-universal-time) (source-desc-loaded-from source-desc) (source-desc-url source-desc)) (values source-desc temp-db errors))) (defmethod source-make-temporary-db ((source computed-source) (db db)) nil) ;;; -------------------------------------------------------------------------------------- ;;; ;;; CLASS STRING-SOURCE ;;; (defclass string-source (computed-source) ((locator :initarg :locator :initform nil :reader source-locator) (string :initarg :string :initform nil :reader source-string))) (defmethod source-fill-db ((source string-source) db stream locator &rest options) (declare (ignore stream)) (multiple-value-bind (temporary-db source-node) (with-input-from-string (stream (source-string source)) (apply #'parse-db-from-stream stream locator options)) (values (db-find-source-desc db (make-url (node-uri source-node))) temporary-db nil)))
13,712
Common Lisp
.lisp
310
40.406452
90
0.664271
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
8b55efddded97b57eb503fb4a691591a4227b3fde667d53977380122088d9ba7
6,377
[ -1 ]
6,379
wilbur.asd
lambdamikel_OntoLisp/ontolisp-0.9/wilbur2/src/wilbur.asd
;;; -*- mode: lisp; package: asdf; Syntax: Common-lisp; Base: 10 -*- ;;; ;;;; wilbur.asd ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The Original Software is ;;; WILBUR2: Nokia Semantic Web Toolkit for CLOS ;;; ;;; Copyright (c) 2001-2009 Nokia Corp. and/or its subsidiaries. All Rights Reserved. ;;; Portions Copyright (c) 1989-1992 Ora Lassila. All Rights Reserved. ;;; ;;; Contributor(s): Ora Lassila (mailto:[email protected]) ;;; ;;; This program is licensed under the terms of the GNU Lesser General Public License ;;; as published by the Free Software Foundation, version 2.1 of the License. Note ;;; however that a preamble attached below also applies to this program. ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; Preamble to the Gnu Lesser General Public License ;;; ;;; Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704 ;;; ;;; The concept of the GNU Lesser General Public License version 2.1 ("LGPL") has been ;;; adopted to govern the use and distribution of above-mentioned application. However, ;;; the LGPL uses terminology that is more appropriate for a program written in C than ;;; one written in Lisp. Nevertheless, the LGPL can still be applied to a Lisp program ;;; if certain clarifications are made. This document details those clarifications. ;;; Accordingly, the license for the open-source Lisp applications consists of this ;;; document plus the LGPL. Wherever there is a conflict between this document and the ;;; LGPL, this document takes precedence over the LGPL. ;;; ;;; A "Library" in Lisp is a collection of Lisp functions, data and foreign modules. ;;; The form of the Library can be Lisp source code (for processing by an interpreter) ;;; or object code (usually the result of compilation of source code or built with some ;;; other mechanisms). Foreign modules are object code in a form that can be linked ;;; into a Lisp executable. When we speak of functions we do so in the most general way ;;; to include, in addition, methods and unnamed functions. Lisp "data" is also a ;;; general term that includes the data structures resulting from defining Lisp classes. ;;; A Lisp application may include the same set of Lisp objects as does a Library, but ;;; this does not mean that the application is necessarily a "work based on the Library" ;;; it contains. ;;; ;;; The Library consists of everything in the distribution file set before any ;;; modifications are made to the files. If any of the functions or classes in the ;;; Library are redefined in other files, then those redefinitions ARE considered a ;;; work based on the Library. If additional methods are added to generic functions in ;;; the Library, those additional methods are NOT considered a work based on the ;;; Library. If Library classes are subclassed, these subclasses are NOT considered a ;;; work based on the Library. If the Library is modified to explicitly call other ;;; functions that are neither part of Lisp itself nor an available add-on module to ;;; Lisp, then the functions called by the modified Library ARE considered a work based ;;; on the Library. The goal is to ensure that the Library will compile and run without ;;; getting undefined function errors. ;;; ;;; It is permitted to add proprietary source code to the Library, but it must be done ;;; in a way such that the Library will still run without that proprietary code present. ;;; Section 5 of the LGPL distinguishes between the case of a library being dynamically ;;; linked at runtime and one being statically linked at build time. Section 5 of the ;;; LGPL states that the former results in an executable that is a "work that uses the ;;; Library." Section 5 of the LGPL states that the latter results in one that is a ;;; "derivative of the Library", which is therefore covered by the LGPL. Since Lisp only ;;; offers one choice, which is to link the Library into an executable at build time, we ;;; declare that, for the purpose applying the LGPL to the Library, an executable that ;;; results from linking a "work that uses the Library" with the Library is considered a ;;; "work that uses the Library" and is therefore NOT covered by the LGPL. ;;; ;;; Because of this declaration, section 6 of LGPL is not applicable to the Library. ;;; However, in connection with each distribution of this executable, you must also ;;; deliver, in accordance with the terms and conditions of the LGPL, the source code ;;; of Library (or your derivative thereof) that is incorporated into this executable. ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; ;;; Purpose: System definition(s) for Wilbur2 ;;; ;;; We no longer support either The CMU Defsystem (by Mark Kantrowitz) nor Franz, ;;; Inc.'s defsystem (as shipped with Allegro Common Lisp). Instead, after a lot of ;;; "soul-searching" we -- perhaps a little reluctantly -- have decided to go with ;;; ASDF. It seems to have become the norm. For your convenience, the function ;;; MAKE-WILBUR has been defined (internal in the CL-USER package). ;;; ;;; Wilbur relies on the logical pathname host "wilbur". Here's a sample of how to set ;;; up the pathname translations on a Unix-style system: ;;; ;;; (("base;**;*.*" "/Users/ora/Wilbur/**/*.*") ; this line is the example part ;;; ("nox;*.*" "wilbur:base;src;nox;*.*") ;;; ("core;*.*" "wilbur:base;src;core;*.*") ;;; ("goodies;*.*" "wilbur:base;src;goodies;*.*") ;;; ("libs;**;*.*" "wilbur:base;src;libs;**;*.*") ;;; ("doc;*.*" "wilbur:base;doc;*.*") ;;; ("schemata;*.*" "wilbur:base;schemata;*.*")) ;;; ;;; There's code below that attempts to define the above rules. It is not always easy ;;; to understand how the Common Lisp logical pathname translations work. Please check ;;; the translations (using TRANSLATE-LOGICAL-PATHNAME) before assuming that there are ;;; bugs in Wilbur. :-) ;;; (in-package :asdf) ;;; -------------------------------------------------------------------------------------- ;;; ;;; COMPATIBILITY STUFF ;;; (eval-when (:compile-toplevel :load-toplevel :execute) ;; OK, this is a hack, but here goes anyway... (when (find-package "UFFI") (pushnew :uffi *features*)) ;;#+:sbcl ;;(pushnew :piglet *features*) ) ;;; -------------------------------------------------------------------------------------- ;;; ;;; LOGICAL PATHNAME STUFF ;;; #+:ignore (eval-when (:load-toplevel :compile-toplevel :execute) (let* ((p (probe-file *load-pathname*)) (d (pathname-directory p))) (setf (logical-pathname-translations "wilbur") `(("base;**;*.*" ,(merge-pathnames (make-pathname :name :wild :type :wild :version :wild :directory '(:relative :wild-inferiors)) (make-pathname :name nil :type nil :directory (subseq d 0 (1- (length d))) :defaults p))) ("nox;*.*" "wilbur:base;src;nox;*.*") ("core;*.*" "wilbur:base;src;core;*.*") ("goodies;*.*" "wilbur:base;src;goodies;*.*") ("libs;**;*.*" "wilbur:base;src;libs;**;*.*") ("doc;*.*" "wilbur:base;doc;*.*") ("schemata;*.*" "wilbur:base;schemata;*.*"))) (format t "~&; \"wilbur:base;\" = ~A~%" (translate-logical-pathname "wilbur:base;")))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; ASDF SYSTEM DEFINITION FOR WILBUR2 ;;; #+:ignore ; this is the original definition (defsystem :wilbur :name "wilbur" :author "Ora Lassila mailto:[email protected]" :version "2" :licence "NOKOS 1.0a" :description "WILBUR2: Nokia's Semantic Web Toolkit for CLOS" :components ((:file "packages-1") (:file "platform" :depends-on ("packages")) (:file "useful" :depends-on ("packages")) (:module :nox :components ((:file "core-constants") (:file "xml-util" :depends-on ("core-constants")) (:file "xml-parser" :depends-on ("xml-util"))) :depends-on ("packages" "platform" "useful")) (:module :core :components ((:file "hash-table-2") (:file "data" :depends-on ("hash-table-2")) (:file "literal" :depends-on ("data")) (:file "rdf-parser" :depends-on ("data" "literal")) (:file "http") (:file "data-sources" :depends-on ("data" "http")) (:file "wilbur-ql" :depends-on ("data" "literal")) (:file "reasoner" :depends-on ("wilbur-ql"))) :depends-on (:nox)) (:module :goodies :components ((:file "serializer") #+:realmcl (:file "rdf-inspector" :depends-on ("serializer")) ;; (:file "ivanhoe") (:file "db-additions") (:file "index-and-match")) :depends-on (:nox :core)))) (defsystem :wilbur :name "wilbur" :author "Ora Lassila mailto:[email protected]" :version "2 / Patched by MW for OntoLisp" :licence "NOKOS 1.0a" :description "WILBUR2: Nokia's Semantic Web Toolkit for CLOS" :components ((:file "packages-1") #+:ignore (:file "platform" :depends-on ("packages-1")) #+:ignore (:file "useful" :depends-on ("packages-1")) (:module :nox :components ((:file "core-constants-2") (:file "xml-util-2" :depends-on ("core-constants-2")) (:file "xml-parser-2" :depends-on ("xml-util-2"))) :depends-on ("packages-1" #+:ignore "platform" #+:ignore "useful")) #+:ignore (:module :core :components ((:file "hash-table") (:file "data" :depends-on ("hash-table")) (:file "literal" :depends-on ("data")) (:file "rdf-parser" :depends-on ("data" "literal")) (:file "http") (:file "data-sources" :depends-on ("data" "http")) (:file "wilbur-ql" :depends-on ("data" "literal")) (:file "reasoner" :depends-on ("wilbur-ql"))) :depends-on (:nox)) #+:ignore (:module :goodies :components ((:file "serializer") #+:realmcl (:file "rdf-inspector" :depends-on ("serializer")) ;; (:file "ivanhoe") (:file "db-additions") (:file "index-and-match")) :depends-on (:nox :core)))) ;;; -------------------------------------------------------------------------------------- ;;; ;;; HOPEFULLY USEFUL STUFF ;;; (defun cl-user::build-system (system &key (asd nil) (compilep nil)) ;; OK, notice we have a HANDLER-BIND here... I give up, I cannot figure out ;; how the constant definition process works on SBCL. Perhaps that's the way ;; ANSI CL is supposed to work, but it seems difficult to get it right. I ;; find it easier to just suppress the "constant-redefined-with-new-value" ;; errors :-) (handler-bind (#+:sbcl (sb-ext:defconstant-uneql #'continue)) (when asd (load asd)) (asdf:operate (if compilep 'asdf:compile-op 'asdf:load-op) system))) (defun cl-user::make-wilbur (&key (compilep nil)) (cl-user::build-system :wilbur :compilep compilep)) ;;; comment out if you want triples to be structs instead of class instances (pushnew :wilbur-triples-as-classes *features*) #+:allegro (pushnew :wilbur-own-hashtables *features*)
11,370
Common Lisp
.asd
232
45.396552
90
0.627574
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
132a0890cc3d21a5e8bbce18f983c95ff32d7d62e8b12ae6a46018839312a383
6,379
[ -1 ]
6,403
owllink-test-request.xml
lambdamikel_OntoLisp/ontolisp-0.9/test/owllink-test-request.xml
<!DOCTYPE Ontology [ <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > ]> <RequestMessage xmlns="http://www.owllink.org/owllink#" xml:base="http://www.owllink.org/owllink" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <CreateKB kb="http://owllink.org/test/kb1/"/> <Tell kb="http://owllink.org/test/kb1/"> <owl:SubClassOf> <owl:Class IRI="Woman"/> <owl:Class IRI="Person"/> </owl:SubClassOf> <owl:SubClassOf> <owl:Class IRI="Mother"/> <owl:Class IRI="Woman"/> </owl:SubClassOf> <owl:SubClassOf> <owl:Class IRI="Grandfather"/> <owl:ObjectIntersectionOf> <owl:Class IRI="Man"/> <owl:Class IRI="Parent"/> </owl:ObjectIntersectionOf> </owl:SubClassOf> <owl:SubClassOf> <owl:Class IRI="Father"/> <owl:ObjectIntersectionOf> <owl:Class IRI="Man"/> <owl:Class IRI="Parent"/> </owl:ObjectIntersectionOf> </owl:SubClassOf> <owl:SubClassOf> <owl:Class IRI="ChildlessPerson"/> <owl:ObjectIntersectionOf> <owl:Class IRI="Person"/> <owl:ObjectComplementOf> <owl:ObjectSomeValuesFrom> <owl:ObjectInverseOf> <owl:ObjectProperty IRI="hasParent"/> </owl:ObjectInverseOf> <owl:Class abbreviatedIRI="owl:Thing"/> </owl:ObjectSomeValuesFrom> </owl:ObjectComplementOf> </owl:ObjectIntersectionOf> </owl:SubClassOf> <owl:SubClassOf> <owl:ObjectIntersectionOf> <owl:ObjectOneOf> <owl:NamedIndividual IRI="Mary"/> <owl:NamedIndividual IRI="Bill"/> <owl:NamedIndividual IRI="Meg"/> </owl:ObjectOneOf> <owl:Class IRI="Female"/> </owl:ObjectIntersectionOf> <owl:ObjectIntersectionOf> <owl:Class IRI="Parent"/> <owl:ObjectMaxCardinality cardinality="1"> <owl:ObjectProperty IRI="hasChild"/> </owl:ObjectMaxCardinality> <owl:ObjectAllValuesFrom> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="Female"/> </owl:ObjectAllValuesFrom> </owl:ObjectIntersectionOf> </owl:SubClassOf> <owl:SubClassOf> <owl:Class IRI="Teenager"/> <owl:DataSomeValuesFrom> <owl:DataProperty IRI="hasAge"/> <owl:DatatypeRestriction> <owl:Datatype IRI="&xsd;integer"/> <owl:FacetRestriction facet="&xsd;minExclusive"> <owl:Literal datatypeIRI="&xsd;integer">12</owl:Literal> </owl:FacetRestriction> <owl:FacetRestriction facet="&xsd;maxInclusive"> <owl:Literal datatypeIRI="&xsd;integer">19</owl:Literal> </owl:FacetRestriction> </owl:DatatypeRestriction> </owl:DataSomeValuesFrom> </owl:SubClassOf> <owl:SubClassOf> <owl:Annotation> <owl:AnnotationProperty IRI="&rdfs;comment"/> <owl:Literal datatypeIRI="xsd:string">"States that every man is a person."</owl:Literal> </owl:Annotation> <owl:Class IRI="Man"/> <owl:Class IRI="Person"/> </owl:SubClassOf> <owl:EquivalentClasses> <owl:Class IRI="HappyPerson"/> <owl:ObjectIntersectionOf> <owl:ObjectAllValuesFrom> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="HappyPerson"/> </owl:ObjectAllValuesFrom> <owl:ObjectSomeValuesFrom> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="HappyPerson"/> </owl:ObjectSomeValuesFrom> </owl:ObjectIntersectionOf> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="JohnsChildren"/> <owl:ObjectHasValue> <owl:ObjectProperty IRI="hasParent"/> <owl:NamedIndividual IRI="John"/> </owl:ObjectHasValue> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="NarcisticPerson"/> <owl:ObjectHasSelf> <owl:ObjectProperty IRI="loves"/> </owl:ObjectHasSelf> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Orphan"/> <owl:ObjectAllValuesFrom> <owl:ObjectInverseOf> <owl:ObjectProperty IRI="hasChild"/> </owl:ObjectInverseOf> <owl:Class IRI="Dead"/> </owl:ObjectAllValuesFrom> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="MyBirthdayGuests"/> <owl:ObjectOneOf> <owl:NamedIndividual IRI="Bill"/> <owl:NamedIndividual IRI="John"/> <owl:NamedIndividual IRI="Mary"/> </owl:ObjectOneOf> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Adult"/> <owl:Class abbreviatedIRI="otherOnt:Grownup"/> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Parent"/> <owl:ObjectSomeValuesFrom> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="Person"/> </owl:ObjectSomeValuesFrom> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Parent"/> <owl:ObjectSomeValuesFrom> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="Person"/> </owl:ObjectSomeValuesFrom> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Person"/> <owl:Class IRI="Human"/> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Mother"/> <owl:ObjectIntersectionOf> <owl:Class IRI="Woman"/> <owl:Class IRI="Parent"/> </owl:ObjectIntersectionOf> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="Parent"/> <owl:ObjectUnionOf> <owl:Class IRI="Mother"/> <owl:Class IRI="Father"/> </owl:ObjectUnionOf> </owl:EquivalentClasses> <owl:EquivalentClasses> <owl:Class IRI="ChildlessPerson"/> <owl:ObjectIntersectionOf> <owl:Class IRI="Person"/> <owl:ObjectComplementOf> <owl:Class IRI="Parent"/> </owl:ObjectComplementOf> </owl:ObjectIntersectionOf> </owl:EquivalentClasses> <owl:DisjointClasses> <owl:Class IRI="Woman"/> <owl:Class IRI="Man"/> </owl:DisjointClasses> <owl:DisjointClasses> <owl:Class IRI="Father"/> <owl:Class IRI="Mother"/> <owl:Class IRI="YoungChild"/> </owl:DisjointClasses> <owl:DifferentIndividuals> <owl:NamedIndividual IRI="John"/> <owl:NamedIndividual IRI="Bill"/> </owl:DifferentIndividuals> <owl:SameIndividual> <owl:NamedIndividual IRI="James"/> <owl:NamedIndividual IRI="Jim"/> </owl:SameIndividual> <owl:SameIndividual> <owl:NamedIndividual IRI="John"/> <owl:NamedIndividual abbreviatedIRI="otherOnt:JohnBrown"/> </owl:SameIndividual> <owl:SameIndividual> <owl:NamedIndividual IRI="Mary"/> <owl:NamedIndividual abbreviatedIRI="otherOnt:MaryBrown"/> </owl:SameIndividual> <owl:ObjectPropertyAssertion> <owl:ObjectProperty IRI="hasWife"/> <owl:NamedIndividual IRI="John"/> <owl:NamedIndividual IRI="Mary"/> </owl:ObjectPropertyAssertion> <owl:DataPropertyAssertion> <owl:DataProperty IRI="hasAge"/> <owl:NamedIndividual IRI="John"/> <owl:Literal datatypeIRI="http://www.w3.org/2001/XMLSchema#integer">51</owl:Literal> </owl:DataPropertyAssertion> <owl:ClassAssertion> <owl:Class IRI="Person"/> <owl:NamedIndividual IRI="Mary"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:Class IRI="Woman"/> <owl:NamedIndividual IRI="Mary"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:ObjectIntersectionOf> <owl:Class IRI="Person"/> <owl:ObjectComplementOf> <owl:Class IRI="Parent"/> </owl:ObjectComplementOf> </owl:ObjectIntersectionOf> <owl:NamedIndividual IRI="Jack"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:ObjectMaxCardinality cardinality="4"> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="Parent"/> </owl:ObjectMaxCardinality> <owl:NamedIndividual IRI="John"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:ObjectMinCardinality cardinality="2"> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="Parent"/> </owl:ObjectMinCardinality> <owl:NamedIndividual IRI="John"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:ObjectExactCardinality cardinality="3"> <owl:ObjectProperty IRI="hasChild"/> <owl:Class IRI="Parent"/> </owl:ObjectExactCardinality> <owl:NamedIndividual IRI="John"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:ObjectExactCardinality cardinality="5"> <owl:ObjectProperty IRI="hasChild"/> </owl:ObjectExactCardinality> <owl:NamedIndividual IRI="John"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:Class IRI="Father"/> <owl:NamedIndividual IRI="John"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:Class IRI="Person"/> <owl:NamedIndividual IRI="John"/> </owl:ClassAssertion> <owl:ClassAssertion> <owl:Class IRI="SocialRole"/> <owl:NamedIndividual IRI="Father"/> </owl:ClassAssertion> <owl:NegativeObjectPropertyAssertion> <owl:ObjectProperty IRI="hasWife"/> <owl:NamedIndividual IRI="Bill"/> <owl:NamedIndividual IRI="Mary"/> </owl:NegativeObjectPropertyAssertion> <owl:NegativeDataPropertyAssertion> <owl:DataProperty IRI="hasAge"/> <owl:NamedIndividual IRI="Jack"/> <owl:Literal datatypeIRI="http://www.w3.org/2001/XMLSchema#integer">53</owl:Literal> </owl:NegativeDataPropertyAssertion> <owl:NegativeObjectPropertyAssertion> <owl:ObjectProperty IRI="hasDaughter"/> <owl:NamedIndividual IRI="Bill"/> <owl:NamedIndividual IRI="Susan"/> </owl:NegativeObjectPropertyAssertion> </Tell> </RequestMessage>
9,781
Common Lisp
.l
285
28.091228
95
0.665541
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
8779daf5d5fb46dbf1fe531aa44f78f027a7637bdbc2f3b1f3e179d7db7bbc40
6,403
[ -1 ]
6,404
owllink-test-request.xml.funct
lambdamikel_OntoLisp/ontolisp-0.9/test/owllink-test-request.xml.funct
NamespacePrefix( NIL <http://www.owllink.org/owllink#> ) NamespacePrefix( "xsd" <http://www.w3.org/2001/XMLSchema#> ) NamespacePrefix( "owl" <http://www.w3.org/2002/07/owl#> ) RequestMessage( CreateKB( Attribute( kb <http://owllink.org/test/kb1/> )) Tell( Attribute( kb <http://owllink.org/test/kb1/> ) owl.SubClassOf( Woman Person ) owl.SubClassOf( Mother Woman ) owl.SubClassOf( Grandfather owl.ObjectIntersectionOf( Man Parent )) owl.SubClassOf( Father owl.ObjectIntersectionOf( Man Parent )) owl.SubClassOf( ChildlessPerson owl.ObjectIntersectionOf( Person owl.ObjectComplementOf( owl.ObjectSomeValuesFrom( owl.ObjectInverseOf( hasParent ) owl:Thing )))) owl.SubClassOf( owl.ObjectIntersectionOf( owl.ObjectOneOf( Mary Bill Meg ) Female ) owl.ObjectIntersectionOf( Parent owl.ObjectMaxCardinality( "1" hasChild ) owl.ObjectAllValuesFrom( hasChild Female ))) owl.SubClassOf( Teenager owl.DataSomeValuesFrom( hasAge owl.DatatypeRestriction( Datatype( <http://www.w3.org/2001/XMLSchema#integer> ) FacetRestriction( <http://www.w3.org/2001/XMLSchema#minExclusive> "12"^^<http://www.w3.org/2001/XMLSchema#integer> ) FacetRestriction( <http://www.w3.org/2001/XMLSchema#maxInclusive> "19"^^<http://www.w3.org/2001/XMLSchema#integer> )))) owl.SubClassOf( owl.Annotation( <http://www.w3.org/2000/01/rdf-schema#comment> "\"States that every man is a person.\""^^xsd:string ) Man Person ) owl.EquivalentClasses( HappyPerson owl.ObjectIntersectionOf( owl.ObjectAllValuesFrom( hasChild HappyPerson ) owl.ObjectSomeValuesFrom( hasChild HappyPerson ))) owl.EquivalentClasses( JohnsChildren owl.ObjectHasValue( hasParent John )) owl.EquivalentClasses( NarcisticPerson owl.ObjectHasSelf( loves )) owl.EquivalentClasses( Orphan owl.ObjectAllValuesFrom( owl.ObjectInverseOf( hasChild ) Dead )) owl.EquivalentClasses( MyBirthdayGuests owl.ObjectOneOf( Bill John Mary )) owl.EquivalentClasses( Adult otherOnt:Grownup ) owl.EquivalentClasses( Parent owl.ObjectSomeValuesFrom( hasChild Person )) owl.EquivalentClasses( Parent owl.ObjectSomeValuesFrom( hasChild Person )) owl.EquivalentClasses( Person Human ) owl.EquivalentClasses( Mother owl.ObjectIntersectionOf( Woman Parent )) owl.EquivalentClasses( Parent owl.ObjectUnionOf( Mother Father )) owl.EquivalentClasses( ChildlessPerson owl.ObjectIntersectionOf( Person owl.ObjectComplementOf( Parent ))) owl.DisjointClasses( Woman Man ) owl.DisjointClasses( Father Mother YoungChild ) owl.DifferentIndividuals( John Bill ) owl.SameIndividual( James Jim ) owl.SameIndividual( John otherOnt:JohnBrown ) owl.SameIndividual( Mary otherOnt:MaryBrown ) owl.ObjectPropertyAssertion( hasWife John Mary ) owl.DataPropertyAssertion( hasAge John "51"^^<http://www.w3.org/2001/XMLSchema#integer> ) owl.ClassAssertion( Person Mary ) owl.ClassAssertion( Woman Mary ) owl.ClassAssertion( owl.ObjectIntersectionOf( Person owl.ObjectComplementOf( Parent )) Jack ) owl.ClassAssertion( owl.ObjectMaxCardinality( "4" hasChild Parent ) John ) owl.ClassAssertion( owl.ObjectMinCardinality( "2" hasChild Parent ) John ) owl.ClassAssertion( owl.ObjectExactCardinality( "3" hasChild Parent ) John ) owl.ClassAssertion( owl.ObjectExactCardinality( "5" hasChild ) John ) owl.ClassAssertion( Father John ) owl.ClassAssertion( Person John ) owl.ClassAssertion( SocialRole Father ) owl.NegativeObjectPropertyAssertion( hasWife Bill Mary ) owl.NegativeDataPropertyAssertion( hasAge Jack "53"^^<http://www.w3.org/2001/XMLSchema#integer> ) owl.NegativeObjectPropertyAssertion( hasDaughter Bill Susan )))
4,996
Common Lisp
.l
222
14.774775
65
0.586272
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
f5a06ccfc36219789ac625dc07d6d783f699dc927328850309322919d91bbbbe
6,404
[ -1 ]
6,405
people-pets-newest.funct
lambdamikel_OntoLisp/ontolisp-0.9/test/people-pets-newest.funct
Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>) Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>) Prefix(skos:=<http://www.w3.org/2004/02/skos/core#>) Prefix(xml:=<http://www.w3.org/XML/1998/namespace>) Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>) Prefix(owl:=<http://www.w3.org/2002/07/owl#>) Ontology(<http://cohse.semanticweb.org/ontologies/people> Annotation(owl:versionInfo "2.8") Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#Axiom_2>)) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#Axiom_2> ObjectUnionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#animal>) <http://cohse.semanticweb.org/ontologies/people#animal>)) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#Axiom_2> ObjectUnionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#plant>) <http://cohse.semanticweb.org/ontologies/people#plant>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#adult>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#adult> "Things that are adult."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#adult> "adult"^^xsd:string) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#adult> <http://cohse.semanticweb.org/ontologies/people#young>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#animal>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#animal> "animal"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#animal> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#animal> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> owl:Thing)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#animal_lover>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#animal_lover> "animal lover"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#animal_lover> "Someone who really likes animals"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#animal_lover> ObjectIntersectionOf(ObjectMinCardinality(3 <http://cohse.semanticweb.org/ontologies/people#has_pet>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#bicycle>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bicycle> "bicycle"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bicycle> "A human propelled vehicle, with two wheels"^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#bicycle> <http://cohse.semanticweb.org/ontologies/people#vehicle>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#bone>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bone> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bone> "bone"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#brain>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#brain> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#brain> "brain"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#broadsheet>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#broadsheet> "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#broadsheet> "broadsheet"^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#broadsheet> <http://cohse.semanticweb.org/ontologies/people#newspaper>) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#broadsheet> <http://cohse.semanticweb.org/ontologies/people#tabloid>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#bus>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bus> "bus"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bus> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#bus> <http://cohse.semanticweb.org/ontologies/people#vehicle>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#bus_company>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bus_company> "bus company"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bus_company> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#bus_company> <http://cohse.semanticweb.org/ontologies/people#company>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#bus_driver>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bus_driver> "Someone who drives a bus."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bus_driver> "bus driver"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#bus_driver> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#drives> <http://cohse.semanticweb.org/ontologies/people#bus>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#car>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#car> "car"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#car> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#car> <http://cohse.semanticweb.org/ontologies/people#vehicle>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#cat>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cat> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cat> "cat"^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#cat> <http://cohse.semanticweb.org/ontologies/people#animal>) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#cat> <http://cohse.semanticweb.org/ontologies/people#dog>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#cat_liker>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cat_liker> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cat_liker> "cat liker"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#cat_liker> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#likes> <http://cohse.semanticweb.org/ontologies/people#cat>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#cat_owner>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cat_owner> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cat_owner> "cat owner"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#cat_owner> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#cat>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#company>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#company> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#company> "company"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#cow>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cow> "cow"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cow> "Cows are naturally vegetarians."^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#cow> <http://cohse.semanticweb.org/ontologies/people#vegetarian>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#dog>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#dog> "dog"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#dog> ""^^xsd:string) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#dog> <http://cohse.semanticweb.org/ontologies/people#cat>) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#dog> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> <http://cohse.semanticweb.org/ontologies/people#bone>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#dog_liker>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#dog_liker> "dog liker"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#dog_liker> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#dog_liker> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#likes> <http://cohse.semanticweb.org/ontologies/people#dog>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#dog_owner>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#dog_owner> "dog owner"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#dog_owner> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#dog_owner> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#dog>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#driver>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#driver> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#driver> "driver"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#driver> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#drives> <http://cohse.semanticweb.org/ontologies/people#vehicle>) <http://cohse.semanticweb.org/ontologies/people#person>)) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#driver> <http://cohse.semanticweb.org/ontologies/people#adult>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#duck>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#duck> "duck"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#duck> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#duck> <http://cohse.semanticweb.org/ontologies/people#animal>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#elderly>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#elderly> "elderly"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#elderly> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#elderly> <http://cohse.semanticweb.org/ontologies/people#adult>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#female>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#female> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#female> "female"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#giraffe>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#giraffe> "giraffe"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#giraffe> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#giraffe> <http://cohse.semanticweb.org/ontologies/people#animal>) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#giraffe> ObjectAllValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> <http://cohse.semanticweb.org/ontologies/people#leaf>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#grass>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#grass> "grass"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#grass> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#grass> <http://cohse.semanticweb.org/ontologies/people#plant>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#grownup>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#grownup> "grownup"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#grownup> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#grownup> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#person> <http://cohse.semanticweb.org/ontologies/people#adult>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#haulage_company>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#haulage_company> "haulage company"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#haulage_company> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#haulage_company> <http://cohse.semanticweb.org/ontologies/people#company>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver> "haulage truck driver"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#person> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#drives> <http://cohse.semanticweb.org/ontologies/people#truck>) ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#works_for> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#haulage_company>)))) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#haulage_worker>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#haulage_worker> "haulage worker"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#haulage_worker> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#haulage_worker> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#works_for> ObjectUnionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#haulage_company>) <http://cohse.semanticweb.org/ontologies/people#haulage_company>))) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#kid>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#kid> "kid"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#kid> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#kid> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#young> <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#leaf>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#leaf> "leaf"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#leaf> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#leaf> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#tree>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#lorry>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#lorry> "lorry"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#lorry> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#lorry> <http://cohse.semanticweb.org/ontologies/people#vehicle>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#lorry_driver>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#lorry_driver> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#lorry_driver> "lorry driver"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#lorry_driver> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#drives> <http://cohse.semanticweb.org/ontologies/people#lorry>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#mad_cow>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#mad_cow> "A mad cow is a cow that has been eating the brains of sheep."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#mad_cow> "mad cow"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#mad_cow> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#sheep>) <http://cohse.semanticweb.org/ontologies/people#brain>)) <http://cohse.semanticweb.org/ontologies/people#cow>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#magazine>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#magazine> "magazine"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#magazine> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#magazine> <http://cohse.semanticweb.org/ontologies/people#publication>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#male>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#male> "male"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#male> "The class of all male things."^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#man>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#man> "man"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#man> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#man> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#adult> <http://cohse.semanticweb.org/ontologies/people#male> <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#newspaper>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#newspaper> "newspaper"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#newspaper> "All newspapers are either broadsheets or tabloids."^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#newspaper> <http://cohse.semanticweb.org/ontologies/people#publication>) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#newspaper> ObjectUnionOf(<http://cohse.semanticweb.org/ontologies/people#tabloid> <http://cohse.semanticweb.org/ontologies/people#broadsheet>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#old_lady>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#old_lady> "old lady"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#old_lady> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#old_lady> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#elderly> <http://cohse.semanticweb.org/ontologies/people#female> <http://cohse.semanticweb.org/ontologies/people#person>)) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#old_lady> ObjectIntersectionOf(ObjectAllValuesFrom(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#cat>) ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#animal>))) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#person>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#person> "person"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#person> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#person> <http://cohse.semanticweb.org/ontologies/people#animal>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#pet>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#pet> "pet"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#pet> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#pet> ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#is_pet_of> owl:Thing)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#pet_owner>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#pet_owner> "pet owner"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#pet_owner> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#pet_owner> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#animal>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#plant>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#plant> "plant"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#plant> ""^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#publication>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#publication> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#publication> "publication"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#quality_broadsheet>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#quality_broadsheet> "quality broadsheet"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#quality_broadsheet> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#quality_broadsheet> <http://cohse.semanticweb.org/ontologies/people#broadsheet>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#red_top>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#red_top> "red top"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#red_top> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#red_top> <http://cohse.semanticweb.org/ontologies/people#tabloid>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#sheep>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#sheep> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#sheep> "sheep"^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#sheep> <http://cohse.semanticweb.org/ontologies/people#animal>) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#sheep> ObjectAllValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> <http://cohse.semanticweb.org/ontologies/people#grass>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#tabloid>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#tabloid> "tabloid"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#tabloid> "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets."^^xsd:string) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#tabloid> <http://cohse.semanticweb.org/ontologies/people#broadsheet>) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#tabloid> <http://cohse.semanticweb.org/ontologies/people#newspaper>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#tiger>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#tiger> "tiger"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#tiger> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#tiger> <http://cohse.semanticweb.org/ontologies/people#animal>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#tree>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#tree> "tree"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#tree> ""^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#tree> <http://cohse.semanticweb.org/ontologies/people#plant>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#truck>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#truck> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#truck> "truck"^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#truck> <http://cohse.semanticweb.org/ontologies/people#vehicle>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#van>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#van> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#van> "van"^^xsd:string) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#van> <http://cohse.semanticweb.org/ontologies/people#vehicle>) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#van_driver>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#van_driver> "van driver"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#van_driver> ""^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#van_driver> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#drives> <http://cohse.semanticweb.org/ontologies/people#van>) <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#vegetarian>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#vegetarian> "A vegetarian is defined as an animal that eats no other animals, or parts of animals."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#vegetarian> "vegetarian"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#vegetarian> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#animal> ObjectAllValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> ObjectComplementOf(<http://cohse.semanticweb.org/ontologies/people#animal>)) ObjectAllValuesFrom(<http://cohse.semanticweb.org/ontologies/people#eats> ObjectComplementOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#animal>))))) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#vehicle>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#vehicle> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#vehicle> "vehicle"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#white_thing>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#white_thing> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#white_thing> "white thing"^^xsd:string) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#white_van_man>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#white_van_man> "A white van man is a man who drives a white van."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#white_van_man> "white van man"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#white_van_man> ObjectIntersectionOf(ObjectSomeValuesFrom(<http://cohse.semanticweb.org/ontologies/people#drives> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#white_thing> <http://cohse.semanticweb.org/ontologies/people#van>)) <http://cohse.semanticweb.org/ontologies/people#man>)) SubClassOf(<http://cohse.semanticweb.org/ontologies/people#white_van_man> ObjectAllValuesFrom(<http://cohse.semanticweb.org/ontologies/people#reads> <http://cohse.semanticweb.org/ontologies/people#tabloid>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#woman>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#woman> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#woman> "woman"^^xsd:string) EquivalentClasses(<http://cohse.semanticweb.org/ontologies/people#woman> ObjectIntersectionOf(<http://cohse.semanticweb.org/ontologies/people#adult> <http://cohse.semanticweb.org/ontologies/people#female> <http://cohse.semanticweb.org/ontologies/people#person>)) Declaration(Class(<http://cohse.semanticweb.org/ontologies/people#young>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#young> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#young> "young"^^xsd:string) DisjointClasses(<http://cohse.semanticweb.org/ontologies/people#young> <http://cohse.semanticweb.org/ontologies/people#adult>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#drives>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#drives> "drives"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#drives> ""^^xsd:string) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#eaten_by>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#eaten_by> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#eaten_by> "eaten_by"^^xsd:string) InverseObjectProperties(<http://cohse.semanticweb.org/ontologies/people#eaten_by> <http://cohse.semanticweb.org/ontologies/people#eats>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#eats>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#eats> "eats"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#eats> ""^^xsd:string) InverseObjectProperties(<http://cohse.semanticweb.org/ontologies/people#eaten_by> <http://cohse.semanticweb.org/ontologies/people#eats>) ObjectPropertyDomain(<http://cohse.semanticweb.org/ontologies/people#eats> <http://cohse.semanticweb.org/ontologies/people#animal>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#has_child>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_child> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_child> "has_child"^^xsd:string) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#has_father>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_father> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_father> "has_father"^^xsd:string) SubObjectPropertyOf(<http://cohse.semanticweb.org/ontologies/people#has_father> <http://cohse.semanticweb.org/ontologies/people#has_parent>) ObjectPropertyRange(<http://cohse.semanticweb.org/ontologies/people#has_father> <http://cohse.semanticweb.org/ontologies/people#man>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#has_mother>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_mother> "has_mother"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_mother> ""^^xsd:string) SubObjectPropertyOf(<http://cohse.semanticweb.org/ontologies/people#has_mother> <http://cohse.semanticweb.org/ontologies/people#has_parent>) ObjectPropertyRange(<http://cohse.semanticweb.org/ontologies/people#has_mother> <http://cohse.semanticweb.org/ontologies/people#woman>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#has_parent>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_parent> "has_parent"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_parent> ""^^xsd:string) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#has_part>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_part> "has_part"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_part> ""^^xsd:string) InverseObjectProperties(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#has_part>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#has_pet>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_pet> "Anyone that has a pet must like that pet."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_pet> "has_pet"^^xsd:string) SubObjectPropertyOf(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#likes>) ObjectPropertyDomain(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#person>) ObjectPropertyRange(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#animal>) InverseObjectProperties(<http://cohse.semanticweb.org/ontologies/people#is_pet_of> <http://cohse.semanticweb.org/ontologies/people#has_pet>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#is_pet_of>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#is_pet_of> "is_pet_of"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#is_pet_of> ""^^xsd:string) InverseObjectProperties(<http://cohse.semanticweb.org/ontologies/people#is_pet_of> <http://cohse.semanticweb.org/ontologies/people#has_pet>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#likes>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#likes> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#likes> "likes"^^xsd:string) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#part_of>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#part_of> "part_of"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#part_of> ""^^xsd:string) InverseObjectProperties(<http://cohse.semanticweb.org/ontologies/people#part_of> <http://cohse.semanticweb.org/ontologies/people#has_part>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#reads>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#reads> "reads"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#reads> ""^^xsd:string) ObjectPropertyRange(<http://cohse.semanticweb.org/ontologies/people#reads> <http://cohse.semanticweb.org/ontologies/people#publication>) Declaration(ObjectProperty(<http://cohse.semanticweb.org/ontologies/people#works_for>)) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#works_for> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#works_for> "works_for"^^xsd:string) Declaration(DataProperty(<http://cohse.semanticweb.org/ontologies/people#service_number>)) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#service_number> "service_number"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#service_number> ""^^xsd:string) DataPropertyRange(<http://cohse.semanticweb.org/ontologies/people#service_number> xsd:integer) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Daily_Mirror> "Daily Mirror"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Daily_Mirror> "The paper read by Mick (a white van man)."^^xsd:string) ClassAssertion(owl:Thing <http://cohse.semanticweb.org/ontologies/people#Daily_Mirror>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Dewey> "Dewey"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Dewey> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#duck> <http://cohse.semanticweb.org/ontologies/people#Dewey>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Fido> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Fido> "Fido"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#dog> <http://cohse.semanticweb.org/ontologies/people#Fido>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Flossie> "Flossie"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Flossie> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#cow> <http://cohse.semanticweb.org/ontologies/people#Flossie>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Fluffy> "Fluffy"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Fluffy> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#tiger> <http://cohse.semanticweb.org/ontologies/people#Fluffy>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Fred> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Fred> "Fred"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#person> <http://cohse.semanticweb.org/ontologies/people#Fred>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#Fred> <http://cohse.semanticweb.org/ontologies/people#Tibbs>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Huey> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Huey> "Huey"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#duck> <http://cohse.semanticweb.org/ontologies/people#Huey>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Joe> "Joe"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Joe> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#person> <http://cohse.semanticweb.org/ontologies/people#Joe>) ClassAssertion(ObjectMaxCardinality(1 <http://cohse.semanticweb.org/ontologies/people#has_pet>) <http://cohse.semanticweb.org/ontologies/people#Joe>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#Joe> <http://cohse.semanticweb.org/ontologies/people#Fido>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Kevin> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Kevin> "Kevin"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#person> <http://cohse.semanticweb.org/ontologies/people#Kevin>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Louie> "Louie"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Louie> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#duck> <http://cohse.semanticweb.org/ontologies/people#Louie>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Mick> "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror."^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Mick> "Mick"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#male> <http://cohse.semanticweb.org/ontologies/people#Mick>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#drives> <http://cohse.semanticweb.org/ontologies/people#Mick> <http://cohse.semanticweb.org/ontologies/people#Q123_ABC>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#reads> <http://cohse.semanticweb.org/ontologies/people#Mick> <http://cohse.semanticweb.org/ontologies/people#Daily_Mirror>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Minnie> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Minnie> "Minnie"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#elderly> <http://cohse.semanticweb.org/ontologies/people#Minnie>) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#female> <http://cohse.semanticweb.org/ontologies/people#Minnie>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#Minnie> <http://cohse.semanticweb.org/ontologies/people#Tom>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Q123_ABC> "A white van"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Q123_ABC> "Q123 ABC"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#van> <http://cohse.semanticweb.org/ontologies/people#Q123_ABC>) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#white_thing> <http://cohse.semanticweb.org/ontologies/people#Q123_ABC>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Rex> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Rex> "Rex"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#dog> <http://cohse.semanticweb.org/ontologies/people#Rex>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#is_pet_of> <http://cohse.semanticweb.org/ontologies/people#Rex> <http://cohse.semanticweb.org/ontologies/people#Mick>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The42> "The42"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The42> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#bus> <http://cohse.semanticweb.org/ontologies/people#The42>) DataPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#service_number> <http://cohse.semanticweb.org/ontologies/people#The42> "42"^^xsd:integer) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The_Guardian> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The_Guardian> "The Guardian"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#broadsheet> <http://cohse.semanticweb.org/ontologies/people#The_Guardian>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The_Sun> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The_Sun> "The Sun"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#tabloid> <http://cohse.semanticweb.org/ontologies/people#The_Sun>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The_Times> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The_Times> "The Times"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#broadsheet> <http://cohse.semanticweb.org/ontologies/people#The_Times>) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Tibbs> "Tibbs"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Tibbs> ""^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#cat> <http://cohse.semanticweb.org/ontologies/people#Tibbs>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Tom> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Tom> "Tom"^^xsd:string) ClassAssertion(owl:Thing <http://cohse.semanticweb.org/ontologies/people#Tom>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Walt> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Walt> "Walt"^^xsd:string) ClassAssertion(<http://cohse.semanticweb.org/ontologies/people#person> <http://cohse.semanticweb.org/ontologies/people#Walt>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#Walt> <http://cohse.semanticweb.org/ontologies/people#Dewey>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#Walt> <http://cohse.semanticweb.org/ontologies/people#Huey>) ObjectPropertyAssertion(<http://cohse.semanticweb.org/ontologies/people#has_pet> <http://cohse.semanticweb.org/ontologies/people#Walt> <http://cohse.semanticweb.org/ontologies/people#Louie>) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Daily_Mirror> "The paper read by Mick (a white van man)."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Dewey> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Fido> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Flossie> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Fluffy> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Fred> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Huey> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Joe> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Kevin> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Louie> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Mick> "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Minnie> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Q123_ABC> "A white van"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Rex> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The42> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The_Guardian> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The_Sun> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#The_Times> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Tibbs> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Tom> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#Walt> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#adult> "Things that are adult."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#animal> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#animal_lover> "Someone who really likes animals"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bicycle> "A human propelled vehicle, with two wheels"^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bone> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#brain> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#broadsheet> "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bus> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bus_company> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#bus_driver> "Someone who drives a bus."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#car> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cat> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cat_liker> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cat_owner> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#company> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#cow> "Cows are naturally vegetarians."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#dog> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#dog_liker> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#dog_owner> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#driver> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#drives> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#duck> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#eaten_by> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#eats> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#elderly> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#female> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#giraffe> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#grass> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#grownup> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_child> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_father> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_mother> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_parent> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_part> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#has_pet> "Anyone that has a pet must like that pet."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#haulage_company> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#haulage_worker> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#is_pet_of> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#kid> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#leaf> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#likes> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#lorry> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#lorry_driver> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#mad_cow> "A mad cow is a cow that has been eating the brains of sheep."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#magazine> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#male> "The class of all male things."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#man> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#newspaper> "All newspapers are either broadsheets or tabloids."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#old_lady> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#part_of> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#person> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#pet> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#pet_owner> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#plant> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#publication> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#quality_broadsheet> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#reads> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#red_top> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#service_number> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#sheep> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#tabloid> "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#tiger> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#tree> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#truck> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#van> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#van_driver> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#vegetarian> "A vegetarian is defined as an animal that eats no other animals, or parts of animals."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#vehicle> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#white_thing> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#white_van_man> "A white van man is a man who drives a white van."^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#woman> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#works_for> ""^^xsd:string) AnnotationAssertion(rdfs:comment <http://cohse.semanticweb.org/ontologies/people#young> ""^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Daily_Mirror> "Daily Mirror"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Dewey> "Dewey"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Fido> "Fido"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Flossie> "Flossie"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Fluffy> "Fluffy"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Fred> "Fred"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Huey> "Huey"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Joe> "Joe"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Kevin> "Kevin"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Louie> "Louie"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Mick> "Mick"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Minnie> "Minnie"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Q123_ABC> "Q123 ABC"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Rex> "Rex"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The42> "The42"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The_Guardian> "The Guardian"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The_Sun> "The Sun"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#The_Times> "The Times"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Tibbs> "Tibbs"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Tom> "Tom"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#Walt> "Walt"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#adult> "adult"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#animal> "animal"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#animal_lover> "animal lover"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bicycle> "bicycle"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bone> "bone"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#brain> "brain"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#broadsheet> "broadsheet"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bus> "bus"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bus_company> "bus company"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#bus_driver> "bus driver"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#car> "car"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cat> "cat"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cat_liker> "cat liker"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cat_owner> "cat owner"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#company> "company"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#cow> "cow"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#dog> "dog"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#dog_liker> "dog liker"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#dog_owner> "dog owner"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#driver> "driver"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#drives> "drives"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#duck> "duck"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#eaten_by> "eaten_by"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#eats> "eats"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#elderly> "elderly"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#female> "female"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#giraffe> "giraffe"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#grass> "grass"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#grownup> "grownup"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_child> "has_child"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_father> "has_father"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_mother> "has_mother"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_parent> "has_parent"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_part> "has_part"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#has_pet> "has_pet"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#haulage_company> "haulage company"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver> "haulage truck driver"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#haulage_worker> "haulage worker"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#is_pet_of> "is_pet_of"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#kid> "kid"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#leaf> "leaf"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#likes> "likes"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#lorry> "lorry"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#lorry_driver> "lorry driver"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#mad_cow> "mad cow"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#magazine> "magazine"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#male> "male"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#man> "man"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#newspaper> "newspaper"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#old_lady> "old lady"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#part_of> "part_of"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#person> "person"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#pet> "pet"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#pet_owner> "pet owner"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#plant> "plant"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#publication> "publication"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#quality_broadsheet> "quality broadsheet"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#reads> "reads"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#red_top> "red top"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#service_number> "service_number"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#sheep> "sheep"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#tabloid> "tabloid"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#tiger> "tiger"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#tree> "tree"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#truck> "truck"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#van> "van"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#van_driver> "van driver"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#vegetarian> "vegetarian"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#vehicle> "vehicle"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#white_thing> "white thing"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#white_van_man> "white van man"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#woman> "woman"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#works_for> "works_for"^^xsd:string) AnnotationAssertion(rdfs:label <http://cohse.semanticweb.org/ontologies/people#young> "young"^^xsd:string) )
69,183
Common Lisp
.l
575
119.313043
537
0.811428
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
570eace8b6677c734742db8557461d6bb7bf3fb5ce481db8734ffd47b629d57a
6,405
[ -1 ]
6,406
owllink-test-request.xml.sexpr
lambdamikel_OntoLisp/ontolisp-0.9/test/owllink-test-request.xml.sexpr
(NamespacePrefix () NIL |http://www.owllink.org/owllink#| ) (NamespacePrefix () xsd |http://www.w3.org/2001/XMLSchema#| ) (NamespacePrefix () owl |http://www.w3.org/2002/07/owl#| ) (RequestMessage () (CreateKB (:kb |http://owllink.org/test/kb1/| ) ) (Tell (:kb |http://owllink.org/test/kb1/| ) (SubClassOf Woman Person ) (SubClassOf Mother Woman ) (SubClassOf Grandfather (ObjectIntersectionOf Man Parent )) (SubClassOf Father (ObjectIntersectionOf Man Parent )) (SubClassOf ChildlessPerson (ObjectIntersectionOf Person (ObjectComplementOf (ObjectSomeValuesFrom (ObjectInverseOf hasParent ) |owl:Thing| )))) (SubClassOf (ObjectIntersectionOf (ObjectOneOf Mary Bill Meg ) Female ) (ObjectIntersectionOf Parent (ObjectMaxCardinality "1" hasChild ) (ObjectAllValuesFrom hasChild Female ))) (SubClassOf Teenager (DataSomeValuesFrom hasAge (DatatypeRestriction (Datatype () "http://www.w3.org/2001/XMLSchema#integer" ) (FacetRestriction () "http://www.w3.org/2001/XMLSchema#minExclusive" (OWLLiteral "12" "http://www.w3.org/2001/XMLSchema#integer")) (FacetRestriction () "http://www.w3.org/2001/XMLSchema#maxInclusive" (OWLLiteral "19" "http://www.w3.org/2001/XMLSchema#integer"))))) (SubClassOf (Annotation |http://www.w3.org/2000/01/rdf-schema#comment| (OWLLiteral "\"States that every man is a person.\"" "xsd:string")) Man Person ) (EquivalentClasses HappyPerson (ObjectIntersectionOf (ObjectAllValuesFrom hasChild HappyPerson ) (ObjectSomeValuesFrom hasChild HappyPerson ))) (EquivalentClasses JohnsChildren (ObjectHasValue hasParent John )) (EquivalentClasses NarcisticPerson (ObjectHasSelf loves )) (EquivalentClasses Orphan (ObjectAllValuesFrom (ObjectInverseOf hasChild ) Dead )) (EquivalentClasses MyBirthdayGuests (ObjectOneOf Bill John Mary )) (EquivalentClasses Adult |otherOnt:Grownup| ) (EquivalentClasses Parent (ObjectSomeValuesFrom hasChild Person )) (EquivalentClasses Parent (ObjectSomeValuesFrom hasChild Person )) (EquivalentClasses Person Human ) (EquivalentClasses Mother (ObjectIntersectionOf Woman Parent )) (EquivalentClasses Parent (ObjectUnionOf Mother Father )) (EquivalentClasses ChildlessPerson (ObjectIntersectionOf Person (ObjectComplementOf Parent ))) (DisjointClasses Woman Man ) (DisjointClasses Father Mother YoungChild ) (DifferentIndividuals John Bill ) (SameIndividual James Jim ) (SameIndividual John |otherOnt:JohnBrown| ) (SameIndividual Mary |otherOnt:MaryBrown| ) (ObjectPropertyAssertion hasWife John Mary ) (DataPropertyAssertion hasAge John (OWLLiteral "51" "http://www.w3.org/2001/XMLSchema#integer")) (ClassAssertion Person Mary ) (ClassAssertion Woman Mary ) (ClassAssertion (ObjectIntersectionOf Person (ObjectComplementOf Parent )) Jack ) (ClassAssertion (ObjectMaxCardinality "4" hasChild Parent ) John ) (ClassAssertion (ObjectMinCardinality "2" hasChild Parent ) John ) (ClassAssertion (ObjectExactCardinality "3" hasChild Parent ) John ) (ClassAssertion (ObjectExactCardinality "5" hasChild ) John ) (ClassAssertion Father John ) (ClassAssertion Person John ) (ClassAssertion SocialRole Father ) (NegativeObjectPropertyAssertion hasWife Bill Mary ) (NegativeDataPropertyAssertion hasAge Jack (OWLLiteral "53" "http://www.w3.org/2001/XMLSchema#integer")) (NegativeObjectPropertyAssertion hasDaughter Bill Susan )))
4,810
Common Lisp
.l
216
14.125
76
0.56719
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
f88cd01ba9a2718463ec728c4d868e0fd0f90392eade03b497e99470719630e0
6,406
[ -1 ]
6,407
owllink-test-request.xml.sexpr.response.sexpr
lambdamikel_OntoLisp/ontolisp-0.9/test/owllink-test-request.xml.sexpr.response.sexpr
OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Woman| |Person| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Mother| |Woman| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Grandfather| (AND |Parent| |Man|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Father| (AND |Parent| |Man|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |ChildlessPerson| (AND (NOT (SOME (INV |hasParent|) |Thing|)) |Person|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| (AND |Female| (ONE-OF |Meg| |Bill| |Mary|)) (AND (ALL |hasChild| |Female|) (AT-MOST 1 |hasChild|) |Parent|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Man| |Person| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|HappyPerson| (AND (SOME |hasChild| |HappyPerson|) (ALL |hasChild| |HappyPerson|))) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|JohnsChildren| (HAS-VALUE |hasParent| |John|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|NarcisticPerson| (SELF-REFERENCE |loves|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Orphan| (ALL (INV |hasChild|) |Dead|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|MyBirthdayGuests| (ONE-OF |Mary| |John| |Bill|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Adult| |Grownup|) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Parent| (SOME |hasChild| |Person|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Parent| (SOME |hasChild| |Person|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Person| |Human|) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Mother| (AND |Parent| |Woman|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Parent| (OR |Father| |Mother|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|ChildlessPerson| (AND (NOT |Parent|) |Person|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDisjointClassesAxiom| (|Woman| |Man|) |http://owllink.org/test/kb1/|) of type OWLDisjointClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDisjointClassesAxiom| (|Father| |Mother| |YoungChild|) |http://owllink.org/test/kb1/|) of type OWLDisjointClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDifferentIndividualsAxiom| (|John| |Bill|) |http://owllink.org/test/kb1/|) of type OWLDifferentIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|James| |Jim|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|John| |JohnBrown|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|Mary| |MaryBrown|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLObjectPropertyAssertionAxiom| |John| |hasWife| |Mary| |http://owllink.org/test/kb1/|) of type OWLObjectPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDataPropertyAssertionAxiom| |John| |hasAge| (D-LITERAL "51" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) |http://owllink.org/test/kb1/|) of type OWLDataPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Mary| |Person| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Mary| |Woman| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Jack| (AND (NOT |Parent|) |Person|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (AT-MOST 4 |hasChild| |Parent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (AT-LEAST 2 |hasChild| |Parent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (EXACTLY 3 |hasChild| |Parent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (EXACTLY 5 |hasChild|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| |Father| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| |Person| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Father| |SocialRole| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| |Bill| |hasWife| |Mary| |http://owllink.org/test/kb1/|) of type OWLNegativeObjectPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| |Jack| |hasAge| (D-LITERAL "53" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) |http://owllink.org/test/kb1/|) of type OWLNegativeDataPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| |Bill| |hasDaughter| |Susan| |http://owllink.org/test/kb1/|) of type OWLNegativeObjectPropertyAssertionAxiom (ResponseMessage () (KB (:kb |http://owllink.org/test/kb1/| ) ) (SyntaxError (:error "Ignored non-valid OWLlink Tell requests: ((|SubClassOf| |Teenager| (|DataSomeValuesFrom| |hasAge| (|DatatypeRestriction| (|Datatype| NIL 'http://www.w3.org/2001/XMLSchema#integer') (|FacetRestriction| NIL 'http://www.w3.org/2001/XMLSchema#minExclusive' (|OWLLiteral| '12' 'http://www.w3.org/2001/XMLSchema#integer')) (|FacetRestriction| NIL 'http://www.w3.org/2001/XMLSchema#maxInclusive' (|OWLLiteral| '19' 'http://www.w3.org/2001/XMLSchema#integer'))))))" ) ))
12,894
Common Lisp
.l
160
44.85625
129
0.449673
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
b06ec1ab6a368b494059f7921579f2ba7913d2376bfb70022400aa345c52badc
6,407
[ -1 ]
6,408
owllink-test-request.xml.funct.response.funct
lambdamikel_OntoLisp/ontolisp-0.9/test/owllink-test-request.xml.funct.response.funct
OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Woman| |Person| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Mother| |Woman| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Grandfather| (AND |Parent| |Man|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Father| (AND |Parent| |Man|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |ChildlessPerson| (AND (NOT (SOME (INV |hasParent|) |Thing|)) |Person|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| (AND |Female| (ONE-OF |Meg| |Bill| |Mary|)) (AND (ALL |hasChild| |Female|) (AT-MOST 1 |hasChild|) |Parent|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Teenager| (D-SOME |hasAge| (D-RESTRICTION (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|) (D-FACET |http://www.w3.org/2001/XMLSchema#maxInclusive| (D-LITERAL "19" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))) (D-FACET |http://www.w3.org/2001/XMLSchema#minExclusive| (D-LITERAL "12" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))))) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |Man| |Person| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|HappyPerson| (AND (SOME |hasChild| |HappyPerson|) (ALL |hasChild| |HappyPerson|))) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|JohnsChildren| (HAS-VALUE |hasParent| |John|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|NarcisticPerson| (SELF-REFERENCE |loves|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Orphan| (ALL (INV |hasChild|) |Dead|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|MyBirthdayGuests| (ONE-OF |Mary| |John| |Bill|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Adult| |Grownup|) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Parent| (SOME |hasChild| |Person|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Parent| (SOME |hasChild| |Person|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Person| |Human|) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Mother| (AND |Parent| |Woman|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|Parent| (OR |Father| |Mother|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|ChildlessPerson| (AND (NOT |Parent|) |Person|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDisjointClassesAxiom| (|Woman| |Man|) |http://owllink.org/test/kb1/|) of type OWLDisjointClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDisjointClassesAxiom| (|Father| |Mother| |YoungChild|) |http://owllink.org/test/kb1/|) of type OWLDisjointClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDifferentIndividualsAxiom| (|John| |Bill|) |http://owllink.org/test/kb1/|) of type OWLDifferentIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|James| |Jim|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|John| |JohnBrown|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|Mary| |MaryBrown|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLObjectPropertyAssertionAxiom| |John| |hasWife| |Mary| |http://owllink.org/test/kb1/|) of type OWLObjectPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDataPropertyAssertionAxiom| |John| |hasAge| (D-LITERAL "51" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) |http://owllink.org/test/kb1/|) of type OWLDataPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Mary| |Person| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Mary| |Woman| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Jack| (AND (NOT |Parent|) |Person|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (AT-MOST 4 |hasChild| |Parent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (AT-LEAST 2 |hasChild| |Parent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (EXACTLY 3 |hasChild| |Parent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| (EXACTLY 5 |hasChild|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| |Father| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |John| |Person| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |Father| |SocialRole| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| |Bill| |hasWife| |Mary| |http://owllink.org/test/kb1/|) of type OWLNegativeObjectPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| |Jack| |hasAge| (D-LITERAL "53" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) |http://owllink.org/test/kb1/|) of type OWLNegativeDataPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| |Bill| |hasDaughter| |Susan| |http://owllink.org/test/kb1/|) of type OWLNegativeObjectPropertyAssertionAxiom ResponseMessage( KB( Attribute( kb <http://owllink.org/test/kb1/> )) OK())
13,330
Common Lisp
.l
167
42.994012
129
0.435837
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
d2e7d954b546c41a7370fe026853c4a6b62f2e0cabe9f7d8ac23af2d373041ab
6,408
[ -1 ]
6,409
owllink-test-request.xml.response.xml
lambdamikel_OntoLisp/ontolisp-0.9/test/owllink-test-request.xml.response.xml
<?xml version="1.0" encoding="UTF-8"?> OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkWoman| |http://www.owllink.org/owllinkPerson| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkMother| |http://www.owllink.org/owllinkWoman| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkGrandfather| (AND |http://www.owllink.org/owllinkParent| |http://www.owllink.org/owllinkMan|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkFather| (AND |http://www.owllink.org/owllinkParent| |http://www.owllink.org/owllinkMan|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkChildlessPerson| (AND (NOT (SOME (INV |http://www.owllink.org/owllinkhasParent|) |http://www.owllink.org/owllinkThing|)) |http://www.owllink.org/owllinkPerson|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| (AND |http://www.owllink.org/owllinkFemale| (ONE-OF |http://www.owllink.org/owllinkMeg| |http://www.owllink.org/owllinkBill| |http://www.owllink.org/owllinkMary|)) (AND (ALL |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkFemale|) (AT-MOST 1 |http://www.owllink.org/owllinkhasChild|) |http://www.owllink.org/owllinkParent|) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkTeenager| (D-SOME |http://www.owllink.org/owllinkhasAge| (D-RESTRICTION (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|) (D-FACET |http://www.w3.org/2001/XMLSchema#maxInclusive| (D-LITERAL "19" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))) (D-FACET |http://www.w3.org/2001/XMLSchema#minExclusive| (D-LITERAL "12" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))))) |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSubClassAxiom| |http://www.owllink.org/owllinkMan| |http://www.owllink.org/owllinkPerson| |http://owllink.org/test/kb1/|) of type OWLSubClassAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkHappyPerson| (AND (SOME |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkHappyPerson|) (ALL |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkHappyPerson|))) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkJohnsChildren| (HAS-VALUE |http://www.owllink.org/owllinkhasParent| |http://www.owllink.org/owllinkJohn|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkNarcisticPerson| (SELF-REFERENCE |http://www.owllink.org/owllinkloves|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkOrphan| (ALL (INV |http://www.owllink.org/owllinkhasChild|) |http://www.owllink.org/owllinkDead|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkMyBirthdayGuests| (ONE-OF |http://www.owllink.org/owllinkMary| |http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkBill|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkAdult| |http://www.owllink.org/owllinkGrownup|) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkParent| (SOME |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkPerson|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkParent| (SOME |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkPerson|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkPerson| |http://www.owllink.org/owllinkHuman|) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkMother| (AND |http://www.owllink.org/owllinkParent| |http://www.owllink.org/owllinkWoman|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkParent| (OR |http://www.owllink.org/owllinkFather| |http://www.owllink.org/owllinkMother|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLEquivalentClassesAxiom| (|http://www.owllink.org/owllinkChildlessPerson| (AND (NOT |http://www.owllink.org/owllinkParent|) |http://www.owllink.org/owllinkPerson|)) |http://owllink.org/test/kb1/|) of type OWLEquivalentClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDisjointClassesAxiom| (|http://www.owllink.org/owllinkWoman| |http://www.owllink.org/owllinkMan|) |http://owllink.org/test/kb1/|) of type OWLDisjointClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDisjointClassesAxiom| (|http://www.owllink.org/owllinkFather| |http://www.owllink.org/owllinkMother| |http://www.owllink.org/owllinkYoungChild|) |http://owllink.org/test/kb1/|) of type OWLDisjointClassesAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDifferentIndividualsAxiom| (|http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkBill|) |http://owllink.org/test/kb1/|) of type OWLDifferentIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|http://www.owllink.org/owllinkJames| |http://www.owllink.org/owllinkJim|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkJohnBrown|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLSameIndividualsAxiom| (|http://www.owllink.org/owllinkMary| |http://www.owllink.org/owllinkMaryBrown|) |http://owllink.org/test/kb1/|) of type OWLSameIndividualsAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLObjectPropertyAssertionAxiom| |http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkhasWife| |http://www.owllink.org/owllinkMary| |http://owllink.org/test/kb1/|) of type OWLObjectPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLDataPropertyAssertionAxiom| |http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkhasAge| (D-LITERAL "51" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) |http://owllink.org/test/kb1/|) of type OWLDataPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkMary| |http://www.owllink.org/owllinkPerson| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkMary| |http://www.owllink.org/owllinkWoman| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJack| (AND (NOT |http://www.owllink.org/owllinkParent|) |http://www.owllink.org/owllinkPerson|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJohn| (AT-MOST 4 |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkParent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJohn| (AT-LEAST 2 |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkParent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJohn| (EXACTLY 3 |http://www.owllink.org/owllinkhasChild| |http://www.owllink.org/owllinkParent|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJohn| (EXACTLY 5 |http://www.owllink.org/owllinkhasChild|) |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkFather| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkJohn| |http://www.owllink.org/owllinkPerson| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLClassAssertionAxiom| |http://www.owllink.org/owllinkFather| |http://www.owllink.org/owllinkSocialRole| |http://owllink.org/test/kb1/|) of type OWLClassAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| |http://www.owllink.org/owllinkBill| |http://www.owllink.org/owllinkhasWife| |http://www.owllink.org/owllinkMary| |http://owllink.org/test/kb1/|) of type OWLNegativeObjectPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeDataPropertyAssertionAxiom| |http://www.owllink.org/owllinkJack| |http://www.owllink.org/owllinkhasAge| (D-LITERAL "53" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) |http://owllink.org/test/kb1/|) of type OWLNegativeDataPropertyAssertionAxiom OWLAPI Warning: Ignoring axiom (|OWLAPI-getOWLNegativeObjectPropertyAssertionAxiom| |http://www.owllink.org/owllinkBill| |http://www.owllink.org/owllinkhasDaughter| |http://www.owllink.org/owllinkSusan| |http://owllink.org/test/kb1/|) of type OWLNegativeObjectPropertyAssertionAxiom <ResponseMessage xmlns="http://www.owllink.org/owllink#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <KB kb="http://owllink.org/test/kb1/"/> <OK/> </ResponseMessage>
17,197
Common Lisp
.l
238
44.533613
111
0.501921
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
3853e40e9ebcb3aa071a62a3b99123ec5d46d1cc71a677c6c32932d325a590b2
6,409
[ -1 ]
6,410
owl-primer-mod.owx
lambdamikel_OntoLisp/ontolisp-0.9/test/owl-primer-mod.owx
<!DOCTYPE Ontology [ <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > ]> <Ontology xml:base="http://example.com/owl/families/" ontologyIRI="http://example.com/owl/families" xmlns="http://www.w3.org/2002/07/owl#"> <Prefix name="owl" IRI="http://www.w3.org/2002/07/owl#"/> <Prefix name="otherOnt" IRI="http://example.org/otherOntologies/families/"/> <Declaration> <NamedIndividual IRI="John"/> </Declaration> <Declaration> <NamedIndividual IRI="Mary"/> </Declaration> <Declaration> <NamedIndividual IRI="Jim"/> </Declaration> <Declaration> <NamedIndividual IRI="James"/> </Declaration> <Declaration> <NamedIndividual IRI="Jack"/> </Declaration> <Declaration> <NamedIndividual IRI="Bill"/> </Declaration> <Declaration> <NamedIndividual IRI="Susan"/> </Declaration> <Declaration> <NamedIndividual IRI="Meg"/> </Declaration> <Declaration> <Class IRI="Person"/> </Declaration> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <IRI>Person</IRI> <Literal>Represents the set of all people.</Literal> </AnnotationAssertion> <Declaration> <Class IRI="Woman"/> </Declaration> <Declaration> <Class IRI="Parent"/> </Declaration> <Declaration> <Class IRI="Father"/> </Declaration> <Declaration> <Class IRI="Mother"/> </Declaration> <Declaration> <Class IRI="SocialRole"/> </Declaration> <Declaration> <Class IRI="Man"/> </Declaration> <Declaration> <Class IRI="Teenager"/> </Declaration> <Declaration> <Class IRI="ChildlessPerson"/> </Declaration> <Declaration> <Class IRI="Human"/> </Declaration> <Declaration> <Class IRI="Female"/> </Declaration> <Declaration> <Class IRI="HappyPerson"/> </Declaration> <Declaration> <Class IRI="JohnsChildren"/> </Declaration> <Declaration> <Class IRI="NarcisticPerson"/> </Declaration> <Declaration> <Class IRI="MyBirthdayGuests"/> </Declaration> <Declaration> <Class IRI="Dead"/> </Declaration> <Declaration> <Class IRI="Orphan"/> </Declaration> <Declaration> <Class IRI="Adult"/> </Declaration> <Declaration> <Class IRI="YoungChild"/> </Declaration> <Declaration> <ObjectProperty IRI="hasWife"/> </Declaration> <Declaration> <ObjectProperty IRI="hasChild"/> </Declaration> <Declaration> <ObjectProperty IRI="hasDaughter"/> </Declaration> <Declaration> <ObjectProperty IRI="loves"/> </Declaration> <Declaration> <ObjectProperty IRI="hasSpouse"/> </Declaration> <Declaration> <ObjectProperty IRI="hasGrandparent"/> </Declaration> <Declaration> <ObjectProperty IRI="hasParent"/> </Declaration> <Declaration> <ObjectProperty IRI="hasBrother"/> </Declaration> <Declaration> <ObjectProperty IRI="hasUncle"/> </Declaration> <Declaration> <ObjectProperty IRI="hasSon"/> </Declaration> <Declaration> <ObjectProperty IRI="hasAncestor"/> </Declaration> <Declaration> <DataProperty IRI="hasAge"/> </Declaration> <Declaration> <DataProperty IRI="hasSSN"/> </Declaration> <Declaration> <Datatype IRI="personAge"/> </Declaration> <Declaration> <Datatype IRI="majorAge"/> </Declaration> <Declaration> <Datatype IRI="toddlerAge"/> </Declaration> <DatatypeDefinition> <Datatype IRI="personAge"/> <DatatypeRestriction> <Datatype IRI="&xsd;integer"/> <FacetRestriction facet="&xsd;minInclusive"> <Literal datatypeIRI="&xsd;integer">0</Literal> </FacetRestriction> <FacetRestriction facet="&xsd;maxInclusive"> <Literal datatypeIRI="&xsd;integer">150</Literal> </FacetRestriction> </DatatypeRestriction> </DatatypeDefinition> <DatatypeDefinition> <Datatype IRI="majorAge"/> <DataIntersectionOf> <Datatype IRI="personAge"/> <DataComplementOf> <Datatype IRI="minorAge"/> </DataComplementOf> </DataIntersectionOf> </DatatypeDefinition> <DatatypeDefinition> <Datatype IRI="toddlerAge"/> <DataOneOf> <Literal datatypeIRI="http://www.w3.org/2001/XMLSchema#integer">1</Literal> <Literal datatypeIRI="http://www.w3.org/2001/XMLSchema#integer">2</Literal> </DataOneOf> </DatatypeDefinition> <SymmetricObjectProperty> <ObjectProperty IRI="hasSpouse"/> </SymmetricObjectProperty> <AsymmetricObjectProperty> <ObjectProperty IRI="hasChild"/> </AsymmetricObjectProperty> <DisjointObjectProperties> <ObjectProperty IRI="hasParent"/> <ObjectProperty IRI="hasSpouse"/> </DisjointObjectProperties> <ReflexiveObjectProperty> <ObjectProperty IRI="hasRelative"/> </ReflexiveObjectProperty> <IrreflexiveObjectProperty> <ObjectProperty IRI="parentOf"/> </IrreflexiveObjectProperty> <FunctionalObjectProperty> <ObjectProperty IRI="hasHusband"/> </FunctionalObjectProperty> <InverseFunctionalObjectProperty> <ObjectProperty IRI="hasHusband"/> </InverseFunctionalObjectProperty> <TransitiveObjectProperty> <ObjectProperty IRI="hasAncestor"/> </TransitiveObjectProperty> <FunctionalDataProperty> <DataProperty IRI="hasAge"/> </FunctionalDataProperty> <ObjectPropertyDomain> <ObjectProperty IRI="hasWife"/> <Class IRI="Man"/> </ObjectPropertyDomain> <ObjectPropertyRange> <ObjectProperty IRI="hasWife"/> <Class IRI="Woman"/> </ObjectPropertyRange> <InverseObjectProperties> <ObjectProperty IRI="hasParent"/> <ObjectProperty IRI="hasChild"/> </InverseObjectProperties> <DisjointObjectProperties> <ObjectProperty IRI="hasSon"/> <ObjectProperty IRI="hasDaughter"/> </DisjointObjectProperties> <EquivalentObjectProperties> <ObjectProperty IRI="hasChild"/> <ObjectProperty abbreviatedIRI="otherOnt:child"/> </EquivalentObjectProperties> <SubObjectPropertyOf> <ObjectProperty IRI="hasWife"/> <ObjectProperty IRI="hasSpouse"/> </SubObjectPropertyOf> <SubObjectPropertyOf> <ObjectProperty IRI="hasFather"/> <ObjectProperty IRI="hasParent"/> </SubObjectPropertyOf> <SubObjectPropertyOf> <ObjectPropertyChain> <ObjectProperty IRI="hasParent"/> <ObjectProperty IRI="hasParent"/> </ObjectPropertyChain> <ObjectProperty IRI="hasGrandparent"/> </SubObjectPropertyOf> <SubObjectPropertyOf> <ObjectPropertyChain> <ObjectProperty IRI="hasFather"/> <ObjectProperty IRI="hasBrother"/> </ObjectPropertyChain> <ObjectProperty IRI="hasUncle"/> </SubObjectPropertyOf> <SubObjectPropertyOf> <ObjectPropertyChain> <ObjectProperty IRI="hasFather"/> <ObjectProperty IRI="hasBrother"/> </ObjectPropertyChain> <ObjectProperty IRI="hasUncle"/> </SubObjectPropertyOf> <HasKey> <Class IRI="Person"/> <DataProperty IRI="hasSSN"/> </HasKey> <DataPropertyDomain> <DataProperty IRI="hasAge"/> <Class IRI="Person"/> </DataPropertyDomain> <DataPropertyRange> <DataProperty IRI="hasAge"/> <Datatype IRI="http://www.w3.org/2001/XMLSchema#nonNegativeInteger"/> </DataPropertyRange> <EquivalentDataProperties> <DataProperty IRI="hasAge"/> <DataProperty abbreviatedIRI="otherOnt:age"/> </EquivalentDataProperties> <SubClassOf> <Class IRI="Woman"/> <Class IRI="Person"/> </SubClassOf> <SubClassOf> <Class IRI="Mother"/> <Class IRI="Woman"/> </SubClassOf> <SubClassOf> <Class IRI="Grandfather"/> <ObjectIntersectionOf> <Class IRI="Man"/> <Class IRI="Parent"/> </ObjectIntersectionOf> </SubClassOf> <SubClassOf> <Class IRI="Father"/> <ObjectIntersectionOf> <Class IRI="Man"/> <Class IRI="Parent"/> </ObjectIntersectionOf> </SubClassOf> <SubClassOf> <Class IRI="ChildlessPerson"/> <ObjectIntersectionOf> <Class IRI="Person"/> <ObjectComplementOf> <ObjectSomeValuesFrom> <ObjectInverseOf> <ObjectProperty IRI="hasParent"/> </ObjectInverseOf> <Class abbreviatedIRI="owl:Thing"/> </ObjectSomeValuesFrom> </ObjectComplementOf> </ObjectIntersectionOf> </SubClassOf> <SubClassOf> <ObjectIntersectionOf> <ObjectOneOf> <NamedIndividual IRI="Mary"/> <NamedIndividual IRI="Bill"/> <NamedIndividual IRI="Meg"/> </ObjectOneOf> <Class IRI="Female"/> </ObjectIntersectionOf> <ObjectIntersectionOf> <Class IRI="Parent"/> <ObjectMaxCardinality cardinality="1"> <ObjectProperty IRI="hasChild"/> </ObjectMaxCardinality> <ObjectAllValuesFrom> <ObjectProperty IRI="hasChild"/> <Class IRI="Female"/> </ObjectAllValuesFrom> </ObjectIntersectionOf> </SubClassOf> <SubClassOf> <Class IRI="Teenager"/> <DataSomeValuesFrom> <DataProperty IRI="hasAge"/> <DatatypeRestriction> <Datatype IRI="&xsd;integer"/> <FacetRestriction facet="&xsd;minExclusive"> <Literal datatypeIRI="&xsd;integer">12</Literal> </FacetRestriction> <FacetRestriction facet="&xsd;maxInclusive"> <Literal datatypeIRI="&xsd;integer">19</Literal> </FacetRestriction> </DatatypeRestriction> </DataSomeValuesFrom> </SubClassOf> <SubClassOf> <Annotation> <AnnotationProperty IRI="&rdfs;comment"/> <Literal datatypeIRI="xsd:string">States that every man is a person.</Literal> </Annotation> <Class IRI="Man"/> <Class IRI="Person"/> </SubClassOf> <EquivalentClasses> <Class IRI="HappyPerson"/> <ObjectIntersectionOf> <ObjectAllValuesFrom> <ObjectProperty IRI="hasChild"/> <Class IRI="HappyPerson"/> </ObjectAllValuesFrom> <ObjectSomeValuesFrom> <ObjectProperty IRI="hasChild"/> <Class IRI="HappyPerson"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <EquivalentClasses> <Class IRI="JohnsChildren"/> <ObjectHasValue> <ObjectProperty IRI="hasParent"/> <NamedIndividual IRI="John"/> </ObjectHasValue> </EquivalentClasses> <EquivalentClasses> <Class IRI="NarcisticPerson"/> <ObjectHasSelf> <ObjectProperty IRI="loves"/> </ObjectHasSelf> </EquivalentClasses> <EquivalentClasses> <Class IRI="Orphan"/> <ObjectAllValuesFrom> <ObjectInverseOf> <ObjectProperty IRI="hasChild"/> </ObjectInverseOf> <Class IRI="Dead"/> </ObjectAllValuesFrom> </EquivalentClasses> <EquivalentClasses> <Class IRI="MyBirthdayGuests"/> <ObjectOneOf> <NamedIndividual IRI="Bill"/> <NamedIndividual IRI="John"/> <NamedIndividual IRI="Mary"/> </ObjectOneOf> </EquivalentClasses> <EquivalentClasses> <Class IRI="Adult"/> <Class abbreviatedIRI="otherOnt:Grownup"/> </EquivalentClasses> <EquivalentClasses> <Class IRI="Parent"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="hasChild"/> <Class IRI="Person"/> </ObjectSomeValuesFrom> </EquivalentClasses> <EquivalentClasses> <Class IRI="Parent"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="hasChild"/> <Class IRI="Person"/> </ObjectSomeValuesFrom> </EquivalentClasses> <EquivalentClasses> <Class IRI="Person"/> <Class IRI="Human"/> </EquivalentClasses> <EquivalentClasses> <Class IRI="Mother"/> <ObjectIntersectionOf> <Class IRI="Woman"/> <Class IRI="Parent"/> </ObjectIntersectionOf> </EquivalentClasses> <EquivalentClasses> <Class IRI="Parent"/> <ObjectUnionOf> <Class IRI="Mother"/> <Class IRI="Father"/> </ObjectUnionOf> </EquivalentClasses> <EquivalentClasses> <Class IRI="ChildlessPerson"/> <ObjectIntersectionOf> <Class IRI="Person"/> <ObjectComplementOf> <Class IRI="Parent"/> </ObjectComplementOf> </ObjectIntersectionOf> </EquivalentClasses> <DisjointClasses> <Class IRI="Woman"/> <Class IRI="Man"/> </DisjointClasses> <DisjointClasses> <Class IRI="Father"/> <Class IRI="Mother"/> <Class IRI="YoungChild"/> </DisjointClasses> <DifferentIndividuals> <NamedIndividual IRI="John"/> <NamedIndividual IRI="Bill"/> </DifferentIndividuals> <SameIndividual> <NamedIndividual IRI="John"/> <NamedIndividual IRI="Jack"/> </SameIndividual> <SameIndividual> <NamedIndividual IRI="James"/> <NamedIndividual IRI="Jim"/> </SameIndividual> <SameIndividual> <NamedIndividual IRI="John"/> <NamedIndividual abbreviatedIRI="otherOnt:JohnBrown"/> </SameIndividual> <SameIndividual> <NamedIndividual IRI="Mary"/> <NamedIndividual abbreviatedIRI="otherOnt:MaryBrown"/> </SameIndividual> <ObjectPropertyAssertion> <ObjectProperty IRI="hasWife"/> <NamedIndividual IRI="John"/> <NamedIndividual IRI="Mary"/> </ObjectPropertyAssertion> <DataPropertyAssertion> <DataProperty IRI="hasAge"/> <NamedIndividual IRI="John"/> <Literal datatypeIRI="http://www.w3.org/2001/XMLSchema#integer">51</Literal> </DataPropertyAssertion> <ClassAssertion> <Class IRI="Person"/> <NamedIndividual IRI="Mary"/> </ClassAssertion> <ClassAssertion> <Class IRI="Woman"/> <NamedIndividual IRI="Mary"/> </ClassAssertion> <ClassAssertion> <ObjectIntersectionOf> <Class IRI="Person"/> <ObjectComplementOf> <Class IRI="Parent"/> </ObjectComplementOf> </ObjectIntersectionOf> <NamedIndividual IRI="Jack"/> </ClassAssertion> <ClassAssertion> <ObjectMaxCardinality cardinality="4"> <ObjectProperty IRI="hasChild"/> <Class IRI="Parent"/> </ObjectMaxCardinality> <NamedIndividual IRI="John"/> </ClassAssertion> <ClassAssertion> <ObjectMinCardinality cardinality="2"> <ObjectProperty IRI="hasChild"/> <Class IRI="Parent"/> </ObjectMinCardinality> <NamedIndividual IRI="John"/> </ClassAssertion> <ClassAssertion> <ObjectExactCardinality cardinality="3"> <ObjectProperty IRI="hasChild"/> <Class IRI="Parent"/> </ObjectExactCardinality> <NamedIndividual IRI="John"/> </ClassAssertion> <ClassAssertion> <ObjectExactCardinality cardinality="5"> <ObjectProperty IRI="hasChild"/> </ObjectExactCardinality> <NamedIndividual IRI="John"/> </ClassAssertion> <ClassAssertion> <Class IRI="Father"/> <NamedIndividual IRI="John"/> </ClassAssertion> <ClassAssertion> <Class IRI="Person"/> <NamedIndividual IRI="John"/> </ClassAssertion> <ClassAssertion> <Class IRI="SocialRole"/> <NamedIndividual IRI="Father"/> </ClassAssertion> <NegativeObjectPropertyAssertion> <ObjectProperty IRI="hasWife"/> <NamedIndividual IRI="Bill"/> <NamedIndividual IRI="Mary"/> </NegativeObjectPropertyAssertion> <NegativeDataPropertyAssertion> <DataProperty IRI="hasAge"/> <NamedIndividual IRI="Jack"/> <Literal datatypeIRI="http://www.w3.org/2001/XMLSchema#integer">53</Literal> </NegativeDataPropertyAssertion> <NegativeObjectPropertyAssertion> <ObjectProperty IRI="hasDaughter"/> <NamedIndividual IRI="Bill"/> <NamedIndividual IRI="Susan"/> </NegativeObjectPropertyAssertion> </Ontology>
15,919
Common Lisp
.l
543
23.622468
85
0.669144
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
59488050177d208e2af75e20cbb6743a8615c75a63e815077967ee24d640470c
6,410
[ -1 ]
6,411
owl-primer-mod.ofn
lambdamikel_OntoLisp/ontolisp-0.9/test/owl-primer-mod.ofn
Prefix(:=<http://example.com/owl/families/>) Prefix(otherOnt:=<http://example.org/otherOntologies/families/>) Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>) Prefix(owl:=<http://www.w3.org/2002/07/owl#>) Ontology(<http://example.com/owl/families> Declaration( NamedIndividual( :John ) ) Declaration( NamedIndividual( :Mary ) ) Declaration( NamedIndividual( :Jim ) ) Declaration( NamedIndividual( :James ) ) Declaration( NamedIndividual( :Jack ) ) Declaration( NamedIndividual( :Bill ) ) Declaration( NamedIndividual( :Susan ) ) Declaration( Class( :Person ) ) AnnotationAssertion( rdfs:comment :Person "Represents the set of all people." ) Declaration( Class( :Woman ) ) Declaration( Class( :Parent ) ) Declaration( Class( :Father ) ) Declaration( Class( :Mother ) ) Declaration( Class( :SocialRole ) ) Declaration( Class( :Man ) ) Declaration( Class( :Teenager ) ) Declaration( Class( :ChildlessPerson ) ) Declaration( Class( :Human ) ) Declaration( Class( :Female ) ) Declaration( Class( :HappyPerson ) ) Declaration( Class( :JohnsChildren ) ) Declaration( Class( :NarcisticPerson ) ) Declaration( Class( :MyBirthdayGuests ) ) Declaration( Class( :Dead ) ) Declaration( Class( :Orphan ) ) Declaration( Class( :Adult ) ) Declaration( Class( :YoungChild ) ) Declaration( ObjectProperty( :hasWife ) ) Declaration( ObjectProperty( :hasChild ) ) Declaration( ObjectProperty( :hasDaughter ) ) Declaration( ObjectProperty( :loves ) ) Declaration( ObjectProperty( :hasSpouse ) ) Declaration( ObjectProperty( :hasGrandparent ) ) Declaration( ObjectProperty( :hasParent ) ) Declaration( ObjectProperty( :hasBrother ) ) Declaration( ObjectProperty( :hasUncle ) ) Declaration( ObjectProperty( :hasSon ) ) Declaration( ObjectProperty( :hasAncestor ) ) Declaration( ObjectProperty( :hasHusband ) ) Declaration( DataProperty( :hasAge ) ) Declaration( DataProperty( :hasSSN ) ) Declaration( Datatype( :personAge ) ) Declaration( Datatype( :majorAge ) ) Declaration( Datatype( :minorAge ) ) Declaration( Datatype( :toddlerAge ) ) SubObjectPropertyOf( :hasWife :hasSpouse ) SubObjectPropertyOf( ObjectPropertyChain( :hasParent :hasParent ) :hasGrandparent ) SubObjectPropertyOf( ObjectPropertyChain( :hasFather :hasBrother ) :hasUncle ) SubObjectPropertyOf( :hasFather :hasParent ) EquivalentObjectProperties( :hasChild otherOnt:child ) InverseObjectProperties( :hasParent :hasChild ) EquivalentDataProperties( :hasAge otherOnt:age ) DisjointObjectProperties( :hasSon :hasDaughter ) ObjectPropertyDomain( :hasWife :Man ) ObjectPropertyRange( :hasWife :Woman ) DataPropertyDomain( :hasAge :Person ) DataPropertyRange( :hasAge xsd:nonNegativeInteger ) SymmetricObjectProperty( :hasSpouse ) AsymmetricObjectProperty( :hasChild ) DisjointObjectProperties( :hasParent :hasSpouse ) ReflexiveObjectProperty( :hasRelative ) IrreflexiveObjectProperty( :parentOf ) FunctionalObjectProperty( :hasHusband ) InverseFunctionalObjectProperty( :hasHusband ) TransitiveObjectProperty( :hasAncestor ) FunctionalDataProperty( :hasAge ) SubClassOf( :Woman :Person ) SubClassOf( :Mother :Woman ) SubClassOf( :Grandfather ObjectIntersectionOf( :Man :Parent ) ) SubClassOf( :Teenager DataSomeValuesFrom( :hasAge DatatypeRestriction( xsd:integer xsd:minExclusive "12"^^xsd:integer xsd:maxInclusive "19"^^xsd:integer ) ) ) SubClassOf( Annotation( rdfs:comment "States that every man is a person." ) :Man :Person ) SubClassOf( :Father ObjectIntersectionOf( :Man :Parent ) ) SubClassOf( :ChildlessPerson ObjectIntersectionOf( :Person ObjectComplementOf( ObjectSomeValuesFrom( ObjectInverseOf( :hasParent ) owl:Thing ) ) ) ) SubClassOf( ObjectIntersectionOf( ObjectOneOf( :Mary :Bill :Meg ) :Female ) ObjectIntersectionOf( :Parent ObjectMaxCardinality( 1 :hasChild ) ObjectAllValuesFrom( :hasChild :Female ) ) ) EquivalentClasses( :Person :Human ) EquivalentClasses( :Mother ObjectIntersectionOf( :Woman :Parent ) ) EquivalentClasses( :Parent ObjectUnionOf( :Mother :Father ) ) EquivalentClasses( :ChildlessPerson ObjectIntersectionOf( :Person ObjectComplementOf( :Parent ) ) ) EquivalentClasses( :Parent ObjectSomeValuesFrom( :hasChild :Person ) ) EquivalentClasses( :HappyPerson ObjectIntersectionOf( ObjectAllValuesFrom( :hasChild :HappyPerson ) ObjectSomeValuesFrom( :hasChild :HappyPerson ) ) ) EquivalentClasses( :JohnsChildren ObjectHasValue( :hasParent :John ) ) EquivalentClasses( :NarcisticPerson ObjectHasSelf( :loves ) ) EquivalentClasses( :MyBirthdayGuests ObjectOneOf( :Bill :John :Mary) ) EquivalentClasses( :Orphan ObjectAllValuesFrom( ObjectInverseOf( :hasChild ) :Dead ) ) EquivalentClasses( :Adult otherOnt:Grownup ) EquivalentClasses( :Parent ObjectSomeValuesFrom( :hasChild :Person ) ) DisjointClasses( :Woman :Man ) DisjointClasses( :Mother :Father :YoungChild ) HasKey( :Person () ( :hasSSN ) ) DatatypeDefinition( :personAge DatatypeRestriction( xsd:integer xsd:minInclusive "0"^^xsd:integer xsd:maxInclusive "150"^^xsd:integer ) ) DatatypeDefinition( :majorAge DataIntersectionOf( :personAge DataComplementOf( :minorAge ) ) ) DatatypeDefinition( :toddlerAge DataOneOf( "1"^^xsd:integer "2"^^xsd:integer ) ) ClassAssertion( :Person :Mary ) ClassAssertion( :Woman :Mary ) ClassAssertion( ObjectIntersectionOf( :Person ObjectComplementOf( :Parent ) ) :Jack ) ClassAssertion( ObjectMaxCardinality( 4 :hasChild :Parent ) :John ) ClassAssertion( ObjectMinCardinality( 2 :hasChild :Parent ) :John ) ClassAssertion( ObjectExactCardinality( 3 :hasChild :Parent ) :John ) ClassAssertion( ObjectExactCardinality( 5 :hasChild ) :John ) ClassAssertion( :Father :John ) ClassAssertion( :Person :John ) ClassAssertion( :SocialRole :Father ) ObjectPropertyAssertion( :hasWife :John :Mary ) NegativeObjectPropertyAssertion( :hasWife :Bill :Mary ) NegativeObjectPropertyAssertion( :hasDaughter :Bill :Susan ) DataPropertyAssertion( :hasAge :John "51"^^xsd:integer ) NegativeDataPropertyAssertion( :hasAge :Jack "53"^^xsd:integer ) SameIndividual( :John :Jack ) SameIndividual( :James :Jim ) SameIndividual( :John otherOnt:JohnBrown ) SameIndividual( :Mary otherOnt:MaryBrown ) DifferentIndividuals( :John :Bill ) )
7,120
Common Lisp
.l
249
23.413655
82
0.690028
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
bba5183ddced9b7f9d40a6f12a7164ad447e445d5d2e8e3ca2f37efc65e0b8cb
6,411
[ -1 ]
6,412
owl-primer.funct
lambdamikel_OntoLisp/ontolisp-0.9/test/owl-primer.funct
Prefix(:=<http://example.com/owl/families/>) Prefix(otherOnt:=<http://example.org/otherOntologies/families/>) Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>) Prefix(owl:=<http://www.w3.org/2002/07/owl#>) Ontology(<http://example.com/owl/families> // Import( <http://example.org/otherOntologies/families.owl> ) Declaration( NamedIndividual( :John ) ) Declaration( NamedIndividual( :Mary ) ) Declaration( NamedIndividual( :Jim ) ) Declaration( NamedIndividual( :James ) ) Declaration( NamedIndividual( :Jack ) ) Declaration( NamedIndividual( :Bill ) ) Declaration( NamedIndividual( :Susan ) ) Declaration( Class( :Person ) ) AnnotationAssertion( rdfs:comment :Person "Represents the set of all people." ) Declaration( Class( :Woman ) ) Declaration( Class( :Parent ) ) Declaration( Class( :Father ) ) Declaration( Class( :Mother ) ) Declaration( Class( :SocialRole ) ) Declaration( Class( :Man ) ) Declaration( Class( :Teenager ) ) Declaration( Class( :ChildlessPerson ) ) Declaration( Class( :Human ) ) Declaration( Class( :Female ) ) Declaration( Class( :HappyPerson ) ) Declaration( Class( :JohnsChildren ) ) Declaration( Class( :NarcisticPerson ) ) Declaration( Class( :MyBirthdayGuests ) ) Declaration( Class( :Dead ) ) Declaration( Class( :Orphan ) ) Declaration( Class( :Adult ) ) Declaration( Class( :YoungChild ) ) Declaration( ObjectProperty( :hasWife ) ) Declaration( ObjectProperty( :hasChild ) ) Declaration( ObjectProperty( :hasDaughter ) ) Declaration( ObjectProperty( :loves ) ) Declaration( ObjectProperty( :hasSpouse ) ) Declaration( ObjectProperty( :hasGrandparent ) ) Declaration( ObjectProperty( :hasParent ) ) Declaration( ObjectProperty( :hasBrother ) ) Declaration( ObjectProperty( :hasUncle ) ) Declaration( ObjectProperty( :hasSon ) ) Declaration( ObjectProperty( :hasAncestor ) ) Declaration( ObjectProperty( :hasHusband ) ) Declaration( DataProperty( :hasAge ) ) Declaration( DataProperty( :hasSSN ) ) Declaration( Datatype( :personAge ) ) Declaration( Datatype( :majorAge ) ) Declaration( Datatype( :toddlerAge ) ) SubObjectPropertyOf( :hasWife :hasSpouse ) SubObjectPropertyOf( ObjectPropertyChain( :hasParent :hasParent ) :hasGrandparent ) SubObjectPropertyOf( ObjectPropertyChain( :hasFather :hasBrother ) :hasUncle ) SubObjectPropertyOf( :hasFather :hasParent ) EquivalentObjectProperties( :hasChild otherOnt:child ) InverseObjectProperties( :hasParent :hasChild ) EquivalentDataProperties( :hasAge otherOnt:age ) DisjointObjectProperties( :hasSon :hasDaughter ) ObjectPropertyDomain( :hasWife :Man ) ObjectPropertyRange( :hasWife :Woman ) DataPropertyDomain( :hasAge :Person ) DataPropertyRange( :hasAge xsd:nonNegativeInteger ) SymmetricObjectProperty( :hasSpouse ) AsymmetricObjectProperty( :hasChild ) DisjointObjectProperties( :hasParent :hasSpouse ) ReflexiveObjectProperty( :hasRelative ) IrreflexiveObjectProperty( :parentOf ) FunctionalObjectProperty( :hasHusband ) InverseFunctionalObjectProperty( :hasHusband ) TransitiveObjectProperty( :hasAncestor ) FunctionalDataProperty( :hasAge ) SubClassOf( :Woman :Person ) SubClassOf( :Mother :Woman ) SubClassOf( :Grandfather ObjectIntersectionOf( :Man :Parent ) ) SubClassOf( :Teenager DataSomeValuesFrom( :hasAge DatatypeRestriction( xsd:integer xsd:minExclusive "12"^^xsd:integer xsd:maxInclusive "19"^^xsd:integer ) ) ) SubClassOf( Annotation( rdfs:comment "States that every man is a person." ) :Man :Person ) SubClassOf( :Father ObjectIntersectionOf( :Man :Parent ) ) SubClassOf( :ChildlessPerson ObjectIntersectionOf( :Person ObjectComplementOf( ObjectSomeValuesFrom( ObjectInverseOf( :hasParent ) owl:Thing ) ) ) ) SubClassOf( ObjectIntersectionOf( ObjectOneOf( :Mary :Bill :Meg ) :Female ) ObjectIntersectionOf( :Parent ObjectMaxCardinality( 1 :hasChild ) ObjectAllValuesFrom( :hasChild :Female ) ) ) EquivalentClasses( :Person :Human ) EquivalentClasses( :Mother ObjectIntersectionOf( :Woman :Parent ) ) EquivalentClasses( :Parent ObjectUnionOf( :Mother :Father ) ) EquivalentClasses( :ChildlessPerson ObjectIntersectionOf( :Person ObjectComplementOf( :Parent ) ) ) EquivalentClasses( :Parent ObjectSomeValuesFrom( :hasChild :Person ) ) EquivalentClasses( :HappyPerson ObjectIntersectionOf( ObjectAllValuesFrom( :hasChild :HappyPerson ) ObjectSomeValuesFrom( :hasChild :HappyPerson ) ) ) EquivalentClasses( :JohnsChildren ObjectHasValue( :hasParent :John ) ) EquivalentClasses( :NarcisticPerson ObjectHasSelf( :loves ) ) EquivalentClasses( :MyBirthdayGuests ObjectOneOf( :Bill :John :Mary) ) EquivalentClasses( :Orphan ObjectAllValuesFrom( ObjectInverseOf( :hasChild ) :Dead ) ) EquivalentClasses( :Adult otherOnt:Grownup ) EquivalentClasses( :Parent ObjectSomeValuesFrom( :hasChild :Person ) ) DisjointClasses( :Woman :Man ) DisjointClasses( :Mother :Father :YoungChild ) HasKey( :Person () ( :hasSSN ) ) DatatypeDefinition( :personAge DatatypeRestriction( xsd:integer xsd:minInclusive "0"^^xsd:integer xsd:maxInclusive "150"^^xsd:integer ) ) DatatypeDefinition( :majorAge DataIntersectionOf( :personAge DataComplementOf( :minorAge ) ) ) DatatypeDefinition( :toddlerAge DataOneOf( "1"^^xsd:integer "2"^^xsd:integer ) ) ClassAssertion( :Person :Mary ) ClassAssertion( :Woman :Mary ) ClassAssertion( ObjectIntersectionOf( :Person ObjectComplementOf( :Parent ) ) :Jack ) ClassAssertion( ObjectMaxCardinality( 4 :hasChild :Parent ) :John ) ClassAssertion( ObjectMinCardinality( 2 :hasChild :Parent ) :John ) ClassAssertion( ObjectExactCardinality( 3 :hasChild :Parent ) :John ) ClassAssertion( ObjectExactCardinality( 5 :hasChild ) :John ) ClassAssertion( :Father :John ) ClassAssertion( :Person :John ) ClassAssertion( :SocialRole :Father ) ObjectPropertyAssertion( :hasWife :John :Mary ) NegativeObjectPropertyAssertion( :hasWife :Bill :Mary ) NegativeObjectPropertyAssertion( :hasDaughter :Bill :Susan ) DataPropertyAssertion( :hasAge :John "51"^^xsd:integer ) NegativeDataPropertyAssertion( :hasAge :Jack "53"^^xsd:integer ) SameIndividual( :John :Jack ) SameIndividual( :James :Jim ) SameIndividual( :John otherOnt:JohnBrown ) SameIndividual( :Mary otherOnt:MaryBrown ) DifferentIndividuals( :John :Bill ) )
7,145
Common Lisp
.l
249
23.526104
82
0.690282
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
c38042ace8c1f69a15c8e7c52b112eace62d0380a2cfcc846aae09ab2dcaf3b6
6,412
[ -1 ]
6,413
people-pets-newest.owf
lambdamikel_OntoLisp/ontolisp-0.9/test/temp/people-pets-newest.owf
// Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by the Lisp-OWLAPI Prefix(:=<http://cohse.semanticweb.org/ontologies/people#>) Prefix(owl:=<http://www.w3.org/2002/07/owl#>) Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>) Prefix(skos:=<http://www.w3.org/2004/02/skos/core#>) Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>) Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>) Ontology(<http://cohse.semanticweb.org/ontologies/people> // Axiom ID 8 // (|OWLOntologyAnnotationAxiom| // (|Annotation| |http://www.w3.org/2002/07/owl#versionInfo| // (D-LITERAL "2.8" NIL))) Annotation( owl:versionInfo "2.8"^^xsd:string) // Axiom ID 303 // (|OWLDeclarationAxiom| // (|DataProperty| // |http://cohse.semanticweb.org/ontologies/people#service_number|)) Declaration( DataProperty( :service_number )) // Axiom ID 300 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#works_for|)) Declaration( ObjectProperty( :works_for )) // Axiom ID 296 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#reads|)) Declaration( ObjectProperty( :reads )) // Axiom ID 293 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#part_of|)) Declaration( ObjectProperty( :part_of )) // Axiom ID 290 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#likes|)) Declaration( ObjectProperty( :likes )) // Axiom ID 287 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#is_pet_of|)) Declaration( ObjectProperty( :is_pet_of )) // Axiom ID 280 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_pet|)) Declaration( ObjectProperty( :has_pet )) // Axiom ID 276 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_part|)) Declaration( ObjectProperty( :has_part )) // Axiom ID 273 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_parent|)) Declaration( ObjectProperty( :has_parent )) // Axiom ID 268 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_mother|)) Declaration( ObjectProperty( :has_mother )) // Axiom ID 263 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_father|)) Declaration( ObjectProperty( :has_father )) // Axiom ID 260 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_child|)) Declaration( ObjectProperty( :has_child )) // Axiom ID 256 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#eats|)) Declaration( ObjectProperty( :eats )) // Axiom ID 252 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#eaten_by|)) Declaration( ObjectProperty( :eaten_by )) // Axiom ID 249 // (|OWLDeclarationAxiom| // (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#drives|)) Declaration( ObjectProperty( :drives )) // Axiom ID 245 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#young|)) Declaration( Class( :young )) // Axiom ID 241 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#woman|)) Declaration( Class( :woman )) // Axiom ID 236 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#white_van_man|)) Declaration( Class( :white_van_man )) // Axiom ID 233 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#white_thing|)) Declaration( Class( :white_thing )) // Axiom ID 230 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#vehicle|)) Declaration( Class( :vehicle )) // Axiom ID 226 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#vegetarian|)) Declaration( Class( :vegetarian )) // Axiom ID 222 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#van_driver|)) Declaration( Class( :van_driver )) // Axiom ID 218 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#van|)) Declaration( Class( :van )) // Axiom ID 214 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#truck|)) Declaration( Class( :truck )) // Axiom ID 210 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#tree|)) Declaration( Class( :tree )) // Axiom ID 206 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#tiger|)) Declaration( Class( :tiger )) // Axiom ID 201 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) Declaration( Class( :tabloid )) // Axiom ID 196 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#sheep|)) Declaration( Class( :sheep )) // Axiom ID 192 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#red_top|)) Declaration( Class( :red_top )) // Axiom ID 188 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet|)) Declaration( Class( :quality_broadsheet )) // Axiom ID 185 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#publication|)) Declaration( Class( :publication )) // Axiom ID 182 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#plant|)) Declaration( Class( :plant )) // Axiom ID 178 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#pet_owner|)) Declaration( Class( :pet_owner )) // Axiom ID 174 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#pet|)) Declaration( Class( :pet )) // Axiom ID 170 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#person|)) Declaration( Class( :person )) // Axiom ID 165 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#old_lady|)) Declaration( Class( :old_lady )) // Axiom ID 160 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#newspaper|)) Declaration( Class( :newspaper )) // Axiom ID 156 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#man|)) Declaration( Class( :man )) // Axiom ID 153 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#male|)) Declaration( Class( :male )) // Axiom ID 149 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#magazine|)) Declaration( Class( :magazine )) // Axiom ID 145 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#mad_cow|)) Declaration( Class( :mad_cow )) // Axiom ID 141 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry_driver|)) Declaration( Class( :lorry_driver )) // Axiom ID 137 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry|)) Declaration( Class( :lorry )) // Axiom ID 133 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#leaf|)) Declaration( Class( :leaf )) // Axiom ID 129 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#kid|)) Declaration( Class( :kid )) // Axiom ID 125 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_worker|)) Declaration( Class( :haulage_worker )) // Axiom ID 121 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver|)) Declaration( Class( :haulage_truck_driver )) // Axiom ID 117 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) Declaration( Class( :haulage_company )) // Axiom ID 113 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#grownup|)) Declaration( Class( :grownup )) // Axiom ID 109 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#grass|)) Declaration( Class( :grass )) // Axiom ID 104 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#giraffe|)) Declaration( Class( :giraffe )) // Axiom ID 101 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#female|)) Declaration( Class( :female )) // Axiom ID 97 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#elderly|)) Declaration( Class( :elderly )) // Axiom ID 93 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#duck|)) Declaration( Class( :duck )) // Axiom ID 88 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#driver|)) Declaration( Class( :driver )) // Axiom ID 84 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_owner|)) Declaration( Class( :dog_owner )) // Axiom ID 80 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_liker|)) Declaration( Class( :dog_liker )) // Axiom ID 75 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#dog|)) Declaration( Class( :dog )) // Axiom ID 71 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cow|)) Declaration( Class( :cow )) // Axiom ID 68 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#company|)) Declaration( Class( :company )) // Axiom ID 64 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_owner|)) Declaration( Class( :cat_owner )) // Axiom ID 60 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_liker|)) Declaration( Class( :cat_liker )) // Axiom ID 55 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cat|)) Declaration( Class( :cat )) // Axiom ID 51 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#car|)) Declaration( Class( :car )) // Axiom ID 47 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_driver|)) Declaration( Class( :bus_driver )) // Axiom ID 43 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_company|)) Declaration( Class( :bus_company )) // Axiom ID 39 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bus|)) Declaration( Class( :bus )) // Axiom ID 34 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) Declaration( Class( :broadsheet )) // Axiom ID 31 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#brain|)) Declaration( Class( :brain )) // Axiom ID 28 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bone|)) Declaration( Class( :bone )) // Axiom ID 24 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bicycle|)) Declaration( Class( :bicycle )) // Axiom ID 20 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#animal_lover|)) Declaration( Class( :animal_lover )) // Axiom ID 16 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#animal|)) Declaration( Class( :animal )) // Axiom ID 12 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#adult|)) Declaration( Class( :adult )) // Axiom ID 9 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#Axiom_2|)) Declaration( Class( :Axiom_2 )) // Axiom ID 248 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#young| // |http://cohse.semanticweb.org/ontologies/people#adult|)) DisjointClasses( :young :adult ) // Axiom ID 244 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#woman| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://cohse.semanticweb.org/ontologies/people#adult|))) EquivalentClasses( :woman ObjectIntersectionOf( :person :female :adult )) // Axiom ID 240 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_van_man| // (ALL |http://cohse.semanticweb.org/ontologies/people#reads| // |http://cohse.semanticweb.org/ontologies/people#tabloid|)) SubClassOf( :white_van_man ObjectAllValuesFrom( :reads :tabloid )) // Axiom ID 239 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#white_van_man| // (AND |http://cohse.semanticweb.org/ontologies/people#man| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // (AND |http://cohse.semanticweb.org/ontologies/people#van| // |http://cohse.semanticweb.org/ontologies/people#white_thing|))))) EquivalentClasses( :white_van_man ObjectIntersectionOf( :man ObjectSomeValuesFrom( :drives ObjectIntersectionOf( :van :white_thing )))) // Axiom ID 229 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#vegetarian| // (AND // (ALL |http://cohse.semanticweb.org/ontologies/people#eats| // (NOT // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#animal|))) // (ALL |http://cohse.semanticweb.org/ontologies/people#eats| // (NOT |http://cohse.semanticweb.org/ontologies/people#animal|)) // |http://cohse.semanticweb.org/ontologies/people#animal|))) EquivalentClasses( :vegetarian ObjectIntersectionOf( ObjectAllValuesFrom( :eats ObjectComplementOf( ObjectSomeValuesFrom( :part_of :animal ))) ObjectAllValuesFrom( :eats ObjectComplementOf( :animal )) :animal )) // Axiom ID 225 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#van_driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#van|)))) EquivalentClasses( :van_driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :van ))) // Axiom ID 221 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#van| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :van :vehicle ) // Axiom ID 217 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :truck :vehicle ) // Axiom ID 213 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| // |http://cohse.semanticweb.org/ontologies/people#plant|) SubClassOf( :tree :plant ) // Axiom ID 209 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :tiger :animal ) // Axiom ID 205 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://cohse.semanticweb.org/ontologies/people#newspaper|) SubClassOf( :tabloid :newspaper ) // Axiom ID 204 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) DisjointClasses( :tabloid :broadsheet ) // Axiom ID 200 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| // (ALL |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#grass|)) SubClassOf( :sheep ObjectAllValuesFrom( :eats :grass )) // Axiom ID 199 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :sheep :animal ) // Axiom ID 195 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| // |http://cohse.semanticweb.org/ontologies/people#tabloid|) SubClassOf( :red_top :tabloid ) // Axiom ID 191 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|) SubClassOf( :quality_broadsheet :broadsheet ) // Axiom ID 181 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#pet_owner| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#animal|)))) EquivalentClasses( :pet_owner ObjectIntersectionOf( :person ObjectSomeValuesFrom( :has_pet :animal ))) // Axiom ID 177 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#pet| // (SOME |http://cohse.semanticweb.org/ontologies/people#is_pet_of| TOP))) EquivalentClasses( :pet ObjectSomeValuesFrom( :is_pet_of owl:Thing )) // Axiom ID 173 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :person :animal ) // Axiom ID 169 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| // (AND // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#animal|) // (ALL |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#cat|))) SubClassOf( :old_lady ObjectIntersectionOf( ObjectSomeValuesFrom( :has_pet :animal ) ObjectAllValuesFrom( :has_pet :cat ))) // Axiom ID 168 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#old_lady| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://cohse.semanticweb.org/ontologies/people#elderly|))) EquivalentClasses( :old_lady ObjectIntersectionOf( :person :female :elderly )) // Axiom ID 164 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| // (OR |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://cohse.semanticweb.org/ontologies/people#tabloid|)) SubClassOf( :newspaper ObjectUnionOf( :broadsheet :tabloid )) // Axiom ID 163 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| // |http://cohse.semanticweb.org/ontologies/people#publication|) SubClassOf( :newspaper :publication ) // Axiom ID 159 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#man| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#male| // |http://cohse.semanticweb.org/ontologies/people#adult|))) EquivalentClasses( :man ObjectIntersectionOf( :person :male :adult )) // Axiom ID 152 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| // |http://cohse.semanticweb.org/ontologies/people#publication|) SubClassOf( :magazine :publication ) // Axiom ID 148 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#mad_cow| // (AND |http://cohse.semanticweb.org/ontologies/people#cow| // (SOME |http://cohse.semanticweb.org/ontologies/people#eats| // (AND |http://cohse.semanticweb.org/ontologies/people#brain| // (SOME // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#sheep|)))))) EquivalentClasses( :mad_cow ObjectIntersectionOf( :cow ObjectSomeValuesFrom( :eats ObjectIntersectionOf( :brain ObjectSomeValuesFrom( :part_of :sheep ))))) // Axiom ID 144 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#lorry_driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#lorry|)))) EquivalentClasses( :lorry_driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :lorry ))) // Axiom ID 140 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :lorry :vehicle ) // Axiom ID 136 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#tree|)) SubClassOf( :leaf ObjectSomeValuesFrom( :part_of :tree )) // Axiom ID 132 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#kid| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#young|))) EquivalentClasses( :kid ObjectIntersectionOf( :person :young )) // Axiom ID 128 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#haulage_worker| // (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| // (OR |http://cohse.semanticweb.org/ontologies/people#haulage_company| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#haulage_company|))))) EquivalentClasses( :haulage_worker ObjectSomeValuesFrom( :works_for ObjectUnionOf( :haulage_company ObjectSomeValuesFrom( :part_of :haulage_company )))) // Axiom ID 124 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| // (AND // (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#truck|) // |http://cohse.semanticweb.org/ontologies/people#person|))) EquivalentClasses( :haulage_truck_driver ObjectIntersectionOf( ObjectSomeValuesFrom( :works_for ObjectSomeValuesFrom( :part_of :haulage_company )) ObjectSomeValuesFrom( :drives :truck ) :person )) // Axiom ID 120 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_company| // |http://cohse.semanticweb.org/ontologies/people#company|) SubClassOf( :haulage_company :company ) // Axiom ID 116 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#grownup| // (AND |http://cohse.semanticweb.org/ontologies/people#adult| // |http://cohse.semanticweb.org/ontologies/people#person|))) EquivalentClasses( :grownup ObjectIntersectionOf( :adult :person )) // Axiom ID 112 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| // |http://cohse.semanticweb.org/ontologies/people#plant|) SubClassOf( :grass :plant ) // Axiom ID 108 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| // (ALL |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#leaf|)) SubClassOf( :giraffe ObjectAllValuesFrom( :eats :leaf )) // Axiom ID 107 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :giraffe :animal ) // Axiom ID 100 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| // |http://cohse.semanticweb.org/ontologies/people#adult|) SubClassOf( :elderly :adult ) // Axiom ID 96 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :duck :animal ) // Axiom ID 92 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| // |http://cohse.semanticweb.org/ontologies/people#adult|) SubClassOf( :driver :adult ) // Axiom ID 91 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#vehicle|)))) EquivalentClasses( :driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :vehicle ))) // Axiom ID 87 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#dog_owner| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#dog|)))) EquivalentClasses( :dog_owner ObjectIntersectionOf( :person ObjectSomeValuesFrom( :has_pet :dog ))) // Axiom ID 83 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#dog_liker| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#likes| // |http://cohse.semanticweb.org/ontologies/people#dog|)))) EquivalentClasses( :dog_liker ObjectIntersectionOf( :person ObjectSomeValuesFrom( :likes :dog ))) // Axiom ID 79 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| // (SOME |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#bone|)) SubClassOf( :dog ObjectSomeValuesFrom( :eats :bone )) // Axiom ID 78 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#dog| // |http://cohse.semanticweb.org/ontologies/people#cat|)) DisjointClasses( :dog :cat ) // Axiom ID 74 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| // |http://cohse.semanticweb.org/ontologies/people#vegetarian|) SubClassOf( :cow :vegetarian ) // Axiom ID 67 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#cat_owner| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#cat|)))) EquivalentClasses( :cat_owner ObjectIntersectionOf( :person ObjectSomeValuesFrom( :has_pet :cat ))) // Axiom ID 63 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#cat_liker| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#likes| // |http://cohse.semanticweb.org/ontologies/people#cat|)))) EquivalentClasses( :cat_liker ObjectIntersectionOf( :person ObjectSomeValuesFrom( :likes :cat ))) // Axiom ID 59 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#cat| // |http://cohse.semanticweb.org/ontologies/people#dog|)) DisjointClasses( :cat :dog ) // Axiom ID 58 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :cat :animal ) // Axiom ID 54 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#car| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :car :vehicle ) // Axiom ID 50 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#bus_driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#bus|)))) EquivalentClasses( :bus_driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :bus ))) // Axiom ID 46 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_company| // |http://cohse.semanticweb.org/ontologies/people#company|) SubClassOf( :bus_company :company ) // Axiom ID 42 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :bus :vehicle ) // Axiom ID 38 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://cohse.semanticweb.org/ontologies/people#tabloid|)) DisjointClasses( :broadsheet :tabloid ) // Axiom ID 37 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://cohse.semanticweb.org/ontologies/people#newspaper|) SubClassOf( :broadsheet :newspaper ) // Axiom ID 27 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :bicycle :vehicle ) // Axiom ID 23 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#animal_lover| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (AT-LEAST 3 |http://cohse.semanticweb.org/ontologies/people#has_pet|)))) EquivalentClasses( :animal_lover ObjectIntersectionOf( :person ObjectMinCardinality( 3 :has_pet ))) // Axiom ID 19 // (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| // (SOME |http://cohse.semanticweb.org/ontologies/people#eats| TOP)) SubClassOf( :animal ObjectSomeValuesFrom( :eats owl:Thing )) // Axiom ID 15 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#adult| // |http://cohse.semanticweb.org/ontologies/people#young|)) DisjointClasses( :adult :young ) // Axiom ID 11 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| // (OR |http://cohse.semanticweb.org/ontologies/people#plant| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#plant|)))) DisjointClasses( :Axiom_2 ObjectUnionOf( :plant ObjectSomeValuesFrom( :part_of :plant ))) // Axiom ID 10 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| // (OR |http://cohse.semanticweb.org/ontologies/people#animal| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#animal|)))) EquivalentClasses( :Axiom_2 ObjectUnionOf( :animal ObjectSomeValuesFrom( :part_of :animal ))) // Axiom ID 306 // (|OWLDataPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#service_number| // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) DataPropertyRange( :service_number xsd:integer ) // Axiom ID 299 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://cohse.semanticweb.org/ontologies/people#publication|) ObjectPropertyRange( :reads :publication ) // Axiom ID 286 // (|OWLInverseObjectPropertiesAxiom| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://cohse.semanticweb.org/ontologies/people#has_pet|) InverseObjectProperties( :is_pet_of :has_pet ) // Axiom ID 285 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#animal|) ObjectPropertyRange( :has_pet :animal ) // Axiom ID 284 // (|OWLObjectPropertyDomainAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#person|) ObjectPropertyDomain( :has_pet :person ) // Axiom ID 283 // (|OWLObjectSubPropertyAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#likes|) SubObjectPropertyOf( :has_pet :likes ) // Axiom ID 279 // (|OWLInverseObjectPropertiesAxiom| // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#has_part|) InverseObjectProperties( :part_of :has_part ) // Axiom ID 272 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://cohse.semanticweb.org/ontologies/people#woman|) ObjectPropertyRange( :has_mother :woman ) // Axiom ID 271 // (|OWLObjectSubPropertyAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://cohse.semanticweb.org/ontologies/people#has_parent|) SubObjectPropertyOf( :has_mother :has_parent ) // Axiom ID 267 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://cohse.semanticweb.org/ontologies/people#man|) ObjectPropertyRange( :has_father :man ) // Axiom ID 266 // (|OWLObjectSubPropertyAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://cohse.semanticweb.org/ontologies/people#has_parent|) SubObjectPropertyOf( :has_father :has_parent ) // Axiom ID 259 // (|OWLObjectPropertyDomainAxiom| // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#animal|) ObjectPropertyDomain( :eats :animal ) // Axiom ID 255 // (|OWLInverseObjectPropertiesAxiom| // |http://cohse.semanticweb.org/ontologies/people#eaten_by| // |http://cohse.semanticweb.org/ontologies/people#eats|) InverseObjectProperties( :eaten_by :eats ) // Axiom ID 382 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Louie|) ObjectPropertyAssertion( :has_pet :Walt :Louie ) // Axiom ID 381 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Huey|) ObjectPropertyAssertion( :has_pet :Walt :Huey ) // Axiom ID 380 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Dewey|) ObjectPropertyAssertion( :has_pet :Walt :Dewey ) // Axiom ID 379 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Walt ) // Axiom ID 376 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| // TOP) ClassAssertion( owl:Thing :Tom ) // Axiom ID 373 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tibbs| // |http://cohse.semanticweb.org/ontologies/people#cat|) ClassAssertion( :cat :Tibbs ) // Axiom ID 370 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Times| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|) ClassAssertion( :broadsheet :The_Times ) // Axiom ID 367 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Sun| // |http://cohse.semanticweb.org/ontologies/people#tabloid|) ClassAssertion( :tabloid :The_Sun ) // Axiom ID 364 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Guardian| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|) ClassAssertion( :broadsheet :The_Guardian ) // Axiom ID 361 // (|OWLDataPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://cohse.semanticweb.org/ontologies/people#service_number| // (D-LITERAL "42" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))) DataPropertyAssertion( :service_number :The42 "42"^^xsd:integer ) // Axiom ID 360 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://cohse.semanticweb.org/ontologies/people#bus|) ClassAssertion( :bus :The42 ) // Axiom ID 357 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://cohse.semanticweb.org/ontologies/people#Mick|) ObjectPropertyAssertion( :is_pet_of :Rex :Mick ) // Axiom ID 356 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://cohse.semanticweb.org/ontologies/people#dog|) ClassAssertion( :dog :Rex ) // Axiom ID 353 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://cohse.semanticweb.org/ontologies/people#white_thing|) ClassAssertion( :white_thing :Q123_ABC ) // Axiom ID 352 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://cohse.semanticweb.org/ontologies/people#van|) ClassAssertion( :van :Q123_ABC ) // Axiom ID 349 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Tom|) ObjectPropertyAssertion( :has_pet :Minnie :Tom ) // Axiom ID 348 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://cohse.semanticweb.org/ontologies/people#female|) ClassAssertion( :female :Minnie ) // Axiom ID 347 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://cohse.semanticweb.org/ontologies/people#elderly|) ClassAssertion( :elderly :Minnie ) // Axiom ID 344 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror|) ObjectPropertyAssertion( :reads :Mick :Daily_Mirror ) // Axiom ID 343 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC|) ObjectPropertyAssertion( :drives :Mick :Q123_ABC ) // Axiom ID 342 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://cohse.semanticweb.org/ontologies/people#male|) ClassAssertion( :male :Mick ) // Axiom ID 339 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Louie| // |http://cohse.semanticweb.org/ontologies/people#duck|) ClassAssertion( :duck :Louie ) // Axiom ID 336 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Kevin| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Kevin ) // Axiom ID 333 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Fido|) ObjectPropertyAssertion( :has_pet :Joe :Fido ) // Axiom ID 332 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| // (AT-MOST 1 |http://cohse.semanticweb.org/ontologies/people#has_pet|)) ClassAssertion( ObjectMaxCardinality( 1 :has_pet ) :Joe ) // Axiom ID 331 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Joe ) // Axiom ID 328 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| // |http://cohse.semanticweb.org/ontologies/people#duck|) ClassAssertion( :duck :Huey ) // Axiom ID 325 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Tibbs|) ObjectPropertyAssertion( :has_pet :Fred :Tibbs ) // Axiom ID 324 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Fred ) // Axiom ID 321 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fluffy| // |http://cohse.semanticweb.org/ontologies/people#tiger|) ClassAssertion( :tiger :Fluffy ) // Axiom ID 318 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Flossie| // |http://cohse.semanticweb.org/ontologies/people#cow|) ClassAssertion( :cow :Flossie ) // Axiom ID 315 // (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| // |http://cohse.semanticweb.org/ontologies/people#dog|) ClassAssertion( :dog :Fido ) // Axiom ID 312 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Dewey| // |http://cohse.semanticweb.org/ontologies/people#duck|) ClassAssertion( :duck :Dewey ) // Axiom ID 309 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| TOP) ClassAssertion( owl:Thing :Daily_Mirror ) // Axiom ID 378 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Walt" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Walt "Walt"^^xsd:string ) // Axiom ID 377 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Walt ""^^xsd:string ) // Axiom ID 375 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tom| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Tom" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Tom "Tom"^^xsd:string ) // Axiom ID 374 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tom| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Tom ""^^xsd:string ) // Axiom ID 372 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tibbs| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Tibbs ""^^xsd:string ) // Axiom ID 371 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tibbs| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Tibbs" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Tibbs "Tibbs"^^xsd:string ) // Axiom ID 369 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Times| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "The Times" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The_Times "The Times"^^xsd:string ) // Axiom ID 368 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Times| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The_Times ""^^xsd:string ) // Axiom ID 366 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Sun| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "The Sun" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The_Sun "The Sun"^^xsd:string ) // Axiom ID 365 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Sun| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The_Sun ""^^xsd:string ) // Axiom ID 363 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Guardian| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "The Guardian" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The_Guardian "The Guardian"^^xsd:string ) // Axiom ID 362 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Guardian| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The_Guardian ""^^xsd:string ) // Axiom ID 359 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The42 ""^^xsd:string ) // Axiom ID 358 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "The42" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The42 "The42"^^xsd:string ) // Axiom ID 355 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Rex" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Rex "Rex"^^xsd:string ) // Axiom ID 354 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Rex ""^^xsd:string ) // Axiom ID 351 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Q123 ABC" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Q123_ABC "Q123 ABC"^^xsd:string ) // Axiom ID 350 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "A white van" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Q123_ABC "A white van"^^xsd:string ) // Axiom ID 346 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Minnie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Minnie "Minnie"^^xsd:string ) // Axiom ID 345 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Minnie ""^^xsd:string ) // Axiom ID 341 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Mick" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Mick "Mick"^^xsd:string ) // Axiom ID 340 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Mick "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror."^^xsd:string ) // Axiom ID 338 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Louie| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Louie ""^^xsd:string ) // Axiom ID 337 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Louie| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Louie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Louie "Louie"^^xsd:string ) // Axiom ID 335 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Kevin| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Kevin" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Kevin "Kevin"^^xsd:string ) // Axiom ID 334 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Kevin| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Kevin ""^^xsd:string ) // Axiom ID 330 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Joe ""^^xsd:string ) // Axiom ID 329 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Joe" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Joe "Joe"^^xsd:string ) // Axiom ID 327 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Huey| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Huey" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Huey "Huey"^^xsd:string ) // Axiom ID 326 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Huey| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Huey ""^^xsd:string ) // Axiom ID 323 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Fred" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Fred "Fred"^^xsd:string ) // Axiom ID 322 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Fred ""^^xsd:string ) // Axiom ID 320 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fluffy| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Fluffy ""^^xsd:string ) // Axiom ID 319 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fluffy| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Fluffy" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Fluffy "Fluffy"^^xsd:string ) // Axiom ID 317 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Flossie| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Flossie ""^^xsd:string ) // Axiom ID 316 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Flossie| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Flossie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Flossie "Flossie"^^xsd:string ) // Axiom ID 314 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fido| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Fido" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Fido "Fido"^^xsd:string ) // Axiom ID 313 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fido| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Fido ""^^xsd:string ) // Axiom ID 311 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Dewey| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Dewey ""^^xsd:string ) // Axiom ID 310 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Dewey| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Dewey" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Dewey "Dewey"^^xsd:string ) // Axiom ID 308 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "The paper read by Mick (a white van man)." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Daily_Mirror "The paper read by Mick (a white van man)."^^xsd:string ) // Axiom ID 307 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "Daily Mirror" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Daily_Mirror "Daily Mirror"^^xsd:string ) // Axiom ID 305 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#service_number| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :service_number ""^^xsd:string ) // Axiom ID 304 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#service_number| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "service_number" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :service_number "service_number"^^xsd:string ) // Axiom ID 302 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#works_for| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "works_for" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :works_for "works_for"^^xsd:string ) // Axiom ID 301 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#works_for| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :works_for ""^^xsd:string ) // Axiom ID 298 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :reads ""^^xsd:string ) // Axiom ID 297 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "reads" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :reads "reads"^^xsd:string ) // Axiom ID 295 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :part_of ""^^xsd:string ) // Axiom ID 294 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "part_of" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :part_of "part_of"^^xsd:string ) // Axiom ID 292 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#likes| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "likes" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :likes "likes"^^xsd:string ) // Axiom ID 291 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#likes| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :likes ""^^xsd:string ) // Axiom ID 289 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :is_pet_of ""^^xsd:string ) // Axiom ID 288 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "is_pet_of" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :is_pet_of "is_pet_of"^^xsd:string ) // Axiom ID 282 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "has_pet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_pet "has_pet"^^xsd:string ) // Axiom ID 281 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "Anyone that has a pet must like that pet." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_pet "Anyone that has a pet must like that pet."^^xsd:string ) // Axiom ID 278 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_part| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_part ""^^xsd:string ) // Axiom ID 277 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_part| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "has_part" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_part "has_part"^^xsd:string ) // Axiom ID 275 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_parent| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_parent ""^^xsd:string ) // Axiom ID 274 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_parent| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "has_parent" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_parent "has_parent"^^xsd:string ) // Axiom ID 270 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_mother ""^^xsd:string ) // Axiom ID 269 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "has_mother" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_mother "has_mother"^^xsd:string ) // Axiom ID 265 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "has_father" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_father "has_father"^^xsd:string ) // Axiom ID 264 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_father ""^^xsd:string ) // Axiom ID 262 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_child| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "has_child" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_child "has_child"^^xsd:string ) // Axiom ID 261 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_child| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_child ""^^xsd:string ) // Axiom ID 258 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :eats ""^^xsd:string ) // Axiom ID 257 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "eats" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :eats "eats"^^xsd:string ) // Axiom ID 254 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eaten_by| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "eaten_by" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :eaten_by "eaten_by"^^xsd:string ) // Axiom ID 253 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eaten_by| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :eaten_by ""^^xsd:string ) // Axiom ID 251 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#drives| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :drives ""^^xsd:string ) // Axiom ID 250 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#drives| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "drives" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :drives "drives"^^xsd:string ) // Axiom ID 247 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#young| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "young" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :young "young"^^xsd:string ) // Axiom ID 246 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#young| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :young ""^^xsd:string ) // Axiom ID 243 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#woman| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "woman" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :woman "woman"^^xsd:string ) // Axiom ID 242 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#woman| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :woman ""^^xsd:string ) // Axiom ID 238 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_van_man| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "white van man" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :white_van_man "white van man"^^xsd:string ) // Axiom ID 237 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_van_man| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "A white van man is a man who drives a white van." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :white_van_man "A white van man is a man who drives a white van."^^xsd:string ) // Axiom ID 235 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_thing| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "white thing" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :white_thing "white thing"^^xsd:string ) // Axiom ID 234 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_thing| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :white_thing ""^^xsd:string ) // Axiom ID 232 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vehicle| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "vehicle" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :vehicle "vehicle"^^xsd:string ) // Axiom ID 231 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vehicle| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :vehicle ""^^xsd:string ) // Axiom ID 228 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vegetarian| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "vegetarian" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :vegetarian "vegetarian"^^xsd:string ) // Axiom ID 227 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vegetarian| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A vegetarian is defined as an animal that eats no other animals, or parts of animals." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :vegetarian "A vegetarian is defined as an animal that eats no other animals, or parts of animals."^^xsd:string ) // Axiom ID 224 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :van_driver ""^^xsd:string ) // Axiom ID 223 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "van driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :van_driver "van driver"^^xsd:string ) // Axiom ID 220 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "van" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :van "van"^^xsd:string ) // Axiom ID 219 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :van ""^^xsd:string ) // Axiom ID 216 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#truck| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "truck" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :truck "truck"^^xsd:string ) // Axiom ID 215 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#truck| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :truck ""^^xsd:string ) // Axiom ID 212 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tree| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :tree ""^^xsd:string ) // Axiom ID 211 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tree| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "tree" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :tree "tree"^^xsd:string ) // Axiom ID 208 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tiger| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :tiger ""^^xsd:string ) // Axiom ID 207 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tiger| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "tiger" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :tiger "tiger"^^xsd:string ) // Axiom ID 203 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :tabloid "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets."^^xsd:string ) // Axiom ID 202 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "tabloid" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :tabloid "tabloid"^^xsd:string ) // Axiom ID 198 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#sheep| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "sheep" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :sheep "sheep"^^xsd:string ) // Axiom ID 197 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#sheep| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :sheep ""^^xsd:string ) // Axiom ID 194 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#red_top| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :red_top ""^^xsd:string ) // Axiom ID 193 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#red_top| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "red top" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :red_top "red top"^^xsd:string ) // Axiom ID 190 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :quality_broadsheet ""^^xsd:string ) // Axiom ID 189 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "quality broadsheet" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :quality_broadsheet "quality broadsheet"^^xsd:string ) // Axiom ID 187 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#publication| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "publication" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :publication "publication"^^xsd:string ) // Axiom ID 186 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#publication| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :publication ""^^xsd:string ) // Axiom ID 184 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#plant| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :plant ""^^xsd:string ) // Axiom ID 183 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#plant| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "plant" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :plant "plant"^^xsd:string ) // Axiom ID 180 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet_owner| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :pet_owner ""^^xsd:string ) // Axiom ID 179 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet_owner| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "pet owner" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :pet_owner "pet owner"^^xsd:string ) // Axiom ID 176 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :pet ""^^xsd:string ) // Axiom ID 175 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "pet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :pet "pet"^^xsd:string ) // Axiom ID 172 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#person| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :person ""^^xsd:string ) // Axiom ID 171 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#person| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "person" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :person "person"^^xsd:string ) // Axiom ID 167 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#old_lady| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :old_lady ""^^xsd:string ) // Axiom ID 166 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#old_lady| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "old lady" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :old_lady "old lady"^^xsd:string ) // Axiom ID 162 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#newspaper| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "All newspapers are either broadsheets or tabloids." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :newspaper "All newspapers are either broadsheets or tabloids."^^xsd:string ) // Axiom ID 161 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#newspaper| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "newspaper" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :newspaper "newspaper"^^xsd:string ) // Axiom ID 158 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#man| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :man ""^^xsd:string ) // Axiom ID 157 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#man| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "man" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :man "man"^^xsd:string ) // Axiom ID 155 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#male| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "The class of all male things." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :male "The class of all male things."^^xsd:string ) // Axiom ID 154 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#male| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "male" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :male "male"^^xsd:string ) // Axiom ID 151 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#magazine| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :magazine ""^^xsd:string ) // Axiom ID 150 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#magazine| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "magazine" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :magazine "magazine"^^xsd:string ) // Axiom ID 147 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#mad_cow| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "mad cow" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :mad_cow "mad cow"^^xsd:string ) // Axiom ID 146 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#mad_cow| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "A mad cow is a cow that has been eating the brains of sheep." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :mad_cow "A mad cow is a cow that has been eating the brains of sheep."^^xsd:string ) // Axiom ID 143 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "lorry driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :lorry_driver "lorry driver"^^xsd:string ) // Axiom ID 142 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :lorry_driver ""^^xsd:string ) // Axiom ID 139 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :lorry ""^^xsd:string ) // Axiom ID 138 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "lorry" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :lorry "lorry"^^xsd:string ) // Axiom ID 135 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#leaf| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :leaf ""^^xsd:string ) // Axiom ID 134 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#leaf| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "leaf" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :leaf "leaf"^^xsd:string ) // Axiom ID 131 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#kid| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :kid ""^^xsd:string ) // Axiom ID 130 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#kid| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "kid" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :kid "kid"^^xsd:string ) // Axiom ID 127 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_worker| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :haulage_worker ""^^xsd:string ) // Axiom ID 126 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_worker| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "haulage worker" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :haulage_worker "haulage worker"^^xsd:string ) // Axiom ID 123 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :haulage_truck_driver ""^^xsd:string ) // Axiom ID 122 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "haulage truck driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :haulage_truck_driver "haulage truck driver"^^xsd:string ) // Axiom ID 119 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_company| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :haulage_company ""^^xsd:string ) // Axiom ID 118 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_company| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "haulage company" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :haulage_company "haulage company"^^xsd:string ) // Axiom ID 115 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grownup| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :grownup ""^^xsd:string ) // Axiom ID 114 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grownup| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "grownup" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :grownup "grownup"^^xsd:string ) // Axiom ID 111 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grass| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :grass ""^^xsd:string ) // Axiom ID 110 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grass| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "grass" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :grass "grass"^^xsd:string ) // Axiom ID 106 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#giraffe| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :giraffe ""^^xsd:string ) // Axiom ID 105 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#giraffe| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "giraffe" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :giraffe "giraffe"^^xsd:string ) // Axiom ID 103 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "female" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :female "female"^^xsd:string ) // Axiom ID 102 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :female ""^^xsd:string ) // Axiom ID 99 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#elderly| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :elderly ""^^xsd:string ) // Axiom ID 98 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#elderly| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "elderly" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :elderly "elderly"^^xsd:string ) // Axiom ID 95 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#duck| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :duck ""^^xsd:string ) // Axiom ID 94 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#duck| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "duck" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :duck "duck"^^xsd:string ) // Axiom ID 90 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :driver "driver"^^xsd:string ) // Axiom ID 89 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :driver ""^^xsd:string ) // Axiom ID 86 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_owner| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :dog_owner ""^^xsd:string ) // Axiom ID 85 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_owner| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "dog owner" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :dog_owner "dog owner"^^xsd:string ) // Axiom ID 82 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_liker| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :dog_liker ""^^xsd:string ) // Axiom ID 81 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_liker| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "dog liker" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :dog_liker "dog liker"^^xsd:string ) // Axiom ID 77 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :dog ""^^xsd:string ) // Axiom ID 76 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "dog" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :dog "dog"^^xsd:string ) // Axiom ID 73 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cow| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "Cows are naturally vegetarians." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cow "Cows are naturally vegetarians."^^xsd:string ) // Axiom ID 72 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cow| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "cow" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cow "cow"^^xsd:string ) // Axiom ID 70 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#company| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :company "company"^^xsd:string ) // Axiom ID 69 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#company| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :company ""^^xsd:string ) // Axiom ID 66 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_owner| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "cat owner" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cat_owner "cat owner"^^xsd:string ) // Axiom ID 65 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_owner| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cat_owner ""^^xsd:string ) // Axiom ID 62 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_liker| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "cat liker" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cat_liker "cat liker"^^xsd:string ) // Axiom ID 61 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_liker| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cat_liker ""^^xsd:string ) // Axiom ID 57 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "cat" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cat "cat"^^xsd:string ) // Axiom ID 56 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cat ""^^xsd:string ) // Axiom ID 53 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#car| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :car ""^^xsd:string ) // Axiom ID 52 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#car| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "car" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :car "car"^^xsd:string ) // Axiom ID 49 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "bus driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bus_driver "bus driver"^^xsd:string ) // Axiom ID 48 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "Someone who drives a bus." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bus_driver "Someone who drives a bus."^^xsd:string ) // Axiom ID 45 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_company| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bus_company ""^^xsd:string ) // Axiom ID 44 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_company| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "bus company" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bus_company "bus company"^^xsd:string ) // Axiom ID 41 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bus ""^^xsd:string ) // Axiom ID 40 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "bus" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bus "bus"^^xsd:string ) // Axiom ID 36 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "broadsheet" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :broadsheet "broadsheet"^^xsd:string ) // Axiom ID 35 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :broadsheet "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids."^^xsd:string ) // Axiom ID 33 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#brain| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "brain" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :brain "brain"^^xsd:string ) // Axiom ID 32 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#brain| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :brain ""^^xsd:string ) // Axiom ID 30 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bone| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "bone" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bone "bone"^^xsd:string ) // Axiom ID 29 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bone| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bone ""^^xsd:string ) // Axiom ID 26 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bicycle| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "A human propelled vehicle, with two wheels" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bicycle "A human propelled vehicle, with two wheels"^^xsd:string ) // Axiom ID 25 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bicycle| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "bicycle" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bicycle "bicycle"^^xsd:string ) // Axiom ID 22 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal_lover| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "Someone who really likes animals" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :animal_lover "Someone who really likes animals"^^xsd:string ) // Axiom ID 21 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal_lover| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "animal lover" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :animal_lover "animal lover"^^xsd:string ) // Axiom ID 18 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :animal ""^^xsd:string ) // Axiom ID 17 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "animal" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :animal "animal"^^xsd:string ) // Axiom ID 14 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#adult| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL "adult" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :adult "adult"^^xsd:string ) // Axiom ID 13 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#adult| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "Things that are adult." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :adult "Things that are adult."^^xsd:string )) // Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by the Lisp-OWLAPI
107,884
Common Lisp
.l
2,970
32.941077
277
0.699423
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
ae4cd620188121acbbadcdec54be5e5239a80b9b380f7ddddb59a1184efa01e1
6,413
[ -1 ]
6,414
people-pets-newest.funct
lambdamikel_OntoLisp/ontolisp-0.9/test/temp/people-pets-newest.funct
// Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by the Lisp-OWLAPI Prefix(:=<http://cohse.semanticweb.org/ontologies/people#>) Prefix(owl:=<http://www.w3.org/2002/07/owl#>) Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>) Prefix(skos:=<http://www.w3.org/2004/02/skos/core#>) Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>) Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>) Ontology(<http://cohse.semanticweb.org/ontologies/people> // Axiom ID 8 // (|OWLOntologyAnnotationAxiom| // (|Annotation| // |http://www.w3.org/2002/07/owl#versionInfo| // (D-LITERAL "2.8" NIL))) Annotation( owl:versionInfo "2.8"^^xsd:string) // Axiom ID 303 // (|OWLDeclarationAxiom| // (|DataProperty| // |http://cohse.semanticweb.org/ontologies/people#service_number|)) Declaration( DataProperty( :service_number )) // Axiom ID 300 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#works_for|)) Declaration( ObjectProperty( :works_for )) // Axiom ID 296 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#reads|)) Declaration( ObjectProperty( :reads )) // Axiom ID 293 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#part_of|)) Declaration( ObjectProperty( :part_of )) // Axiom ID 290 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#likes|)) Declaration( ObjectProperty( :likes )) // Axiom ID 287 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of|)) Declaration( ObjectProperty( :is_pet_of )) // Axiom ID 280 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#has_pet|)) Declaration( ObjectProperty( :has_pet )) // Axiom ID 276 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#has_part|)) Declaration( ObjectProperty( :has_part )) // Axiom ID 273 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#has_parent|)) Declaration( ObjectProperty( :has_parent )) // Axiom ID 268 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#has_mother|)) Declaration( ObjectProperty( :has_mother )) // Axiom ID 263 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#has_father|)) Declaration( ObjectProperty( :has_father )) // Axiom ID 260 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#has_child|)) Declaration( ObjectProperty( :has_child )) // Axiom ID 256 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#eats|)) Declaration( ObjectProperty( :eats )) // Axiom ID 252 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#eaten_by|)) Declaration( ObjectProperty( :eaten_by )) // Axiom ID 249 // (|OWLDeclarationAxiom| // (|ObjectProperty| // |http://cohse.semanticweb.org/ontologies/people#drives|)) Declaration( ObjectProperty( :drives )) // Axiom ID 245 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#young|)) Declaration( Class( :young )) // Axiom ID 241 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#woman|)) Declaration( Class( :woman )) // Axiom ID 236 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#white_van_man|)) Declaration( Class( :white_van_man )) // Axiom ID 233 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#white_thing|)) Declaration( Class( :white_thing )) // Axiom ID 230 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#vehicle|)) Declaration( Class( :vehicle )) // Axiom ID 226 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#vegetarian|)) Declaration( Class( :vegetarian )) // Axiom ID 222 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#van_driver|)) Declaration( Class( :van_driver )) // Axiom ID 218 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#van|)) Declaration( Class( :van )) // Axiom ID 214 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#truck|)) Declaration( Class( :truck )) // Axiom ID 210 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#tree|)) Declaration( Class( :tree )) // Axiom ID 206 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#tiger|)) Declaration( Class( :tiger )) // Axiom ID 201 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) Declaration( Class( :tabloid )) // Axiom ID 196 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#sheep|)) Declaration( Class( :sheep )) // Axiom ID 192 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#red_top|)) Declaration( Class( :red_top )) // Axiom ID 188 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet|)) Declaration( Class( :quality_broadsheet )) // Axiom ID 185 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#publication|)) Declaration( Class( :publication )) // Axiom ID 182 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#plant|)) Declaration( Class( :plant )) // Axiom ID 178 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#pet_owner|)) Declaration( Class( :pet_owner )) // Axiom ID 174 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#pet|)) Declaration( Class( :pet )) // Axiom ID 170 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#person|)) Declaration( Class( :person )) // Axiom ID 165 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#old_lady|)) Declaration( Class( :old_lady )) // Axiom ID 160 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#newspaper|)) Declaration( Class( :newspaper )) // Axiom ID 156 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#man|)) Declaration( Class( :man )) // Axiom ID 153 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#male|)) Declaration( Class( :male )) // Axiom ID 149 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#magazine|)) Declaration( Class( :magazine )) // Axiom ID 145 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#mad_cow|)) Declaration( Class( :mad_cow )) // Axiom ID 141 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#lorry_driver|)) Declaration( Class( :lorry_driver )) // Axiom ID 137 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry|)) Declaration( Class( :lorry )) // Axiom ID 133 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#leaf|)) Declaration( Class( :leaf )) // Axiom ID 129 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#kid|)) Declaration( Class( :kid )) // Axiom ID 125 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#haulage_worker|)) Declaration( Class( :haulage_worker )) // Axiom ID 121 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver|)) Declaration( Class( :haulage_truck_driver )) // Axiom ID 117 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) Declaration( Class( :haulage_company )) // Axiom ID 113 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#grownup|)) Declaration( Class( :grownup )) // Axiom ID 109 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#grass|)) Declaration( Class( :grass )) // Axiom ID 104 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#giraffe|)) Declaration( Class( :giraffe )) // Axiom ID 101 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#female|)) Declaration( Class( :female )) // Axiom ID 97 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#elderly|)) Declaration( Class( :elderly )) // Axiom ID 93 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#duck|)) Declaration( Class( :duck )) // Axiom ID 88 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#driver|)) Declaration( Class( :driver )) // Axiom ID 84 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_owner|)) Declaration( Class( :dog_owner )) // Axiom ID 80 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_liker|)) Declaration( Class( :dog_liker )) // Axiom ID 75 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#dog|)) Declaration( Class( :dog )) // Axiom ID 71 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cow|)) Declaration( Class( :cow )) // Axiom ID 68 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#company|)) Declaration( Class( :company )) // Axiom ID 64 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_owner|)) Declaration( Class( :cat_owner )) // Axiom ID 60 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_liker|)) Declaration( Class( :cat_liker )) // Axiom ID 55 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#cat|)) Declaration( Class( :cat )) // Axiom ID 51 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#car|)) Declaration( Class( :car )) // Axiom ID 47 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_driver|)) Declaration( Class( :bus_driver )) // Axiom ID 43 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_company|)) Declaration( Class( :bus_company )) // Axiom ID 39 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bus|)) Declaration( Class( :bus )) // Axiom ID 34 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) Declaration( Class( :broadsheet )) // Axiom ID 31 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#brain|)) Declaration( Class( :brain )) // Axiom ID 28 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bone|)) Declaration( Class( :bone )) // Axiom ID 24 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#bicycle|)) Declaration( Class( :bicycle )) // Axiom ID 20 // (|OWLDeclarationAxiom| // (|Class| // |http://cohse.semanticweb.org/ontologies/people#animal_lover|)) Declaration( Class( :animal_lover )) // Axiom ID 16 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#animal|)) Declaration( Class( :animal )) // Axiom ID 12 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#adult|)) Declaration( Class( :adult )) // Axiom ID 9 // (|OWLDeclarationAxiom| // (|Class| |http://cohse.semanticweb.org/ontologies/people#Axiom_2|)) Declaration( Class( :Axiom_2 )) // Axiom ID 248 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#young| // |http://cohse.semanticweb.org/ontologies/people#adult|)) DisjointClasses( :young :adult ) // Axiom ID 244 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#woman| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://cohse.semanticweb.org/ontologies/people#adult|))) EquivalentClasses( :woman ObjectIntersectionOf( :person :female :adult )) // Axiom ID 240 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_van_man| // (ALL // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://cohse.semanticweb.org/ontologies/people#tabloid|)) SubClassOf( :white_van_man ObjectAllValuesFrom( :reads :tabloid )) // Axiom ID 239 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#white_van_man| // (AND |http://cohse.semanticweb.org/ontologies/people#man| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // (AND |http://cohse.semanticweb.org/ontologies/people#van| // |http://cohse.semanticweb.org/ontologies/people#white_thing|))))) EquivalentClasses( :white_van_man ObjectIntersectionOf( :man ObjectSomeValuesFrom( :drives ObjectIntersectionOf( :van :white_thing )))) // Axiom ID 229 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#vegetarian| // (AND (ALL // |http://cohse.semanticweb.org/ontologies/people#eats| // (NOT (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#animal|))) // (ALL // |http://cohse.semanticweb.org/ontologies/people#eats| // (NOT |http://cohse.semanticweb.org/ontologies/people#animal|)) // |http://cohse.semanticweb.org/ontologies/people#animal|))) EquivalentClasses( :vegetarian ObjectIntersectionOf( ObjectAllValuesFrom( :eats ObjectComplementOf( ObjectSomeValuesFrom( :part_of :animal ))) ObjectAllValuesFrom( :eats ObjectComplementOf( :animal )) :animal )) // Axiom ID 225 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#van_driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#van|)))) EquivalentClasses( :van_driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :van ))) // Axiom ID 221 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#van| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :van :vehicle ) // Axiom ID 217 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#truck| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :truck :vehicle ) // Axiom ID 213 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#tree| // |http://cohse.semanticweb.org/ontologies/people#plant|) SubClassOf( :tree :plant ) // Axiom ID 209 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#tiger| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :tiger :animal ) // Axiom ID 205 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://cohse.semanticweb.org/ontologies/people#newspaper|) SubClassOf( :tabloid :newspaper ) // Axiom ID 204 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) DisjointClasses( :tabloid :broadsheet ) // Axiom ID 200 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#sheep| // (ALL // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#grass|)) SubClassOf( :sheep ObjectAllValuesFrom( :eats :grass )) // Axiom ID 199 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#sheep| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :sheep :animal ) // Axiom ID 195 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#red_top| // |http://cohse.semanticweb.org/ontologies/people#tabloid|) SubClassOf( :red_top :tabloid ) // Axiom ID 191 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|) SubClassOf( :quality_broadsheet :broadsheet ) // Axiom ID 181 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#pet_owner| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#animal|)))) EquivalentClasses( :pet_owner ObjectIntersectionOf( :person ObjectSomeValuesFrom( :has_pet :animal ))) // Axiom ID 177 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#pet| // (SOME |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // TOP))) EquivalentClasses( :pet ObjectSomeValuesFrom( :is_pet_of owl:Thing )) // Axiom ID 173 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :person :animal ) // Axiom ID 169 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#old_lady| // (AND (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#animal|) // (ALL // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#cat|))) SubClassOf( :old_lady ObjectIntersectionOf( ObjectSomeValuesFrom( :has_pet :animal ) ObjectAllValuesFrom( :has_pet :cat ))) // Axiom ID 168 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#old_lady| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://cohse.semanticweb.org/ontologies/people#elderly|))) EquivalentClasses( :old_lady ObjectIntersectionOf( :person :female :elderly )) // Axiom ID 164 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#newspaper| // (OR |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://cohse.semanticweb.org/ontologies/people#tabloid|)) SubClassOf( :newspaper ObjectUnionOf( :broadsheet :tabloid )) // Axiom ID 163 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#newspaper| // |http://cohse.semanticweb.org/ontologies/people#publication|) SubClassOf( :newspaper :publication ) // Axiom ID 159 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#man| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#male| // |http://cohse.semanticweb.org/ontologies/people#adult|))) EquivalentClasses( :man ObjectIntersectionOf( :person :male :adult )) // Axiom ID 152 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#magazine| // |http://cohse.semanticweb.org/ontologies/people#publication|) SubClassOf( :magazine :publication ) // Axiom ID 148 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#mad_cow| // (AND |http://cohse.semanticweb.org/ontologies/people#cow| // (SOME |http://cohse.semanticweb.org/ontologies/people#eats| // (AND |http://cohse.semanticweb.org/ontologies/people#brain| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#sheep|)))))) EquivalentClasses( :mad_cow ObjectIntersectionOf( :cow ObjectSomeValuesFrom( :eats ObjectIntersectionOf( :brain ObjectSomeValuesFrom( :part_of :sheep ))))) // Axiom ID 144 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#lorry_driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#lorry|)))) EquivalentClasses( :lorry_driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :lorry ))) // Axiom ID 140 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :lorry :vehicle ) // Axiom ID 136 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#leaf| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#tree|)) SubClassOf( :leaf ObjectSomeValuesFrom( :part_of :tree )) // Axiom ID 132 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#kid| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // |http://cohse.semanticweb.org/ontologies/people#young|))) EquivalentClasses( :kid ObjectIntersectionOf( :person :young )) // Axiom ID 128 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#haulage_worker| // (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| // (OR |http://cohse.semanticweb.org/ontologies/people#haulage_company| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#haulage_company|))))) EquivalentClasses( :haulage_worker ObjectSomeValuesFrom( :works_for ObjectUnionOf( :haulage_company ObjectSomeValuesFrom( :part_of :haulage_company )))) // Axiom ID 124 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| // (AND (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#truck|) // |http://cohse.semanticweb.org/ontologies/people#person|))) EquivalentClasses( :haulage_truck_driver ObjectIntersectionOf( ObjectSomeValuesFrom( :works_for ObjectSomeValuesFrom( :part_of :haulage_company )) ObjectSomeValuesFrom( :drives :truck ) :person )) // Axiom ID 120 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_company| // |http://cohse.semanticweb.org/ontologies/people#company|) SubClassOf( :haulage_company :company ) // Axiom ID 116 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#grownup| // (AND |http://cohse.semanticweb.org/ontologies/people#adult| // |http://cohse.semanticweb.org/ontologies/people#person|))) EquivalentClasses( :grownup ObjectIntersectionOf( :adult :person )) // Axiom ID 112 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#grass| // |http://cohse.semanticweb.org/ontologies/people#plant|) SubClassOf( :grass :plant ) // Axiom ID 108 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#giraffe| // (ALL // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#leaf|)) SubClassOf( :giraffe ObjectAllValuesFrom( :eats :leaf )) // Axiom ID 107 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#giraffe| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :giraffe :animal ) // Axiom ID 100 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#elderly| // |http://cohse.semanticweb.org/ontologies/people#adult|) SubClassOf( :elderly :adult ) // Axiom ID 96 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#duck| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :duck :animal ) // Axiom ID 92 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#driver| // |http://cohse.semanticweb.org/ontologies/people#adult|) SubClassOf( :driver :adult ) // Axiom ID 91 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#vehicle|)))) EquivalentClasses( :driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :vehicle ))) // Axiom ID 87 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#dog_owner| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#dog|)))) EquivalentClasses( :dog_owner ObjectIntersectionOf( :person ObjectSomeValuesFrom( :has_pet :dog ))) // Axiom ID 83 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#dog_liker| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#likes| // |http://cohse.semanticweb.org/ontologies/people#dog|)))) EquivalentClasses( :dog_liker ObjectIntersectionOf( :person ObjectSomeValuesFrom( :likes :dog ))) // Axiom ID 79 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog| // (SOME |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#bone|)) SubClassOf( :dog ObjectSomeValuesFrom( :eats :bone )) // Axiom ID 78 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#dog| // |http://cohse.semanticweb.org/ontologies/people#cat|)) DisjointClasses( :dog :cat ) // Axiom ID 74 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#cow| // |http://cohse.semanticweb.org/ontologies/people#vegetarian|) SubClassOf( :cow :vegetarian ) // Axiom ID 67 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#cat_owner| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#cat|)))) EquivalentClasses( :cat_owner ObjectIntersectionOf( :person ObjectSomeValuesFrom( :has_pet :cat ))) // Axiom ID 63 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#cat_liker| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#likes| // |http://cohse.semanticweb.org/ontologies/people#cat|)))) EquivalentClasses( :cat_liker ObjectIntersectionOf( :person ObjectSomeValuesFrom( :likes :cat ))) // Axiom ID 59 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#cat| // |http://cohse.semanticweb.org/ontologies/people#dog|)) DisjointClasses( :cat :dog ) // Axiom ID 58 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat| // |http://cohse.semanticweb.org/ontologies/people#animal|) SubClassOf( :cat :animal ) // Axiom ID 54 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#car| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :car :vehicle ) // Axiom ID 50 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#bus_driver| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (SOME |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#bus|)))) EquivalentClasses( :bus_driver ObjectIntersectionOf( :person ObjectSomeValuesFrom( :drives :bus ))) // Axiom ID 46 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_company| // |http://cohse.semanticweb.org/ontologies/people#company|) SubClassOf( :bus_company :company ) // Axiom ID 42 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :bus :vehicle ) // Axiom ID 38 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://cohse.semanticweb.org/ontologies/people#tabloid|)) DisjointClasses( :broadsheet :tabloid ) // Axiom ID 37 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://cohse.semanticweb.org/ontologies/people#newspaper|) SubClassOf( :broadsheet :newspaper ) // Axiom ID 27 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#bicycle| // |http://cohse.semanticweb.org/ontologies/people#vehicle|) SubClassOf( :bicycle :vehicle ) // Axiom ID 23 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#animal_lover| // (AND |http://cohse.semanticweb.org/ontologies/people#person| // (AT-LEAST // 3 // |http://cohse.semanticweb.org/ontologies/people#has_pet|)))) EquivalentClasses( :animal_lover ObjectIntersectionOf( :person ObjectMinCardinality( 3 :has_pet ))) // Axiom ID 19 // (|OWLSubClassAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal| // (SOME |http://cohse.semanticweb.org/ontologies/people#eats| TOP)) SubClassOf( :animal ObjectSomeValuesFrom( :eats owl:Thing )) // Axiom ID 15 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#adult| // |http://cohse.semanticweb.org/ontologies/people#young|)) DisjointClasses( :adult :young ) // Axiom ID 11 // (|OWLDisjointClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| // (OR |http://cohse.semanticweb.org/ontologies/people#plant| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#plant|)))) DisjointClasses( :Axiom_2 ObjectUnionOf( :plant ObjectSomeValuesFrom( :part_of :plant ))) // Axiom ID 10 // (|OWLEquivalentClassesAxiom| // (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| // (OR |http://cohse.semanticweb.org/ontologies/people#animal| // (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#animal|)))) EquivalentClasses( :Axiom_2 ObjectUnionOf( :animal ObjectSomeValuesFrom( :part_of :animal ))) // Axiom ID 306 // (|OWLDataPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#service_number| // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) DataPropertyRange( :service_number xsd:integer ) // Axiom ID 299 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://cohse.semanticweb.org/ontologies/people#publication|) ObjectPropertyRange( :reads :publication ) // Axiom ID 286 // (|OWLInverseObjectPropertiesAxiom| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://cohse.semanticweb.org/ontologies/people#has_pet|) InverseObjectProperties( :is_pet_of :has_pet ) // Axiom ID 285 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#animal|) ObjectPropertyRange( :has_pet :animal ) // Axiom ID 284 // (|OWLObjectPropertyDomainAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#person|) ObjectPropertyDomain( :has_pet :person ) // Axiom ID 283 // (|OWLObjectSubPropertyAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#likes|) SubObjectPropertyOf( :has_pet :likes ) // Axiom ID 279 // (|OWLInverseObjectPropertiesAxiom| // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://cohse.semanticweb.org/ontologies/people#has_part|) InverseObjectProperties( :part_of :has_part ) // Axiom ID 272 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://cohse.semanticweb.org/ontologies/people#woman|) ObjectPropertyRange( :has_mother :woman ) // Axiom ID 271 // (|OWLObjectSubPropertyAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://cohse.semanticweb.org/ontologies/people#has_parent|) SubObjectPropertyOf( :has_mother :has_parent ) // Axiom ID 267 // (|OWLObjectPropertyRangeAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://cohse.semanticweb.org/ontologies/people#man|) ObjectPropertyRange( :has_father :man ) // Axiom ID 266 // (|OWLObjectSubPropertyAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://cohse.semanticweb.org/ontologies/people#has_parent|) SubObjectPropertyOf( :has_father :has_parent ) // Axiom ID 259 // (|OWLObjectPropertyDomainAxiom| // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://cohse.semanticweb.org/ontologies/people#animal|) ObjectPropertyDomain( :eats :animal ) // Axiom ID 255 // (|OWLInverseObjectPropertiesAxiom| // |http://cohse.semanticweb.org/ontologies/people#eaten_by| // |http://cohse.semanticweb.org/ontologies/people#eats|) InverseObjectProperties( :eaten_by :eats ) // Axiom ID 382 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Louie|) ObjectPropertyAssertion( :has_pet :Walt :Louie ) // Axiom ID 381 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Huey|) ObjectPropertyAssertion( :has_pet :Walt :Huey ) // Axiom ID 380 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Dewey|) ObjectPropertyAssertion( :has_pet :Walt :Dewey ) // Axiom ID 379 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Walt ) // Axiom ID 376 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tom| // TOP) ClassAssertion( owl:Thing :Tom ) // Axiom ID 373 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tibbs| // |http://cohse.semanticweb.org/ontologies/people#cat|) ClassAssertion( :cat :Tibbs ) // Axiom ID 370 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Times| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|) ClassAssertion( :broadsheet :The_Times ) // Axiom ID 367 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Sun| // |http://cohse.semanticweb.org/ontologies/people#tabloid|) ClassAssertion( :tabloid :The_Sun ) // Axiom ID 364 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Guardian| // |http://cohse.semanticweb.org/ontologies/people#broadsheet|) ClassAssertion( :broadsheet :The_Guardian ) // Axiom ID 361 // (|OWLDataPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://cohse.semanticweb.org/ontologies/people#service_number| // (D-LITERAL // "42" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))) DataPropertyAssertion( :service_number :The42 "42"^^xsd:integer ) // Axiom ID 360 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://cohse.semanticweb.org/ontologies/people#bus|) ClassAssertion( :bus :The42 ) // Axiom ID 357 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://cohse.semanticweb.org/ontologies/people#Mick|) ObjectPropertyAssertion( :is_pet_of :Rex :Mick ) // Axiom ID 356 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://cohse.semanticweb.org/ontologies/people#dog|) ClassAssertion( :dog :Rex ) // Axiom ID 353 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://cohse.semanticweb.org/ontologies/people#white_thing|) ClassAssertion( :white_thing :Q123_ABC ) // Axiom ID 352 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://cohse.semanticweb.org/ontologies/people#van|) ClassAssertion( :van :Q123_ABC ) // Axiom ID 349 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Tom|) ObjectPropertyAssertion( :has_pet :Minnie :Tom ) // Axiom ID 348 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://cohse.semanticweb.org/ontologies/people#female|) ClassAssertion( :female :Minnie ) // Axiom ID 347 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://cohse.semanticweb.org/ontologies/people#elderly|) ClassAssertion( :elderly :Minnie ) // Axiom ID 344 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror|) ObjectPropertyAssertion( :reads :Mick :Daily_Mirror ) // Axiom ID 343 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://cohse.semanticweb.org/ontologies/people#drives| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC|) ObjectPropertyAssertion( :drives :Mick :Q123_ABC ) // Axiom ID 342 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://cohse.semanticweb.org/ontologies/people#male|) ClassAssertion( :male :Mick ) // Axiom ID 339 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Louie| // |http://cohse.semanticweb.org/ontologies/people#duck|) ClassAssertion( :duck :Louie ) // Axiom ID 336 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Kevin| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Kevin ) // Axiom ID 333 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Fido|) ObjectPropertyAssertion( :has_pet :Joe :Fido ) // Axiom ID 332 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // (AT-MOST 1 |http://cohse.semanticweb.org/ontologies/people#has_pet|)) ClassAssertion( ObjectMaxCardinality( 1 :has_pet ) :Joe ) // Axiom ID 331 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Joe ) // Axiom ID 328 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Huey| // |http://cohse.semanticweb.org/ontologies/people#duck|) ClassAssertion( :duck :Huey ) // Axiom ID 325 // (|OWLObjectPropertyAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://cohse.semanticweb.org/ontologies/people#Tibbs|) ObjectPropertyAssertion( :has_pet :Fred :Tibbs ) // Axiom ID 324 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://cohse.semanticweb.org/ontologies/people#person|) ClassAssertion( :person :Fred ) // Axiom ID 321 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fluffy| // |http://cohse.semanticweb.org/ontologies/people#tiger|) ClassAssertion( :tiger :Fluffy ) // Axiom ID 318 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Flossie| // |http://cohse.semanticweb.org/ontologies/people#cow|) ClassAssertion( :cow :Flossie ) // Axiom ID 315 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fido| // |http://cohse.semanticweb.org/ontologies/people#dog|) ClassAssertion( :dog :Fido ) // Axiom ID 312 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Dewey| // |http://cohse.semanticweb.org/ontologies/people#duck|) ClassAssertion( :duck :Dewey ) // Axiom ID 309 // (|OWLClassAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| // TOP) ClassAssertion( owl:Thing :Daily_Mirror ) // Axiom ID 378 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Walt" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Walt "Walt"^^xsd:string ) // Axiom ID 377 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Walt| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Walt ""^^xsd:string ) // Axiom ID 375 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tom| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Tom" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Tom "Tom"^^xsd:string ) // Axiom ID 374 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tom| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Tom ""^^xsd:string ) // Axiom ID 372 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tibbs| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Tibbs ""^^xsd:string ) // Axiom ID 371 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Tibbs| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Tibbs" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Tibbs "Tibbs"^^xsd:string ) // Axiom ID 369 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Times| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "The Times" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The_Times "The Times"^^xsd:string ) // Axiom ID 368 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Times| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The_Times ""^^xsd:string ) // Axiom ID 366 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Sun| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "The Sun" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The_Sun "The Sun"^^xsd:string ) // Axiom ID 365 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Sun| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The_Sun ""^^xsd:string ) // Axiom ID 363 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Guardian| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "The Guardian" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The_Guardian "The Guardian"^^xsd:string ) // Axiom ID 362 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The_Guardian| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The_Guardian ""^^xsd:string ) // Axiom ID 359 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :The42 ""^^xsd:string ) // Axiom ID 358 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#The42| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "The42" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :The42 "The42"^^xsd:string ) // Axiom ID 355 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Rex" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Rex "Rex"^^xsd:string ) // Axiom ID 354 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Rex| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Rex ""^^xsd:string ) // Axiom ID 351 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Q123 ABC" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Q123_ABC "Q123 ABC"^^xsd:string ) // Axiom ID 350 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A white van" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Q123_ABC "A white van"^^xsd:string ) // Axiom ID 346 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Minnie" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Minnie "Minnie"^^xsd:string ) // Axiom ID 345 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Minnie| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Minnie ""^^xsd:string ) // Axiom ID 341 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Mick" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Mick "Mick"^^xsd:string ) // Axiom ID 340 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Mick| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Mick "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror."^^xsd:string ) // Axiom ID 338 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Louie| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Louie ""^^xsd:string ) // Axiom ID 337 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Louie| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Louie" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Louie "Louie"^^xsd:string ) // Axiom ID 335 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Kevin| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Kevin" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Kevin "Kevin"^^xsd:string ) // Axiom ID 334 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Kevin| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Kevin ""^^xsd:string ) // Axiom ID 330 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Joe ""^^xsd:string ) // Axiom ID 329 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Joe| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Joe" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Joe "Joe"^^xsd:string ) // Axiom ID 327 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Huey| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Huey" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Huey "Huey"^^xsd:string ) // Axiom ID 326 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Huey| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Huey ""^^xsd:string ) // Axiom ID 323 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Fred" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Fred "Fred"^^xsd:string ) // Axiom ID 322 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fred| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Fred ""^^xsd:string ) // Axiom ID 320 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fluffy| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Fluffy ""^^xsd:string ) // Axiom ID 319 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fluffy| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Fluffy" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Fluffy "Fluffy"^^xsd:string ) // Axiom ID 317 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Flossie| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Flossie ""^^xsd:string ) // Axiom ID 316 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Flossie| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Flossie" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Flossie "Flossie"^^xsd:string ) // Axiom ID 314 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fido| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Fido" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Fido "Fido"^^xsd:string ) // Axiom ID 313 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Fido| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Fido ""^^xsd:string ) // Axiom ID 311 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Dewey| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Dewey ""^^xsd:string ) // Axiom ID 310 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Dewey| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Dewey" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Dewey "Dewey"^^xsd:string ) // Axiom ID 308 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "The paper read by Mick (a white van man)." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :Daily_Mirror "The paper read by Mick (a white van man)."^^xsd:string ) // Axiom ID 307 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "Daily Mirror" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :Daily_Mirror "Daily Mirror"^^xsd:string ) // Axiom ID 305 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#service_number| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :service_number ""^^xsd:string ) // Axiom ID 304 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#service_number| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "service_number" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :service_number "service_number"^^xsd:string ) // Axiom ID 302 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#works_for| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "works_for" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :works_for "works_for"^^xsd:string ) // Axiom ID 301 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#works_for| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :works_for ""^^xsd:string ) // Axiom ID 298 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :reads ""^^xsd:string ) // Axiom ID 297 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#reads| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "reads" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :reads "reads"^^xsd:string ) // Axiom ID 295 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :part_of ""^^xsd:string ) // Axiom ID 294 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#part_of| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "part_of" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :part_of "part_of"^^xsd:string ) // Axiom ID 292 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#likes| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "likes" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :likes "likes"^^xsd:string ) // Axiom ID 291 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#likes| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :likes ""^^xsd:string ) // Axiom ID 289 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :is_pet_of ""^^xsd:string ) // Axiom ID 288 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#is_pet_of| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "is_pet_of" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :is_pet_of "is_pet_of"^^xsd:string ) // Axiom ID 282 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "has_pet" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_pet "has_pet"^^xsd:string ) // Axiom ID 281 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_pet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Anyone that has a pet must like that pet." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_pet "Anyone that has a pet must like that pet."^^xsd:string ) // Axiom ID 278 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_part| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_part ""^^xsd:string ) // Axiom ID 277 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_part| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "has_part" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_part "has_part"^^xsd:string ) // Axiom ID 275 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_parent| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_parent ""^^xsd:string ) // Axiom ID 274 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_parent| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "has_parent" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_parent "has_parent"^^xsd:string ) // Axiom ID 270 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_mother ""^^xsd:string ) // Axiom ID 269 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_mother| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "has_mother" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_mother "has_mother"^^xsd:string ) // Axiom ID 265 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "has_father" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_father "has_father"^^xsd:string ) // Axiom ID 264 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_father| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_father ""^^xsd:string ) // Axiom ID 262 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_child| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "has_child" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :has_child "has_child"^^xsd:string ) // Axiom ID 261 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#has_child| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :has_child ""^^xsd:string ) // Axiom ID 258 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :eats ""^^xsd:string ) // Axiom ID 257 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eats| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "eats" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :eats "eats"^^xsd:string ) // Axiom ID 254 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eaten_by| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "eaten_by" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :eaten_by "eaten_by"^^xsd:string ) // Axiom ID 253 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#eaten_by| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :eaten_by ""^^xsd:string ) // Axiom ID 251 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#drives| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :drives ""^^xsd:string ) // Axiom ID 250 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#drives| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "drives" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :drives "drives"^^xsd:string ) // Axiom ID 247 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#young| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "young" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :young "young"^^xsd:string ) // Axiom ID 246 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#young| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :young ""^^xsd:string ) // Axiom ID 243 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#woman| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "woman" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :woman "woman"^^xsd:string ) // Axiom ID 242 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#woman| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :woman ""^^xsd:string ) // Axiom ID 238 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_van_man| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "white van man" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :white_van_man "white van man"^^xsd:string ) // Axiom ID 237 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_van_man| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A white van man is a man who drives a white van." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :white_van_man "A white van man is a man who drives a white van."^^xsd:string ) // Axiom ID 235 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_thing| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "white thing" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :white_thing "white thing"^^xsd:string ) // Axiom ID 234 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#white_thing| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :white_thing ""^^xsd:string ) // Axiom ID 232 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vehicle| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "vehicle" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :vehicle "vehicle"^^xsd:string ) // Axiom ID 231 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vehicle| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :vehicle ""^^xsd:string ) // Axiom ID 228 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vegetarian| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "vegetarian" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :vegetarian "vegetarian"^^xsd:string ) // Axiom ID 227 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#vegetarian| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A vegetarian is defined as an animal that eats no other animals, or parts of animals." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :vegetarian "A vegetarian is defined as an animal that eats no other animals, or parts of animals."^^xsd:string ) // Axiom ID 224 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :van_driver ""^^xsd:string ) // Axiom ID 223 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "van driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :van_driver "van driver"^^xsd:string ) // Axiom ID 220 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "van" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :van "van"^^xsd:string ) // Axiom ID 219 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#van| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :van ""^^xsd:string ) // Axiom ID 216 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#truck| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "truck" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :truck "truck"^^xsd:string ) // Axiom ID 215 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#truck| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :truck ""^^xsd:string ) // Axiom ID 212 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tree| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :tree ""^^xsd:string ) // Axiom ID 211 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tree| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "tree" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :tree "tree"^^xsd:string ) // Axiom ID 208 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tiger| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :tiger ""^^xsd:string ) // Axiom ID 207 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tiger| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "tiger" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :tiger "tiger"^^xsd:string ) // Axiom ID 203 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :tabloid "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets."^^xsd:string ) // Axiom ID 202 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#tabloid| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "tabloid" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :tabloid "tabloid"^^xsd:string ) // Axiom ID 198 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#sheep| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "sheep" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :sheep "sheep"^^xsd:string ) // Axiom ID 197 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#sheep| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :sheep ""^^xsd:string ) // Axiom ID 194 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#red_top| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :red_top ""^^xsd:string ) // Axiom ID 193 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#red_top| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "red top" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :red_top "red top"^^xsd:string ) // Axiom ID 190 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :quality_broadsheet ""^^xsd:string ) // Axiom ID 189 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "quality broadsheet" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :quality_broadsheet "quality broadsheet"^^xsd:string ) // Axiom ID 187 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#publication| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "publication" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :publication "publication"^^xsd:string ) // Axiom ID 186 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#publication| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :publication ""^^xsd:string ) // Axiom ID 184 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#plant| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :plant ""^^xsd:string ) // Axiom ID 183 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#plant| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "plant" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :plant "plant"^^xsd:string ) // Axiom ID 180 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet_owner| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :pet_owner ""^^xsd:string ) // Axiom ID 179 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet_owner| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "pet owner" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :pet_owner "pet owner"^^xsd:string ) // Axiom ID 176 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :pet ""^^xsd:string ) // Axiom ID 175 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#pet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "pet" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :pet "pet"^^xsd:string ) // Axiom ID 172 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#person| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :person ""^^xsd:string ) // Axiom ID 171 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#person| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "person" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :person "person"^^xsd:string ) // Axiom ID 167 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#old_lady| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :old_lady ""^^xsd:string ) // Axiom ID 166 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#old_lady| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "old lady" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :old_lady "old lady"^^xsd:string ) // Axiom ID 162 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#newspaper| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "All newspapers are either broadsheets or tabloids." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :newspaper "All newspapers are either broadsheets or tabloids."^^xsd:string ) // Axiom ID 161 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#newspaper| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "newspaper" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :newspaper "newspaper"^^xsd:string ) // Axiom ID 158 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#man| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :man ""^^xsd:string ) // Axiom ID 157 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#man| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "man" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :man "man"^^xsd:string ) // Axiom ID 155 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#male| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "The class of all male things." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :male "The class of all male things."^^xsd:string ) // Axiom ID 154 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#male| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "male" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :male "male"^^xsd:string ) // Axiom ID 151 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#magazine| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :magazine ""^^xsd:string ) // Axiom ID 150 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#magazine| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "magazine" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :magazine "magazine"^^xsd:string ) // Axiom ID 147 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#mad_cow| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "mad cow" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :mad_cow "mad cow"^^xsd:string ) // Axiom ID 146 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#mad_cow| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A mad cow is a cow that has been eating the brains of sheep." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :mad_cow "A mad cow is a cow that has been eating the brains of sheep."^^xsd:string ) // Axiom ID 143 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "lorry driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :lorry_driver "lorry driver"^^xsd:string ) // Axiom ID 142 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :lorry_driver ""^^xsd:string ) // Axiom ID 139 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :lorry ""^^xsd:string ) // Axiom ID 138 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#lorry| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "lorry" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :lorry "lorry"^^xsd:string ) // Axiom ID 135 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#leaf| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :leaf ""^^xsd:string ) // Axiom ID 134 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#leaf| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "leaf" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :leaf "leaf"^^xsd:string ) // Axiom ID 131 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#kid| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :kid ""^^xsd:string ) // Axiom ID 130 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#kid| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "kid" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :kid "kid"^^xsd:string ) // Axiom ID 127 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_worker| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :haulage_worker ""^^xsd:string ) // Axiom ID 126 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_worker| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "haulage worker" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :haulage_worker "haulage worker"^^xsd:string ) // Axiom ID 123 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :haulage_truck_driver ""^^xsd:string ) // Axiom ID 122 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "haulage truck driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :haulage_truck_driver "haulage truck driver"^^xsd:string ) // Axiom ID 119 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_company| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :haulage_company ""^^xsd:string ) // Axiom ID 118 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#haulage_company| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "haulage company" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :haulage_company "haulage company"^^xsd:string ) // Axiom ID 115 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grownup| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :grownup ""^^xsd:string ) // Axiom ID 114 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grownup| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "grownup" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :grownup "grownup"^^xsd:string ) // Axiom ID 111 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grass| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :grass ""^^xsd:string ) // Axiom ID 110 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#grass| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "grass" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :grass "grass"^^xsd:string ) // Axiom ID 106 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#giraffe| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :giraffe ""^^xsd:string ) // Axiom ID 105 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#giraffe| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "giraffe" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :giraffe "giraffe"^^xsd:string ) // Axiom ID 103 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "female" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :female "female"^^xsd:string ) // Axiom ID 102 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#female| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :female ""^^xsd:string ) // Axiom ID 99 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#elderly| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :elderly ""^^xsd:string ) // Axiom ID 98 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#elderly| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "elderly" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :elderly "elderly"^^xsd:string ) // Axiom ID 95 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#duck| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :duck ""^^xsd:string ) // Axiom ID 94 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#duck| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "duck" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :duck "duck"^^xsd:string ) // Axiom ID 90 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :driver "driver"^^xsd:string ) // Axiom ID 89 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :driver ""^^xsd:string ) // Axiom ID 86 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_owner| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :dog_owner ""^^xsd:string ) // Axiom ID 85 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_owner| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "dog owner" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :dog_owner "dog owner"^^xsd:string ) // Axiom ID 82 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_liker| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :dog_liker ""^^xsd:string ) // Axiom ID 81 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog_liker| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "dog liker" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :dog_liker "dog liker"^^xsd:string ) // Axiom ID 77 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :dog ""^^xsd:string ) // Axiom ID 76 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#dog| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "dog" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :dog "dog"^^xsd:string ) // Axiom ID 73 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cow| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Cows are naturally vegetarians." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cow "Cows are naturally vegetarians."^^xsd:string ) // Axiom ID 72 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cow| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "cow" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cow "cow"^^xsd:string ) // Axiom ID 70 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#company| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "company" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :company "company"^^xsd:string ) // Axiom ID 69 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#company| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :company ""^^xsd:string ) // Axiom ID 66 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_owner| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "cat owner" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cat_owner "cat owner"^^xsd:string ) // Axiom ID 65 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_owner| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cat_owner ""^^xsd:string ) // Axiom ID 62 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_liker| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "cat liker" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cat_liker "cat liker"^^xsd:string ) // Axiom ID 61 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat_liker| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cat_liker ""^^xsd:string ) // Axiom ID 57 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "cat" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :cat "cat"^^xsd:string ) // Axiom ID 56 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#cat| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :cat ""^^xsd:string ) // Axiom ID 53 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#car| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :car ""^^xsd:string ) // Axiom ID 52 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#car| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "car" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :car "car"^^xsd:string ) // Axiom ID 49 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_driver| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "bus driver" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bus_driver "bus driver"^^xsd:string ) // Axiom ID 48 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_driver| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Someone who drives a bus." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bus_driver "Someone who drives a bus."^^xsd:string ) // Axiom ID 45 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_company| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bus_company ""^^xsd:string ) // Axiom ID 44 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus_company| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "bus company" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bus_company "bus company"^^xsd:string ) // Axiom ID 41 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bus ""^^xsd:string ) // Axiom ID 40 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bus| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "bus" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bus "bus"^^xsd:string ) // Axiom ID 36 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "broadsheet" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :broadsheet "broadsheet"^^xsd:string ) // Axiom ID 35 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#broadsheet| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :broadsheet "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids."^^xsd:string ) // Axiom ID 33 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#brain| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "brain" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :brain "brain"^^xsd:string ) // Axiom ID 32 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#brain| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :brain ""^^xsd:string ) // Axiom ID 30 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bone| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "bone" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bone "bone"^^xsd:string ) // Axiom ID 29 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bone| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bone ""^^xsd:string ) // Axiom ID 26 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bicycle| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "A human propelled vehicle, with two wheels" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :bicycle "A human propelled vehicle, with two wheels"^^xsd:string ) // Axiom ID 25 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#bicycle| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "bicycle" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :bicycle "bicycle"^^xsd:string ) // Axiom ID 22 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal_lover| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Someone who really likes animals" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :animal_lover "Someone who really likes animals"^^xsd:string ) // Axiom ID 21 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal_lover| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "animal lover" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :animal_lover "animal lover"^^xsd:string ) // Axiom ID 18 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :animal ""^^xsd:string ) // Axiom ID 17 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#animal| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "animal" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :animal "animal"^^xsd:string ) // Axiom ID 14 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#adult| // |http://www.w3.org/2000/01/rdf-schema#label| // (D-LITERAL // "adult" // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:label :adult "adult"^^xsd:string ) // Axiom ID 13 // (|OWLAnnotationAssertionAxiom| // |http://cohse.semanticweb.org/ontologies/people#adult| // |http://www.w3.org/2000/01/rdf-schema#comment| // (D-LITERAL // "Things that are adult." // (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) AnnotationAssertion( rdfs:comment :adult "Things that are adult."^^xsd:string )) // Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by the Lisp-OWLAPI
109,109
Common Lisp
.l
3,208
30.804863
277
0.692787
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
29afbc21f28c1c1f5cb917c0e3529f3722e86f1b3f7fd40292fb32366ff09b4b
6,414
[ -1 ]
6,415
people-pets-newest.owl
lambdamikel_OntoLisp/ontolisp-0.9/test/temp/people-pets-newest.owl
<?xml version="1.0"?> <!-- Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by OntoLisp Version 0.9 Build 2010-07-04, July 03 2010, 19:54 --> <!DOCTYPE rdf:RDF [ <!ENTITY owl "http://www.w3.org/2002/07/owl#"> <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#"> <!ENTITY skos "http://www.w3.org/2004/02/skos/core#"> <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#"> <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#"> ]> <rdf:RDF xmlns="http://cohse.semanticweb.org/ontologies/people#" xml:base="http://cohse.semanticweb.org/ontologies/people" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <owl:Ontology rdf:about="http://cohse.semanticweb.org/ontologies/people"> <!-- Axiom ID 8 --> <!-- (|OWLOntologyAnnotationAxiom| (|Annotation| |http://www.w3.org/2002/07/owl#versionInfo| (D-LITERAL "2.8" NIL))) --> <owl:versionInfo>2.8</owl:versionInfo> </owl:Ontology> <!-- Axiom ID 303 --> <!-- (|OWLDeclarationAxiom| (|DataProperty| |http://cohse.semanticweb.org/ontologies/people#service_number|)) --> <owl:DataProperty rdf:about="#service_number"/> <!-- Axiom ID 300 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#works_for|)) --> <owl:ObjectProperty rdf:about="#works_for"/> <!-- Axiom ID 296 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#reads|)) --> <owl:ObjectProperty rdf:about="#reads"/> <!-- Axiom ID 293 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#part_of|)) --> <owl:ObjectProperty rdf:about="#part_of"/> <!-- Axiom ID 290 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#likes|)) --> <owl:ObjectProperty rdf:about="#likes"/> <!-- Axiom ID 287 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#is_pet_of|)) --> <owl:ObjectProperty rdf:about="#is_pet_of"/> <!-- Axiom ID 280 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_pet|)) --> <owl:ObjectProperty rdf:about="#has_pet"/> <!-- Axiom ID 276 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_part|)) --> <owl:ObjectProperty rdf:about="#has_part"/> <!-- Axiom ID 273 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_parent|)) --> <owl:ObjectProperty rdf:about="#has_parent"/> <!-- Axiom ID 268 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_mother|)) --> <owl:ObjectProperty rdf:about="#has_mother"/> <!-- Axiom ID 263 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_father|)) --> <owl:ObjectProperty rdf:about="#has_father"/> <!-- Axiom ID 260 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_child|)) --> <owl:ObjectProperty rdf:about="#has_child"/> <!-- Axiom ID 256 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#eats|)) --> <owl:ObjectProperty rdf:about="#eats"/> <!-- Axiom ID 252 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#eaten_by|)) --> <owl:ObjectProperty rdf:about="#eaten_by"/> <!-- Axiom ID 249 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#drives|)) --> <owl:ObjectProperty rdf:about="#drives"/> <!-- Axiom ID 245 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#young|)) --> <owl:Class rdf:about="#young"/> <!-- Axiom ID 241 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#woman|)) --> <owl:Class rdf:about="#woman"/> <!-- Axiom ID 236 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#white_van_man|)) --> <owl:Class rdf:about="#white_van_man"/> <!-- Axiom ID 233 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#white_thing|)) --> <owl:Class rdf:about="#white_thing"/> <!-- Axiom ID 230 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#vehicle|)) --> <owl:Class rdf:about="#vehicle"/> <!-- Axiom ID 226 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#vegetarian|)) --> <owl:Class rdf:about="#vegetarian"/> <!-- Axiom ID 222 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#van_driver|)) --> <owl:Class rdf:about="#van_driver"/> <!-- Axiom ID 218 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#van|)) --> <owl:Class rdf:about="#van"/> <!-- Axiom ID 214 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#truck|)) --> <owl:Class rdf:about="#truck"/> <!-- Axiom ID 210 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#tree|)) --> <owl:Class rdf:about="#tree"/> <!-- Axiom ID 206 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#tiger|)) --> <owl:Class rdf:about="#tiger"/> <!-- Axiom ID 201 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <owl:Class rdf:about="#tabloid"/> <!-- Axiom ID 196 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#sheep|)) --> <owl:Class rdf:about="#sheep"/> <!-- Axiom ID 192 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#red_top|)) --> <owl:Class rdf:about="#red_top"/> <!-- Axiom ID 188 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet|)) --> <owl:Class rdf:about="#quality_broadsheet"/> <!-- Axiom ID 185 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#publication|)) --> <owl:Class rdf:about="#publication"/> <!-- Axiom ID 182 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#plant|)) --> <owl:Class rdf:about="#plant"/> <!-- Axiom ID 178 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#pet_owner|)) --> <owl:Class rdf:about="#pet_owner"/> <!-- Axiom ID 174 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#pet|)) --> <owl:Class rdf:about="#pet"/> <!-- Axiom ID 170 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#person|)) --> <owl:Class rdf:about="#person"/> <!-- Axiom ID 165 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#old_lady|)) --> <owl:Class rdf:about="#old_lady"/> <!-- Axiom ID 160 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#newspaper|)) --> <owl:Class rdf:about="#newspaper"/> <!-- Axiom ID 156 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#man|)) --> <owl:Class rdf:about="#man"/> <!-- Axiom ID 153 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#male|)) --> <owl:Class rdf:about="#male"/> <!-- Axiom ID 149 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#magazine|)) --> <owl:Class rdf:about="#magazine"/> <!-- Axiom ID 145 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#mad_cow|)) --> <owl:Class rdf:about="#mad_cow"/> <!-- Axiom ID 141 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry_driver|)) --> <owl:Class rdf:about="#lorry_driver"/> <!-- Axiom ID 137 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry|)) --> <owl:Class rdf:about="#lorry"/> <!-- Axiom ID 133 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#leaf|)) --> <owl:Class rdf:about="#leaf"/> <!-- Axiom ID 129 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#kid|)) --> <owl:Class rdf:about="#kid"/> <!-- Axiom ID 125 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_worker|)) --> <owl:Class rdf:about="#haulage_worker"/> <!-- Axiom ID 121 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver|)) --> <owl:Class rdf:about="#haulage_truck_driver"/> <!-- Axiom ID 117 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) --> <owl:Class rdf:about="#haulage_company"/> <!-- Axiom ID 113 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#grownup|)) --> <owl:Class rdf:about="#grownup"/> <!-- Axiom ID 109 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#grass|)) --> <owl:Class rdf:about="#grass"/> <!-- Axiom ID 104 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#giraffe|)) --> <owl:Class rdf:about="#giraffe"/> <!-- Axiom ID 101 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#female|)) --> <owl:Class rdf:about="#female"/> <!-- Axiom ID 97 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#elderly|)) --> <owl:Class rdf:about="#elderly"/> <!-- Axiom ID 93 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#duck|)) --> <owl:Class rdf:about="#duck"/> <!-- Axiom ID 88 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#driver|)) --> <owl:Class rdf:about="#driver"/> <!-- Axiom ID 84 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_owner|)) --> <owl:Class rdf:about="#dog_owner"/> <!-- Axiom ID 80 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_liker|)) --> <owl:Class rdf:about="#dog_liker"/> <!-- Axiom ID 75 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#dog|)) --> <owl:Class rdf:about="#dog"/> <!-- Axiom ID 71 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cow|)) --> <owl:Class rdf:about="#cow"/> <!-- Axiom ID 68 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#company|)) --> <owl:Class rdf:about="#company"/> <!-- Axiom ID 64 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_owner|)) --> <owl:Class rdf:about="#cat_owner"/> <!-- Axiom ID 60 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_liker|)) --> <owl:Class rdf:about="#cat_liker"/> <!-- Axiom ID 55 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cat|)) --> <owl:Class rdf:about="#cat"/> <!-- Axiom ID 51 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#car|)) --> <owl:Class rdf:about="#car"/> <!-- Axiom ID 47 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_driver|)) --> <owl:Class rdf:about="#bus_driver"/> <!-- Axiom ID 43 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_company|)) --> <owl:Class rdf:about="#bus_company"/> <!-- Axiom ID 39 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bus|)) --> <owl:Class rdf:about="#bus"/> <!-- Axiom ID 34 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) --> <owl:Class rdf:about="#broadsheet"/> <!-- Axiom ID 31 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#brain|)) --> <owl:Class rdf:about="#brain"/> <!-- Axiom ID 28 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bone|)) --> <owl:Class rdf:about="#bone"/> <!-- Axiom ID 24 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bicycle|)) --> <owl:Class rdf:about="#bicycle"/> <!-- Axiom ID 20 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#animal_lover|)) --> <owl:Class rdf:about="#animal_lover"/> <!-- Axiom ID 16 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#animal|)) --> <owl:Class rdf:about="#animal"/> <!-- Axiom ID 12 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#adult|)) --> <owl:Class rdf:about="#adult"/> <!-- Axiom ID 9 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#Axiom_2|)) --> <owl:Class rdf:about="#Axiom_2"/> <!-- Axiom ID 248 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#young| |http://cohse.semanticweb.org/ontologies/people#adult|)) --> <owl:Class rdf:about="#young"> <owl:disjointWith rdf:resource="#adult"/> </owl:Class> <!-- Axiom ID 244 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#woman| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#female| |http://cohse.semanticweb.org/ontologies/people#adult|))) --> <owl:Class rdf:about="#woman"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Class rdf:about="#female"/> <owl:Class rdf:about="#adult"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 240 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#white_van_man| (ALL |http://cohse.semanticweb.org/ontologies/people#reads| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <owl:Class rdf:about="#white_van_man"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#reads"/> </owl:onProperty> <owl:allValuesFrom rdf:resource="#tabloid"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 239 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#white_van_man| (AND |http://cohse.semanticweb.org/ontologies/people#man| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| (AND |http://cohse.semanticweb.org/ontologies/people#van| |http://cohse.semanticweb.org/ontologies/people#white_thing|))))) --> <owl:Class rdf:about="#white_van_man"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#man"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#drives"/> </owl:onProperty> <owl:someValuesFrom> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#van"/> <owl:Class rdf:about="#white_thing"/> </owl:intersectionOf> </owl:Class> </owl:someValuesFrom> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 229 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#vegetarian| (AND (ALL |http://cohse.semanticweb.org/ontologies/people#eats| (NOT (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#animal|))) (ALL |http://cohse.semanticweb.org/ontologies/people#eats| (NOT |http://cohse.semanticweb.org/ontologies/people#animal|)) |http://cohse.semanticweb.org/ontologies/people#animal|))) --> <owl:Class rdf:about="#vegetarian"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:allValuesFrom> <owl:Class> <owl:complementOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#animal"/> </owl:Restriction> </owl:complementOf> </owl:Class> </owl:allValuesFrom> </owl:Restriction> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:allValuesFrom> <owl:Class> <owl:complementOf rdf:resource="#animal"/> </owl:Class> </owl:allValuesFrom> </owl:Restriction> <owl:Class rdf:about="#animal"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 225 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#van_driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#van|)))) --> <owl:Class rdf:about="#van_driver"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#drives"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#van"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 221 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#van| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <owl:Class rdf:about="#van"> <rdfs:subClassOf rdf:resource="#vehicle"/> </owl:Class> <!-- Axiom ID 217 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <owl:Class rdf:about="#truck"> <rdfs:subClassOf rdf:resource="#vehicle"/> </owl:Class> <!-- Axiom ID 213 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| |http://cohse.semanticweb.org/ontologies/people#plant|) --> <owl:Class rdf:about="#tree"> <rdfs:subClassOf rdf:resource="#plant"/> </owl:Class> <!-- Axiom ID 209 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:Class rdf:about="#tiger"> <rdfs:subClassOf rdf:resource="#animal"/> </owl:Class> <!-- Axiom ID 205 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| |http://cohse.semanticweb.org/ontologies/people#newspaper|) --> <owl:Class rdf:about="#tabloid"> <rdfs:subClassOf rdf:resource="#newspaper"/> </owl:Class> <!-- Axiom ID 204 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#tabloid| |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) --> <owl:Class rdf:about="#tabloid"> <owl:disjointWith rdf:resource="#broadsheet"/> </owl:Class> <!-- Axiom ID 200 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| (ALL |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#grass|)) --> <owl:Class rdf:about="#sheep"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:allValuesFrom rdf:resource="#grass"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 199 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:Class rdf:about="#sheep"> <rdfs:subClassOf rdf:resource="#animal"/> </owl:Class> <!-- Axiom ID 195 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| |http://cohse.semanticweb.org/ontologies/people#tabloid|) --> <owl:Class rdf:about="#red_top"> <rdfs:subClassOf rdf:resource="#tabloid"/> </owl:Class> <!-- Axiom ID 191 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| |http://cohse.semanticweb.org/ontologies/people#broadsheet|) --> <owl:Class rdf:about="#quality_broadsheet"> <rdfs:subClassOf rdf:resource="#broadsheet"/> </owl:Class> <!-- Axiom ID 181 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#pet_owner| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#animal|)))) --> <owl:Class rdf:about="#pet_owner"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#animal"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 177 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#pet| (SOME |http://cohse.semanticweb.org/ontologies/people#is_pet_of| TOP))) --> <owl:Class rdf:about="#pet"> <owl:equivalentClass> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#is_pet_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="&owl;Thing"/> </owl:Restriction> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 173 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:Class rdf:about="#person"> <rdfs:subClassOf rdf:resource="#animal"/> </owl:Class> <!-- Axiom ID 169 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| (AND (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#animal|) (ALL |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#cat|))) --> <owl:Class rdf:about="#old_lady"> <rdfs:subClassOf> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#animal"/> </owl:Restriction> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:allValuesFrom rdf:resource="#cat"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 168 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#old_lady| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#female| |http://cohse.semanticweb.org/ontologies/people#elderly|))) --> <owl:Class rdf:about="#old_lady"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Class rdf:about="#female"/> <owl:Class rdf:about="#elderly"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 164 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| (OR |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <owl:Class rdf:about="#newspaper"> <rdfs:subClassOf> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <owl:Class rdf:about="#broadsheet"/> <owl:Class rdf:about="#tabloid"/> </owl:unionOf> </owl:Class> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 163 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| |http://cohse.semanticweb.org/ontologies/people#publication|) --> <owl:Class rdf:about="#newspaper"> <rdfs:subClassOf rdf:resource="#publication"/> </owl:Class> <!-- Axiom ID 159 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#man| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#male| |http://cohse.semanticweb.org/ontologies/people#adult|))) --> <owl:Class rdf:about="#man"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Class rdf:about="#male"/> <owl:Class rdf:about="#adult"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 152 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| |http://cohse.semanticweb.org/ontologies/people#publication|) --> <owl:Class rdf:about="#magazine"> <rdfs:subClassOf rdf:resource="#publication"/> </owl:Class> <!-- Axiom ID 148 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#mad_cow| (AND |http://cohse.semanticweb.org/ontologies/people#cow| (SOME |http://cohse.semanticweb.org/ontologies/people#eats| (AND |http://cohse.semanticweb.org/ontologies/people#brain| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#sheep|)))))) --> <owl:Class rdf:about="#mad_cow"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#cow"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:someValuesFrom> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#brain"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#sheep"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:someValuesFrom> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 144 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#lorry_driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#lorry|)))) --> <owl:Class rdf:about="#lorry_driver"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#drives"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#lorry"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 140 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <owl:Class rdf:about="#lorry"> <rdfs:subClassOf rdf:resource="#vehicle"/> </owl:Class> <!-- Axiom ID 136 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#tree|)) --> <owl:Class rdf:about="#leaf"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#tree"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 132 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#kid| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#young|))) --> <owl:Class rdf:about="#kid"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Class rdf:about="#young"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 128 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#haulage_worker| (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| (OR |http://cohse.semanticweb.org/ontologies/people#haulage_company| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#haulage_company|))))) --> <owl:Class rdf:about="#haulage_worker"> <owl:equivalentClass> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#works_for"/> </owl:onProperty> <owl:someValuesFrom> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <owl:Class rdf:about="#haulage_company"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#haulage_company"/> </owl:Restriction> </owl:unionOf> </owl:Class> </owl:someValuesFrom> </owl:Restriction> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 124 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| (AND (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#truck|) |http://cohse.semanticweb.org/ontologies/people#person|))) --> <owl:Class rdf:about="#haulage_truck_driver"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#works_for"/> </owl:onProperty> <owl:someValuesFrom> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#haulage_company"/> </owl:Restriction> </owl:someValuesFrom> </owl:Restriction> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#drives"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#truck"/> </owl:Restriction> <owl:Class rdf:about="#person"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 120 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_company| |http://cohse.semanticweb.org/ontologies/people#company|) --> <owl:Class rdf:about="#haulage_company"> <rdfs:subClassOf rdf:resource="#company"/> </owl:Class> <!-- Axiom ID 116 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#grownup| (AND |http://cohse.semanticweb.org/ontologies/people#adult| |http://cohse.semanticweb.org/ontologies/people#person|))) --> <owl:Class rdf:about="#grownup"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#adult"/> <owl:Class rdf:about="#person"/> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 112 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| |http://cohse.semanticweb.org/ontologies/people#plant|) --> <owl:Class rdf:about="#grass"> <rdfs:subClassOf rdf:resource="#plant"/> </owl:Class> <!-- Axiom ID 108 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| (ALL |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#leaf|)) --> <owl:Class rdf:about="#giraffe"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:allValuesFrom rdf:resource="#leaf"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 107 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:Class rdf:about="#giraffe"> <rdfs:subClassOf rdf:resource="#animal"/> </owl:Class> <!-- Axiom ID 100 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| |http://cohse.semanticweb.org/ontologies/people#adult|) --> <owl:Class rdf:about="#elderly"> <rdfs:subClassOf rdf:resource="#adult"/> </owl:Class> <!-- Axiom ID 96 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:Class rdf:about="#duck"> <rdfs:subClassOf rdf:resource="#animal"/> </owl:Class> <!-- Axiom ID 92 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| |http://cohse.semanticweb.org/ontologies/people#adult|) --> <owl:Class rdf:about="#driver"> <rdfs:subClassOf rdf:resource="#adult"/> </owl:Class> <!-- Axiom ID 91 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#vehicle|)))) --> <owl:Class rdf:about="#driver"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#drives"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#vehicle"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 87 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#dog_owner| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#dog|)))) --> <owl:Class rdf:about="#dog_owner"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#dog"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 83 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#dog_liker| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#likes| |http://cohse.semanticweb.org/ontologies/people#dog|)))) --> <owl:Class rdf:about="#dog_liker"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#likes"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#dog"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 79 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| (SOME |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#bone|)) --> <owl:Class rdf:about="#dog"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#bone"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 78 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#dog| |http://cohse.semanticweb.org/ontologies/people#cat|)) --> <owl:Class rdf:about="#dog"> <owl:disjointWith rdf:resource="#cat"/> </owl:Class> <!-- Axiom ID 74 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| |http://cohse.semanticweb.org/ontologies/people#vegetarian|) --> <owl:Class rdf:about="#cow"> <rdfs:subClassOf rdf:resource="#vegetarian"/> </owl:Class> <!-- Axiom ID 67 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#cat_owner| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#cat|)))) --> <owl:Class rdf:about="#cat_owner"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#cat"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 63 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#cat_liker| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#likes| |http://cohse.semanticweb.org/ontologies/people#cat|)))) --> <owl:Class rdf:about="#cat_liker"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#likes"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#cat"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 59 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#cat| |http://cohse.semanticweb.org/ontologies/people#dog|)) --> <owl:Class rdf:about="#cat"> <owl:disjointWith rdf:resource="#dog"/> </owl:Class> <!-- Axiom ID 58 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:Class rdf:about="#cat"> <rdfs:subClassOf rdf:resource="#animal"/> </owl:Class> <!-- Axiom ID 54 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#car| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <owl:Class rdf:about="#car"> <rdfs:subClassOf rdf:resource="#vehicle"/> </owl:Class> <!-- Axiom ID 50 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#bus_driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#bus|)))) --> <owl:Class rdf:about="#bus_driver"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#drives"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#bus"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 46 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_company| |http://cohse.semanticweb.org/ontologies/people#company|) --> <owl:Class rdf:about="#bus_company"> <rdfs:subClassOf rdf:resource="#company"/> </owl:Class> <!-- Axiom ID 42 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <owl:Class rdf:about="#bus"> <rdfs:subClassOf rdf:resource="#vehicle"/> </owl:Class> <!-- Axiom ID 38 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <owl:Class rdf:about="#broadsheet"> <owl:disjointWith rdf:resource="#tabloid"/> </owl:Class> <!-- Axiom ID 37 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://cohse.semanticweb.org/ontologies/people#newspaper|) --> <owl:Class rdf:about="#broadsheet"> <rdfs:subClassOf rdf:resource="#newspaper"/> </owl:Class> <!-- Axiom ID 27 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <owl:Class rdf:about="#bicycle"> <rdfs:subClassOf rdf:resource="#vehicle"/> </owl:Class> <!-- Axiom ID 23 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#animal_lover| (AND |http://cohse.semanticweb.org/ontologies/people#person| (AT-LEAST 3 |http://cohse.semanticweb.org/ontologies/people#has_pet|)))) --> <owl:Class rdf:about="#animal_lover"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#person"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:minCardinality rdf:datatype="&xsd;nonNegativeInteger">3 </owl:minCardinality> </owl:Restriction> </owl:intersectionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 19 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| (SOME |http://cohse.semanticweb.org/ontologies/people#eats| TOP)) --> <owl:Class rdf:about="#animal"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#eats"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="&owl;Thing"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <!-- Axiom ID 15 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#adult| |http://cohse.semanticweb.org/ontologies/people#young|)) --> <owl:Class rdf:about="#adult"> <owl:disjointWith rdf:resource="#young"/> </owl:Class> <!-- Axiom ID 11 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| (OR |http://cohse.semanticweb.org/ontologies/people#plant| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#plant|)))) --> <owl:Class rdf:about="#Axiom_2"> <owl:disjointWith> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <owl:Class rdf:about="#plant"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#plant"/> </owl:Restriction> </owl:unionOf> </owl:Class> </owl:disjointWith> </owl:Class> <!-- Axiom ID 10 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| (OR |http://cohse.semanticweb.org/ontologies/people#animal| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#animal|)))) --> <owl:Class rdf:about="#Axiom_2"> <owl:equivalentClass> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <owl:Class rdf:about="#animal"/> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#part_of"/> </owl:onProperty> <owl:someValuesFrom rdf:resource="#animal"/> </owl:Restriction> </owl:unionOf> </owl:Class> </owl:equivalentClass> </owl:Class> <!-- Axiom ID 306 --> <!-- (|OWLDataPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#service_number| (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) --> <owl:DatatypeProperty rdf:about="#service_number"> <rdfs:range> <rdfs:Datatype rdf:about="&xsd;integer"/> </rdfs:range> </owl:DatatypeProperty> <!-- Axiom ID 299 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#reads| |http://cohse.semanticweb.org/ontologies/people#publication|) --> <owl:ObjectProperty rdf:about="#reads"> <rdfs:range rdf:resource="#publication"/> </owl:ObjectProperty> <!-- Axiom ID 286 --> <!-- (|OWLInverseObjectPropertiesAxiom| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://cohse.semanticweb.org/ontologies/people#has_pet|) --> <owl:ObjectProperty rdf:about="#is_pet_of"> <owl:inverseOf> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:inverseOf> </owl:ObjectProperty> <!-- Axiom ID 285 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:ObjectProperty rdf:about="#has_pet"> <rdfs:range rdf:resource="#animal"/> </owl:ObjectProperty> <!-- Axiom ID 284 --> <!-- (|OWLObjectPropertyDomainAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#person|) --> <owl:ObjectProperty rdf:about="#has_pet"> <rdfs:domain rdf:resource="#person"/> </owl:ObjectProperty> <!-- Axiom ID 283 --> <!-- (|OWLObjectSubPropertyAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#likes|) --> <owl:ObjectProperty rdf:about="#has_pet"> <rdfs:subPropertyOf> <owl:ObjectProperty rdf:about="#likes"/> </rdfs:subPropertyOf> </owl:ObjectProperty> <!-- Axiom ID 279 --> <!-- (|OWLInverseObjectPropertiesAxiom| |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#has_part|) --> <owl:ObjectProperty rdf:about="#part_of"> <owl:inverseOf> <owl:ObjectProperty rdf:about="#has_part"/> </owl:inverseOf> </owl:ObjectProperty> <!-- Axiom ID 272 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://cohse.semanticweb.org/ontologies/people#woman|) --> <owl:ObjectProperty rdf:about="#has_mother"> <rdfs:range rdf:resource="#woman"/> </owl:ObjectProperty> <!-- Axiom ID 271 --> <!-- (|OWLObjectSubPropertyAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://cohse.semanticweb.org/ontologies/people#has_parent|) --> <owl:ObjectProperty rdf:about="#has_mother"> <rdfs:subPropertyOf> <owl:ObjectProperty rdf:about="#has_parent"/> </rdfs:subPropertyOf> </owl:ObjectProperty> <!-- Axiom ID 267 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://cohse.semanticweb.org/ontologies/people#man|) --> <owl:ObjectProperty rdf:about="#has_father"> <rdfs:range rdf:resource="#man"/> </owl:ObjectProperty> <!-- Axiom ID 266 --> <!-- (|OWLObjectSubPropertyAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://cohse.semanticweb.org/ontologies/people#has_parent|) --> <owl:ObjectProperty rdf:about="#has_father"> <rdfs:subPropertyOf> <owl:ObjectProperty rdf:about="#has_parent"/> </rdfs:subPropertyOf> </owl:ObjectProperty> <!-- Axiom ID 259 --> <!-- (|OWLObjectPropertyDomainAxiom| |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <owl:ObjectProperty rdf:about="#eats"> <rdfs:domain rdf:resource="#animal"/> </owl:ObjectProperty> <!-- Axiom ID 255 --> <!-- (|OWLInverseObjectPropertiesAxiom| |http://cohse.semanticweb.org/ontologies/people#eaten_by| |http://cohse.semanticweb.org/ontologies/people#eats|) --> <owl:ObjectProperty rdf:about="#eaten_by"> <owl:inverseOf> <owl:ObjectProperty rdf:about="#eats"/> </owl:inverseOf> </owl:ObjectProperty> <!-- Axiom ID 382 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Louie|) --> <rdf:Description rdf:about="#Walt"> <has_pet rdf:resource="#Louie"/> </rdf:Description> <!-- Axiom ID 381 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Huey|) --> <rdf:Description rdf:about="#Walt"> <has_pet rdf:resource="#Huey"/> </rdf:Description> <!-- Axiom ID 380 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Dewey|) --> <rdf:Description rdf:about="#Walt"> <has_pet rdf:resource="#Dewey"/> </rdf:Description> <!-- Axiom ID 379 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#person|) --> <rdf:Description rdf:about="#Walt"> <rdf:type rdf:resource="#person"/> </rdf:Description> <!-- Axiom ID 376 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| TOP) --> <rdf:Description rdf:about="#Tom"> <rdf:type rdf:resource="&owl;Thing"/> </rdf:Description> <!-- Axiom ID 373 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tibbs| |http://cohse.semanticweb.org/ontologies/people#cat|) --> <rdf:Description rdf:about="#Tibbs"> <rdf:type rdf:resource="#cat"/> </rdf:Description> <!-- Axiom ID 370 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Times| |http://cohse.semanticweb.org/ontologies/people#broadsheet|) --> <rdf:Description rdf:about="#The_Times"> <rdf:type rdf:resource="#broadsheet"/> </rdf:Description> <!-- Axiom ID 367 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Sun| |http://cohse.semanticweb.org/ontologies/people#tabloid|) --> <rdf:Description rdf:about="#The_Sun"> <rdf:type rdf:resource="#tabloid"/> </rdf:Description> <!-- Axiom ID 364 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Guardian| |http://cohse.semanticweb.org/ontologies/people#broadsheet|) --> <rdf:Description rdf:about="#The_Guardian"> <rdf:type rdf:resource="#broadsheet"/> </rdf:Description> <!-- Axiom ID 361 --> <!-- (|OWLDataPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://cohse.semanticweb.org/ontologies/people#service_number| (D-LITERAL "42" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))) --> <rdf:Description rdf:about="#The42"> <service_number>42</service_number> </rdf:Description> <!-- Axiom ID 360 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://cohse.semanticweb.org/ontologies/people#bus|) --> <rdf:Description rdf:about="#The42"> <rdf:type rdf:resource="#bus"/> </rdf:Description> <!-- Axiom ID 357 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://cohse.semanticweb.org/ontologies/people#Mick|) --> <rdf:Description rdf:about="#Rex"> <is_pet_of rdf:resource="#Mick"/> </rdf:Description> <!-- Axiom ID 356 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://cohse.semanticweb.org/ontologies/people#dog|) --> <rdf:Description rdf:about="#Rex"> <rdf:type rdf:resource="#dog"/> </rdf:Description> <!-- Axiom ID 353 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://cohse.semanticweb.org/ontologies/people#white_thing|) --> <rdf:Description rdf:about="#Q123_ABC"> <rdf:type rdf:resource="#white_thing"/> </rdf:Description> <!-- Axiom ID 352 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://cohse.semanticweb.org/ontologies/people#van|) --> <rdf:Description rdf:about="#Q123_ABC"> <rdf:type rdf:resource="#van"/> </rdf:Description> <!-- Axiom ID 349 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Tom|) --> <rdf:Description rdf:about="#Minnie"> <has_pet rdf:resource="#Tom"/> </rdf:Description> <!-- Axiom ID 348 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://cohse.semanticweb.org/ontologies/people#female|) --> <rdf:Description rdf:about="#Minnie"> <rdf:type rdf:resource="#female"/> </rdf:Description> <!-- Axiom ID 347 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://cohse.semanticweb.org/ontologies/people#elderly|) --> <rdf:Description rdf:about="#Minnie"> <rdf:type rdf:resource="#elderly"/> </rdf:Description> <!-- Axiom ID 344 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://cohse.semanticweb.org/ontologies/people#reads| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror|) --> <rdf:Description rdf:about="#Mick"> <reads rdf:resource="#Daily_Mirror"/> </rdf:Description> <!-- Axiom ID 343 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC|) --> <rdf:Description rdf:about="#Mick"> <drives rdf:resource="#Q123_ABC"/> </rdf:Description> <!-- Axiom ID 342 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://cohse.semanticweb.org/ontologies/people#male|) --> <rdf:Description rdf:about="#Mick"> <rdf:type rdf:resource="#male"/> </rdf:Description> <!-- Axiom ID 339 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Louie| |http://cohse.semanticweb.org/ontologies/people#duck|) --> <rdf:Description rdf:about="#Louie"> <rdf:type rdf:resource="#duck"/> </rdf:Description> <!-- Axiom ID 336 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Kevin| |http://cohse.semanticweb.org/ontologies/people#person|) --> <rdf:Description rdf:about="#Kevin"> <rdf:type rdf:resource="#person"/> </rdf:Description> <!-- Axiom ID 333 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Fido|) --> <rdf:Description rdf:about="#Joe"> <has_pet rdf:resource="#Fido"/> </rdf:Description> <!-- Axiom ID 332 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| (AT-MOST 1 |http://cohse.semanticweb.org/ontologies/people#has_pet|)) --> <rdf:Description rdf:about="#Joe"> <rdf:type> <owl:Restriction> <owl:onProperty> <owl:ObjectProperty rdf:about="#has_pet"/> </owl:onProperty> <owl:maxCardinality rdf:datatype="&xsd;nonNegativeInteger">1 </owl:maxCardinality> </owl:Restriction> </rdf:type> </rdf:Description> <!-- Axiom ID 331 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://cohse.semanticweb.org/ontologies/people#person|) --> <rdf:Description rdf:about="#Joe"> <rdf:type rdf:resource="#person"/> </rdf:Description> <!-- Axiom ID 328 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| |http://cohse.semanticweb.org/ontologies/people#duck|) --> <rdf:Description rdf:about="#Huey"> <rdf:type rdf:resource="#duck"/> </rdf:Description> <!-- Axiom ID 325 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Tibbs|) --> <rdf:Description rdf:about="#Fred"> <has_pet rdf:resource="#Tibbs"/> </rdf:Description> <!-- Axiom ID 324 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://cohse.semanticweb.org/ontologies/people#person|) --> <rdf:Description rdf:about="#Fred"> <rdf:type rdf:resource="#person"/> </rdf:Description> <!-- Axiom ID 321 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fluffy| |http://cohse.semanticweb.org/ontologies/people#tiger|) --> <rdf:Description rdf:about="#Fluffy"> <rdf:type rdf:resource="#tiger"/> </rdf:Description> <!-- Axiom ID 318 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Flossie| |http://cohse.semanticweb.org/ontologies/people#cow|) --> <rdf:Description rdf:about="#Flossie"> <rdf:type rdf:resource="#cow"/> </rdf:Description> <!-- Axiom ID 315 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| |http://cohse.semanticweb.org/ontologies/people#dog|) --> <rdf:Description rdf:about="#Fido"> <rdf:type rdf:resource="#dog"/> </rdf:Description> <!-- Axiom ID 312 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Dewey| |http://cohse.semanticweb.org/ontologies/people#duck|) --> <rdf:Description rdf:about="#Dewey"> <rdf:type rdf:resource="#duck"/> </rdf:Description> <!-- Axiom ID 309 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| TOP) --> <rdf:Description rdf:about="#Daily_Mirror"> <rdf:type rdf:resource="&owl;Thing"/> </rdf:Description> <!-- Axiom ID 378 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Walt" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Walt"> <rdfs:label>Walt</rdfs:label> </rdf:Description> <!-- Axiom ID 377 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Walt"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 375 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Tom" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Tom"> <rdfs:label>Tom</rdfs:label> </rdf:Description> <!-- Axiom ID 374 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Tom"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 372 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tibbs| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Tibbs"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 371 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tibbs| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Tibbs" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Tibbs"> <rdfs:label>Tibbs</rdfs:label> </rdf:Description> <!-- Axiom ID 369 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Times| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The Times" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The_Times"> <rdfs:label>The Times</rdfs:label> </rdf:Description> <!-- Axiom ID 368 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Times| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The_Times"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 366 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Sun| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The Sun" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The_Sun"> <rdfs:label>The Sun</rdfs:label> </rdf:Description> <!-- Axiom ID 365 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Sun| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The_Sun"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 363 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Guardian| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The Guardian" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The_Guardian"> <rdfs:label>The Guardian</rdfs:label> </rdf:Description> <!-- Axiom ID 362 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Guardian| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The_Guardian"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 359 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The42"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 358 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The42" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#The42"> <rdfs:label>The42</rdfs:label> </rdf:Description> <!-- Axiom ID 355 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Rex" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Rex"> <rdfs:label>Rex</rdfs:label> </rdf:Description> <!-- Axiom ID 354 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Rex"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 351 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Q123 ABC" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Q123_ABC"> <rdfs:label>Q123 ABC</rdfs:label> </rdf:Description> <!-- Axiom ID 350 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A white van" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Q123_ABC"> <rdfs:comment>A white van</rdfs:comment> </rdf:Description> <!-- Axiom ID 346 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Minnie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Minnie"> <rdfs:label>Minnie</rdfs:label> </rdf:Description> <!-- Axiom ID 345 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Minnie"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 341 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Mick" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Mick"> <rdfs:label>Mick</rdfs:label> </rdf:Description> <!-- Axiom ID 340 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Mick"> <rdfs:comment>Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror.</rdfs:comment> </rdf:Description> <!-- Axiom ID 338 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Louie| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Louie"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 337 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Louie| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Louie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Louie"> <rdfs:label>Louie</rdfs:label> </rdf:Description> <!-- Axiom ID 335 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Kevin| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Kevin" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Kevin"> <rdfs:label>Kevin</rdfs:label> </rdf:Description> <!-- Axiom ID 334 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Kevin| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Kevin"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 330 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Joe"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 329 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Joe" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Joe"> <rdfs:label>Joe</rdfs:label> </rdf:Description> <!-- Axiom ID 327 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Huey" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Huey"> <rdfs:label>Huey</rdfs:label> </rdf:Description> <!-- Axiom ID 326 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Huey"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 323 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Fred" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Fred"> <rdfs:label>Fred</rdfs:label> </rdf:Description> <!-- Axiom ID 322 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Fred"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 320 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fluffy| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Fluffy"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 319 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fluffy| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Fluffy" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Fluffy"> <rdfs:label>Fluffy</rdfs:label> </rdf:Description> <!-- Axiom ID 317 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Flossie| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Flossie"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 316 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Flossie| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Flossie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Flossie"> <rdfs:label>Flossie</rdfs:label> </rdf:Description> <!-- Axiom ID 314 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Fido" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Fido"> <rdfs:label>Fido</rdfs:label> </rdf:Description> <!-- Axiom ID 313 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Fido"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 311 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Dewey| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Dewey"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 310 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Dewey| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Dewey" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Dewey"> <rdfs:label>Dewey</rdfs:label> </rdf:Description> <!-- Axiom ID 308 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "The paper read by Mick (a white van man)." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Daily_Mirror"> <rdfs:comment>The paper read by Mick (a white van man).</rdfs:comment> </rdf:Description> <!-- Axiom ID 307 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Daily Mirror" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#Daily_Mirror"> <rdfs:label>Daily Mirror</rdfs:label> </rdf:Description> <!-- Axiom ID 305 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#service_number| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#service_number"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 304 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#service_number| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "service_number" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#service_number"> <rdfs:label>service_number</rdfs:label> </rdf:Description> <!-- Axiom ID 302 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#works_for| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "works_for" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#works_for"> <rdfs:label>works_for</rdfs:label> </rdf:Description> <!-- Axiom ID 301 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#works_for| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#works_for"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 298 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#reads| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#reads"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 297 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#reads| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "reads" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#reads"> <rdfs:label>reads</rdfs:label> </rdf:Description> <!-- Axiom ID 295 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#part_of| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#part_of"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 294 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#part_of| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "part_of" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#part_of"> <rdfs:label>part_of</rdfs:label> </rdf:Description> <!-- Axiom ID 292 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#likes| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "likes" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#likes"> <rdfs:label>likes</rdfs:label> </rdf:Description> <!-- Axiom ID 291 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#likes| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#likes"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 289 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#is_pet_of"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 288 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "is_pet_of" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#is_pet_of"> <rdfs:label>is_pet_of</rdfs:label> </rdf:Description> <!-- Axiom ID 282 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_pet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_pet"> <rdfs:label>has_pet</rdfs:label> </rdf:Description> <!-- Axiom ID 281 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Anyone that has a pet must like that pet." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_pet"> <rdfs:comment>Anyone that has a pet must like that pet.</rdfs:comment> </rdf:Description> <!-- Axiom ID 278 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_part| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_part"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 277 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_part| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_part" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_part"> <rdfs:label>has_part</rdfs:label> </rdf:Description> <!-- Axiom ID 275 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_parent| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_parent"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 274 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_parent| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_parent" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_parent"> <rdfs:label>has_parent</rdfs:label> </rdf:Description> <!-- Axiom ID 270 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_mother"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 269 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_mother" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_mother"> <rdfs:label>has_mother</rdfs:label> </rdf:Description> <!-- Axiom ID 265 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_father" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_father"> <rdfs:label>has_father</rdfs:label> </rdf:Description> <!-- Axiom ID 264 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_father"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 262 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_child| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_child" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_child"> <rdfs:label>has_child</rdfs:label> </rdf:Description> <!-- Axiom ID 261 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_child| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#has_child"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 258 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eats| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#eats"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 257 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eats| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "eats" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#eats"> <rdfs:label>eats</rdfs:label> </rdf:Description> <!-- Axiom ID 254 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eaten_by| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "eaten_by" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#eaten_by"> <rdfs:label>eaten_by</rdfs:label> </rdf:Description> <!-- Axiom ID 253 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eaten_by| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#eaten_by"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 251 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#drives| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#drives"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 250 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#drives| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "drives" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#drives"> <rdfs:label>drives</rdfs:label> </rdf:Description> <!-- Axiom ID 247 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#young| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "young" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#young"> <rdfs:label>young</rdfs:label> </rdf:Description> <!-- Axiom ID 246 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#young| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#young"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 243 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#woman| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "woman" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#woman"> <rdfs:label>woman</rdfs:label> </rdf:Description> <!-- Axiom ID 242 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#woman| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#woman"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 238 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_van_man| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "white van man" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#white_van_man"> <rdfs:label>white van man</rdfs:label> </rdf:Description> <!-- Axiom ID 237 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_van_man| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A white van man is a man who drives a white van." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#white_van_man"> <rdfs:comment>A white van man is a man who drives a white van.</rdfs:comment> </rdf:Description> <!-- Axiom ID 235 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_thing| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "white thing" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#white_thing"> <rdfs:label>white thing</rdfs:label> </rdf:Description> <!-- Axiom ID 234 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_thing| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#white_thing"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 232 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vehicle| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "vehicle" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#vehicle"> <rdfs:label>vehicle</rdfs:label> </rdf:Description> <!-- Axiom ID 231 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vehicle| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#vehicle"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 228 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vegetarian| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "vegetarian" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#vegetarian"> <rdfs:label>vegetarian</rdfs:label> </rdf:Description> <!-- Axiom ID 227 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vegetarian| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A vegetarian is defined as an animal that eats no other animals, or parts of animals." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#vegetarian"> <rdfs:comment>A vegetarian is defined as an animal that eats no other animals, or parts of animals.</rdfs:comment> </rdf:Description> <!-- Axiom ID 224 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#van_driver"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 223 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "van driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#van_driver"> <rdfs:label>van driver</rdfs:label> </rdf:Description> <!-- Axiom ID 220 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "van" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#van"> <rdfs:label>van</rdfs:label> </rdf:Description> <!-- Axiom ID 219 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#van"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 216 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "truck" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#truck"> <rdfs:label>truck</rdfs:label> </rdf:Description> <!-- Axiom ID 215 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#truck"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 212 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#tree"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 211 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "tree" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#tree"> <rdfs:label>tree</rdfs:label> </rdf:Description> <!-- Axiom ID 208 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#tiger"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 207 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "tiger" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#tiger"> <rdfs:label>tiger</rdfs:label> </rdf:Description> <!-- Axiom ID 203 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#tabloid"> <rdfs:comment>A newspaper. Tabloids are usually thought of as more "down-market" than broadsheets.</rdfs:comment> </rdf:Description> <!-- Axiom ID 202 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "tabloid" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#tabloid"> <rdfs:label>tabloid</rdfs:label> </rdf:Description> <!-- Axiom ID 198 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "sheep" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#sheep"> <rdfs:label>sheep</rdfs:label> </rdf:Description> <!-- Axiom ID 197 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#sheep"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 194 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#red_top"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 193 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "red top" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#red_top"> <rdfs:label>red top</rdfs:label> </rdf:Description> <!-- Axiom ID 190 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#quality_broadsheet"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 189 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "quality broadsheet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#quality_broadsheet"> <rdfs:label>quality broadsheet</rdfs:label> </rdf:Description> <!-- Axiom ID 187 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#publication| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "publication" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#publication"> <rdfs:label>publication</rdfs:label> </rdf:Description> <!-- Axiom ID 186 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#publication| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#publication"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 184 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#plant| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#plant"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 183 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#plant| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "plant" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#plant"> <rdfs:label>plant</rdfs:label> </rdf:Description> <!-- Axiom ID 180 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet_owner| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#pet_owner"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 179 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet_owner| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "pet owner" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#pet_owner"> <rdfs:label>pet owner</rdfs:label> </rdf:Description> <!-- Axiom ID 176 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#pet"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 175 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "pet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#pet"> <rdfs:label>pet</rdfs:label> </rdf:Description> <!-- Axiom ID 172 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#person| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#person"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 171 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#person| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "person" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#person"> <rdfs:label>person</rdfs:label> </rdf:Description> <!-- Axiom ID 167 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#old_lady"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 166 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "old lady" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#old_lady"> <rdfs:label>old lady</rdfs:label> </rdf:Description> <!-- Axiom ID 162 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "All newspapers are either broadsheets or tabloids." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#newspaper"> <rdfs:comment>All newspapers are either broadsheets or tabloids.</rdfs:comment> </rdf:Description> <!-- Axiom ID 161 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "newspaper" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#newspaper"> <rdfs:label>newspaper</rdfs:label> </rdf:Description> <!-- Axiom ID 158 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#man| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#man"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 157 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#man| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "man" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#man"> <rdfs:label>man</rdfs:label> </rdf:Description> <!-- Axiom ID 155 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#male| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "The class of all male things." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#male"> <rdfs:comment>The class of all male things.</rdfs:comment> </rdf:Description> <!-- Axiom ID 154 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#male| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "male" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#male"> <rdfs:label>male</rdfs:label> </rdf:Description> <!-- Axiom ID 151 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#magazine"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 150 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "magazine" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#magazine"> <rdfs:label>magazine</rdfs:label> </rdf:Description> <!-- Axiom ID 147 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#mad_cow| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "mad cow" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#mad_cow"> <rdfs:label>mad cow</rdfs:label> </rdf:Description> <!-- Axiom ID 146 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#mad_cow| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A mad cow is a cow that has been eating the brains of sheep." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#mad_cow"> <rdfs:comment>A mad cow is a cow that has been eating the brains of sheep.</rdfs:comment> </rdf:Description> <!-- Axiom ID 143 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "lorry driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#lorry_driver"> <rdfs:label>lorry driver</rdfs:label> </rdf:Description> <!-- Axiom ID 142 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#lorry_driver"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 139 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#lorry"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 138 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "lorry" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#lorry"> <rdfs:label>lorry</rdfs:label> </rdf:Description> <!-- Axiom ID 135 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#leaf"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 134 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "leaf" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#leaf"> <rdfs:label>leaf</rdfs:label> </rdf:Description> <!-- Axiom ID 131 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#kid| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#kid"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 130 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#kid| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "kid" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#kid"> <rdfs:label>kid</rdfs:label> </rdf:Description> <!-- Axiom ID 127 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_worker| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#haulage_worker"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 126 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_worker| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "haulage worker" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#haulage_worker"> <rdfs:label>haulage worker</rdfs:label> </rdf:Description> <!-- Axiom ID 123 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#haulage_truck_driver"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 122 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "haulage truck driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#haulage_truck_driver"> <rdfs:label>haulage truck driver</rdfs:label> </rdf:Description> <!-- Axiom ID 119 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_company| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#haulage_company"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 118 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_company| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "haulage company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#haulage_company"> <rdfs:label>haulage company</rdfs:label> </rdf:Description> <!-- Axiom ID 115 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grownup| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#grownup"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 114 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grownup| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "grownup" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#grownup"> <rdfs:label>grownup</rdfs:label> </rdf:Description> <!-- Axiom ID 111 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#grass"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 110 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "grass" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#grass"> <rdfs:label>grass</rdfs:label> </rdf:Description> <!-- Axiom ID 106 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#giraffe"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 105 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "giraffe" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#giraffe"> <rdfs:label>giraffe</rdfs:label> </rdf:Description> <!-- Axiom ID 103 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#female| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "female" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#female"> <rdfs:label>female</rdfs:label> </rdf:Description> <!-- Axiom ID 102 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#female| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#female"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 99 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#elderly"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 98 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "elderly" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#elderly"> <rdfs:label>elderly</rdfs:label> </rdf:Description> <!-- Axiom ID 95 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#duck"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 94 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "duck" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#duck"> <rdfs:label>duck</rdfs:label> </rdf:Description> <!-- Axiom ID 90 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#driver"> <rdfs:label>driver</rdfs:label> </rdf:Description> <!-- Axiom ID 89 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#driver"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 86 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_owner| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#dog_owner"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 85 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_owner| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "dog owner" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#dog_owner"> <rdfs:label>dog owner</rdfs:label> </rdf:Description> <!-- Axiom ID 82 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_liker| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#dog_liker"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 81 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_liker| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "dog liker" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#dog_liker"> <rdfs:label>dog liker</rdfs:label> </rdf:Description> <!-- Axiom ID 77 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#dog"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 76 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "dog" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#dog"> <rdfs:label>dog</rdfs:label> </rdf:Description> <!-- Axiom ID 73 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Cows are naturally vegetarians." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cow"> <rdfs:comment>Cows are naturally vegetarians.</rdfs:comment> </rdf:Description> <!-- Axiom ID 72 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cow" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cow"> <rdfs:label>cow</rdfs:label> </rdf:Description> <!-- Axiom ID 70 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#company| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#company"> <rdfs:label>company</rdfs:label> </rdf:Description> <!-- Axiom ID 69 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#company| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#company"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 66 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_owner| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cat owner" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cat_owner"> <rdfs:label>cat owner</rdfs:label> </rdf:Description> <!-- Axiom ID 65 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_owner| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cat_owner"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 62 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_liker| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cat liker" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cat_liker"> <rdfs:label>cat liker</rdfs:label> </rdf:Description> <!-- Axiom ID 61 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_liker| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cat_liker"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 57 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cat" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cat"> <rdfs:label>cat</rdfs:label> </rdf:Description> <!-- Axiom ID 56 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#cat"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 53 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#car| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#car"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 52 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#car| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "car" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#car"> <rdfs:label>car</rdfs:label> </rdf:Description> <!-- Axiom ID 49 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bus driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bus_driver"> <rdfs:label>bus driver</rdfs:label> </rdf:Description> <!-- Axiom ID 48 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Someone who drives a bus." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bus_driver"> <rdfs:comment>Someone who drives a bus.</rdfs:comment> </rdf:Description> <!-- Axiom ID 45 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_company| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bus_company"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 44 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_company| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bus company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bus_company"> <rdfs:label>bus company</rdfs:label> </rdf:Description> <!-- Axiom ID 41 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bus"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 40 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bus" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bus"> <rdfs:label>bus</rdfs:label> </rdf:Description> <!-- Axiom ID 36 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "broadsheet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#broadsheet"> <rdfs:label>broadsheet</rdfs:label> </rdf:Description> <!-- Axiom ID 35 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#broadsheet"> <rdfs:comment>A newspaper. Broadsheets are usually considered to be more "high-brow" than tabloids.</rdfs:comment> </rdf:Description> <!-- Axiom ID 33 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#brain| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "brain" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#brain"> <rdfs:label>brain</rdfs:label> </rdf:Description> <!-- Axiom ID 32 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#brain| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#brain"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 30 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bone| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bone" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bone"> <rdfs:label>bone</rdfs:label> </rdf:Description> <!-- Axiom ID 29 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bone| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bone"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 26 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A human propelled vehicle, with two wheels" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bicycle"> <rdfs:comment>A human propelled vehicle, with two wheels</rdfs:comment> </rdf:Description> <!-- Axiom ID 25 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bicycle" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#bicycle"> <rdfs:label>bicycle</rdfs:label> </rdf:Description> <!-- Axiom ID 22 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal_lover| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Someone who really likes animals" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#animal_lover"> <rdfs:comment>Someone who really likes animals</rdfs:comment> </rdf:Description> <!-- Axiom ID 21 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal_lover| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "animal lover" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#animal_lover"> <rdfs:label>animal lover</rdfs:label> </rdf:Description> <!-- Axiom ID 18 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#animal"> <rdfs:comment></rdfs:comment> </rdf:Description> <!-- Axiom ID 17 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "animal" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#animal"> <rdfs:label>animal</rdfs:label> </rdf:Description> <!-- Axiom ID 14 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#adult| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "adult" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#adult"> <rdfs:label>adult</rdfs:label> </rdf:Description> <!-- Axiom ID 13 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#adult| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Things that are adult." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <rdf:Description rdf:about="#adult"> <rdfs:comment>Things that are adult.</rdfs:comment> </rdf:Description> </rdf:RDF> <!-- Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by OntoLisp Version 0.9 Build 2010-07-04, July 03 2010, 19:54 -->
133,623
Common Lisp
.l
3,844
30.227627
284
0.674109
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
09ced708da3ec6b86a500dd50a4c4d3d564e9041b868144ee0fc9e7dc727410b
6,415
[ -1 ]
6,416
people-pets-newest.owx
lambdamikel_OntoLisp/ontolisp-0.9/test/temp/people-pets-newest.owx
<!-- Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by OntoLisp Version 0.9 Build 2010-07-04, July 03 2010, 19:54 --> <!DOCTYPE Ontology [ <!ENTITY owl "http://www.w3.org/2002/07/owl#"> <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#"> <!ENTITY skos "http://www.w3.org/2004/02/skos/core#"> <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#"> <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#"> ]> <Ontology xmlns="http://www.w3.org/2002/07/owl#" xml:base="http://cohse.semanticweb.org/ontologies/people" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <!-- Axiom ID 8 --> <!-- (|OWLOntologyAnnotationAxiom| (|Annotation| |http://www.w3.org/2002/07/owl#versionInfo| (D-LITERAL "2.8" NIL))) --> <Annotation> <AnnotationProperty IRI="&owl;versionInfo"/> <Literal datatypeIRI="&xsd;string">2.8</Literal> </Annotation> <!-- Axiom ID 9 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#Axiom_2|)) --> <Declaration> <Class IRI="#Axiom_2"/> </Declaration> <!-- Axiom ID 10 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| (OR |http://cohse.semanticweb.org/ontologies/people#animal| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#animal|)))) --> <EquivalentClasses> <Class IRI="#Axiom_2"/> <ObjectUnionOf> <Class IRI="#animal"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#animal"/> </ObjectSomeValuesFrom> </ObjectUnionOf> </EquivalentClasses> <!-- Axiom ID 11 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#Axiom_2| (OR |http://cohse.semanticweb.org/ontologies/people#plant| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#plant|)))) --> <DisjointClasses> <Class IRI="#Axiom_2"/> <ObjectUnionOf> <Class IRI="#plant"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#plant"/> </ObjectSomeValuesFrom> </ObjectUnionOf> </DisjointClasses> <!-- Axiom ID 12 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#adult|)) --> <Declaration> <Class IRI="#adult"/> </Declaration> <!-- Axiom ID 13 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#adult| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Things that are adult." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#adult"/> <Literal datatypeIRI="&xsd;string">Things that are adult.</Literal> </AnnotationAssertion> <!-- Axiom ID 14 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#adult| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "adult" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#adult"/> <Literal datatypeIRI="&xsd;string">adult</Literal> </AnnotationAssertion> <!-- Axiom ID 15 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#adult| |http://cohse.semanticweb.org/ontologies/people#young|)) --> <DisjointClasses> <Class IRI="#adult"/> <Class IRI="#young"/> </DisjointClasses> <!-- Axiom ID 16 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#animal|)) --> <Declaration> <Class IRI="#animal"/> </Declaration> <!-- Axiom ID 17 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "animal" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#animal"/> <Literal datatypeIRI="&xsd;string">animal</Literal> </AnnotationAssertion> <!-- Axiom ID 18 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#animal"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 19 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#animal| (SOME |http://cohse.semanticweb.org/ontologies/people#eats| TOP)) --> <SubClassOf> <Class IRI="#animal"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#eats"/> <Class IRI="&owl;Thing"/> </ObjectSomeValuesFrom> </SubClassOf> <!-- Axiom ID 20 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#animal_lover|)) --> <Declaration> <Class IRI="#animal_lover"/> </Declaration> <!-- Axiom ID 21 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal_lover| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "animal lover" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#animal_lover"/> <Literal datatypeIRI="&xsd;string">animal lover</Literal> </AnnotationAssertion> <!-- Axiom ID 22 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#animal_lover| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Someone who really likes animals" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#animal_lover"/> <Literal datatypeIRI="&xsd;string">Someone who really likes animals</Literal> </AnnotationAssertion> <!-- Axiom ID 23 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#animal_lover| (AND |http://cohse.semanticweb.org/ontologies/people#person| (AT-LEAST 3 |http://cohse.semanticweb.org/ontologies/people#has_pet|)))) --> <EquivalentClasses> <Class IRI="#animal_lover"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectMinCardinality cardinality="3"> <ObjectProperty IRI="#has_pet"/> </ObjectMinCardinality> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 24 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bicycle|)) --> <Declaration> <Class IRI="#bicycle"/> </Declaration> <!-- Axiom ID 25 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bicycle" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#bicycle"/> <Literal datatypeIRI="&xsd;string">bicycle</Literal> </AnnotationAssertion> <!-- Axiom ID 26 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A human propelled vehicle, with two wheels" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#bicycle"/> <Literal datatypeIRI="&xsd;string">A human propelled vehicle, with two wheels</Literal> </AnnotationAssertion> <!-- Axiom ID 27 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bicycle| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <SubClassOf> <Class IRI="#bicycle"/> <Class IRI="#vehicle"/> </SubClassOf> <!-- Axiom ID 28 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bone|)) --> <Declaration> <Class IRI="#bone"/> </Declaration> <!-- Axiom ID 29 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bone| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#bone"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 30 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bone| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bone" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#bone"/> <Literal datatypeIRI="&xsd;string">bone</Literal> </AnnotationAssertion> <!-- Axiom ID 31 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#brain|)) --> <Declaration> <Class IRI="#brain"/> </Declaration> <!-- Axiom ID 32 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#brain| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#brain"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 33 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#brain| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "brain" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#brain"/> <Literal datatypeIRI="&xsd;string">brain</Literal> </AnnotationAssertion> <!-- Axiom ID 34 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) --> <Declaration> <Class IRI="#broadsheet"/> </Declaration> <!-- Axiom ID 35 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A newspaper. Broadsheets are usually considered to be more \"high-brow\" than tabloids." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#broadsheet"/> <Literal datatypeIRI="&xsd;string">A newspaper. Broadsheets are usually considered to be more "high-brow" than tabloids.</Literal> </AnnotationAssertion> <!-- Axiom ID 36 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "broadsheet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#broadsheet"/> <Literal datatypeIRI="&xsd;string">broadsheet</Literal> </AnnotationAssertion> <!-- Axiom ID 37 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://cohse.semanticweb.org/ontologies/people#newspaper|) --> <SubClassOf> <Class IRI="#broadsheet"/> <Class IRI="#newspaper"/> </SubClassOf> <!-- Axiom ID 38 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <DisjointClasses> <Class IRI="#broadsheet"/> <Class IRI="#tabloid"/> </DisjointClasses> <!-- Axiom ID 39 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bus|)) --> <Declaration> <Class IRI="#bus"/> </Declaration> <!-- Axiom ID 40 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bus" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#bus"/> <Literal datatypeIRI="&xsd;string">bus</Literal> </AnnotationAssertion> <!-- Axiom ID 41 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#bus"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 42 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bus| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <SubClassOf> <Class IRI="#bus"/> <Class IRI="#vehicle"/> </SubClassOf> <!-- Axiom ID 43 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_company|)) --> <Declaration> <Class IRI="#bus_company"/> </Declaration> <!-- Axiom ID 44 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_company| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bus company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#bus_company"/> <Literal datatypeIRI="&xsd;string">bus company</Literal> </AnnotationAssertion> <!-- Axiom ID 45 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_company| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#bus_company"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 46 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_company| |http://cohse.semanticweb.org/ontologies/people#company|) --> <SubClassOf> <Class IRI="#bus_company"/> <Class IRI="#company"/> </SubClassOf> <!-- Axiom ID 47 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#bus_driver|)) --> <Declaration> <Class IRI="#bus_driver"/> </Declaration> <!-- Axiom ID 48 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Someone who drives a bus." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#bus_driver"/> <Literal datatypeIRI="&xsd;string">Someone who drives a bus.</Literal> </AnnotationAssertion> <!-- Axiom ID 49 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#bus_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "bus driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#bus_driver"/> <Literal datatypeIRI="&xsd;string">bus driver</Literal> </AnnotationAssertion> <!-- Axiom ID 50 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#bus_driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#bus|)))) --> <EquivalentClasses> <Class IRI="#bus_driver"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#drives"/> <Class IRI="#bus"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 51 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#car|)) --> <Declaration> <Class IRI="#car"/> </Declaration> <!-- Axiom ID 52 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#car| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "car" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#car"/> <Literal datatypeIRI="&xsd;string">car</Literal> </AnnotationAssertion> <!-- Axiom ID 53 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#car| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#car"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 54 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#car| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <SubClassOf> <Class IRI="#car"/> <Class IRI="#vehicle"/> </SubClassOf> <!-- Axiom ID 55 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cat|)) --> <Declaration> <Class IRI="#cat"/> </Declaration> <!-- Axiom ID 56 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#cat"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 57 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cat" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#cat"/> <Literal datatypeIRI="&xsd;string">cat</Literal> </AnnotationAssertion> <!-- Axiom ID 58 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#cat| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <SubClassOf> <Class IRI="#cat"/> <Class IRI="#animal"/> </SubClassOf> <!-- Axiom ID 59 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#cat| |http://cohse.semanticweb.org/ontologies/people#dog|)) --> <DisjointClasses> <Class IRI="#cat"/> <Class IRI="#dog"/> </DisjointClasses> <!-- Axiom ID 60 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_liker|)) --> <Declaration> <Class IRI="#cat_liker"/> </Declaration> <!-- Axiom ID 61 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_liker| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#cat_liker"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 62 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_liker| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cat liker" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#cat_liker"/> <Literal datatypeIRI="&xsd;string">cat liker</Literal> </AnnotationAssertion> <!-- Axiom ID 63 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#cat_liker| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#likes| |http://cohse.semanticweb.org/ontologies/people#cat|)))) --> <EquivalentClasses> <Class IRI="#cat_liker"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#likes"/> <Class IRI="#cat"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 64 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cat_owner|)) --> <Declaration> <Class IRI="#cat_owner"/> </Declaration> <!-- Axiom ID 65 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_owner| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#cat_owner"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 66 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cat_owner| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cat owner" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#cat_owner"/> <Literal datatypeIRI="&xsd;string">cat owner</Literal> </AnnotationAssertion> <!-- Axiom ID 67 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#cat_owner| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#cat|)))) --> <EquivalentClasses> <Class IRI="#cat_owner"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#has_pet"/> <Class IRI="#cat"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 68 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#company|)) --> <Declaration> <Class IRI="#company"/> </Declaration> <!-- Axiom ID 69 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#company| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#company"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 70 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#company| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#company"/> <Literal datatypeIRI="&xsd;string">company</Literal> </AnnotationAssertion> <!-- Axiom ID 71 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#cow|)) --> <Declaration> <Class IRI="#cow"/> </Declaration> <!-- Axiom ID 72 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "cow" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#cow"/> <Literal datatypeIRI="&xsd;string">cow</Literal> </AnnotationAssertion> <!-- Axiom ID 73 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Cows are naturally vegetarians." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#cow"/> <Literal datatypeIRI="&xsd;string">Cows are naturally vegetarians.</Literal> </AnnotationAssertion> <!-- Axiom ID 74 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#cow| |http://cohse.semanticweb.org/ontologies/people#vegetarian|) --> <SubClassOf> <Class IRI="#cow"/> <Class IRI="#vegetarian"/> </SubClassOf> <!-- Axiom ID 75 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#dog|)) --> <Declaration> <Class IRI="#dog"/> </Declaration> <!-- Axiom ID 76 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "dog" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#dog"/> <Literal datatypeIRI="&xsd;string">dog</Literal> </AnnotationAssertion> <!-- Axiom ID 77 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#dog"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 78 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#dog| |http://cohse.semanticweb.org/ontologies/people#cat|)) --> <DisjointClasses> <Class IRI="#dog"/> <Class IRI="#cat"/> </DisjointClasses> <!-- Axiom ID 79 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#dog| (SOME |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#bone|)) --> <SubClassOf> <Class IRI="#dog"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#eats"/> <Class IRI="#bone"/> </ObjectSomeValuesFrom> </SubClassOf> <!-- Axiom ID 80 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_liker|)) --> <Declaration> <Class IRI="#dog_liker"/> </Declaration> <!-- Axiom ID 81 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_liker| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "dog liker" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#dog_liker"/> <Literal datatypeIRI="&xsd;string">dog liker</Literal> </AnnotationAssertion> <!-- Axiom ID 82 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_liker| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#dog_liker"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 83 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#dog_liker| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#likes| |http://cohse.semanticweb.org/ontologies/people#dog|)))) --> <EquivalentClasses> <Class IRI="#dog_liker"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#likes"/> <Class IRI="#dog"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 84 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#dog_owner|)) --> <Declaration> <Class IRI="#dog_owner"/> </Declaration> <!-- Axiom ID 85 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_owner| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "dog owner" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#dog_owner"/> <Literal datatypeIRI="&xsd;string">dog owner</Literal> </AnnotationAssertion> <!-- Axiom ID 86 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#dog_owner| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#dog_owner"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 87 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#dog_owner| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#dog|)))) --> <EquivalentClasses> <Class IRI="#dog_owner"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#has_pet"/> <Class IRI="#dog"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 88 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#driver|)) --> <Declaration> <Class IRI="#driver"/> </Declaration> <!-- Axiom ID 89 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#driver"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 90 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#driver"/> <Literal datatypeIRI="&xsd;string">driver</Literal> </AnnotationAssertion> <!-- Axiom ID 91 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#vehicle|)))) --> <EquivalentClasses> <Class IRI="#driver"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#drives"/> <Class IRI="#vehicle"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 92 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#driver| |http://cohse.semanticweb.org/ontologies/people#adult|) --> <SubClassOf> <Class IRI="#driver"/> <Class IRI="#adult"/> </SubClassOf> <!-- Axiom ID 93 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#duck|)) --> <Declaration> <Class IRI="#duck"/> </Declaration> <!-- Axiom ID 94 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "duck" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#duck"/> <Literal datatypeIRI="&xsd;string">duck</Literal> </AnnotationAssertion> <!-- Axiom ID 95 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#duck"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 96 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#duck| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <SubClassOf> <Class IRI="#duck"/> <Class IRI="#animal"/> </SubClassOf> <!-- Axiom ID 97 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#elderly|)) --> <Declaration> <Class IRI="#elderly"/> </Declaration> <!-- Axiom ID 98 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "elderly" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#elderly"/> <Literal datatypeIRI="&xsd;string">elderly</Literal> </AnnotationAssertion> <!-- Axiom ID 99 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#elderly"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 100 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#elderly| |http://cohse.semanticweb.org/ontologies/people#adult|) --> <SubClassOf> <Class IRI="#elderly"/> <Class IRI="#adult"/> </SubClassOf> <!-- Axiom ID 101 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#female|)) --> <Declaration> <Class IRI="#female"/> </Declaration> <!-- Axiom ID 102 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#female| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#female"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 103 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#female| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "female" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#female"/> <Literal datatypeIRI="&xsd;string">female</Literal> </AnnotationAssertion> <!-- Axiom ID 104 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#giraffe|)) --> <Declaration> <Class IRI="#giraffe"/> </Declaration> <!-- Axiom ID 105 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "giraffe" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#giraffe"/> <Literal datatypeIRI="&xsd;string">giraffe</Literal> </AnnotationAssertion> <!-- Axiom ID 106 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#giraffe"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 107 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <SubClassOf> <Class IRI="#giraffe"/> <Class IRI="#animal"/> </SubClassOf> <!-- Axiom ID 108 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#giraffe| (ALL |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#leaf|)) --> <SubClassOf> <Class IRI="#giraffe"/> <ObjectAllValuesFrom> <ObjectProperty IRI="#eats"/> <Class IRI="#leaf"/> </ObjectAllValuesFrom> </SubClassOf> <!-- Axiom ID 109 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#grass|)) --> <Declaration> <Class IRI="#grass"/> </Declaration> <!-- Axiom ID 110 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "grass" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#grass"/> <Literal datatypeIRI="&xsd;string">grass</Literal> </AnnotationAssertion> <!-- Axiom ID 111 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#grass"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 112 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#grass| |http://cohse.semanticweb.org/ontologies/people#plant|) --> <SubClassOf> <Class IRI="#grass"/> <Class IRI="#plant"/> </SubClassOf> <!-- Axiom ID 113 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#grownup|)) --> <Declaration> <Class IRI="#grownup"/> </Declaration> <!-- Axiom ID 114 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grownup| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "grownup" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#grownup"/> <Literal datatypeIRI="&xsd;string">grownup</Literal> </AnnotationAssertion> <!-- Axiom ID 115 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#grownup| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#grownup"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 116 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#grownup| (AND |http://cohse.semanticweb.org/ontologies/people#adult| |http://cohse.semanticweb.org/ontologies/people#person|))) --> <EquivalentClasses> <Class IRI="#grownup"/> <ObjectIntersectionOf> <Class IRI="#adult"/> <Class IRI="#person"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 117 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) --> <Declaration> <Class IRI="#haulage_company"/> </Declaration> <!-- Axiom ID 118 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_company| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "haulage company" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#haulage_company"/> <Literal datatypeIRI="&xsd;string">haulage company</Literal> </AnnotationAssertion> <!-- Axiom ID 119 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_company| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#haulage_company"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 120 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_company| |http://cohse.semanticweb.org/ontologies/people#company|) --> <SubClassOf> <Class IRI="#haulage_company"/> <Class IRI="#company"/> </SubClassOf> <!-- Axiom ID 121 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver|)) --> <Declaration> <Class IRI="#haulage_truck_driver"/> </Declaration> <!-- Axiom ID 122 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "haulage truck driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#haulage_truck_driver"/> <Literal datatypeIRI="&xsd;string">haulage truck driver</Literal> </AnnotationAssertion> <!-- Axiom ID 123 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#haulage_truck_driver"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 124 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#haulage_truck_driver| (AND (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#haulage_company|)) (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#truck|) |http://cohse.semanticweb.org/ontologies/people#person|))) --> <EquivalentClasses> <Class IRI="#haulage_truck_driver"/> <ObjectIntersectionOf> <ObjectSomeValuesFrom> <ObjectProperty IRI="#works_for"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#haulage_company"/> </ObjectSomeValuesFrom> </ObjectSomeValuesFrom> <ObjectSomeValuesFrom> <ObjectProperty IRI="#drives"/> <Class IRI="#truck"/> </ObjectSomeValuesFrom> <Class IRI="#person"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 125 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#haulage_worker|)) --> <Declaration> <Class IRI="#haulage_worker"/> </Declaration> <!-- Axiom ID 126 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_worker| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "haulage worker" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#haulage_worker"/> <Literal datatypeIRI="&xsd;string">haulage worker</Literal> </AnnotationAssertion> <!-- Axiom ID 127 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#haulage_worker| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#haulage_worker"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 128 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#haulage_worker| (SOME |http://cohse.semanticweb.org/ontologies/people#works_for| (OR |http://cohse.semanticweb.org/ontologies/people#haulage_company| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#haulage_company|))))) --> <EquivalentClasses> <Class IRI="#haulage_worker"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#works_for"/> <ObjectUnionOf> <Class IRI="#haulage_company"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#haulage_company"/> </ObjectSomeValuesFrom> </ObjectUnionOf> </ObjectSomeValuesFrom> </EquivalentClasses> <!-- Axiom ID 129 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#kid|)) --> <Declaration> <Class IRI="#kid"/> </Declaration> <!-- Axiom ID 130 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#kid| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "kid" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#kid"/> <Literal datatypeIRI="&xsd;string">kid</Literal> </AnnotationAssertion> <!-- Axiom ID 131 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#kid| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#kid"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 132 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#kid| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#young|))) --> <EquivalentClasses> <Class IRI="#kid"/> <ObjectIntersectionOf> <Class IRI="#person"/> <Class IRI="#young"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 133 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#leaf|)) --> <Declaration> <Class IRI="#leaf"/> </Declaration> <!-- Axiom ID 134 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "leaf" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#leaf"/> <Literal datatypeIRI="&xsd;string">leaf</Literal> </AnnotationAssertion> <!-- Axiom ID 135 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#leaf"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 136 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#leaf| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#tree|)) --> <SubClassOf> <Class IRI="#leaf"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#tree"/> </ObjectSomeValuesFrom> </SubClassOf> <!-- Axiom ID 137 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry|)) --> <Declaration> <Class IRI="#lorry"/> </Declaration> <!-- Axiom ID 138 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "lorry" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#lorry"/> <Literal datatypeIRI="&xsd;string">lorry</Literal> </AnnotationAssertion> <!-- Axiom ID 139 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#lorry"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 140 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <SubClassOf> <Class IRI="#lorry"/> <Class IRI="#vehicle"/> </SubClassOf> <!-- Axiom ID 141 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#lorry_driver|)) --> <Declaration> <Class IRI="#lorry_driver"/> </Declaration> <!-- Axiom ID 142 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#lorry_driver"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 143 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#lorry_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "lorry driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#lorry_driver"/> <Literal datatypeIRI="&xsd;string">lorry driver</Literal> </AnnotationAssertion> <!-- Axiom ID 144 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#lorry_driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#lorry|)))) --> <EquivalentClasses> <Class IRI="#lorry_driver"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#drives"/> <Class IRI="#lorry"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 145 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#mad_cow|)) --> <Declaration> <Class IRI="#mad_cow"/> </Declaration> <!-- Axiom ID 146 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#mad_cow| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A mad cow is a cow that has been eating the brains of sheep." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#mad_cow"/> <Literal datatypeIRI="&xsd;string">A mad cow is a cow that has been eating the brains of sheep.</Literal> </AnnotationAssertion> <!-- Axiom ID 147 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#mad_cow| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "mad cow" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#mad_cow"/> <Literal datatypeIRI="&xsd;string">mad cow</Literal> </AnnotationAssertion> <!-- Axiom ID 148 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#mad_cow| (AND |http://cohse.semanticweb.org/ontologies/people#cow| (SOME |http://cohse.semanticweb.org/ontologies/people#eats| (AND |http://cohse.semanticweb.org/ontologies/people#brain| (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#sheep|)))))) --> <EquivalentClasses> <Class IRI="#mad_cow"/> <ObjectIntersectionOf> <Class IRI="#cow"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#eats"/> <ObjectIntersectionOf> <Class IRI="#brain"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#sheep"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 149 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#magazine|)) --> <Declaration> <Class IRI="#magazine"/> </Declaration> <!-- Axiom ID 150 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "magazine" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#magazine"/> <Literal datatypeIRI="&xsd;string">magazine</Literal> </AnnotationAssertion> <!-- Axiom ID 151 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#magazine"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 152 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#magazine| |http://cohse.semanticweb.org/ontologies/people#publication|) --> <SubClassOf> <Class IRI="#magazine"/> <Class IRI="#publication"/> </SubClassOf> <!-- Axiom ID 153 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#male|)) --> <Declaration> <Class IRI="#male"/> </Declaration> <!-- Axiom ID 154 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#male| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "male" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#male"/> <Literal datatypeIRI="&xsd;string">male</Literal> </AnnotationAssertion> <!-- Axiom ID 155 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#male| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "The class of all male things." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#male"/> <Literal datatypeIRI="&xsd;string">The class of all male things.</Literal> </AnnotationAssertion> <!-- Axiom ID 156 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#man|)) --> <Declaration> <Class IRI="#man"/> </Declaration> <!-- Axiom ID 157 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#man| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "man" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#man"/> <Literal datatypeIRI="&xsd;string">man</Literal> </AnnotationAssertion> <!-- Axiom ID 158 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#man| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#man"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 159 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#man| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#male| |http://cohse.semanticweb.org/ontologies/people#adult|))) --> <EquivalentClasses> <Class IRI="#man"/> <ObjectIntersectionOf> <Class IRI="#person"/> <Class IRI="#male"/> <Class IRI="#adult"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 160 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#newspaper|)) --> <Declaration> <Class IRI="#newspaper"/> </Declaration> <!-- Axiom ID 161 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "newspaper" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#newspaper"/> <Literal datatypeIRI="&xsd;string">newspaper</Literal> </AnnotationAssertion> <!-- Axiom ID 162 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "All newspapers are either broadsheets or tabloids." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#newspaper"/> <Literal datatypeIRI="&xsd;string">All newspapers are either broadsheets or tabloids.</Literal> </AnnotationAssertion> <!-- Axiom ID 163 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| |http://cohse.semanticweb.org/ontologies/people#publication|) --> <SubClassOf> <Class IRI="#newspaper"/> <Class IRI="#publication"/> </SubClassOf> <!-- Axiom ID 164 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#newspaper| (OR |http://cohse.semanticweb.org/ontologies/people#broadsheet| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <SubClassOf> <Class IRI="#newspaper"/> <ObjectUnionOf> <Class IRI="#broadsheet"/> <Class IRI="#tabloid"/> </ObjectUnionOf> </SubClassOf> <!-- Axiom ID 165 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#old_lady|)) --> <Declaration> <Class IRI="#old_lady"/> </Declaration> <!-- Axiom ID 166 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "old lady" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#old_lady"/> <Literal datatypeIRI="&xsd;string">old lady</Literal> </AnnotationAssertion> <!-- Axiom ID 167 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#old_lady"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 168 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#old_lady| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#female| |http://cohse.semanticweb.org/ontologies/people#elderly|))) --> <EquivalentClasses> <Class IRI="#old_lady"/> <ObjectIntersectionOf> <Class IRI="#person"/> <Class IRI="#female"/> <Class IRI="#elderly"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 169 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#old_lady| (AND (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#animal|) (ALL |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#cat|))) --> <SubClassOf> <Class IRI="#old_lady"/> <ObjectIntersectionOf> <ObjectSomeValuesFrom> <ObjectProperty IRI="#has_pet"/> <Class IRI="#animal"/> </ObjectSomeValuesFrom> <ObjectAllValuesFrom> <ObjectProperty IRI="#has_pet"/> <Class IRI="#cat"/> </ObjectAllValuesFrom> </ObjectIntersectionOf> </SubClassOf> <!-- Axiom ID 170 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#person|)) --> <Declaration> <Class IRI="#person"/> </Declaration> <!-- Axiom ID 171 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#person| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "person" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#person"/> <Literal datatypeIRI="&xsd;string">person</Literal> </AnnotationAssertion> <!-- Axiom ID 172 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#person| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#person"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 173 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <SubClassOf> <Class IRI="#person"/> <Class IRI="#animal"/> </SubClassOf> <!-- Axiom ID 174 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#pet|)) --> <Declaration> <Class IRI="#pet"/> </Declaration> <!-- Axiom ID 175 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "pet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#pet"/> <Literal datatypeIRI="&xsd;string">pet</Literal> </AnnotationAssertion> <!-- Axiom ID 176 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#pet"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 177 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#pet| (SOME |http://cohse.semanticweb.org/ontologies/people#is_pet_of| TOP))) --> <EquivalentClasses> <Class IRI="#pet"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#is_pet_of"/> <Class IRI="&owl;Thing"/> </ObjectSomeValuesFrom> </EquivalentClasses> <!-- Axiom ID 178 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#pet_owner|)) --> <Declaration> <Class IRI="#pet_owner"/> </Declaration> <!-- Axiom ID 179 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet_owner| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "pet owner" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#pet_owner"/> <Literal datatypeIRI="&xsd;string">pet owner</Literal> </AnnotationAssertion> <!-- Axiom ID 180 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#pet_owner| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#pet_owner"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 181 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#pet_owner| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#animal|)))) --> <EquivalentClasses> <Class IRI="#pet_owner"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#has_pet"/> <Class IRI="#animal"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 182 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#plant|)) --> <Declaration> <Class IRI="#plant"/> </Declaration> <!-- Axiom ID 183 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#plant| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "plant" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#plant"/> <Literal datatypeIRI="&xsd;string">plant</Literal> </AnnotationAssertion> <!-- Axiom ID 184 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#plant| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#plant"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 185 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#publication|)) --> <Declaration> <Class IRI="#publication"/> </Declaration> <!-- Axiom ID 186 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#publication| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#publication"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 187 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#publication| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "publication" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#publication"/> <Literal datatypeIRI="&xsd;string">publication</Literal> </AnnotationAssertion> <!-- Axiom ID 188 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet|)) --> <Declaration> <Class IRI="#quality_broadsheet"/> </Declaration> <!-- Axiom ID 189 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "quality broadsheet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#quality_broadsheet"/> <Literal datatypeIRI="&xsd;string">quality broadsheet</Literal> </AnnotationAssertion> <!-- Axiom ID 190 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#quality_broadsheet"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 191 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#quality_broadsheet| |http://cohse.semanticweb.org/ontologies/people#broadsheet|) --> <SubClassOf> <Class IRI="#quality_broadsheet"/> <Class IRI="#broadsheet"/> </SubClassOf> <!-- Axiom ID 192 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#red_top|)) --> <Declaration> <Class IRI="#red_top"/> </Declaration> <!-- Axiom ID 193 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "red top" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#red_top"/> <Literal datatypeIRI="&xsd;string">red top</Literal> </AnnotationAssertion> <!-- Axiom ID 194 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#red_top"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 195 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#red_top| |http://cohse.semanticweb.org/ontologies/people#tabloid|) --> <SubClassOf> <Class IRI="#red_top"/> <Class IRI="#tabloid"/> </SubClassOf> <!-- Axiom ID 196 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#sheep|)) --> <Declaration> <Class IRI="#sheep"/> </Declaration> <!-- Axiom ID 197 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#sheep"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 198 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "sheep" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#sheep"/> <Literal datatypeIRI="&xsd;string">sheep</Literal> </AnnotationAssertion> <!-- Axiom ID 199 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <SubClassOf> <Class IRI="#sheep"/> <Class IRI="#animal"/> </SubClassOf> <!-- Axiom ID 200 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#sheep| (ALL |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#grass|)) --> <SubClassOf> <Class IRI="#sheep"/> <ObjectAllValuesFrom> <ObjectProperty IRI="#eats"/> <Class IRI="#grass"/> </ObjectAllValuesFrom> </SubClassOf> <!-- Axiom ID 201 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <Declaration> <Class IRI="#tabloid"/> </Declaration> <!-- Axiom ID 202 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "tabloid" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#tabloid"/> <Literal datatypeIRI="&xsd;string">tabloid</Literal> </AnnotationAssertion> <!-- Axiom ID 203 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A newspaper. Tabloids are usually thought of as more \"down-market\" than broadsheets." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#tabloid"/> <Literal datatypeIRI="&xsd;string">A newspaper. Tabloids are usually thought of as more "down-market" than broadsheets.</Literal> </AnnotationAssertion> <!-- Axiom ID 204 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#tabloid| |http://cohse.semanticweb.org/ontologies/people#broadsheet|)) --> <DisjointClasses> <Class IRI="#tabloid"/> <Class IRI="#broadsheet"/> </DisjointClasses> <!-- Axiom ID 205 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tabloid| |http://cohse.semanticweb.org/ontologies/people#newspaper|) --> <SubClassOf> <Class IRI="#tabloid"/> <Class IRI="#newspaper"/> </SubClassOf> <!-- Axiom ID 206 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#tiger|)) --> <Declaration> <Class IRI="#tiger"/> </Declaration> <!-- Axiom ID 207 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "tiger" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#tiger"/> <Literal datatypeIRI="&xsd;string">tiger</Literal> </AnnotationAssertion> <!-- Axiom ID 208 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#tiger"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 209 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tiger| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <SubClassOf> <Class IRI="#tiger"/> <Class IRI="#animal"/> </SubClassOf> <!-- Axiom ID 210 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#tree|)) --> <Declaration> <Class IRI="#tree"/> </Declaration> <!-- Axiom ID 211 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "tree" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#tree"/> <Literal datatypeIRI="&xsd;string">tree</Literal> </AnnotationAssertion> <!-- Axiom ID 212 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#tree"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 213 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#tree| |http://cohse.semanticweb.org/ontologies/people#plant|) --> <SubClassOf> <Class IRI="#tree"/> <Class IRI="#plant"/> </SubClassOf> <!-- Axiom ID 214 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#truck|)) --> <Declaration> <Class IRI="#truck"/> </Declaration> <!-- Axiom ID 215 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#truck"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 216 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "truck" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#truck"/> <Literal datatypeIRI="&xsd;string">truck</Literal> </AnnotationAssertion> <!-- Axiom ID 217 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#truck| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <SubClassOf> <Class IRI="#truck"/> <Class IRI="#vehicle"/> </SubClassOf> <!-- Axiom ID 218 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#van|)) --> <Declaration> <Class IRI="#van"/> </Declaration> <!-- Axiom ID 219 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#van"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 220 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "van" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#van"/> <Literal datatypeIRI="&xsd;string">van</Literal> </AnnotationAssertion> <!-- Axiom ID 221 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#van| |http://cohse.semanticweb.org/ontologies/people#vehicle|) --> <SubClassOf> <Class IRI="#van"/> <Class IRI="#vehicle"/> </SubClassOf> <!-- Axiom ID 222 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#van_driver|)) --> <Declaration> <Class IRI="#van_driver"/> </Declaration> <!-- Axiom ID 223 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van_driver| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "van driver" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#van_driver"/> <Literal datatypeIRI="&xsd;string">van driver</Literal> </AnnotationAssertion> <!-- Axiom ID 224 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#van_driver| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#van_driver"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 225 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#van_driver| (AND |http://cohse.semanticweb.org/ontologies/people#person| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#van|)))) --> <EquivalentClasses> <Class IRI="#van_driver"/> <ObjectIntersectionOf> <Class IRI="#person"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#drives"/> <Class IRI="#van"/> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 226 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#vegetarian|)) --> <Declaration> <Class IRI="#vegetarian"/> </Declaration> <!-- Axiom ID 227 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vegetarian| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A vegetarian is defined as an animal that eats no other animals, or parts of animals." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#vegetarian"/> <Literal datatypeIRI="&xsd;string">A vegetarian is defined as an animal that eats no other animals, or parts of animals.</Literal> </AnnotationAssertion> <!-- Axiom ID 228 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vegetarian| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "vegetarian" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#vegetarian"/> <Literal datatypeIRI="&xsd;string">vegetarian</Literal> </AnnotationAssertion> <!-- Axiom ID 229 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#vegetarian| (AND (ALL |http://cohse.semanticweb.org/ontologies/people#eats| (NOT (SOME |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#animal|))) (ALL |http://cohse.semanticweb.org/ontologies/people#eats| (NOT |http://cohse.semanticweb.org/ontologies/people#animal|)) |http://cohse.semanticweb.org/ontologies/people#animal|))) --> <EquivalentClasses> <Class IRI="#vegetarian"/> <ObjectIntersectionOf> <ObjectAllValuesFrom> <ObjectProperty IRI="#eats"/> <ObjectComplementOf> <ObjectSomeValuesFrom> <ObjectProperty IRI="#part_of"/> <Class IRI="#animal"/> </ObjectSomeValuesFrom> </ObjectComplementOf> </ObjectAllValuesFrom> <ObjectAllValuesFrom> <ObjectProperty IRI="#eats"/> <ObjectComplementOf> <Class IRI="#animal"/> </ObjectComplementOf> </ObjectAllValuesFrom> <Class IRI="#animal"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 230 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#vehicle|)) --> <Declaration> <Class IRI="#vehicle"/> </Declaration> <!-- Axiom ID 231 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vehicle| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#vehicle"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 232 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#vehicle| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "vehicle" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#vehicle"/> <Literal datatypeIRI="&xsd;string">vehicle</Literal> </AnnotationAssertion> <!-- Axiom ID 233 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#white_thing|)) --> <Declaration> <Class IRI="#white_thing"/> </Declaration> <!-- Axiom ID 234 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_thing| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#white_thing"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 235 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_thing| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "white thing" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#white_thing"/> <Literal datatypeIRI="&xsd;string">white thing</Literal> </AnnotationAssertion> <!-- Axiom ID 236 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#white_van_man|)) --> <Declaration> <Class IRI="#white_van_man"/> </Declaration> <!-- Axiom ID 237 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_van_man| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A white van man is a man who drives a white van." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#white_van_man"/> <Literal datatypeIRI="&xsd;string">A white van man is a man who drives a white van.</Literal> </AnnotationAssertion> <!-- Axiom ID 238 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#white_van_man| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "white van man" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#white_van_man"/> <Literal datatypeIRI="&xsd;string">white van man</Literal> </AnnotationAssertion> <!-- Axiom ID 239 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#white_van_man| (AND |http://cohse.semanticweb.org/ontologies/people#man| (SOME |http://cohse.semanticweb.org/ontologies/people#drives| (AND |http://cohse.semanticweb.org/ontologies/people#van| |http://cohse.semanticweb.org/ontologies/people#white_thing|))))) --> <EquivalentClasses> <Class IRI="#white_van_man"/> <ObjectIntersectionOf> <Class IRI="#man"/> <ObjectSomeValuesFrom> <ObjectProperty IRI="#drives"/> <ObjectIntersectionOf> <Class IRI="#van"/> <Class IRI="#white_thing"/> </ObjectIntersectionOf> </ObjectSomeValuesFrom> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 240 --> <!-- (|OWLSubClassAxiom| |http://cohse.semanticweb.org/ontologies/people#white_van_man| (ALL |http://cohse.semanticweb.org/ontologies/people#reads| |http://cohse.semanticweb.org/ontologies/people#tabloid|)) --> <SubClassOf> <Class IRI="#white_van_man"/> <ObjectAllValuesFrom> <ObjectProperty IRI="#reads"/> <Class IRI="#tabloid"/> </ObjectAllValuesFrom> </SubClassOf> <!-- Axiom ID 241 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#woman|)) --> <Declaration> <Class IRI="#woman"/> </Declaration> <!-- Axiom ID 242 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#woman| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#woman"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 243 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#woman| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "woman" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#woman"/> <Literal datatypeIRI="&xsd;string">woman</Literal> </AnnotationAssertion> <!-- Axiom ID 244 --> <!-- (|OWLEquivalentClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#woman| (AND |http://cohse.semanticweb.org/ontologies/people#person| |http://cohse.semanticweb.org/ontologies/people#female| |http://cohse.semanticweb.org/ontologies/people#adult|))) --> <EquivalentClasses> <Class IRI="#woman"/> <ObjectIntersectionOf> <Class IRI="#person"/> <Class IRI="#female"/> <Class IRI="#adult"/> </ObjectIntersectionOf> </EquivalentClasses> <!-- Axiom ID 245 --> <!-- (|OWLDeclarationAxiom| (|Class| |http://cohse.semanticweb.org/ontologies/people#young|)) --> <Declaration> <Class IRI="#young"/> </Declaration> <!-- Axiom ID 246 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#young| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#young"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 247 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#young| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "young" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#young"/> <Literal datatypeIRI="&xsd;string">young</Literal> </AnnotationAssertion> <!-- Axiom ID 248 --> <!-- (|OWLDisjointClassesAxiom| (|http://cohse.semanticweb.org/ontologies/people#young| |http://cohse.semanticweb.org/ontologies/people#adult|)) --> <DisjointClasses> <Class IRI="#young"/> <Class IRI="#adult"/> </DisjointClasses> <!-- Axiom ID 249 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#drives|)) --> <Declaration> <ObjectProperty IRI="#drives"/> </Declaration> <!-- Axiom ID 250 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#drives| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "drives" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#drives"/> <Literal datatypeIRI="&xsd;string">drives</Literal> </AnnotationAssertion> <!-- Axiom ID 251 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#drives| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#drives"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 252 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#eaten_by|)) --> <Declaration> <ObjectProperty IRI="#eaten_by"/> </Declaration> <!-- Axiom ID 253 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eaten_by| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#eaten_by"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 254 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eaten_by| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "eaten_by" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#eaten_by"/> <Literal datatypeIRI="&xsd;string">eaten_by</Literal> </AnnotationAssertion> <!-- Axiom ID 255 --> <!-- (|OWLInverseObjectPropertiesAxiom| |http://cohse.semanticweb.org/ontologies/people#eaten_by| |http://cohse.semanticweb.org/ontologies/people#eats|) --> <InverseObjectProperties> <ObjectProperty IRI="#eaten_by"/> <ObjectProperty IRI="#eats"/> </InverseObjectProperties> <!-- Axiom ID 256 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#eats|)) --> <Declaration> <ObjectProperty IRI="#eats"/> </Declaration> <!-- Axiom ID 257 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eats| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "eats" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#eats"/> <Literal datatypeIRI="&xsd;string">eats</Literal> </AnnotationAssertion> <!-- Axiom ID 258 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#eats| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#eats"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 259 --> <!-- (|OWLObjectPropertyDomainAxiom| |http://cohse.semanticweb.org/ontologies/people#eats| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <ObjectPropertyDomain> <ObjectProperty IRI="#eats"/> <Class IRI="#animal"/> </ObjectPropertyDomain> <!-- Axiom ID 260 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_child|)) --> <Declaration> <ObjectProperty IRI="#has_child"/> </Declaration> <!-- Axiom ID 261 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_child| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#has_child"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 262 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_child| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_child" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#has_child"/> <Literal datatypeIRI="&xsd;string">has_child</Literal> </AnnotationAssertion> <!-- Axiom ID 263 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_father|)) --> <Declaration> <ObjectProperty IRI="#has_father"/> </Declaration> <!-- Axiom ID 264 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#has_father"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 265 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_father" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#has_father"/> <Literal datatypeIRI="&xsd;string">has_father</Literal> </AnnotationAssertion> <!-- Axiom ID 266 --> <!-- (|OWLObjectSubPropertyAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://cohse.semanticweb.org/ontologies/people#has_parent|) --> <SubObjectPropertyOf> <ObjectProperty IRI="#has_father"/> <ObjectProperty IRI="#has_parent"/> </SubObjectPropertyOf> <!-- Axiom ID 267 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#has_father| |http://cohse.semanticweb.org/ontologies/people#man|) --> <ObjectPropertyRange> <ObjectProperty IRI="#has_father"/> <Class IRI="#man"/> </ObjectPropertyRange> <!-- Axiom ID 268 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_mother|)) --> <Declaration> <ObjectProperty IRI="#has_mother"/> </Declaration> <!-- Axiom ID 269 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_mother" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#has_mother"/> <Literal datatypeIRI="&xsd;string">has_mother</Literal> </AnnotationAssertion> <!-- Axiom ID 270 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#has_mother"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 271 --> <!-- (|OWLObjectSubPropertyAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://cohse.semanticweb.org/ontologies/people#has_parent|) --> <SubObjectPropertyOf> <ObjectProperty IRI="#has_mother"/> <ObjectProperty IRI="#has_parent"/> </SubObjectPropertyOf> <!-- Axiom ID 272 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#has_mother| |http://cohse.semanticweb.org/ontologies/people#woman|) --> <ObjectPropertyRange> <ObjectProperty IRI="#has_mother"/> <Class IRI="#woman"/> </ObjectPropertyRange> <!-- Axiom ID 273 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_parent|)) --> <Declaration> <ObjectProperty IRI="#has_parent"/> </Declaration> <!-- Axiom ID 274 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_parent| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_parent" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#has_parent"/> <Literal datatypeIRI="&xsd;string">has_parent</Literal> </AnnotationAssertion> <!-- Axiom ID 275 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_parent| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#has_parent"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 276 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_part|)) --> <Declaration> <ObjectProperty IRI="#has_part"/> </Declaration> <!-- Axiom ID 277 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_part| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_part" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#has_part"/> <Literal datatypeIRI="&xsd;string">has_part</Literal> </AnnotationAssertion> <!-- Axiom ID 278 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_part| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#has_part"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 279 --> <!-- (|OWLInverseObjectPropertiesAxiom| |http://cohse.semanticweb.org/ontologies/people#part_of| |http://cohse.semanticweb.org/ontologies/people#has_part|) --> <InverseObjectProperties> <ObjectProperty IRI="#part_of"/> <ObjectProperty IRI="#has_part"/> </InverseObjectProperties> <!-- Axiom ID 280 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#has_pet|)) --> <Declaration> <ObjectProperty IRI="#has_pet"/> </Declaration> <!-- Axiom ID 281 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Anyone that has a pet must like that pet." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#has_pet"/> <Literal datatypeIRI="&xsd;string">Anyone that has a pet must like that pet.</Literal> </AnnotationAssertion> <!-- Axiom ID 282 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "has_pet" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#has_pet"/> <Literal datatypeIRI="&xsd;string">has_pet</Literal> </AnnotationAssertion> <!-- Axiom ID 283 --> <!-- (|OWLObjectSubPropertyAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#likes|) --> <SubObjectPropertyOf> <ObjectProperty IRI="#has_pet"/> <ObjectProperty IRI="#likes"/> </SubObjectPropertyOf> <!-- Axiom ID 284 --> <!-- (|OWLObjectPropertyDomainAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#person|) --> <ObjectPropertyDomain> <ObjectProperty IRI="#has_pet"/> <Class IRI="#person"/> </ObjectPropertyDomain> <!-- Axiom ID 285 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#animal|) --> <ObjectPropertyRange> <ObjectProperty IRI="#has_pet"/> <Class IRI="#animal"/> </ObjectPropertyRange> <!-- Axiom ID 286 --> <!-- (|OWLInverseObjectPropertiesAxiom| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://cohse.semanticweb.org/ontologies/people#has_pet|) --> <InverseObjectProperties> <ObjectProperty IRI="#is_pet_of"/> <ObjectProperty IRI="#has_pet"/> </InverseObjectProperties> <!-- Axiom ID 287 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#is_pet_of|)) --> <Declaration> <ObjectProperty IRI="#is_pet_of"/> </Declaration> <!-- Axiom ID 288 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "is_pet_of" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#is_pet_of"/> <Literal datatypeIRI="&xsd;string">is_pet_of</Literal> </AnnotationAssertion> <!-- Axiom ID 289 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#is_pet_of"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 290 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#likes|)) --> <Declaration> <ObjectProperty IRI="#likes"/> </Declaration> <!-- Axiom ID 291 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#likes| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#likes"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 292 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#likes| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "likes" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#likes"/> <Literal datatypeIRI="&xsd;string">likes</Literal> </AnnotationAssertion> <!-- Axiom ID 293 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#part_of|)) --> <Declaration> <ObjectProperty IRI="#part_of"/> </Declaration> <!-- Axiom ID 294 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#part_of| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "part_of" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#part_of"/> <Literal datatypeIRI="&xsd;string">part_of</Literal> </AnnotationAssertion> <!-- Axiom ID 295 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#part_of| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#part_of"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 296 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#reads|)) --> <Declaration> <ObjectProperty IRI="#reads"/> </Declaration> <!-- Axiom ID 297 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#reads| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "reads" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#reads"/> <Literal datatypeIRI="&xsd;string">reads</Literal> </AnnotationAssertion> <!-- Axiom ID 298 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#reads| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#reads"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 299 --> <!-- (|OWLObjectPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#reads| |http://cohse.semanticweb.org/ontologies/people#publication|) --> <ObjectPropertyRange> <ObjectProperty IRI="#reads"/> <Class IRI="#publication"/> </ObjectPropertyRange> <!-- Axiom ID 300 --> <!-- (|OWLDeclarationAxiom| (|ObjectProperty| |http://cohse.semanticweb.org/ontologies/people#works_for|)) --> <Declaration> <ObjectProperty IRI="#works_for"/> </Declaration> <!-- Axiom ID 301 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#works_for| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#works_for"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 302 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#works_for| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "works_for" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#works_for"/> <Literal datatypeIRI="&xsd;string">works_for</Literal> </AnnotationAssertion> <!-- Axiom ID 303 --> <!-- (|OWLDeclarationAxiom| (|DataProperty| |http://cohse.semanticweb.org/ontologies/people#service_number|)) --> <Declaration> <DataProperty IRI="#service_number"/> </Declaration> <!-- Axiom ID 304 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#service_number| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "service_number" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#service_number"/> <Literal datatypeIRI="&xsd;string">service_number</Literal> </AnnotationAssertion> <!-- Axiom ID 305 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#service_number| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#service_number"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 306 --> <!-- (|OWLDataPropertyRangeAxiom| |http://cohse.semanticweb.org/ontologies/people#service_number| (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|)) --> <DataPropertyRange> <DataProperty IRI="#service_number"/> <Datatype IRI="&xsd;integer"/> </DataPropertyRange> <!-- Axiom ID 307 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Daily Mirror" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Daily_Mirror"/> <Literal datatypeIRI="&xsd;string">Daily Mirror</Literal> </AnnotationAssertion> <!-- Axiom ID 308 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "The paper read by Mick (a white van man)." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Daily_Mirror"/> <Literal datatypeIRI="&xsd;string">The paper read by Mick (a white van man).</Literal> </AnnotationAssertion> <!-- Axiom ID 309 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror| TOP) --> <ClassAssertion> <Class IRI="&owl;Thing"/> <NamedIndividual IRI="#Daily_Mirror"/> </ClassAssertion> <!-- Axiom ID 310 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Dewey| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Dewey" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Dewey"/> <Literal datatypeIRI="&xsd;string">Dewey</Literal> </AnnotationAssertion> <!-- Axiom ID 311 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Dewey| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Dewey"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 312 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Dewey| |http://cohse.semanticweb.org/ontologies/people#duck|) --> <ClassAssertion> <Class IRI="#duck"/> <NamedIndividual IRI="#Dewey"/> </ClassAssertion> <!-- Axiom ID 313 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Fido"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 314 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Fido" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Fido"/> <Literal datatypeIRI="&xsd;string">Fido</Literal> </AnnotationAssertion> <!-- Axiom ID 315 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fido| |http://cohse.semanticweb.org/ontologies/people#dog|) --> <ClassAssertion> <Class IRI="#dog"/> <NamedIndividual IRI="#Fido"/> </ClassAssertion> <!-- Axiom ID 316 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Flossie| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Flossie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Flossie"/> <Literal datatypeIRI="&xsd;string">Flossie</Literal> </AnnotationAssertion> <!-- Axiom ID 317 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Flossie| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Flossie"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 318 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Flossie| |http://cohse.semanticweb.org/ontologies/people#cow|) --> <ClassAssertion> <Class IRI="#cow"/> <NamedIndividual IRI="#Flossie"/> </ClassAssertion> <!-- Axiom ID 319 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fluffy| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Fluffy" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Fluffy"/> <Literal datatypeIRI="&xsd;string">Fluffy</Literal> </AnnotationAssertion> <!-- Axiom ID 320 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fluffy| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Fluffy"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 321 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fluffy| |http://cohse.semanticweb.org/ontologies/people#tiger|) --> <ClassAssertion> <Class IRI="#tiger"/> <NamedIndividual IRI="#Fluffy"/> </ClassAssertion> <!-- Axiom ID 322 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Fred"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 323 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Fred" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Fred"/> <Literal datatypeIRI="&xsd;string">Fred</Literal> </AnnotationAssertion> <!-- Axiom ID 324 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://cohse.semanticweb.org/ontologies/people#person|) --> <ClassAssertion> <Class IRI="#person"/> <NamedIndividual IRI="#Fred"/> </ClassAssertion> <!-- Axiom ID 325 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Fred| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Tibbs|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#has_pet"/> <NamedIndividual IRI="#Fred"/> <NamedIndividual IRI="#Tibbs"/> </ObjectPropertyAssertion> <!-- Axiom ID 326 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Huey"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 327 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Huey" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Huey"/> <Literal datatypeIRI="&xsd;string">Huey</Literal> </AnnotationAssertion> <!-- Axiom ID 328 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Huey| |http://cohse.semanticweb.org/ontologies/people#duck|) --> <ClassAssertion> <Class IRI="#duck"/> <NamedIndividual IRI="#Huey"/> </ClassAssertion> <!-- Axiom ID 329 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Joe" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Joe"/> <Literal datatypeIRI="&xsd;string">Joe</Literal> </AnnotationAssertion> <!-- Axiom ID 330 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Joe"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 331 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://cohse.semanticweb.org/ontologies/people#person|) --> <ClassAssertion> <Class IRI="#person"/> <NamedIndividual IRI="#Joe"/> </ClassAssertion> <!-- Axiom ID 332 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| (AT-MOST 1 |http://cohse.semanticweb.org/ontologies/people#has_pet|)) --> <ClassAssertion> <ObjectMaxCardinality cardinality="1"> <ObjectProperty IRI="#has_pet"/> </ObjectMaxCardinality> <NamedIndividual IRI="#Joe"/> </ClassAssertion> <!-- Axiom ID 333 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Joe| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Fido|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#has_pet"/> <NamedIndividual IRI="#Joe"/> <NamedIndividual IRI="#Fido"/> </ObjectPropertyAssertion> <!-- Axiom ID 334 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Kevin| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Kevin"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 335 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Kevin| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Kevin" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Kevin"/> <Literal datatypeIRI="&xsd;string">Kevin</Literal> </AnnotationAssertion> <!-- Axiom ID 336 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Kevin| |http://cohse.semanticweb.org/ontologies/people#person|) --> <ClassAssertion> <Class IRI="#person"/> <NamedIndividual IRI="#Kevin"/> </ClassAssertion> <!-- Axiom ID 337 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Louie| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Louie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Louie"/> <Literal datatypeIRI="&xsd;string">Louie</Literal> </AnnotationAssertion> <!-- Axiom ID 338 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Louie| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Louie"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 339 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Louie| |http://cohse.semanticweb.org/ontologies/people#duck|) --> <ClassAssertion> <Class IRI="#duck"/> <NamedIndividual IRI="#Louie"/> </ClassAssertion> <!-- Axiom ID 340 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror." (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Mick"/> <Literal datatypeIRI="&xsd;string">Mick is male and drives a white van. Due to the axiom concerning drivers, we know that Mick must be a man, and is therefore a white van man. The axiom about the reading material of a white van man then allows us to infer things about the Daily Mirror.</Literal> </AnnotationAssertion> <!-- Axiom ID 341 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Mick" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Mick"/> <Literal datatypeIRI="&xsd;string">Mick</Literal> </AnnotationAssertion> <!-- Axiom ID 342 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://cohse.semanticweb.org/ontologies/people#male|) --> <ClassAssertion> <Class IRI="#male"/> <NamedIndividual IRI="#Mick"/> </ClassAssertion> <!-- Axiom ID 343 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://cohse.semanticweb.org/ontologies/people#drives| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#drives"/> <NamedIndividual IRI="#Mick"/> <NamedIndividual IRI="#Q123_ABC"/> </ObjectPropertyAssertion> <!-- Axiom ID 344 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Mick| |http://cohse.semanticweb.org/ontologies/people#reads| |http://cohse.semanticweb.org/ontologies/people#Daily_Mirror|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#reads"/> <NamedIndividual IRI="#Mick"/> <NamedIndividual IRI="#Daily_Mirror"/> </ObjectPropertyAssertion> <!-- Axiom ID 345 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Minnie"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 346 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Minnie" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Minnie"/> <Literal datatypeIRI="&xsd;string">Minnie</Literal> </AnnotationAssertion> <!-- Axiom ID 347 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://cohse.semanticweb.org/ontologies/people#elderly|) --> <ClassAssertion> <Class IRI="#elderly"/> <NamedIndividual IRI="#Minnie"/> </ClassAssertion> <!-- Axiom ID 348 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://cohse.semanticweb.org/ontologies/people#female|) --> <ClassAssertion> <Class IRI="#female"/> <NamedIndividual IRI="#Minnie"/> </ClassAssertion> <!-- Axiom ID 349 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Minnie| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Tom|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#has_pet"/> <NamedIndividual IRI="#Minnie"/> <NamedIndividual IRI="#Tom"/> </ObjectPropertyAssertion> <!-- Axiom ID 350 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "A white van" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Q123_ABC"/> <Literal datatypeIRI="&xsd;string">A white van</Literal> </AnnotationAssertion> <!-- Axiom ID 351 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Q123 ABC" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Q123_ABC"/> <Literal datatypeIRI="&xsd;string">Q123 ABC</Literal> </AnnotationAssertion> <!-- Axiom ID 352 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://cohse.semanticweb.org/ontologies/people#van|) --> <ClassAssertion> <Class IRI="#van"/> <NamedIndividual IRI="#Q123_ABC"/> </ClassAssertion> <!-- Axiom ID 353 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Q123_ABC| |http://cohse.semanticweb.org/ontologies/people#white_thing|) --> <ClassAssertion> <Class IRI="#white_thing"/> <NamedIndividual IRI="#Q123_ABC"/> </ClassAssertion> <!-- Axiom ID 354 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Rex"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 355 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Rex" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Rex"/> <Literal datatypeIRI="&xsd;string">Rex</Literal> </AnnotationAssertion> <!-- Axiom ID 356 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://cohse.semanticweb.org/ontologies/people#dog|) --> <ClassAssertion> <Class IRI="#dog"/> <NamedIndividual IRI="#Rex"/> </ClassAssertion> <!-- Axiom ID 357 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Rex| |http://cohse.semanticweb.org/ontologies/people#is_pet_of| |http://cohse.semanticweb.org/ontologies/people#Mick|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#is_pet_of"/> <NamedIndividual IRI="#Rex"/> <NamedIndividual IRI="#Mick"/> </ObjectPropertyAssertion> <!-- Axiom ID 358 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The42" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#The42"/> <Literal datatypeIRI="&xsd;string">The42</Literal> </AnnotationAssertion> <!-- Axiom ID 359 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#The42"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 360 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://cohse.semanticweb.org/ontologies/people#bus|) --> <ClassAssertion> <Class IRI="#bus"/> <NamedIndividual IRI="#The42"/> </ClassAssertion> <!-- Axiom ID 361 --> <!-- (|OWLDataPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The42| |http://cohse.semanticweb.org/ontologies/people#service_number| (D-LITERAL "42" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#integer|))) --> <DataPropertyAssertion> <DataProperty IRI="#service_number"/> <NamedIndividual IRI="#The42"/> <Literal datatypeIRI="&xsd;integer">42</Literal> </DataPropertyAssertion> <!-- Axiom ID 362 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Guardian| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#The_Guardian"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 363 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Guardian| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The Guardian" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#The_Guardian"/> <Literal datatypeIRI="&xsd;string">The Guardian</Literal> </AnnotationAssertion> <!-- Axiom ID 364 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Guardian| |http://cohse.semanticweb.org/ontologies/people#broadsheet|) --> <ClassAssertion> <Class IRI="#broadsheet"/> <NamedIndividual IRI="#The_Guardian"/> </ClassAssertion> <!-- Axiom ID 365 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Sun| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#The_Sun"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 366 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Sun| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The Sun" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#The_Sun"/> <Literal datatypeIRI="&xsd;string">The Sun</Literal> </AnnotationAssertion> <!-- Axiom ID 367 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Sun| |http://cohse.semanticweb.org/ontologies/people#tabloid|) --> <ClassAssertion> <Class IRI="#tabloid"/> <NamedIndividual IRI="#The_Sun"/> </ClassAssertion> <!-- Axiom ID 368 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Times| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#The_Times"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 369 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Times| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "The Times" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#The_Times"/> <Literal datatypeIRI="&xsd;string">The Times</Literal> </AnnotationAssertion> <!-- Axiom ID 370 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#The_Times| |http://cohse.semanticweb.org/ontologies/people#broadsheet|) --> <ClassAssertion> <Class IRI="#broadsheet"/> <NamedIndividual IRI="#The_Times"/> </ClassAssertion> <!-- Axiom ID 371 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tibbs| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Tibbs" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Tibbs"/> <Literal datatypeIRI="&xsd;string">Tibbs</Literal> </AnnotationAssertion> <!-- Axiom ID 372 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tibbs| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Tibbs"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 373 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tibbs| |http://cohse.semanticweb.org/ontologies/people#cat|) --> <ClassAssertion> <Class IRI="#cat"/> <NamedIndividual IRI="#Tibbs"/> </ClassAssertion> <!-- Axiom ID 374 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Tom"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 375 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Tom" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Tom"/> <Literal datatypeIRI="&xsd;string">Tom</Literal> </AnnotationAssertion> <!-- Axiom ID 376 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Tom| TOP) --> <ClassAssertion> <Class IRI="&owl;Thing"/> <NamedIndividual IRI="#Tom"/> </ClassAssertion> <!-- Axiom ID 377 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://www.w3.org/2000/01/rdf-schema#comment| (D-LITERAL "" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;comment"/> <NamedIndividual IRI="#Walt"/> <Literal datatypeIRI="&xsd;string"></Literal> </AnnotationAssertion> <!-- Axiom ID 378 --> <!-- (|OWLAnnotationAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://www.w3.org/2000/01/rdf-schema#label| (D-LITERAL "Walt" (D-BASE-TYPE |http://www.w3.org/2001/XMLSchema#string|))) --> <AnnotationAssertion> <AnnotationProperty IRI="&rdfs;label"/> <NamedIndividual IRI="#Walt"/> <Literal datatypeIRI="&xsd;string">Walt</Literal> </AnnotationAssertion> <!-- Axiom ID 379 --> <!-- (|OWLClassAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#person|) --> <ClassAssertion> <Class IRI="#person"/> <NamedIndividual IRI="#Walt"/> </ClassAssertion> <!-- Axiom ID 380 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Dewey|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#has_pet"/> <NamedIndividual IRI="#Walt"/> <NamedIndividual IRI="#Dewey"/> </ObjectPropertyAssertion> <!-- Axiom ID 381 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Huey|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#has_pet"/> <NamedIndividual IRI="#Walt"/> <NamedIndividual IRI="#Huey"/> </ObjectPropertyAssertion> <!-- Axiom ID 382 --> <!-- (|OWLObjectPropertyAssertionAxiom| |http://cohse.semanticweb.org/ontologies/people#Walt| |http://cohse.semanticweb.org/ontologies/people#has_pet| |http://cohse.semanticweb.org/ontologies/people#Louie|) --> <ObjectPropertyAssertion> <ObjectProperty IRI="#has_pet"/> <NamedIndividual IRI="#Walt"/> <NamedIndividual IRI="#Louie"/> </ObjectPropertyAssertion> </Ontology> <!-- Ontology "http://cohse.semanticweb.org/ontologies/people" rendered by OntoLisp Version 0.9 Build 2010-07-04, July 03 2010, 19:54 -->
145,465
Common Lisp
.l
4,279
29.858612
300
0.691866
lambdamikel/OntoLisp
20
3
0
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
ce309c4843070c13081fe27d4eee693932d329e09301d01c43a99839848dea0b
6,416
[ -1 ]
6,461
load.lisp
LdBeth_CLFSWM/load.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: System loading functions ;;; -------------------------------------------------------------------------- ;;; ;;; (C) 2005-2015 Philippe Brochard <[email protected]> ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;;; ;;; -------------------------------------------------------------------------- ;;; ;;; Edit this file (or its copy) and load it with your lisp implementation. ;;; If you want, it can download ASDF and CLX for you. You'll need wget and ;;; git program. ;;; ;;; Here are command line reference: ;;; ;;; clisp -E iso-8859-1 load.lisp ;;; sbcl --load load.lisp ;;; cmucl -load load.lisp ;;; ccl -l load.lisp ;;; ecl -load load.lisp ;;; ;;; -------------------------------------------------------------------------- ;;;------------------ ;;; Customization part ;;;------------------ (defparameter *interactive* t) (defparameter *build-original-doc* t "Set to t to use original configuration or to nil to use your own configuration from $XDG_CONFIG_HOME/clfswm/clfswmrc") ;;; Comment or uncomment the lines above to fit your needs. (pushnew :clfswm-compile *features*) ;;(pushnew :clfswm-run *features*) (pushnew :clfswm-build-image *features*) ;;(pushnew :clfswm-build-doc *features*) (defparameter *binary-name* "clfswm") ;;;;; Uncomment the line below if you want to see all ignored X errors ;;(pushnew :xlib-debug *features*) ;;;;; Uncomment the line below if you want to see all event debug messages ;;(pushnew :event-debug *features*) #+:CMU (setf ext:*gc-verbose* nil) #+:SBCL (require :sb-posix) ;; (load (compile-file "src/tools.lisp")) (defun load-info (formatter &rest args) (format t "~& ==> ~A~%" (apply #'format nil formatter args)) (force-output)) (defun interactive-ask (formatter &rest args) (when *interactive* (y-or-n-p (apply #'format nil formatter args)))) ;;;------------------ ;;; XLib part 1 ;;;------------------ #+(or :CMU :ECL) (require :clx) ;;;------------------ ;;; ASDF part ;;;------------------ ;;;; Loading ASDF (load-info "Requiring ASDF") #+(or :SBCL :CMUCL :CCL :ECL) (require :asdf) #-ASDF (when (probe-file "asdf.lisp") (load "asdf.lisp")) #-:ASDF (let ((asdf-url "http://common-lisp.net/project/asdf/asdf.lisp")) (when (interactive-ask "ASDF not found. Do you want to download it from ~A ?" asdf-url) (tools:do-shell-output "wget ~A" asdf-url) (load "asdf.lisp"))) (format t "ASDF version: ~A~%" (asdf:asdf-version)) ;;;------------------ ;;; XLib part 2 ;;;------------------ (load-info "Requiring CLX") ;;; Loading clisp dynamic module. This part needs clisp >= 2.50 ;;#+(AND CLISP (not CLX)) ;;(when (fboundp 'require) ;; (require "clx.lisp")) #-CLX (progn (when (probe-file "clx/clx.asd") (load "clx/clx.asd") (asdf:oos 'asdf:load-op :clx))) #-CLX (progn (let ((clx-url "git://github.com/sharplispers/clx.git")) (when (interactive-ask "CLX not found. Do you want to download it from ~A ?" clx-url) (unless (probe-file "clx/clx.asd") (tools:do-shell-output "git clone ~A" clx-url)) (load "clx/clx.asd") (asdf:oos 'asdf:load-op :clx)))) ;;;------------------ ;;; CLFSWM loading ;;;------------------ #+:clfswm-compile (progn (load-info "Compiling CLFSWM") (load "clfswm.asd") (asdf:oos 'asdf:load-op :clfswm)) ;;;------------------------- ;;; Starting clfswm ;;;------------------------- #+(or :clfswm-run :clfswm-build-doc :clfswm-build-image) (in-package :clfswm) #+(or :clfswm-run :clfswm-build-doc) (progn (cl-user::load-info "Running CLFSWM") (ignore-errors (main :read-conf-file-p (not cl-user::*build-original-doc*)))) ;;;------------------------- ;;; Building documentation ;;;------------------------- #+:clfswm-build-doc (progn (cl-user::load-info "Building documentation") (produce-all-docs)) ;;;----------------------- ;;; Building image part ;;;----------------------- ;;; Uncomment the line below to set the contrib directory in the image ;; (setf *contrib-dir* "/usr/local/lib/clfswm/") #+:clfswm-build-image (progn (cl-user::load-info "Building CLFSWM executable image") (build-lisp-image "clfswm"))
4,990
Common Lisp
.lisp
141
33.531915
89
0.591777
LdBeth/CLFSWM
29
4
1
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
e2c24c93b3b59f6bb21ce8be631d3a6374e3d2fa5de74cc041395c5510a1cbda
6,461
[ -1 ]
6,462
netwm-util.lisp
LdBeth_CLFSWM/src/netwm-util.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: NetWM functions ;;; http://freedesktop.org/wiki/Specifications_2fwm_2dspec ;;; -------------------------------------------------------------------------- ;;; ;;; (C) 2005-2015 Philippe Brochard <[email protected]> ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;;; ;;; -------------------------------------------------------------------------- (in-package :clfswm) ;;; Client List functions (defun netwm-set-client-list (id-list) (xlib:change-property *root* :_NET_CLIENT_LIST id-list :window 32)) (defun netwm-get-client-list () (xlib:get-property *root* :_NET_CLIENT_LIST)) (defun netwm-add-in-client-list (window) (let ((last-list (netwm-get-client-list))) (pushnew (xlib:window-id window) last-list) (netwm-set-client-list last-list))) (defun netwm-remove-in-client-list (window) (netwm-set-client-list (remove (xlib:window-id window) (netwm-get-client-list)))) ;;; Desktop functions ;; +PHIL (defun netwm-update-desktop-property () ;; (xlib:change-property *root* :_NET_NUMBER_OF_DESKTOPS ;; (list (length *workspace-list*)) :cardinal 32) ;; (xlib:change-property *root* :_NET_DESKTOP_GEOMETRY ;; (list (screen-width) ;; (screen-height)) ;; :cardinal 32) ;; (xlib:change-property *root* :_NET_DESKTOP_VIEWPORT ;; (list 0 0) :cardinal 32) ;; (xlib:change-property *root* :_NET_CURRENT_DESKTOP ;; (list 1) :cardinal 32) ;;; TODO ;;(xlib:change-property *root* :_NET_DESKTOP_NAMES ;; (list "toto" "klm" "poi") :string 8 :transform #'xlib:char->card8)) ) ;;; Taken from stumpwm (thanks) (defun netwm-set-properties () "Set NETWM properties on the root window of the specified screen. FOCUS-WINDOW is an extra window used for _NET_SUPPORTING_WM_CHECK." ;; _NET_SUPPORTED (xlib:change-property *root* :_NET_SUPPORTED (mapcar (lambda (a) (xlib:intern-atom *display* a)) (append +netwm-supported+ (mapcar 'car +netwm-window-types+))) :atom 32) ;; _NET_SUPPORTING_WM_CHECK (xlib:change-property *root* :_NET_SUPPORTING_WM_CHECK (list *no-focus-window*) :window 32 :transform #'xlib:drawable-id) (xlib:change-property *no-focus-window* :_NET_SUPPORTING_WM_CHECK (list *no-focus-window*) :window 32 :transform #'xlib:drawable-id) (xlib:change-property *no-focus-window* :_NET_WM_NAME *wm-name* :string 8 :transform #'xlib:char->card8) (netwm-update-desktop-property))
3,317
Common Lisp
.lisp
75
41.76
83
0.63673
LdBeth/CLFSWM
29
4
1
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
faef5d28def92dbc1d4bf424e00c513eae406a6f3b14fb82faf1b6e750ff7e6f
6,462
[ -1 ]
6,463
package.lisp
LdBeth_CLFSWM/src/package.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: Package definition ;;; -------------------------------------------------------------------------- ;;; ;;; (C) 2005-2015 Philippe Brochard <[email protected]> ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;;; ;;; -------------------------------------------------------------------------- (in-package :cl-user) (defpackage clfswm (:use :common-lisp :my-html :tools :version) ;; (:shadow :defun) (:export :main :reload-clfswm :reset-clfswm :exit-clfswm)) ;;;;; Uncomment the line below if you want to see all ignored X errors ;;(pushnew :xlib-debug *features*) ;;;;; Uncomment the line below if you want to see all event debug messages ;;(pushnew :event-debug *features*) (in-package :clfswm) ;;; CONFIG - Compress motion notify ? ;; This variable may be useful to speed up some slow version of CLX. ;; It is particulary useful with CLISP/MIT-CLX (and others). (defconfig *have-to-compress-notify* t nil "Compress event notify? This variable may be useful to speed up some slow version of CLX. It is particulary useful with CLISP/MIT-CLX.") (defconfig *transparent-background* t nil "Enable transparent background: one of nil, :pseudo, t (xcompmgr must be started)") (defconfig *default-transparency* 0.8 nil "Default transparency for all windows when in xcompmgr transparency mode") (defconfig *show-root-frame-p* nil nil "Show the root frame information or not") (defconfig *border-size* 1 nil "Windows and frames border size") (defparameter *modifier-alias* '((:prefix :mod-4) (:alt :mod-1) (:alt-l :mod-1) (:numlock :mod-2) (:super_l :mod-4) (:alt-r :mod-5) (:alt-gr :mod-5) (:capslock :lock)) "Syntax: (modifier-alias effective-modifier)") (defparameter *display* nil) (defparameter *screen* nil) (defparameter *root* nil) (defparameter *no-focus-window* nil) (defparameter *sm-window* nil) (defparameter *sm-font* nil) (defparameter *sm-gc* nil) (defparameter *background-image* nil) (defparameter *background-gc* nil) (defparameter *expose-child-list* nil) (defconfig *loop-timeout* 1 nil "Maximum time (in seconds) to wait before calling *loop-hook*") (defparameter *pixmap-buffer* nil) (defparameter *contrib-dir* "contrib/") (defparameter *default-font* nil) ;;(defparameter *default-font-string* "9x15") (defconfig *default-font-string* "genera-cptfontc" nil "The default font used in clfswm") (defconfig *color-move-window* "DeepPink" 'Main-mode "Color when moving or resizing a windows") (defparameter *child-selection* nil) ;;; CONFIG - Default frame datas (defconfig *default-frame-data* (list '(:tile-size 0.8) '(:tile-space-size 0.1) '(:fast-layout (tile-left-layout tile-layout)) '(:main-layout-windows nil)) nil "Default slots set in frame date") ;;; CONFIG - Default managed window type for a frame ;;; type can be :all, :normal, :transient, :maxsize, :desktop, :dock, :toolbar, :menu, :utility, :splash, :dialog (defconfig *default-managed-type* '(:normal) nil "Default managed window types") ;;(defparameter *default-managed-type* '(:normal :maxsize :transient)) ;;(defparameter *default-managed-type* '(:normal :transient :maxsize :desktop :dock :toolbar :menu :utility :splash :dialog)) ;;(defparameter *default-managed-type* '()) ;;(defparameter *default-managed-type* '(:all)) ;;; CONFIG - Default focus policy (defconfig *default-focus-policy* :click nil "Default mouse focus policy. One of :click, :sloppy, :sloppy-strict, :sloppy-select or :sloppy-select-window.") (defconfig *show-hide-policy* #'<= nil "'NIL': always display all children (better with transparency support). '<': Hide only children less than children above. '<=': Hide children less or equal to children above (better for performance on slow machine).") (defconfig *show-hide-policy-type* '(:normal) nil "Windows types which are optimized by the show hide policy") (defstruct child-rect child parent selected-p x y w h) (defstruct root child original current-child x y w h) (defclass frame () ((name :initarg :name :accessor frame-name :initform nil) (number :initarg :number :accessor frame-number :initform 0) ;;; Float size between 0 and 1 - Manipulate only those variables and not real size (x :initarg :x :accessor frame-x :initform 0.1) (y :initarg :y :accessor frame-y :initform 0.1) (w :initarg :w :accessor frame-w :initform 0.8) (h :initarg :h :accessor frame-h :initform 0.8) ;;; Real size (integer) in screen size - Don't set directly those variables ;;; they may be recalculated by the layout manager. (rx :initarg :rx :accessor frame-rx :initform 0) (ry :initarg :ry :accessor frame-ry :initform 0) (rw :initarg :rw :accessor frame-rw :initform 800) (rh :initarg :rh :accessor frame-rh :initform 600) ;; (root :initarg :root :accessor frame-root :initform nil ;; :documentation "A list a physical coordinates (x y w h) if frame is a root frame. Nil otherwise") (layout :initarg :layout :accessor frame-layout :initform nil :documentation "Layout to display windows on a frame") (nw-hook :initarg :nw-hook :accessor frame-nw-hook :initform nil :documentation "Hook done by the frame when a new window is mapped") (managed-type :initarg :managed-type :accessor frame-managed-type :initform *default-managed-type* :documentation "Managed window type") (forced-managed-window :initarg :forced-managed-window :accessor frame-forced-managed-window :initform nil :documentation "A list of forced managed windows (xlib:wm-name or window)") (forced-unmanaged-window :initarg :forced-unmanaged-window :accessor frame-forced-unmanaged-window :initform nil :documentation "A list of forced unmanaged windows (xlib:wm-name or window)") (show-window-p :initarg :show-window-p :accessor frame-show-window-p :initform t) (hidden-children :initarg :hidden-children :accessor frame-hidden-children :initform nil :documentation "A list of hidden children") (selected-pos :initarg :selected-pos :accessor frame-selected-pos :initform 0 :documentation "The position in the child list of the selected child") (focus-policy :initarg :focus-policy :accessor frame-focus-policy :initform *default-focus-policy*) (window :initarg :window :accessor frame-window :initform nil) (gc :initarg :gc :accessor frame-gc :initform nil) (child :initarg :child :accessor frame-child :initform nil) (data :initarg :data :accessor frame-data :initform *default-frame-data* :documentation "An assoc list to store additional data"))) (defparameter *root-frame* nil "Root of the root - ie the root frame") (defparameter *main-keys* nil) (defparameter *main-mouse* nil) (defparameter *second-keys* nil) (defparameter *second-mouse* nil) (defparameter *info-keys* nil) (defparameter *info-mouse* nil) (defparameter *query-keys* nil) (defparameter *circulate-keys* nil) (defparameter *circulate-keys-release* nil) (defparameter *expose-keys* nil) (defparameter *expose-mouse* nil) (defparameter *other-window-manager* nil) (defstruct menu name item doc) (defstruct menu-item key value) (defparameter *menu* (make-menu :name 'main :doc "Main menu")) (defconfig *binding-hook* nil 'Hook "Hook executed when keys/buttons are bounds") (defconfig *loop-hook* nil 'Hook "Hook executed on each event loop") (defconfig *main-entrance-hook* nil 'Hook "Hook executed on the main function entrance after loading configuration file and before opening the display.") (defconfig *root-size-change-hook* nil 'Hook "Hook executed when the root size has changed for example when adding/removing a monitor") (defparameter *in-second-mode* nil) ;;; Placement variables. A list of two absolute coordinates ;;; or a function: 'Y-X-placement' for absolute placement or ;;; 'Y-X-child-placement' for child relative placement or ;;; 'Y-X-root-placement' for root relative placement. ;;; Where Y-X are one of: ;;; ;;; top-left top-middle top-right ;;; middle-left middle-middle middle-right ;;; bottom-left bottom-middle bottom-right ;;; (defconfig *banish-pointer-placement* 'bottom-right-root-placement 'Placement "Pointer banishment placement") (defconfig *second-mode-placement* 'top-middle-root-placement 'Placement "Second mode window placement") (defconfig *info-mode-placement* 'top-left-root-placement 'Placement "Info mode window placement") (defconfig *query-mode-placement* 'top-left-root-placement 'Placement "Query mode window placement") (defconfig *circulate-mode-placement* 'bottom-middle-root-placement 'Placement "Circulate mode window placement") (defconfig *expose-mode-placement* 'top-left-child-placement 'Placement "Expose mode window placement (Selection keys position)") (defconfig *expose-query-placement* 'bottom-left-root-placement 'Placement "Expose mode query window placement") (defconfig *fastswitch-mode-placement* 'top-left-root-placement 'Placement "Fastswitch mode window placement") (defconfig *notify-window-placement* 'bottom-right-root-placement 'Placement "Notify window placement") (defconfig *ask-close/kill-placement* 'top-right-root-placement 'Placement "Ask close/kill window placement") (defconfig *unmanaged-window-placement* 'middle-middle-root-placement 'Placement "Unmanager window placement") (defparameter *in-process-existing-windows* nil) ;; For debug - redefine defun #+(or) (progn (shadow :defun) (defmacro defun (name args &body body) `(progn (format t "defun: ~A ~A~%" ',name ',args) (force-output) (cl:defun ,name ,args (handler-case (progn ,@body) (error (c) (format t "New defun: Error in ~A : ~A~%" ',name c) (format t "Root tree=~A~%All windows=~A~%" (xlib:query-tree *root*) (get-all-windows)) (force-output))))))) (defmacro make-x-drawable (argname type) "Drawable wrapper to prevent type error in some CLX versions. Replace xlib:drawable-* functions with x-drawable-* equivalents" (let ((fun-symbol (create-symbol 'x-drawable- argname)) (set-symbol (create-symbol 'set-x-drawable- argname)) (xlib-equiv-symbol (create-symbol-in-package :xlib 'drawable- argname))) `(progn (declaim (inline ,fun-symbol)) (defun ,fun-symbol (window) (,xlib-equiv-symbol window)) (defun ,set-symbol (window ,argname) (if (typep ,argname ',type) (setf (,xlib-equiv-symbol window) ,argname) (dbg ',(create-symbol 'drawable-type-error- argname) window ,argname (xlib:wm-name window)))) (defsetf ,fun-symbol ,set-symbol)))) (make-x-drawable x (signed-byte 16)) (make-x-drawable y (signed-byte 16)) (make-x-drawable width (unsigned-byte 16)) (make-x-drawable height (unsigned-byte 16)) (make-x-drawable border-width (unsigned-byte 16))
11,814
Common Lisp
.lisp
248
44.391129
125
0.70929
LdBeth/CLFSWM
29
4
1
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
6e5e06bec1a8f5b4ae08c62f08a2a0d0f1d62fb7610a36aa908d96ff1f61cbae
6,463
[ -1 ]
6,464
my-html.lisp
LdBeth_CLFSWM/src/my-html.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: Html generator helper ;;; -------------------------------------------------------------------------- ;;; ;;; (C) 2005-2015 Philippe Brochard <[email protected]> ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;;; ;;; -------------------------------------------------------------------------- (in-package :common-lisp-user) (defpackage :my-html (:use :common-lisp :tools) (:export :insert-html-doctype :escape-html :produce-html :with-html :produce-html-string)) (in-package :my-html) (defun insert-html-doctype () "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/transitional.dtd\">") (defun escape-html (string &optional (replace '((">" "&gt;") ("<" "&lt;")))) (if replace (aif (search (caar replace) string) (escape-html (concatenate 'string (subseq string 0 it) (cadar replace) (subseq string (+ it (length (caar replace))))) replace) (escape-html string (cdr replace))) string)) (defun produce-html (tree &optional (level 0) (stream *standard-output*)) (cond ((listp tree) (print-space level stream) (format stream "~(<~A>~)~%" (first tree)) (dolist (subtree (rest tree)) (produce-html subtree (+ 2 level) stream)) (print-space level stream) (format stream "~(</~A>~)~%" (if (stringp (first tree)) (subseq (first tree) 0 (position #\Space (first tree))) (first tree)))) (t (print-space level stream) (format stream (if (stringp tree) "~A~%" "~(~A~)~%") tree)))) (defmacro with-html ((&optional (stream t)) &rest rest) `(produce-html ',@rest 0 ,stream)) (defun produce-html-string (tree &optional (level 0)) (with-output-to-string (str) (produce-html tree level str))) (defun test1 () (produce-html `(html (head (title "Plop")) (body (h1 "A title") (h2 "plop") Plop ,(+ 2 2) ,(format nil "Plip=~A" (+ 3 5)) ("a href=\"index.html\"" index) (ul (li "toto") (li "klm")))))) (defun test2 () (with-html () (html (head (title "Plop")) "<img src=\"toto.png\">" (body (h1 "Un titre") (h2 "plop") (ul (li "toto") (li "klm")))))) (defun test3 () (produce-html-string `(html (head (title "Plop")) (body (h1 "A title") (h2 plop) Plop ,(+ 2 2) ,(format nil "Plip=~A" (+ 3 5)) |Foo Bar Baz| ("a href=\"index.html\"" Index) (ul (li "toto") (li "klm")))) 10))
3,522
Common Lisp
.lisp
104
28.846154
84
0.548482
LdBeth/CLFSWM
29
4
1
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
99423bc7f30cd797bd6f0e035f3f0f7a83e75fd71efe62681e31df07d98dd9fe
6,464
[ -1 ]
6,465
clfswm-second-mode.lisp
LdBeth_CLFSWM/src/clfswm-second-mode.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: Second mode functions ;;; -------------------------------------------------------------------------- ;;; ;;; (C) 2005-2015 Philippe Brochard <[email protected]> ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;;; ;;; -------------------------------------------------------------------------- (in-package :clfswm) (defparameter *second-mode-leave-function* nil "Execute the function if not nil") (defun draw-second-mode-window () (raise-window *sm-window*) (clear-pixmap-buffer *sm-window* *sm-gc*) (let* ((text (format nil "SECOND MODE")) (len (length text))) (xlib:draw-glyphs *pixmap-buffer* *sm-gc* (truncate (/ (- *sm-width* (* (xlib:max-char-width *sm-font*) len)) 2)) (truncate (/ (+ *sm-height* (- (xlib:font-ascent *sm-font*) (xlib:font-descent *sm-font*))) 2)) text)) (copy-pixmap-buffer *sm-window* *sm-gc*) (no-focus)) ;;; Second mode handlers (define-handler second-mode :key-press (code state) (funcall-key-from-code *second-keys* code state) (draw-second-mode-window)) (define-handler second-mode :enter-notify () (draw-second-mode-window)) (define-handler second-mode :motion-notify (window root-x root-y) (unless (compress-motion-notify) (funcall-button-from-code *second-mouse* 'motion (modifiers->state *default-modifiers*) window root-x root-y *fun-press*))) (define-handler second-mode :button-press (window root-x root-y code state) (funcall-button-from-code *second-mouse* code state window root-x root-y *fun-press*) (draw-second-mode-window)) (define-handler second-mode :button-release (window root-x root-y code state) (funcall-button-from-code *second-mouse* code state window root-x root-y *fun-release*) (draw-second-mode-window)) (define-handler second-mode :configure-request () (apply #'handle-event-fun-main-mode-configure-request event-slots) (draw-second-mode-window)) (define-handler second-mode :configure-notify () (draw-second-mode-window)) (define-handler second-mode :destroy-notify () (apply #'handle-event-fun-main-mode-destroy-notify event-slots) (draw-second-mode-window)) (define-handler second-mode :map-request () (apply #'handle-event-fun-main-mode-map-request event-slots) (draw-second-mode-window)) (define-handler second-mode :unmap-notify () (apply #'handle-event-fun-main-mode-unmap-notify event-slots) (draw-second-mode-window)) (define-handler second-mode :exposure () (apply #'handle-event-fun-main-mode-exposure event-slots) (draw-second-mode-window)) (defun sm-enter-function () (with-placement (*second-mode-placement* x y *sm-width* *sm-height*) (setf *in-second-mode* t *sm-window* (xlib:create-window :parent *root* :x x :y y :width *sm-width* :height *sm-height* :background (get-color *sm-background-color*) :border-width *border-size* :border (get-color *sm-border-color*) :colormap (xlib:screen-default-colormap *screen*) :event-mask '(:exposure)) *sm-font* (xlib:open-font *display* *sm-font-string*) *sm-gc* (xlib:create-gcontext :drawable *sm-window* :foreground (get-color *sm-foreground-color*) :background (get-color *sm-background-color*) :font *sm-font* :line-style :solid))) (setf (window-transparency *sm-window*) *sm-transparency*) (map-window *sm-window*) (draw-second-mode-window) (no-focus) (ungrab-main-keys) (xgrab-keyboard *root*) (xgrab-pointer *root* 66 67) (speed-mouse-reset)) (defun sm-loop-function () (raise-window *sm-window*)) (defun sm-leave-function () (setf *in-second-mode* nil) (when *sm-gc* (xlib:free-gcontext *sm-gc*) (setf *sm-gc* nil)) (when *sm-font* (xlib:close-font *sm-font*) (setf *sm-font* nil)) (when *sm-window* (xlib:destroy-window *sm-window*) (setf *sm-window* nil)) (xungrab-keyboard) (xungrab-pointer) (grab-main-keys) (show-all-children) (display-all-frame-info) (raise-notify-window) (wait-no-key-or-button-press)) (defun second-key-mode () "Switch to editing mode (second mode)" (generic-mode 'second-mode 'exit-second-loop :enter-function #'sm-enter-function :loop-function #'sm-loop-function :leave-function #'sm-leave-function) (when *second-mode-leave-function* (funcall *second-mode-leave-function*) (setf *second-mode-leave-function* nil))) (defun leave-second-mode () "Leave second mode" (cond (*in-second-mode* (setf *in-second-mode* nil) (throw 'exit-second-loop nil)) (t (setf *in-second-mode* nil) (show-all-children)))) (defun sm-delete-focus-window () "Close focus window: Delete the focus window in all frames and workspaces" (setf *second-mode-leave-function* 'delete-focus-window) (leave-second-mode)) (defun sm-ask-close/kill-current-window () "Close or kill the current window (ask before doing anything)" (setf *second-mode-leave-function* #'ask-close/kill-current-window) (leave-second-mode))
5,872
Common Lisp
.lisp
142
38.035211
103
0.669358
LdBeth/CLFSWM
29
4
1
GPL-3.0
9/19/2024, 11:26:28 AM (Europe/Amsterdam)
d818e49b908c7f2bda91ef1069eca4b8545346b1ec1e087fb1ee2b4ee5c97bfc
6,465
[ -1 ]