Created
March 15, 2013 15:52
-
-
Save phillord/5170865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns scratch_clj.eye | |
(:use [tawny.owl])) | |
(defontology things | |
:iri "http://example.org" | |
:prefix "exam:") | |
(defoproperty partOf) | |
(defoproperty hasPart) | |
(defoproperty developsFrom) | |
(defclass Head) | |
(defclass Tail) | |
(defclass Eye | |
:subclass | |
(owlsome partOf Head) | |
(owlnot | |
(owlsome partOf Tail))) | |
(doall | |
(map | |
#(add-subclass | |
(owlnot (owlsome hasPart %)) | |
(owlnot (owlsome hasPart | |
(owlsome developsFrom %)))) | |
(.getClassesInSignature things true))) | |
(save-ontology "eye.owl" :owl) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment