-;;; rdfdb.el --- interface to RDF triple data model
+;;; rdfdb.el --- elisp implementation of RDF triple database
;; Copyright (C) 2004 Daiki Ueno
;; Author: Daiki Ueno <ueno@unixuser.org>
-;; Keywords: RDF
+;; Keywords: RDF, database, N-Triples
;; This file is part of the Lovely Sister Database.
;;; Commentary:
-;;; This module provides an interface to RDF triple data model.
+;;; This module provides access to RDF triple data model.
;;; NOTE: The integration with LSDB is not yet complete.
;;; Code:
;;;###autoload
(defun rdfdb-load-database (database file)
- "Load DATABASE from FILE."
+ "Load DATABASE from FILE.
+It is assumed that triples saved in FILE is in the \"modified\"
+N-Triples format which allows non-ASCII characters in literal object."
(let ((buffer (find-file-noselect file))
(urlref-regexp "<\\([\x21-\x3B\x3D\x3F-\x7E]+\\)>")
(named-node-regexp "_:\\([A-Za-z][A-Za-z0-9]*\\)")
(kill-buffer buffer))))
(defun rdfdb-save-database (database file)
- "Save DATABASE to FILE."
+ "Save DATABASE to FILE.
+DATABASE is saved in the \"modified\" N-Triples format which allows
+non-ASCII characters in literal object."
(let ((coding-system-for-write rdfdb-file-coding-system)
(triple-list (sort (rdfdb-database-triple-list database)
#'rdfdb-triple-lessp))