Liking cljdoc? Tell your friends :D

tawny.pattern


as-facetclj

(as-facet oprop & entities)
(as-facet o oprop & entities)
source

cgemclj

Return a class defined by some closed property restrictions.

As owl-class but also accepts a :facet frame value. Classes will be replaced with a existential restrictions with a closure axioms.

All values of :facet frame must be from the same facet, as the class will be closed with these facets.

See also gem.

Return a class defined by some closed property restrictions.

As `owl-class` but also accepts a `:facet` frame value. Classes will
be replaced with a existential restrictions with a closure axioms.

All values of `:facet` frame must be from the same facet, as the
class will be closed with these facets.

See also `gem`.
sourceraw docstring

cgem-explicitclj

(cgem-explicit o clazz frames)

Return a class defined by some closed property restrictions.

As owl-class-explicit but also accepts a :facet frame value. Classes will be replaced with a existential restrictions with a closure axioms.

All values of :facet frame must be from the same facet, as the class will be closed with these facets.

See also gem-explicit.

Return a class defined by some closed property restrictions.

As `owl-class-explicit` but also accepts a `:facet` frame
value. Classes will be replaced with a existential restrictions with
a closure axioms.

All values of `:facet` frame must be from the same facet, as the
class will be closed with these facets.

See also `gem-explicit`.
sourceraw docstring

defcgemcljmacro

(defcgem entity & frames)

Define a new class with some closed properties.

As defclass with an added :facet frame. Classes will be replaced with existential restrictions with a closure axiom.

See also defgem.

Define a new class with some closed properties.

As `defclass` with an added `:facet` frame. Classes will be
replaced with existential restrictions with a closure axiom.

See also `defgem`.
sourceraw docstring

defgemcljmacro

(defgem entity & frames)

Defines a new class with some property restrictions.

As defclass with an added :facet frame. Each class in the facet will be replaced with an existential restriction using its relevant facet property.

Defines a new class with some property restrictions.

As `defclass` with an added `:facet` frame. Each class in the facet
will be replaced with an existential restriction using its relevant
facet property.
sourceraw docstring

defpartitioncljmacro

(defpartition partition-name partition-values & options)

As value-partition but accepts symbols instead of string and takes the ontology as a frame rather than first argument.

As `value-partition` but accepts symbols instead of string and takes the
ontology as a frame rather than first argument.
sourceraw docstring

deftiercljmacro

(deftier tier-name tier-values & options)
source

extend-frameifyclj

(extend-frameify super-framed extended-explicit extended-keys)

Extend an existing frameify function with more frames.

super-framed is the existing function created by frameify.

extended-explicit is a function which should accept three values: the ontology, the entity created by super-framed and the frames as a map.

As with frameify, the returned function only accepts relevant frames and throws an exception otherwise.

Extend an existing `frameify` function with more frames.

`super-framed` is the existing function created by `frameify`.

`extended-explicit` is a function which should accept three values: the
ontology, the entity created by `super-framed` and the frames as a map.

As with `frameify`, the returned function only accepts relevant frames and
throws an exception otherwise.
sourceraw docstring

extract-ontology-argclj

(extract-ontology-arg args)

Give a set of frame arguments, return a map with the ontology frame and all the other arguments without the ontology frame.

Give a set of frame arguments, return a map with the ontology frame and all
the other arguments without the ontology frame.
sourceraw docstring

facetclj

(facet & clazz)
(facet o & clazz)

Return an existential restriction for each of the facetted classes.

Return an existential restriction for each of the facetted classes.
sourceraw docstring

facet-closedclj

(facet-closed & clazz)
(facet-closed o & clazz)
source

facetvalueclj

source

gemclj

Return a class with some property restrictions.

As owl-class but also accepts a :facet frame value. Each class in the facet will be replaced with an existential restriction using its relevant facet property.

See also cgem which returns closed values.

Return a class with some property restrictions.

As `owl-class` but also accepts a `:facet` frame
value. Each class in the facet will be replaced with an existential
restriction using its relevant facet property.

See also `cgem` which returns closed values.
sourceraw docstring

gem-explicitclj

(gem-explicit o clazz frames)

Return a class with some property restrictions.

As owl-class-explicit but also accepts a :facet frame value. Each class in the facet will be replaced with an existential restriction using its relevant facet property.

See also cgem which returns closed values.

Return a class with some property restrictions.

As `owl-class-explicit` but also accepts a `:facet` frame
value. Each class in the facet will be replaced with an existential
restriction using its relevant facet property.

See also `cgem` which returns closed values.
sourceraw docstring

inpatternclj

source

intern-owl-entitiesclj

(intern-owl-entities entities)

Given a list of vectors of form [name entity], as returned by the p function, intern all the entities in the current namespace.

Given a list of vectors of form [name entity], as returned by the p
function, intern all the entities in the current namespace.
sourceraw docstring

Namedclj

source

pclj

(p entity-f o name & options)

Call the frame function entity-f but remove any nil arguments and the entire frames which only have nil arguments. Returns a vector of the name and the entity created, a form suitable for feeding to intern-owl-entities is necessary.

Call the frame function entity-f but remove any nil arguments and the
entire frames which only have nil arguments. Returns a vector of the name
and the entity created, a form suitable for feeding to intern-owl-entities
is necessary.
sourceraw docstring

partition-valuesclj

source

patternclj

source

pattern-annotationsclj

(pattern-annotations entity)
(pattern-annotations o entity)

Returns pattern annotations of ENTITY or the empty list.

Returns pattern annotations of ENTITY or the empty list.
sourceraw docstring

pattern-annotatorclj

(pattern-annotator entities)
(pattern-annotator o entities)
(pattern-annotator o entities name)

Annotates all ENTITIES as part of a pattern.

This associated each entity with an anonymous individual. The individual is cached based on NAME or the .toString of the first entity. This is an attempt to make the function relatively idempotent, rather than just adding a new annotation each time.

Annotates all ENTITIES as part of a pattern.

This associated each entity with an anonymous individual. The individual is
cached based on NAME or the .toString of the first entity. This is an
attempt to make the function relatively idempotent, rather than just adding
a new annotation each time.
sourceraw docstring

pattern-entitiesclj

(pattern-entities pattern)
(pattern-entities o pattern)

Return all entites that are in pattern annotated with PATTERN, an anonymous invididual.

Return all entites that are in pattern annotated with PATTERN,
an anonymous invididual.
sourceraw docstring

pattern-generatorclj

(pattern-generator pattern-function args)

Macro generator function. Returns a form where args has the ontology frame removed and placed as the first arg, which is passed to the pattern-function, whose return values are interned.

Macro generator function. Returns a form where args has the ontology frame
removed and placed as the first arg, which is passed to the pattern-function,
whose return values are interned.
sourceraw docstring

pattern-irisclj

(pattern-iris pattern)
(pattern-iris o pattern)

Return all IRIs that are in pattern annotated with PATTERN, an anonymous invididual.

Return all IRIs that are in pattern annotated with PATTERN,
an anonymous invididual.
sourceraw docstring

shared-patternclj

(shared-pattern & entities)
(shared-pattern o & entities)

Return the OWLAnonymousIndividual(s) describing the pattern(s) to which all ENTITIES belong.

Return the OWLAnonymousIndividual(s) describing the pattern(s)
to which all ENTITIES belong.
sourceraw docstring

tierclj

(tier tier-name
      tier-values
      &
      {:keys [comment super domain disjoint cover functional prefix suffix
              property superproperty]
       :or {disjoint true
            cover true
            functional true
            prefix false
            suffix false
            property true
            superproperty false}})
(tier o
      tier-name
      tier-values
      &
      {:keys [comment super domain disjoint cover functional prefix suffix
              property superproperty]
       :or {disjoint true
            cover true
            functional true
            prefix false
            suffix false
            property true
            superproperty false}})

Return the entities for a new tier.

A tier is an entire level in the hierarchy.

TIER-NAME is the overall name for the partition.

TIER-VALUES is a sequence of the values. The values can either be strings representing the name of the value. Or a vector, the head of which is the name, and all the other values are additional frames to be passed to tawny.owl/owl-class.

In addition an tawny.owl/object-property is created, forming its name from the tier-name.

Keyword arguments are:

:comment for a comment to attach to all entities. :super the superclass of the partition. :domain is the domain for the object property. :disjoint (default: true) if the tier values should be disjoint. :cover (default: true) if the tier values should cover the tier. :functional (default: true) if the object-property should be functional.

:prefix (default: false) :suffix (default: false)

if true, use the tier name as a prefix or suffix, if a string use this, if a keyword, use the name of the keyword.

:property

if false, do not create a property.

if true, derive the property name from the tier name, else explicitly name the property, either as a string or keyword.

This returns a list of entity vectors created by the p function.

Return the entities for a new tier.

A tier is an entire level in the hierarchy.

TIER-NAME is the overall name for the partition.

TIER-VALUES is a sequence of the values. The values can either be strings
representing the name of the value. Or a vector, the head of which is the
name, and all the other values are additional frames to be passed to
`tawny.owl/owl-class`.

In addition an `tawny.owl/object-property` is created, forming its name from
the tier-name.

Keyword arguments are:

:comment for a comment to attach to all entities.
:super the superclass of the partition.
:domain is the domain for the object property.
:disjoint (default: true) if the tier values should be disjoint.
:cover (default: true) if the tier values should cover the tier.
:functional (default: true) if the object-property should be functional.

:prefix (default: false)
:suffix (default: false)

if true, use the tier name as a prefix or suffix, if a string use this, if a
keyword, use the name of the keyword.

:property

if false, do not create a property.

if true, derive the property name from the tier name, else explicitly
name the property, either as a string or keyword.

This returns a list of entity vectors created by the p function.
sourceraw docstring

tier-valuesclj

(tier-values p)
(tier-values o p)

Given a value partition return the values. O is the Ontology, P the value partition.

Given a value partition return the values.
O is the Ontology, P the value partition.
sourceraw docstring

value-partitionclj

(value-partition partition-name
                 partition-values
                 &
                 {:keys [comment super domain]})
(value-partition o
                 partition-name
                 partition-values
                 &
                 {:keys [comment super domain]})

Return the entities for a new value partition.

PARTITION-NAME is the overall name for the partition.

PARTITION-VALUES is a sequence of the values. The values can either be strings representing the name of the value. Or a vector, the head of which is the name, and all the other values are additional frames to be passed to tawny.owl/owl-class.

Keyword arguments are :comment for a comment to attach to all entities. :super the superclass of the partition. :domain is the domain for the object property.

This returns a list of entity vectors created by the p function.

value-partition is a specific version of tier and is designed to represent a continuous range ontologically, by splitting it into discrete bins: the colours of the rainbow would be an example.

Return the entities for a new value partition.

PARTITION-NAME is the overall name for the partition.

PARTITION-VALUES is a sequence of the values. The values can either be strings
representing the name of the value. Or a vector, the head of which is the
name, and all the other values are additional frames to be passed to
`tawny.owl/owl-class`.

Keyword arguments are :comment for a comment to attach to
all entities.
:super the superclass of the partition.
:domain is the domain for the object property.

This returns a list of entity vectors created by the p function.

`value-partition` is a specific version of `tier` and is designed to represent
a continuous range ontologically, by splitting it into discrete bins: the
colours of the rainbow would be an example.
sourceraw docstring

which-patternclj

(which-pattern entity)
(which-pattern o entity)

Returns the OWLAnonymousIndividual(s) describing the pattern(s) which ENTITY is part of.

Returns the OWLAnonymousIndividual(s) describing the pattern(s)
which ENTITY is part of.
sourceraw docstring

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

× close