API Docs for: 1.0.0
Show:

API.Semant Class

Defined in: src/API/Semant.js:1

Base class of the API.

Methods

createOntology

(
  • name
  • domain
)
Ontology

Creates an ontology

Parameters:

  • name String

    Name of the ontology.

  • domain String

    Unique domain of the ontology.

Returns:

Ontology:

Returns the created Ontology object.

Throws:

CreateOntologyException:

Cannot create ontology.

Example:

var semantics = new Semant();
var people = semantics.createOntology("People", "http://ppl.com");

getDebug

() Boolean

Get debug mode

Returns:

Boolean:

Global debug value;

Example:

semantics.getDebug();

getVersion

() String

Get version

Returns:

String:

Version number;

Example:

semantics.getVersion();

setDebug

(
  • debug
)

Change debug mode

Parameters:

  • debug Boolean

    Set global debug value to this.

Example:

semantics.setDebug(true);

Properties

Export

Object

Export object

Default: Export Obj

occupiedDomains

Array

List of occupaid domains

Default: []

ontologies

Object

List of created ontologies

Default: {}