Liking cljdoc? Tell your friends :D

naga.lang.pabu

Implements Pabu, which is a Prolog-like language for Naga. Parses code and returns Naga rules.

Implements Pabu, which is a Prolog-like language for Naga.  Parses code and returns Naga rules.
raw docstring

Argsclj/s


ast->axiomclj/s

(ast->axiom {axiom :axiom :as axiom-ast})

Inputs: [{axiom :axiom, :as axiom-ast} :- AxiomAST] Returns: Axiom

Converts the axiom structure returned from the parser

Inputs: [{axiom :axiom, :as axiom-ast} :- AxiomAST]
Returns: Axiom

Converts the axiom structure returned from the parser
raw docstring

ast->ruleclj/s

(ast->rule {:keys [head body] :as rule-ast})

Inputs: [{:keys [head body], :as rule-ast} :- RuleAST] Returns: Rule

Converts the rule structure returned from the parser

Inputs: [{:keys [head body], :as rule-ast} :- RuleAST]
Returns: Rule

Converts the rule structure returned from the parser
raw docstring

AxiomASTclj/s


builtin-labelsclj/s


builtinsclj/s


ExpressionPredicateclj/s


filter->stringclj/s

(filter->string [p])

Inputs: [[p] :- FilterPattern] Returns: s/Str

Inputs: [[p] :- FilterPattern]
Returns: s/Str
raw docstring

not-data-property?clj/s

(not-data-property? k)

Inputs: [k]

Inputs: [k]
raw docstring

pattern->stringclj/s

(pattern->string p)

Inputs: [p :- Pattern] Returns: s/Str

Inputs: [p :- Pattern]
Returns: s/Str
raw docstring

PatternPredicateclj/s


Predicateclj/s


predicate->stringclj/s

(predicate->string epv)

Inputs: [epv :- EPVPattern] Returns: s/Str

Inputs: [epv :- EPVPattern]
Returns: s/Str
raw docstring

property-namespacesclj/s

Set of namespaces that refer to data properties and never to functions

Set of namespaces that refer to data properties and never to functions
raw docstring

psclj/s

(ps e)

read-strclj/s

(read-str s)

Inputs: [s :- s/Str] Returns: {:rules [Rule], :axioms [Axiom]}

Reads a string

Inputs: [s :- s/Str]
Returns: {:rules [Rule], :axioms [Axiom]}

Reads a string
raw docstring

read-streamclj

(read-stream in)

Inputs: [in :- InputStream] Returns: Program

Reads a input stream

Inputs: [in :- InputStream]
Returns: Program

Reads a input stream
raw docstring

rule->strclj/s≠

clj
(rule->str rule)
(rule->str {:keys [head body name] :as rule} include-name?)
cljs
(rule->str G__9007)
(rule->str G__9011 G__9012)

Inputs: ([rule :- Rule] [{:keys [head body name], :as rule} :- Rule include-name? :- s/Bool]) Returns: s/Str

Creates a textual representation for the rule

Inputs: ([rule :- Rule] [{:keys [head body name], :as rule} :- Rule include-name? :- s/Bool])
Returns: s/Str

Creates a textual representation for the rule
raw docstring

RuleASTclj/s


structureclj/s

(structure ast-data)

Converts the AST for a structure into either a seq of triplets or predicates. Types are intentionally loose, since it's either a pair or a list.

Converts the AST for a structure into either a seq of triplets or predicates.
Types are intentionally loose, since it's either a pair or a list.
raw docstring

tripletclj/s

(triplet raw)

Inputs: [raw] Returns: Triple

Converts raw parsed predicate information into a single triple

Inputs: [raw]
Returns: Triple

Converts raw parsed predicate information into a single triple
raw docstring

tripletsclj/s

(triplets [property [s o :as args]])

Inputs: [[property [s o :as args]]] Returns: [Triple]

Converts raw parsed predicate information into a seq of triples

Inputs: [[property [s o :as args]]]
Returns: [Triple]

Converts raw parsed predicate information into a seq of triples
raw docstring

VKclj/s

Either a Variable or a Keyword

Either a Variable or a Keyword
raw docstring

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

× close