API Docs for: 1.0.0
Show:

CORE.Utils Class

Static class that contains the utilities.

Item Index

Methods

createURI

(
  • name
  • domain
  • path
)

Generates URI for objects.

Parameters:

  • name String

    Name of the item which the URI will be created.

  • domain String

    Under what domain the URI will be created

  • path String

    The type of item.

Example:

console.log(createURI("People", "http://abc.com", "ontology")); //will output - http://abc.com/ontology/People

randomString

(
  • n
)

Creates a random string

Parameters:

  • n Integer

    The lenght of the random string to be created

stripDomain

(
  • domain
)

Converts the domain into the desired form

Parameters:

  • domain String

    Domain to be converted.