Changeset 340 for trunk/src/model


Ignore:
Timestamp:
11/17/10 21:41:59 (14 years ago)
Author:
lgiessmann
Message:

added a SPARQL-Query class with several accessor-methods. This class contains the actual query-string, some query-attributes and the result objects; started to implement a SPARQL-parser => currently the PREFIX parts can be processed; added some functions to base-tools

Location:
trunk/src/model
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/model/datamodel.lisp

    r337 r340  
    136136           :list-super-types
    137137           :in-topicmap
    138            :string-starts-with
    139138           :get-fragments
    140139           :get-fragment
     
    883882(defmethod internal-id ((construct TopicMapConstructC))
    884883  (slot-value construct (find-symbol "OID" 'elephant)))
    885 
    886 
    887 (defun string-starts-with (str prefix)
    888   "Checks if string str starts with a given prefix."
    889   (declare (string str prefix))
    890   (string= str prefix :start1 0 :end1
    891            (min (length prefix)
    892                 (length str))))
    893884
    894885
  • TabularUnified trunk/src/model/exceptions.lisp

    r335 r340  
    1818           :missing-argument-error
    1919           :tm-reference-error
    20            :bad-type-error))
     20           :bad-type-error
     21           :missing-query-string-error
     22           :sparql-parser-error))
    2123
    2224(in-package :exceptions)
     25
     26
     27(define-condition missing-query-string-error(error)
     28  ((message
     29    :initarg :message
     30    :accessor message)))
     31
     32
     33(define-condition sparql-parser-error(error)
     34  ((message
     35    :initarg :message
     36    :accessor message)))
     37
    2338
    2439(define-condition inconsistent-file-error(error)
Note: See TracChangeset for help on using the changeset viewer.