DB Connection
- Database URL: Enter the database URL. The
format is:
<postgreSQL server>:<port>/<dbname>
postgreSQL server: The machine where postgreSQL server is running. port:
The port where postgreSQL server is running. dbname: the name of the
database where the RDF descriptions will be stored, e.g.,a complete
database URL is
athena.ics.forth.gr:8080/testdb
- Authentication: Enter the login and password
of your postgreSQL account. If you don't have a postgreSQL account ask
postgreSQL administrator to create one.
- Customize Loading
RSSDB supports two
alternative database representations for the storage of RDF descriptions. You
can choose the database representation as long as your db has not been
populated.
- Schema Specific Representation: Creates a
table for every RDF class or property
- Schema Specific Without Subtable: Similar to
Schema Specific Representation however no subtable relation is declared
between the tables. It is not recommended for postgreSQL databases.
- Unique Class Instance Table: Creates a unique
table for all RDF classes and a property table for each property type.
- DB-Based Validation*
- Load Schema
By choosing on of the
following two options, the schema descriptions** of the input namespace****
will be validated, and if they are valid, they will be stored in the db.
- New: Choose this option if the input
namespace is a new one. If the input namespace has already been stored no
action will be performed.
- Changes to Persistent Schema: Choose this
option in case the input namespace has already been stored.
Updates
made on the schema will be reported and if all of them are consistent
(e.g., refinements to stored classes/properties) they will be
stored.
In case the input namespace has not already been stored this
option is equivalent to the 'New' one.
- Load Data
By choosing one of the following
two options, the data descriptions*** of the input namespace will be
validated and, if they are valid, they will be stored.
- New (allow redundancies): Use this option in
case the data descriptions have not already been loaded in the db.
Otherwise, redundant information may be stored since no check for
redundancies will be performed. For example, a resource classified two
times in the same class or a resource classifed both in a class and a
superclass of it.
- Changes to Persistent Data: Use this option
if you want:
- The validation of the descriptions to be based both in the input
data descriptions and the stored ones. For instance, you will be able to
add a property to a resource without classifying it to the domain of the
property, if this information is already stored. Note that descriptions
that are not valid if the New option is selected, if this option
is used they may be considered as valid.
- Checks to be made in order to avoid the storage of redundant
information in the db.
Use the
option 'New (allow redundancies)' instead of the option 'Changes to
Persistent Data' whenever possible. It takes smaller validation &
storage time.
Note that both schema & data
contained in the input are stored in a unique transaction.
If an error
occurs during the loading the whole transaction will be aborted thus no
description will be stored.
- STORE RDF - STORE THES - CLEAR - EXIT Buttons
- STORE RDF: Starts the validation and storage
- STORE THES: Starts the storage of the
thesaurus
- CLEAR: Clears the Output Area of the GUI
- EXIT: Closes the application
The following two dialogs are displayed during the storage
process:
- DB Settings Dialog
This dialog appears only
for newly created dbs.
Attention: you can set
the following values as long as your db has not been populated.
- Max URI Length: Enter the maximum length of
the URI of a resource
- Max literal length: Enter the maximum length
of a literal value
- Max Namespace Length: Enter the maximum length
of a namespace URI
- Max Lpart Length: Enter the maximum length of
a class or property name (e.g., Artist)
- Schema Namespace URI
Type the namespace you wish
to be stored in the db for the input file/thesaurus or leave it empty if you
want to remain as it is.
Note:
The data files that use the schema defined in this file should use the new
namespace value in the Namespace declaration part.
* The schemas used in the
descriptions of the input RDF file should already have been stored.
Schemas URIs should include the complete filename of
the RDF file, with the extension (e.g. .rdf, .rdfs) if any. For example,
**
Schema descriptions are:
- Class/Property declarations (i.e., statements having predicate the
property rdf:type and object the class rdfs:Class/rdf:Property)
- SubClass/SubProperty declarations (i.e., statements having predicate the
property rdfs:subClassOf/rdfssubPropertyOf)
- Domain/Range declarations (i.e., statements having predicate the property
rdfs:subClassOf/rdfs:subPropertyOf)
*** Data descriptions are all the
RDF descriptions excluding the schema ones. For example:
- The classification of a resource in a schema class (e.g., picasso,
rdf:type, Cubist)
- Adding a property to a resource (e.g., picasso, paints, guernica)
**** The namespace can be a local file or a URL.
Output Options
The default output of RSSDB
reports:
- Whether the file is valid or not
- Whether the file was stored or not
- In case of errors the corresponding diagnostic messages
- The updates made on schema, if the input option Changes to Persistent
Schema is selected
Additionally we can choose among the following
options
- Verbose: Messages about the actions performed by
the RSSDB and the descriptions which have been stored will be reported.
- Statistics Options :
- Model: Prints the number of triples
- Number of schema and data resources: Prints the number of triples,
classes, properties, containers, statements and resources found in the
file
- SubClass Hierarchy: we consider three types of class hierarchies, i.e,
the schema class hierachy, the metaclass of classes hierarchy and the
metaclass of properties hierararchy whose root are the classes rdfs:Resource,
rdfs:Class and rdf:Property respectively. For each class
hierachy, it prints the number of classes contained, the average/maximum
number of direct subclasses, the average/maximum number of direct
superclasses, the average/maximum length of the paths in the hierarchy
and the distribution of the ancestors and descendants. More precisely
the ancestors/descendants distribution depicts how many classes have x
ancestors/descendants - ancestors/descendants of a class are considered
all the classes found above/below this class in the hierarchy (not only
the direct classes).
- SubProperty Hierarchy: It reports statistics about the hierarchy of
(schema) properties. Note that in RDF it is not defined a root for the
property hierachy so we consider as root a dump property. The
characteristics that are reported are similar to 'SubClass Hierarchy'.
- Instances Distribution: Prints how many classes have x
instances
- Time: Prints the time consumed for
- parsing
- validating the schema
- finding the updates in the schema
- validating the data
- storing schema & data
- Complete (only) the following RSSDB panels
- Input/Output File
- DB Connection
- Press the button STORE THES
Thesaurus file should conform to the
CWTH DTD, see a thesaurus example.
We stored the values of the elements NarrowerTerms
and PartOfTerms. The other elements are ingored. The elements NarrowerTerms and PartOfTerms must not be mixed in the same thesaurus.
The example TestRSSDBAPI.java shows
how you can use RSSDB APIs.
Take a look at the methods provided for SpecReprDBStorage
and SpecReprVar1DBStorage
classes.
Last modified: January 20, 2006