---
name: rdfdb
version: 0.46_3
origin: databases/rdfdb
comment: A lightweight RDF database
arch: freebsd:9:x86:64
www: http://www.guha.com/rdfdb/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 156163
desc: |
  R.V. Guha's rdfDB. Intended to be a simple, scalable, open-source
  database for RDF. Written in C and based on top of the Sleepycat
  Berkeley Database, it supports interrogation via TCP/IP sockets,
  meaning integration is possible with any programming language.

  rdfDB uses a high level SQLish query language. The data is modelled as
  a directed labelled graph (RDF).

  The goals of this project are to build a database that is capable of:

     1. Supporting a graph oriented API via a textual query language ala
        SQL.
     2. Load/Reload an RDF file from a url into the database
     3. Scalable to millions of nodes and triples.
     4. Provide support for RDF Schemas.
     5. Provide support for some basic forms of inferencing.
     6. Provide both C and Perl access to the database.
     7. The Perl philosophy applies : Simple things should be simple and
        complex things should be possible.

  WWW: http://www.guha.com/rdfdb/
deps:
  db4: {origin: databases/db4, version: '4.0.14_1,1'}
categories: [databases]
users: [rdfdb]
groups: [rdfdb]
files:
  /usr/local/bin/rdfdb: 3653d99c683017ca180a538653024969a27a6e2452672936a215ca1f95bd0633
  /usr/local/etc/rc.d/rdfdb-server.sh: 90d1462aa077ad40feb44bd00e1d760fd93fd9090d535fb3cd5b465937a2801b
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow rdfdb >/dev/null 2>&1; then  echo "Creating group 'rdfdb' with gid '55'.";  /usr/sbin/pw groupadd rdfdb -g 55; else echo "Using existing group 'rdfdb'."; fi
    if ! /usr/sbin/pw usershow rdfdb >/dev/null 2>&1; then  echo "Creating user 'rdfdb' with uid '55'.";  /usr/sbin/pw useradd rdfdb -u 55 -g 55  -c "rdfDB Daemon" -d /var/db/rdfdb -s /bin/sh;  else echo "Using existing user 'rdfdb'."; fi
    install -d -g 55 -o 55 /var/db/rdfdb
    mkdir -p %25RDFDB_DIR%25
  pre-deinstall: |
    if /usr/sbin/pw usershow rdfdb >/dev/null 2>&1; then  echo "==> You should manually remove the \"rdfdb\" user. "; fi
