Liking cljdoc? Tell your friends :D

tawny.pattern


as-facetclj

(as-facet o oprop & entities)

defpartitionclj/smacro

(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.
raw 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.
raw docstring

facetclj

(facet o & clazz)

Return an existential restriction for each of the facetted classes.

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

facetvalueclj


inpatternclj


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.
raw docstring

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.
raw docstring

partition-valuesclj

(partition-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.
raw docstring

patternclj


pattern-annotationsclj

(pattern-annotations o entity)

Returns pattern annotations of ENTITY or the empty list.

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

pattern-annotatorclj

(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.
raw docstring

pattern-entitiesclj

(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.
raw 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.
raw docstring

pattern-irisclj

(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.
raw docstring

shared-patternclj

(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.
raw docstring

value-partitionclj

(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.

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.
raw docstring

which-patternclj

(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.
raw docstring

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

× close