Netscape's rdf querying language

  • Guha, R. V. ; O. Lassila, E. Miller, and D. Brickley. Enabling inferencing. In The W3C Query Languages Workshop, 1998 view details External link: Online copy
  • Guha, R. V. RDFDB query language view details External link: Online copy External link: Backup copy at Internet Archive Abstract: rdfDB Query Language
    rdfDB uses a high level SQLish query language. The data is modelled as a directed labelled graph (RDF). Nodes in graph can be
    Resources : Every Resource is identified by a URI (e.g., foo, http://dmoz.org/#Top). Resources are written as URIs. The Resource whose URI is mailto:guha@guha.com is referred to (in the query language) as mailto:guha@guha.com.
    Integers. Integers are written as such (e.g., 42, 9, 18).
    Strings : Strings are UTF8, enclosed by single parens ('). e.g., 'foo', 'foo bar'
    Other datatypes such as floats and dates are coming soon.
    All operations revolve around the concept of a "triple". A triple is intended to model the concept of a object with a property value. It consists of

    The arc label (a Resource).
    The object (a Resource).
    The property value (any data type).
    The triple is written using the predicate logic syntax : ( ).

    A collection of triples forms a database. There are no constraints on the set of triples that constitutes the database. (Some other RDF implementation refer to the concept of database as a "model").

    Database Operations are divided into the following categories:

    Database Creation
    (Un)Loading files into a database
    Namespace prefix commands
    (Un)Inserting Triples into a database
    Querying a database
    Database Creation
    Create database [database_name]
    e.g., create database dmoz

    Drop database [database_name]
    e.g., drop database foo

    Result Codes :
    0 : success
    -10 : database could not be deleted. Most likely cause is that the file permissions were wrong. Make sure that rdfDB is allowed to write into the directory RDFDB_DIR. There is no return value.