phillord / tawny-owl

Build OWL Ontologies in a Programmatic Environment
GNU Lesser General Public License v3.0
251 stars 54 forks source link

tawny.read/intern-entity and tawny.read/default-transform #57

Closed jaydchan closed 7 years ago

jaydchan commented 7 years ago

ArityException Wrong number of args (1) passed to read/default-transform thrown for the following code:

(use 'tawny.owl)
(use 'tawny.read)
(defontology testA)
(defclass A)
(intern-entity
 *ns*
 (owl-class "B" :super A))

However it works if you provide the ontology to default-transform:

(use 'tawny.owl)
(require 'tawny.read)
(defontology testA)
(defclass A)
(tawny.read/intern-entity
 *ns*
 (owl-class "B" :super A)
 (partial tawny.read/default-transform testA))