From: ueno Date: Mon, 2 Feb 2004 13:18:35 +0000 (+0000) Subject: Fix comment. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc13bb901e0db3dd4ee617a82abd0a49bfa2f0ea;p=elisp%2Flsdb.git Fix comment. --- diff --git a/rdfdb.el b/rdfdb.el index 262072e..ee5fee8 100644 --- a/rdfdb.el +++ b/rdfdb.el @@ -1,9 +1,9 @@ -;;; rdfdb.el --- interface to RDF triple data model +;;; rdfdb.el --- elisp implementation of RDF triple database ;; Copyright (C) 2004 Daiki Ueno ;; Author: Daiki Ueno -;; Keywords: RDF +;; Keywords: RDF, database, N-Triples ;; This file is part of the Lovely Sister Database. @@ -24,7 +24,7 @@ ;;; 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: @@ -513,7 +513,9 @@ MATCHER is a triple whose slots can be nil (wildcard)." ;;;###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]*\\)") @@ -557,7 +559,9 @@ MATCHER is a triple whose slots can be nil (wildcard)." (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))