Liking cljdoc? Tell your friends :D
Mostly clj.
Exceptions indicated.

tawny.owl

Build ontologies in OWL.

Build ontologies in OWL.
raw docstring

!clj


&&clj


add-a-simple-annotationclj

(add-a-simple-annotation o named-entity annotation)

Adds an annotation to a named objecqt.

Adds an annotation to a named objecqt.
raw docstring

add-an-ontology-annotationclj

(add-an-ontology-annotation o o annotation)

Adds an annotation to an ontology.

Adds an annotation to an ontology.
raw docstring

add-annotationclj

(add-annotation annotations)
(add-annotation named-entity & annotations)
(add-annotation ontology & annotations)
(add-annotation ontology named-entity & annotations)

Add an annotation in the ontology to either the named-entity or the ontology. Broadcasts over annotations.

Add an annotation in the ontology to either the named-entity
or the ontology. Broadcasts over annotations.
raw docstring

add-axiomclj

(add-axiom o axiom)

Adds an axiom from the given ontology, or the current one.

Adds an axiom from the given ontology, or the current one.
raw docstring

add-characteristicsclj

(add-characteristics o property characteristic)

Add a list of characteristics to the property.

Add a list of characteristics to the property.
raw docstring

add-classclj

(add-class o name)

Adds a class to the ontology.

Adds a class to the ontology.
raw docstring

add-commentclj

(add-comment o named-entity comment)

Add comments to the named entities.

Add comments to the named entities.
raw docstring

add-data-characteristicsclj

(add-data-characteristics o property characteristic)

Add a list of characteristics to the property.

Add a list of characteristics to the property.
raw docstring

add-data-disjointclj

(add-data-disjoint o name disjoint)

Adds a disjoint data property axiom to the ontology

Adds a disjoint data property axiom to the ontology
raw docstring

add-data-domainclj

(add-data-domain property & domains)
(add-data-domain o property & domains)

Adds a domain to a data property.

Adds a domain to a data property.
raw docstring

add-data-equivalentclj

(add-data-equivalent o property equivalent)

Adds a equivalent data properties axiom.

Adds a equivalent data properties axiom.
raw docstring

add-data-rangeclj

(add-data-range property & ranges)
(add-data-range ontology property & ranges)

Adds a range to a data property.

Adds a range to a data property.
raw docstring

add-data-subpropertyclj

(add-data-subproperty o property sub)

Adds a sub property to a data property.

Adds a sub property to a data property.
raw docstring

add-data-superpropertyclj

(add-data-superproperty o property super)

Adds a super property to a data property.

Adds a super property to a data property.
raw docstring

add-datatype-equivalentclj

(add-datatype-equivalent o datatype equivalent)

Adds a datatype equivalent axiom

Adds a datatype equivalent axiom
raw docstring

add-differentclj

(add-different o & individuals)

Adds all arguments as different individuals to the current ontology unless first arg is an ontology in which case this is used

Adds all arguments as different individuals to the current
ontology unless first arg is an ontology in which case this is used
raw docstring

add-disjointclj

(add-disjoint name disjoint)
(add-disjoint ontology name disjoint)

Adds a disjoint axiom to the ontology.

Adds a disjoint axiom to the ontology.
raw docstring

add-disjoint-propertyclj

(add-disjoint-property o name disjoint)

Adds a disjoint property axiom to the ontology

Adds a disjoint property axiom to the ontology
raw docstring

add-disjoint-unionclj

(add-disjoint-union o clazz subclasses)

Adds a disjoint union axiom to all subclasses.

Adds a disjoint union axiom to all subclasses.
raw docstring

add-domainclj

(add-domain o property domain)

Adds all the entities in domainlist as domains to a property.

Adds all the entities in domainlist as domains to a property.
raw docstring

add-equivalentclj

(add-equivalent name equivalent)
(add-equivalent ontology name equivalent)

Adds an equivalent axiom to the ontology.

Adds an equivalent axiom to the ontology.
raw docstring

add-equivalent-propertyclj

(add-equivalent-property o property equivalent)

Adds a equivalent data properties axiom.

Adds a equivalent data properties axiom.
raw docstring

add-factclj

(add-fact individual & facts)
(add-fact ontology individual & facts)

Add FACTS to an INDIVIDUAL in the current ontology or ONTOLOGY if present. Facts are produced with fact' andfact-not'.

Add FACTS to an INDIVIDUAL in the current ontology or
ONTOLOGY if present. Facts are produced with `fact' and `fact-not'.
raw docstring

add-has-keyclj

(add-has-key o class propertylist)

Adds a has-key to the class.

Adds a has-key to the class.
raw docstring

add-inverseclj

(add-inverse o property inverse)

Adds all the entities in inverselist as inverses to a property.

Adds all the entities in inverselist as inverses to a property.
raw docstring

add-labelclj

(add-label o named-entity label)

Add labels to the named entities.

Add labels to the named entities.
raw docstring

add-rangeclj

(add-range o property range)

Adds all the entities in rangelist as range to a property.

Adds all the entities in rangelist as range to a property.
raw docstring

add-sameclj

(add-same & individuals)
(add-same ontology & individuals)

Adds all arguments as the same individual to the current ontology or to ONTOLOGY if present.

Adds all arguments as the same individual to the current ontology
or to ONTOLOGY if present.
raw docstring

add-subchainclj

(add-subchain o property subpropertylist)

Adds a property chain to property.

Adds a property chain to property.
raw docstring

add-subclassclj

(add-subclass name & subclass)
(add-subclass ontology name & subclass)

Adds one or more subclasses to name in ontology.

Adds one or more subclasses to name in ontology.
raw docstring

add-subpropertyclj

(add-subproperty o property subproperty)

Adds all items in superpropertylist to property as a superproperty.

Adds all items in superpropertylist to property as
a superproperty.
raw docstring

add-super-annotationclj

(add-super-annotation o subproperty superproperty)

Adds a set of superproperties to the given subproperty.

Adds a set of superproperties to the given subproperty.
raw docstring

add-superclassclj

(add-superclass name & superclass)
(add-superclass ontology name & superclass)

Adds one or more superclasses to name in ontology.

Adds one or more superclasses to name in ontology.
raw docstring

add-superpropertyclj

(add-superproperty o property superproperty)

Adds all items in superpropertylist to property as a superproperty.

Adds all items in superpropertylist to property as
a superproperty.
raw docstring

add-typeclj

(add-type individual & clazzes)
(add-type o individual & clazzes)

Adds CLAZZES as a type to individual to current ontology or ONTOLOGY if present.

Adds CLAZZES as a type to individual to current ontology
or ONTOLOGY if present.
raw docstring

annotateclj

(annotate entity-or-list & annotation)

Given an entity or a list of entities, add annotations and return as an Entityable and Annotatable entity.

These entities are used to annotate the axiom describing the relationship between the entity and the places where this entity is used. So, for example, if an annotated class is added as a subclass of another, the SubClassOf axiom will be annotated.

Given an entity or a list of entities, add annotations and return as an
Entityable and Annotatable entity.

These entities are used to annotate the axiom describing the relationship
between the entity and the places where this entity is used. So, for
example, if an annotated class is added as a subclass of another, the
SubClassOf axiom will be annotated.
raw docstring

annotationclj

(annotation o annotation-property literal)
(annotation o annotation-property literal language)

Creates a new annotation. If literal is a string it is interpreted as a String in English. Otherwise, it can be any annotation value or object which can be co-erced to an IRI

Creates a new annotation. If literal is a string it is interpreted as a
String in English. Otherwise, it can be any annotation value or object which
can be co-erced to an IRI
raw docstring

annotation-propertyclj

(annotation-property name & frames)
(annotation-property ontology name & frames)

Creates a new annotation property.

Creates a new annotation property.
raw docstring

annotation-property-explicitclj

(annotation-property-explicit o name frames)

Add this annotation property to the ontology

Add this annotation property to the ontology
raw docstring

annotatorclj

(annotator annotation-property)

Creates a new annotator function. Annotation-property maybe an OWLAnnotationProperty object or a string in which case it will be coerced into a OWLAnnotationProperty using iri or iri-for-name. The function returned can take an optional ontology argument which will be used in this case.

Creates a new annotator function.
Annotation-property maybe an OWLAnnotationProperty object or a string in which
case it will be coerced into a OWLAnnotationProperty using iri or
iri-for-name. The function returned can take an optional ontology argument
which will be used in this case.
raw docstring

anonymous-individualclj

(anonymous-individual)

Return a new anonymous individual

Return a new anonymous individual
raw docstring

as-disjointclj

(as-disjoint & entities)
(as-disjoint ontology & entities)

All entities are declared as disjoint. Entities may be any structure and may also be a var. See also 'as-subclasses'.

All entities are declared as disjoint. Entities may be
any structure and may also be a var. See also 'as-subclasses'.
raw docstring

as-disjoint-subclassesclj

(as-disjoint-subclasses o superclass & subclasses)

Declare all subclasses as disjoint

Declare all subclasses as disjoint
raw docstring

as-equivalentclj

(as-equivalent o & entities)

Declare the properties or classes as disjoint.

Declare the properties or classes as disjoint.
raw docstring

as-inverseclj

(as-inverse o p1 p2)

Declare the two properties as inverse

Declare the two properties as inverse
raw docstring

as-iriableclj

(as-iriable entity)

If entity is a iriable do nothing, else throw an exception.

If entity is a iriable do nothing, else throw
an exception.
raw docstring

as-subclassesclj

(as-subclasses superclass & classes)
(as-subclasses superclass options & classes)
(as-subclasses ontology superclass options & classes)

All classes are given the superclass. The first item may be an ontology, followed by options.

:disjoint also sets the class disjoint. :cover also makes the subclasses cover the superclass.

All classes are given the superclass.
The first item may be an ontology, followed by options.

:disjoint also sets the class disjoint.
:cover also makes the subclasses cover the superclass.
raw docstring

at-leastcljmultimethod

Returns a minimum cardinality restriction.

Returns a minimum cardinality restriction.
raw docstring

at-mostcljmultimethod

Returns a maximum cardinality restriction.

Returns a maximum cardinality restriction.
raw docstring

backward-compatible-withclj

Returns a backward compatible with annotation.

Returns a backward compatible with annotation.
raw docstring

backward-compatible-with-propertyclj


broadcast-ontologyclj

(broadcast-ontology fnc a b)
(broadcast-ontology fnc a b c)
(broadcast-ontology fnc a b c d)
(broadcast-ontology fnc a b c d e)
(broadcast-ontology fnc a b c d e f)
(broadcast-ontology fnc a b c d e f g)
(broadcast-ontology fnc a b c d e f g & args)

Given a function, fnc, and args ensure that the first arg is an ontology using default-ontology, and then broadcast the rest, so that the fnc is called with the first and second args, first and third args and so on. This function is micro-optimised to avoid use of variadic method calls or list operations.

Given a function, fnc, and args ensure that the first arg is an ontology
using default-ontology, and then broadcast the rest, so that the fnc is called
with the first and second args, first and third args and so on. This function
is micro-optimised to avoid use of variadic method calls or list operations.
raw docstring

broadcast-ontology-fullclj

(broadcast-ontology-full f & args)

Given a function which expects an ontology and two other arguments, ensure that the first argument is an ontology (see default-ontology for details), then f repeatedly against the second args and all subsequent arguments flattened. Where possible, we avoid using this function for the micro-optimisd broadcast-ontology.

Given a function which expects an ontology and two other arguments, ensure
that the first argument is an ontology (see default-ontology for details),
then f repeatedly against the second args and all subsequent arguments
flattened. Where possible, we avoid using this function for the micro-optimisd
broadcast-ontology.
raw docstring

broadcast-ontology-maybeclj

(broadcast-ontology-maybe fnc a b)
(broadcast-ontology-maybe fnc a b c)
(broadcast-ontology-maybe fnc a b c d)
(broadcast-ontology-maybe fnc a b c d e)
(broadcast-ontology-maybe fnc a b c d e f)
(broadcast-ontology-maybe fnc a b c d e f g)
(broadcast-ontology-maybe fnc a b c d e f g & args)

Like broadcast-ontology but does not signal an error where there is no default ontology.

Like broadcast-ontology but does not signal an error where there is no
default ontology.
raw docstring

data-andclj

(data-and o & types)

Returns the intersection of two data ranges.

Returns the intersection of two data ranges.
raw docstring

data-at-leastclj

(data-at-least o number property)

Returns a data min cardinality restriction.

Returns a data min cardinality restriction.
raw docstring

data-at-mostclj

(data-at-most o number property)

Returns a data max cardinality restriction.

Returns a data max cardinality restriction.
raw docstring

data-exactlyclj

(data-exactly o number property)

Returns a data exact cardinality restriction.

Returns a data exact cardinality restriction.
raw docstring

data-get-factclj

(data-get-fact o property from to annotations)

Returns a data fact.

Returns a data fact.
raw docstring

data-get-fact-notclj

(data-get-fact-not o property from to annotations)

Returns a data negative fact.

Returns a data negative fact.
raw docstring

data-has-valueclj

(data-has-value o property literal)

Returns a data has value restriction.

Returns a data has value restriction.
raw docstring

data-notclj

(data-not o type)

Returns the complement of two data ranges.

Returns the complement of two data ranges.
raw docstring

data-oneofclj

(data-oneof o & literals)

Returns a data one of restriction.

Returns a data one of restriction.
raw docstring

data-onlyclj

(data-only o property datatype)

Returns a data all values from restriction.

Returns a data all values from restriction.
raw docstring

data-orclj

(data-or o & types)

Returns the union of two data ranges.

Returns the union of two data ranges.
raw docstring

data-someclj

(data-some o property data-range)

Returns a data some values from restriction.

Returns a data some values from restriction.
raw docstring

datatypeclj

(datatype o name & frames)

Defines a new datatype.

Defines a new datatype.
raw docstring

datatype-explicitclj

(datatype-explicit o name frames)

Defines a new datatype.

Defines a new datatype.
raw docstring

datatype-propertyclj

(datatype-property o name & frames)

Define a new datatype property

Define a new datatype property
raw docstring

datatype-property-explicitclj

(datatype-property-explicit o name frames)

Define a new datatype property with an explicit map

Define a new datatype property with an explicit map
raw docstring

declare-classesclj/smacro

(declare-classes & args)

Declares all the classes given in args. Any args including and following the first keyword will be interpreted as frames for all the classes. Frame args will be evaluated multiple times so should be side-effect free.

This is mostly useful for forward declarations.

See `defclassn' to define many classes with different frames.

Declares all the classes given in args. Any args including and following
the first keyword will be interpreted as frames for all the classes. Frame
args will be evaluated multiple times so should be side-effect free.

This is mostly useful for forward declarations.

See `defclassn' to define many classes with different frames.
raw docstring

defapropertyclj/smacro

(defaproperty entity__4210__auto__ & frames__4211__auto__)

Defines a new annotation property in the current ontology. See 'defclass' for more details on the syntax

Defines a new annotation property in the current ontology.
See 'defclass' for more details on the syntax
raw docstring

default-ontologyclj

(default-ontology f)
(default-ontology f a)
(default-ontology f a b)
(default-ontology f a b c)
(default-ontology f a b c d)
(default-ontology f a b c d e)
(default-ontology f a b c d e fa)
(default-ontology f a b c d e fa g)
(default-ontology f a b c d e fa g h)
(default-ontology f a b c d e fa g h i)
(default-ontology f a b c d e fa g h i j)
(default-ontology f a b c d e fa g h i j & args)

Invoke f ensuring the first argument is an ontology or nil. If the first argument is already an ontology use that, if not use the default ontology, or throw an IllegalStateException. To set the default ontology use either the defontology macro, or ontology-to-namespace. This function is multi-arity as a micro optimization, to avoid a variadic invocation.

Invoke f ensuring the first argument is an ontology or nil.
If the first argument is already an ontology use that, if not use the default
ontology, or throw an IllegalStateException. To set the default ontology use
either the defontology macro, or ontology-to-namespace. This function is
multi-arity as a micro optimization, to avoid a variadic invocation.
raw docstring

default-ontology-hookclj

Hook called when the default ontology is used

Hook called when the default ontology is used
raw docstring

default-ontology-maybeclj

(default-ontology-maybe f a)
(default-ontology-maybe f a b)
(default-ontology-maybe f a b c)
(default-ontology-maybe f a b c d)
(default-ontology-maybe f a b c d e)
(default-ontology-maybe f a b c d e fa)
(default-ontology-maybe f a b c d e fa g)
(default-ontology-maybe f a b c d e fa g h)
(default-ontology-maybe f a b c d e fa g h i)
(default-ontology-maybe f a b c d e fa g h i j)
(default-ontology-maybe f a b c d e fa g h i j & args)

Invoke f ensuring the first argument is an ontology or nil. The logic used is the same as default-ontology except that no error is signalled if there is no current-ontology. The multi-arity function avoids variadic calls most of the time.

Invoke f ensuring the first argument is an ontology or nil.
The logic used is the same as default-ontology except that no error is
signalled if there is no current-ontology. The multi-arity function avoids
variadic calls most of the time.
raw docstring

defbdontfnclj/smacro

(defbdontfn name & body)

Like the defn and defdontfn, but broadcasts. That is it expects a three arg function, f with ontology, x and y, but defines a new function which takes ontology, x and rest, returning a list which is f applied to ontology, x and the flattened elements of rest.

Uses the default ontology if not supplied and throws an IllegalStateException if this is not set.

Like the defn and defdontfn, but broadcasts. That is it expects a three arg
function, f with ontology, x and y, but defines a new function which takes
ontology, x and rest, returning a list which is f applied to ontology, x and
the flattened elements of rest.

Uses the default ontology if not supplied and throws an IllegalStateException
  if this is not set.
raw docstring

defbmontfnclj/smacro

(defbmontfn name & body)

Like defbdontfn, but also accepts nil as either the passed or default ontology.

Like defbdontfn, but also accepts nil as either the passed or default ontology.
raw docstring

defclassclj/smacro

(defclass entity__4210__auto__ & frames__4211__auto__)

Define a new class. Accepts a set number of frames, each marked by a keyword :subclass, :equivalent, :annotation, :comment, :label or :disjoint. Each frame can contain an item, a list of items or any combination of the two. The class object is stored in a var called classname.

Define a new class. Accepts a set number of frames, each marked
by a keyword :subclass, :equivalent, :annotation, :comment,
:label or :disjoint. Each frame can contain an item, a list of items or any
combination of the two. The class object is stored in a var called classname.
raw docstring

defclassnclj/smacro

(defclassn & classes)

Defines many classes at once.

Each class and associated frames should be supplied as a vector.

See `declare-classes' where frames (or just default frames) are not needed.

Defines many classes at once.

Each class and associated frames should be supplied as a vector.

See `declare-classes' where frames (or just default frames) are not needed.
raw docstring

defcopyclj/smacro

(defcopy symb & args)

Takes an existing definition from another namespace and copies it into the current namespace with no changes in semantics. This can be useful for convenience, where one namespace should contain all the OWLObjects of another, or for forward declaration, where entities will be refined later.

This does not add the existing definition to the current ontology. In most cases this will have been imported.

Takes an existing definition from another namespace and copies it into the
current namespace with no changes in semantics. This can be useful for
convenience, where one namespace should contain all the OWLObjects of
another, or for forward declaration, where entities will be refined later.

This does not add the existing definition to the current ontology. In most
cases this will have been imported.
raw docstring

defdatatypeclj/smacro

(defdatatype entity__4210__auto__ & frames__4211__auto__)

Defines a new datatype

Defines a new datatype
raw docstring

defdontfnclj/smacro

(defdontfn name & body)

Like defn, but automatically adds the current-ontology to the args if the first arg is not an ontology. Throws an IllegalStateException if there is no current ontology.

The 'd' stands for definitely.

Like defn, but automatically adds the current-ontology to the args
if the first arg is not an ontology. Throws an IllegalStateException
if there is no current ontology.

The 'd' stands for definitely.
raw docstring

defdpropertyclj/smacro

(defdproperty entity__4210__auto__ & frames__4211__auto__)

Defines a new datatype property

Defines a new datatype property
raw docstring

defentityclj/smacro

(defentity name docstring entity-function)

Defines a new macro for defining OWL entities.

This macro allows easy definition of new macros similar to the defclass or defoproperty macro. It expects an entity-function which can accept an ontology or nil as a first argument, and then a set of frames. See defdontfn' ordefmontfn' which support the declaration of these functions. The ontology argument is taken from a first :ontology frame which is handled by this macro. This macro also marks the resultant var with :owl metadata.

The resultant macro takes arguments of the form [name :ontology o :frame1 f]. The ontology frame is optional.

Defines a new macro for defining OWL entities.

This macro allows easy definition of new macros similar to the defclass or
defoproperty macro. It expects an entity-function which can accept an
ontology or nil as a first argument, and then a set of frames. See
`defdontfn' or `defmontfn' which support the declaration of these functions.
The ontology argument is taken from a first :ontology frame which is handled by
this macro. This macro also marks the resultant var with :owl metadata.

The resultant macro takes arguments of the form [name :ontology o :frame1 f].
The ontology frame is optional.
raw docstring

defindividualclj/smacro

(defindividual entity__4210__auto__ & frames__4211__auto__)

Declare a new individual

Declare a new individual
raw docstring

defmontfnclj/smacro

(defmontfn name & body)

Like defn, but automatically adds the current ontology or nil to the args if the first arg is not an ontology.

The 'm' stands for maybe.

Like defn, but automatically adds the current ontology or nil to the args
  if the first arg is not an ontology.

The 'm' stands for maybe.
raw docstring

defnwithfnclj/smacro

(defnwithfn name function & body)

Define a new var like defn, but compose FUNCTION with BODY before rather than just using BODY directly.

Define a new var like defn, but compose FUNCTION with BODY before
rather than just using BODY directly.
raw docstring

defontologyclj/smacro

(defontology name & body)

Define a new ontology with `name'.

The following keys must be supplied. :iri -- the IRI for the new ontology :prefix -- the prefix used in the serialised version of the ontology

Define a new ontology with `name'.

The following keys must be supplied.
:iri -- the IRI for the new ontology
:prefix -- the prefix used in the serialised version of the ontology
raw docstring

defopropertyclj/smacro

(defoproperty entity__4210__auto__ & frames__4211__auto__)

Defines a new object property in the current ontology.

Defines a new object property in the current ontology.
raw docstring

defrefineclj/smacro

(defrefine symb & args)

Takes an existing definition, add more frames.

The first element should be a namespace qualified symbol. The unqualified part of this will be used in the current namespace.

See also 'refine'

Takes an existing definition, add more frames.

The first element should be a namespace qualified symbol. The
unqualified part of this will be used in the current namespace.

See also 'refine'
raw docstring

deprecatedclj

Returns a deprecated annotation.

Returns a deprecated annotation.
raw docstring

deprecated-add-data-superpropertycljdeprecated

The same as add-data-superproperty but deprecated. This is to deprecated the :superproperty frame

The same as add-data-superproperty but deprecated.
This is to deprecated the :superproperty frame
raw docstring

deprecated-add-sub-annotationclj

The same as add-super-annotation used to implement the old add-sub-annotation functionality.

The same as add-super-annotation used to implement the old
add-sub-annotation functionality.
raw docstring

deprecated-add-subclassclj


deprecated-add-subpropertychaincljdeprecated

This is the same as add-subchain, but marked as deprecated and used as the handler for :subpropertychain.

This is the same as add-subchain, but marked as deprecated
and used as the handler for :subpropertychain.
raw docstring

deprecated-add-superpropertycljdeprecated

This is the same as add-superproperty but marked as deprecated and used as the handler for :subproperty.

This is the same as add-superproperty but marked as deprecated
and used as the handler for :subproperty.
raw docstring

deprecated-propertyclj


direct-instancesclj

(direct-instances o name)

Return all direct instances of NAME class.

Return all direct instances of NAME class.
raw docstring

direct-subclassesclj

(direct-subclasses o name)

Returns the direct subclasses of name.

Returns the direct subclasses of name.
raw docstring

direct-subpropertiesclj

(direct-subproperties o property)

Returns all direct subproperties of property.

Returns all direct subproperties of property.
raw docstring

direct-superclassesclj

(direct-superclasses o name)

Returns the direct superclasses of name. Name can be either a class or a string name. Returns a list of class expressions.

Returns the direct superclasses of name.
Name can be either a class or a string name. Returns a list of class
expressions.
raw docstring

direct-superpropertiesclj

(direct-superproperties o property)

Return all direct superproperties of property.

Return all direct superproperties of property.
raw docstring

disjoint-classesclj

(disjoint-classes o list)

Makes all elements in list disjoint. All arguments must of an instance of OWLClassExpression

Makes all elements in list disjoint.
All arguments must of an instance of OWLClassExpression
raw docstring

disjoint-data-propertiesclj

(disjoint-data-properties o properties)

disjoint-propertiesclj

(disjoint-properties o properties)

Make all the properties in PROPERTIES disjoint.

Make all the properties in PROPERTIES disjoint.
raw docstring

disjoint?clj

(disjoint? o a b)

Returns t iff entities (classes or properties) are asserted to be disjoint.

Returns t iff entities (classes or properties) are asserted to be
disjoint.
raw docstring

entity-for-iriclj

(entity-for-iri o iri)

Return the OWLObject for a given IRI if it exists, checking 'ontology' first, but checking all loaded ontologies.

This function uses a heuristic to find the right entity. If you want more control use 'check-entity-set' and the '.getEntitiesInSignature' method of OWLOntology.

Return the OWLObject for a given IRI if it exists, checking
'ontology' first, but checking all loaded ontologies.

This function uses a heuristic to find the right entity. If you want
more control use 'check-entity-set' and the '.getEntitiesInSignature'
method of OWLOntology.
raw docstring

entity-for-stringclj

(entity-for-string o string)

Returns the OWLObject for a given string. See 'entity-for-iri' for more details. Attempts both ontology specific iri to name conversion, and direct use of string as an IRI.

Returns the OWLObject for a given string.
See 'entity-for-iri' for more details. Attempts both ontology specific iri to name
conversion, and direct use of string as an IRI.
raw docstring

equivalent-classesclj

(equivalent-classes o list)

Makes all elements in list equivalent. All arguments must of an instance of OWLClassExpression

Makes all elements in list equivalent.
All arguments must of an instance of OWLClassExpression
raw docstring

equivalent-data-propertiesclj

(equivalent-data-properties o properties)

equivalent-propertiesclj

(equivalent-properties o properties)

Adds properties as equivalent to the ontology.

Adds properties as equivalent to the ontology.
raw docstring

equivalent?clj

(equivalent? o a b)

Returns t iff classes are asserted to be equivalent.

Returns t iff classes are asserted to be equivalent.
raw docstring

exactlycljmultimethod

Returns an exact cardinality restriction.

Returns an exact cardinality restriction.
raw docstring

factclj

(fact o property to)

Returns a fact assertion a relation by PROPERTY which can be either an object or data property toward either an individual or literal TO. This is the same as the function `is'.

Returns a fact assertion a relation by PROPERTY which can be
either an object or data property toward either an individual or literal
TO. This is the same as the function `is'.
raw docstring

fact-notclj

(fact-not o property to)

Returns a fact asserting the lack of a relationship along PROPERTY toward an either an individual or literal TO.

Returns a fact asserting the lack of a relationship along PROPERTY
toward an either an individual or literal TO.
raw docstring

get-current-ontologyclj

(get-current-ontology)
(get-current-ontology ns)

Gets the current ontology. Throws an exception if there is not current ontology

Gets the current ontology. Throws an exception if there is not current
ontology
raw docstring

get-current-ontology-maybeclj

(get-current-ontology-maybe)
(get-current-ontology-maybe ns)

Gets the current ontology, or nil if there is not one.

Gets the current ontology, or nil if there is not one.
raw docstring

get-factcljmultimethod


get-fact-notcljmultimethod


get-prefixclj

(get-prefix o)

Returns the prefix for the given ontology, or the current ontology if none is given.

Returns the prefix for the given ontology, or the current ontology if none
is given.
raw docstring

guess-individual-literalclj

(guess-individual-literal o entity)

guess-typeclj

(guess-type o entity)

Guesses the type of the entity. Returns ::object, :data or :annotation or nil where the type cannot be guessed. IllegalArgumentException is thrown for arguments which make no sense (not an OWLObject, IRI, String or number).

What this means is, for a collection find the first entity for which we can guess a type for. For an OWLClass, OWLIndividual, OWLDatatype or OWLAnnotationProperty object return the appropriate value. For an IRI check the current ontology, the current ontology with its import closure, and all known ontologies with their import clojure. For a string convert to an IRI using the current ontology rules, and check again. Finally, check convert to an IRI with no transformation. nil is returned when the result is not clear.

Guesses the type of the entity. Returns ::object, :data or :annotation or
nil where the type cannot be guessed. IllegalArgumentException is thrown for
arguments which make no sense (not an OWLObject, IRI, String or number).

What this means is, for a collection find the first entity for which we can
guess a type for. For an OWLClass, OWLIndividual, OWLDatatype or
OWLAnnotationProperty object return the appropriate value. For an IRI check
the current ontology, the current ontology with its import closure, and all
known ontologies with their import clojure. For a string convert to an IRI
using the current ontology rules, and check again. Finally, check convert to
an IRI with no transformation. nil is returned when the result is not clear.
raw docstring

guess-type-errorclj

(guess-type-error & args)

Throws an exception always

Throws an exception always
raw docstring

has-selfclj

(has-self o property)

Returns an OWL has self restriction.

Returns an OWL has self restriction.
raw docstring

has-valuecljmultimethod

Returns a has-value restriction.

Returns a has-value restriction.
raw docstring

incompatible-withclj

Returns an incompatible with annotation.

Returns an incompatible with annotation.
raw docstring

incompatible-with-propertyclj


individualclj

(individual o name & frames)

individual-explicitclj

(individual-explicit o name frames)

Returns a new individual.

Returns a new individual.
raw docstring

intern-owlclj/smacro

(intern-owl name entity)

Intern an OWL Entity. Compared to the clojure.core/intern function this signals a hook, and adds :owl true to the metadata. NAME must be a symbol

Intern an OWL Entity. Compared to the clojure.core/intern function this
signals a hook, and adds :owl true to the metadata. NAME must be a symbol
raw docstring

intern-owl-entity-hookclj

Hook called when an new var is created with an OWLObject, with the var

Hook called when an new var is created with an OWLObject, with the var
raw docstring

intern-owl-stringclj

(intern-owl-string name entity)
(intern-owl-string ns name entity)

Interns an OWL Entity. Compared to the clojure.core/intern function this signals a hook, and adds :owl true to the metadata. NAME must be a strings

Interns an OWL Entity. Compared to the clojure.core/intern function this
signals a hook, and adds :owl true to the metadata. NAME must be a strings
raw docstring

inverseclj

(inverse o property)

Creates an object inverse of expression.

Creates an object inverse of expression.
raw docstring

inverse?clj

(inverse? o p1 p2)

Returns t iff properties are asserted to be inverse

Returns t iff properties are asserted to be inverse
raw docstring

iriclj

(iri name)

Returns an IRI object given a string or URI. Does no transformation on the string; use 'iri-for-name' to perform ontology specific expansion

Returns an IRI object given a string or URI. Does no transformation on the
string; use 'iri-for-name' to perform ontology specific expansion
raw docstring

iri-for-nameclj

(iri-for-name o name)

Returns an IRI object for the given name.

This is likely to become a property of the ontology at a later date, but at the moment it is very simple.

Returns an IRI object for the given name.

This is likely to become a property of the ontology at a later date, but at
the moment it is very simple.
raw docstring

iriable?clj

(iriable? entity)

Returns true iff entity is an IRIable.

Returns true iff entity is an IRIable.
raw docstring

isclj

Returns a fact assertion a relation by PROPERTY which can be either an object or data property toward either an individual or literal TO

Returns a fact assertion a relation by PROPERTY which can be
either an object or data property toward either an individual or literal
TO
raw docstring

is-defined-byclj

Return an is defined by annotation.

Return an is defined by annotation.
raw docstring

is-defined-by-propertyclj


labelclj

Return an OWL label annotation.

Return an OWL label annotation.
raw docstring

label-propertyclj


literalclj

(literal o literal & {:keys [lang type]})

Returns a OWL2 literal.

literal' is the value of the literal and must be a string or a number. Anything else must by coerced into a string manually. Options can also be specified, with :lang definining the language whereliteral' is a string, and :type which is an OWLDatatype object.

Returns a OWL2 literal.

`literal' is the value of the literal and must be a string or a number. Anything
else must by coerced into a string manually. Options can also be specified,
with :lang definining the language where `literal' is a string, and :type
which is an OWLDatatype object.
raw docstring

max-incclj

(max-inc to)

Returns a max inclusive restriction.

Returns a max inclusive restriction.
raw docstring

min-incclj

(min-inc from)

Returns a min inclusive restriction.

Returns a min inclusive restriction.
raw docstring

min-maxclj

(min-max from to)

Returns a min-max exclusive restriction.

Returns a min-max exclusive restriction.
raw docstring

min-max-incclj

(min-max-inc from to)

Returns a min max inclusive restriction.

Returns a min max inclusive restriction.
raw docstring

object-andclj

(object-and o & classes)

Returns an OWL intersection of restriction.

Returns an OWL intersection of restriction.
raw docstring

object-at-leastclj

(object-at-least o cardinality property & class)

Returns an OWL at-least cardinality restriction.

Returns an OWL at-least cardinality restriction.
raw docstring

object-at-mostclj

(object-at-most o cardinality property & class)

Returns an OWL at-most cardinality restriction.

Returns an OWL at-most cardinality restriction.
raw docstring

object-exactlyclj

(object-exactly o cardinality property & class)

Returns an OWL exact cardinality restriction.

Returns an OWL exact cardinality restriction.
raw docstring

object-get-factclj

(object-get-fact _ property from to annotations)

Returns an OWL Object property assertion axiom.

Returns an OWL Object property assertion axiom.
raw docstring

object-get-fact-notclj

(object-get-fact-not _ property from to annotations)

Returns a negative OWL Object property assertion axiom.

Returns a negative OWL Object property assertion axiom.
raw docstring

object-has-valueclj

(object-has-value o property individual)

Adds an OWL has-value restriction.

Adds an OWL has-value restriction.
raw docstring

object-notclj

(object-not o & class)

Returns an OWL complement of restriction.

Returns an OWL complement of restriction.
raw docstring

object-oneofclj

(object-oneof o & individuals)

Returns an OWL one of property restriction.

Returns an OWL one of property restriction.
raw docstring

object-onlyclj

(object-only property & clazzes)
(object-only ontology property & clazzes)

Returns an OWL all values from restriction.

Returns an OWL all values from restriction.
raw docstring

object-orclj

(object-or o & classes)

Returns an OWL union of restriction.

Returns an OWL union of restriction.
raw docstring

object-propertyclj

(object-property o name & frames)

Returns a new object property in the current ontology.

Returns a new object property in the current ontology.
raw docstring

object-property-explicitclj

(object-property-explicit o name frames)

Returns an object-property. This requires an hash with a list value for each frame.

Returns an object-property. This requires an hash with a list
value for each frame.
raw docstring

object-someclj

(object-some property & clazzes)
(object-some ontology property & clazzes)

Returns an OWL some values from restriction.

Returns an OWL some values from restriction.
raw docstring

object-some-onlyclj

(object-some-only o property & classes)

Returns an restriction combines the OWL some values from and all values from restrictions.

Returns an restriction combines the OWL some values from and
all values from restrictions.
raw docstring

oneofcljmultimethod

Returns a one-of restriction to the arguments of individuals or data ranges.

Returns a one-of restriction to the arguments of individuals or
data ranges.
raw docstring

onlycljmultimethod

Returns a universal rescriction with another class or data range.

Returns a universal rescriction with another class or data range.
raw docstring

ontologyclj

(ontology & args)

ontology-explicitclj

(ontology-explicit options)

Returns a new ontology. See 'defontology' for full description.

Returns a new ontology. See 'defontology' for full description.
raw docstring

ontology-for-namespaceclj

Map between namespaces and ontologies

Map between namespaces and ontologies
raw docstring

ontology-optionsclj

(ontology-options o)

Returns the ontology options for 'ontology' or the current-ontology

Returns the ontology options for 'ontology'
or the current-ontology
raw docstring

ontology-options-atomclj

Ontology options. A map on a atom for each ontology

Ontology options. A map on a atom for each ontology
raw docstring

ontology-to-namespaceclj

(ontology-to-namespace o)
(ontology-to-namespace ns o)

Sets the current ontology as defined by `defontology'

Sets the current ontology as defined by `defontology'
raw docstring

owl-andcljmultimethod

Returns an intersection restriction to all of the arguments.

Returns an intersection restriction to all of the arguments.
raw docstring

owl-classclj

(owl-class o name & frames)

Creates a new class in the current ontology. See 'defclass' for full details.

Creates a new class in the current ontology. See 'defclass' for
full details.
raw docstring

owl-class-explicitclj

(owl-class-explicit o name frames)

Creates a class in the current ontology. Frames is a map, keyed on the frame name, value a list of items (of other lists) containing classes. This function has a rigid syntax, and the more flexible 'owl-class' is normally preferred. However, this function should be slightly faster.

Creates a class in the current ontology.
Frames is a map, keyed on the frame name, value a list of items (of other
lists) containing classes. This function has a rigid syntax, and the more
flexible 'owl-class' is normally preferred. However, this function should be
slightly faster.
raw docstring

owl-commentclj

Return an OWL comment annotation

Return an OWL comment annotation
raw docstring

owl-comment-propertyclj


owl-data-factoryclj

(owl-data-factory)

Returns the main factory for all other objects.

Returns the main factory for all other objects.
raw docstring

owl-importclj

(owl-import o)
(owl-import ontology-into o)

Adds a new import to the current ontology. o may be an ontology or an IRI

Adds a new import to the current ontology. o may be an
ontology or an IRI
raw docstring

owl-maxclj

(owl-max to)

Returns a data max exclusion restriction.

Returns a data max exclusion restriction.
raw docstring

owl-minclj

(owl-min from)

Returns a data min exclusion restriction.

Returns a data min exclusion restriction.
raw docstring

owl-notclj

(owl-not o entity)
(owl-not o property entity)

Returns a complement of restriction or negative property assertion axiom.

Returns a complement of restriction or negative property assertion axiom.
raw docstring

owl-nothingclj

(owl-nothing)

Returns OWL nothing.

Returns OWL nothing.
raw docstring

owl-onlyclj


owl-ontology-managerclj

(owl-ontology-manager)

The single OWLOntologyManager used by Tawny.

The single OWLOntologyManager used by Tawny.
raw docstring

owl-orcljmultimethod

Returns an union restriction to all of the arguments.

Returns an union restriction to all of the arguments.
raw docstring

owl-somecljmultimethod

Returns an existential restriction with another class or a data range.

Returns an existential restriction with another class or a data range.
raw docstring

owl-thingclj

(owl-thing)

Returns OWL thing.

Returns OWL thing.
raw docstring

owl2datatypesclj

A map of keywords to the OWL2Datatypes values

A map of keywords to the OWL2Datatypes values
raw docstring

re-annotateclj

(re-annotate entity annotated)

Returns a Annotated with the entity and the same annotations as annotated.

This is generally intended to transfer annotations after, for example, the entity has been derived from the existing entity. So, we might want to replace an IRI with an OWLObject, but the same annotations.

Returns a Annotated with the entity and the same annotations as annotated.

This is generally intended to transfer annotations after, for example, the
entity has been derived from the existing entity. So, we might want to
replace an IRI with an OWLObject, but the same annotations.
raw docstring

refinecljmultimethod

Takes an existing definition, adds it to the current ontology, and then adds more frames. owlentity is the OWLEntity to be refined, and frames are the additional frames. The keys to the frames must be appropriate for the type of entity. See 'owl-class' or 'object-property' for more details.

This is useful for two main reasons. First, to build class definitions in two places and add frames in both of these places. For simple forward declaration 'declare-classes' is better. The second is where the same class needs to appear in two ontologies, but with more axioms in the second. This can enable, for example, building two interlocking ontologies with different OWL profiles.

Takes an existing definition, adds it to the current ontology, and then
adds more frames. owlentity is the OWLEntity to be refined, and frames are the
additional frames. The keys to the frames must be appropriate for the type of
entity. See 'owl-class' or 'object-property' for more details.

This is useful for two main reasons. First, to build class definitions in two
places and add frames in both of these places. For simple forward declaration
'declare-classes' is better. The second is where the same class needs to
appear in two ontologies, but with more axioms in the second. This can enable,
for example, building two interlocking ontologies with different OWL profiles.
raw docstring

remove-axiomclj

(remove-axiom o & axiom-list)

Removes a list of axioms from the given ontology, or the current one.

Removes a list of axioms from the given ontology, or the current one.
raw docstring

remove-entityclj

(remove-entity o entity)

Remove from the ontology an entity created and added by owl-class, defclass, object-property or defoproperty. Entity is the value returned by these functions.

This removes all the axioms that were added. So, for example, a form such as

(defclass a :subclass b :equivalent c)

adds three axioms -- it declares a, makes it a subclass of b, and equivalent of c.

Remove from the ontology an entity created and added by
owl-class, defclass, object-property or defoproperty. Entity is the value
returned by these functions.

This removes all the axioms that were added. So, for example, a form such as

   (defclass a
      :subclass b
      :equivalent c)

adds three axioms -- it declares a, makes it a subclass of b, and equivalent
of c.
raw docstring

remove-ontology-hookclj

Hook called immediately after an ontology is removed from the owl-ontology-manager.

Hook called immediately after an ontology is removed from the
owl-ontology-manager.
raw docstring

remove-ontology-maybeclj

(remove-ontology-maybe ontologyid)

Removes the ontology with the given ID from the manager. This calls the relevant hooks, so is better than direct use of the OWL API.

Removes the ontology with the given ID from the manager.
This calls the relevant hooks, so is better than direct use of the OWL API. 
raw docstring

run-intern-hookclj

(run-intern-hook var)

Run intern-owl-entity hooks and return first argument.

Run intern-owl-entity hooks and return first argument.
raw docstring

save-ontologyclj

(save-ontology o filename)
(save-ontology o filename format)
(save-ontology o filename format prepend)

Save the current 'ontology' in the file or `filename' if given. If no ontology is given, use the current-ontology

Save the current 'ontology' in the file or `filename' if given.
If no ontology is given, use the current-ontology
raw docstring

see-alsoclj

Returns a see-also annotation.

Returns a see-also annotation.
raw docstring

see-also-propertyclj


some-onlycljmultimethod

Returns a list containing existential restrictions to each of the arguments, and universal relationship to the union of each of the arguments.

Returns a list containing existential restrictions to each of the arguments,
and universal relationship to the union of each of the arguments.
raw docstring

spanclj/smacro

(span comparitor & args)

Returns a numeric datatype restriction, identified by symbol. For example, (span < 10) returns a max exclusive restriction.

Returns a numeric datatype restriction, identified by symbol.
For example, (span < 10) returns a max exclusive restriction.
raw docstring

subclass?clj

(subclass? o name subclass)

Returns true if name has subclass as a subclass.

Returns true if name has subclass as a subclass.
raw docstring

subclassesclj

(subclasses o class)

Return all subclasses of class.

Return all subclasses of class.
raw docstring

subpropertiesclj

(subproperties o property)

Returns all subproperties of property.

Returns all subproperties of property.
raw docstring

subproperty?clj

(subproperty? o property subproperty)

Returns true if property is a subproperty of subproperty.

Returns true if property is a subproperty of subproperty.
raw docstring

superclass?clj

(superclass? o name superclass)

Returns true if name is asserted to be a superclass.

Returns true if name is asserted to be a superclass.
raw docstring

superclassesclj

(superclasses o class)

Return all superclasses of class. class is not returned unless it is explicitly stated to be a direct or indirect superclass of itself.

Return all superclasses of class.
class is not returned unless it is explicitly stated to be a
direct or indirect superclass of itself.
raw docstring

superpropertiesclj

(superproperties o property)

Return all superproperties of a property.

Return all superproperties of a property.
raw docstring

superproperty?clj

(superproperty? o property superproperty)

Return true if superproperty is a superproperty of property.

Return true if superproperty is a superproperty of property.
raw docstring

version-infoclj

Returns a version info annotation.

Returns a version info annotation.
raw docstring

version-info-propertyclj


with-optional-classclj/smacro

(with-optional-class o n form)

Calls form as is, or adds n to it iff n is not nil. n is evaluated only once, so can have side effects.

Calls form as is, or adds n to it iff n is not nil.
n is evaluated only once, so can have side effects.
raw docstring

with-prefixclj/smacro

(with-prefix prefix & body)

Adds a prefix to all defclass macros in scope. This is a convenience macro and is lexically scoped.

Adds a prefix to all defclass macros in scope.
This is a convenience macro and is lexically scoped.
raw docstring

with-probe-axiomsclj/smacro

(with-probe-axioms & args)

Evaluate the body with a number of axioms. Then delete these axioms from the ontology.

This is mostly useful for test cases. Axioms can be added, consistency or inconsistency can be checked then removed, leaving the ontology effectively unchanged.

Evaluate the body with a number of axioms. Then
delete these axioms from the ontology.

This is mostly useful for test cases. Axioms can be added, consistency
or inconsistency can be checked then removed, leaving the ontology
effectively unchanged.
raw docstring

with-probe-entitiesclj/smacro

(with-probe-entities bindings & body)
(with-probe-entities ontology bindings & body)

Evaluate BODY with a number of entities defined. Then delete these entities from the ontology. BINDINGS are a vector with similar to let. The first argument should evaluate to the ontology, or the current ontology will be used. Statements inside bindings are evaluated with the current-ontology set to ONTOLOGY. Entities added to ONTOLOGY are removed from ONTOLOGY; so if they are added to a different ontology explicitly, they will remain there after the completion of this form.

Evaluate BODY with a number of entities defined. Then delete these entities
from the ontology. BINDINGS are a vector with similar to let. The first
argument should evaluate to the ontology, or the current ontology will be
used. Statements inside bindings are evaluated with the current-ontology set
to ONTOLOGY. Entities added to ONTOLOGY are removed from ONTOLOGY; so if
they are added to a different ontology explicitly, they will remain there
after the completion of this form.
raw docstring

with-suffixclj/smacro

(with-suffix suffix & body)

Adds a suffix to all defclass macros in scope. This is a convenience macro and is lexically scoped.

Adds a suffix to all defclass macros in scope.
This is a convenience macro and is lexically scoped.
raw docstring

||clj

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close