Skip to content
timrdf edited this page Feb 23, 2012 · 18 revisions

utils/lodspk.sh provides a series of functionalities that makes easier for developers to create components in LODSPeaKr. The syntax for using lospk.sh from the lodspeakr/ directory is:

$ utils/lodspk.sh function parameter

Current functions are:

  • create uri, type or service components.
    • utils/lodspk.sh create uri local:myUri
    • utils/lodspk.sh create type foaf:Person
    • utils/lodspk.sh create service myService
  • delete uri, type or service component.
    • utils/lodspk.sh delete uri local:myUri
    • utils/lodspk.sh delete type foaf:Person
    • utils/lodspk.sh delete service myService
  • debug turns debug output (in apache logs as well as in the browser) on and off:
    • utils/lodspk.sh debug on
    • utils/lodspk.sh debug off
  • disable Disables all the URI components and uses Type components only serving the rdfs:Resource model and view
    • utils/lodspk.sh disable on
    • utils/lodspk.sh disable off
  • backup Creates a backup of settings.inc.php, models/ and views/ directories in $HOME/lodspeakr_backup
    • utils/lodspk.sh backup
  • backup Restores a previoulsy existing backup form $HOME/lodspeakr_backup/
    • utils/lodspk.sh restore
Clone this wiki locally