Package-level declarations

Types

Link copied to clipboard

A JVM-only TheoryDeserializer that can also read a Theory directly from a java.io.Reader, e.g. to load a knowledge base from a file or network stream without buffering it into a String first.

Link copied to clipboard

A Deobjectifier of Theory instances: rebuilds a Theory from a plain list following the same shape produced by TheoryObjectifier (a plain list of TermObjectifier-shaped clauses). Each element of the list is deobjectified with TermDeobjectifier and must, in turn, denote a clause. Used e.g. by a TheoryDeserializer after parsing a JSON/YAML/XML document into such a plain list.

Link copied to clipboard

A Deserializer of whole Theory instances, e.g. to reload a previously persisted knowledge base from disk, or to receive one sent by another process (or tool) as JSON, YAML, or XML. Internally, a TheoryDeserializer parses the input in the requested MimeType into a plain list and then reconstructs the Theory from it via TheoryDeobjectifier.

Link copied to clipboard

An Objectifier of Theory instances: since a Theory is itself an Iterable<it.unibo.tuprolog.core.Clause>, it is objectified as a plain list holding the TermObjectifier-produced representation of each of its clauses, in iteration order. This is what lets a TheorySerializer render a whole knowledge base as JSON, YAML, or XML.

Link copied to clipboard

A Serializer of whole Theory instances, e.g. to persist a knowledge base to disk or send it to another process (or tool, possibly written in another language) as JSON, YAML, or XML. Internally, a TheorySerializer objectifies the Theory via TheoryObjectifier (which in turn objectifies each it.unibo.tuprolog.core.Clause with TermObjectifier into a plain list) and then writes that list in the requested MimeType.

Link copied to clipboard

A JVM-only TheorySerializer that can also write a Theory directly to a java.io.Writer, e.g. to persist a knowledge base to a file or network stream without building the whole String in memory first.

Functions

Link copied to clipboard
Link copied to clipboard

Creates the platform-default TheoryDeserializer for mimeType. Backs TheoryDeserializer.of.

Creates the platform-default TheoryDeserializer for mimeType. Backs TheoryDeserializer.of.

Creates the platform-default TheoryDeserializer for mimeType. Backs TheoryDeserializer.of.

Link copied to clipboard

Creates the platform-default TheoryObjectifier. Backs TheoryObjectifier.default.

Creates the platform-default TheoryObjectifier. Backs TheoryObjectifier.default.

Creates the platform-default TheoryObjectifier. Backs TheoryObjectifier.default.

Link copied to clipboard

Creates the platform-default TheorySerializer for mimeType. Backs TheorySerializer.of.

Creates the platform-default TheorySerializer for mimeType. Backs TheorySerializer.of.

Creates the platform-default TheorySerializer for mimeType. Backs TheorySerializer.of.