VRP Installation Instructions
RDFSuite
Overview
Download VRP
Documentation
Users
Installation
- Download the latest version of VRP (v3.0)
- Unzip and untar the package with command similar to
gtar -zxvf VRP_3.0.tar.gz
This will create the directory RDF_VRP3.0
which should contains the following:
- classes/ (directory) - Containing
the java classes of VRP.
- jars/ (directory) - Includes the vpr3.0.jar that contains all the java classes of
VRP, the xsdlib.jar and relaxngDatatype.jar
files of the Sun XML Datatypes Library and the libraries of the CUP
(0.10j) and JFlex (1.3.5) i.e., java_cup.jar
and JFlex.jar
- RDF_Examples/ (directory) -
Containing some valid RDF examples
- src/ (directory) - Containing all
java source files of VRP (including the JFlex and Cup source
files for RDF syntax).
- misc/ (directory) - Containing
scripts to recompile and to regenerate the jar file of this VRP version
into the jars folder (for UNIX and Windows). To run the scripts you
need to change the path settings inside. Additional it includes the
manifest file Manifest.mf which is included into the jar file of vrp
that can be found in the jars folder and a batch file to generate the
java documentation under windows called doc.bat.
- HowToUse.htm (file) - Contains the
installation & usage information
- runVRP.bat (file) - Executes VRP in
Windows Environment
- runVRP (file) - Executes VRP in
Windows Environment
- Changes.txt (file) - Contains
informations about the changes from one version of VRP to the next.
- .project and .classpath (file) -
Can be used to import the VRP project into Eclipse (open source) or
WebSphere Studio from IBM.
- To run VRP:
- In Windows environment
- Set the variables JAVA_HOME and VRP_HOME
found inside the script runVRP.bat
- Execute runVRP.bat
script e.g., double click on it
- In Unix environment
- Set the variables JAVA_HOME and VRP_HOME
found inside the runVRP script
- Execute runVRP script i.e.,
type source ./runVRP
Note1: To run VRP you need Java v1.4
Note2: If your RDF files are large, you should use the -mx parameter to increase the main memory Java can
allocate. See in runVRP scripts
Standalone Application Options
Input Options
- Input/Output File
- Select Input File: Select the
file or enter the URL you want to store (e.g.,
http://athena.ics.forth.gr:9090/RDF/VRP/Examples/cweb.rdf).
RDF files are found in the directory examples
of RDF_VRP. More examples are available online.
- Select Output file: Select a file
or enter a new file for saving VRP messages.
The output always appears in the text areas Results and Messages at the
bottom area of the window.
- Input Options
- Syntactic Validation: Checks if
the RDF/XML syntax of the input namespace* conforms to the updated RDF/XML syntax
proposed by W3C
- Semantic Validation: Verifies the
selected constraints derived from RDF Schema Specification (RDFS)
- Choose
Constraints:
You can select the semantic constraints that you want to be applied to
the descriptions
- Class Hierarchy Loops: No
loops are permitted in the subclass hierarchy
- Property Hierarchy Loops:
No loops are permitted in the subproperty hierarchy
- Domain/Range of SubProperties:
The domain/range of a property should be subset of the domain/range of
its superproperties.
Note: The constraint 'Property
Hierarchy Loops' will also be checked. Verification of the constraint
'Domain/Range of SubProperties' can be done as long as there is no loop
in the subproperty hierarchy
- Source/Target Resources of
properties: The source/target values of a property should be
instances of the domain/range classes of the property
- Types of Resources: The
resources used as RDF Classes, Properties, Containers and Statements
should have been assigned the respective RDF type. The XML Datatypes
values should belong to the lexical space
of the respective datatype.
- Extend Model with triples from:
- External
Namespaces: Connects to external (remote or local)** namespaces
declared in the namespace declaration part of the input
namespace.
The descriptions of the external namespaces will be also syntactically
analyzed.
Semantic validation will be done for the total of RDF descriptions,
i.e., both the descriptions of the input and the external namespaces.
Note: Remember to enable
this option if you want to validate the input descriptions against RDF
schemas declared in external namespaces.
- Type Inference: Infers
the type of resources (i.e., class, property, container or statement),
if it is not explicitly declared. For example, if the resource (r1) is
an instance of a subclass (C1) of the rdfs:Class, it will add in the
model the triple (rdf:type, r1, rdfs:Class) and it will cast the
resource to an class.
- Domain/Range Inference:
In case the domain/range of a property is undefined, the property will
inherit the domain/range of its superproperty.
If there are more than one superproperties, inheritance will not be
performed.
Note: The constraint
'Property Hierarchy Loops' will also be checked. Inference on
Domain/Range can be done as long as there is no loop in the subproperty
hierarchy
- Namespace Settings:
Opens a window to change the URLs of the RDF, RDF Schema and XML
Datatypes namespaces.
- START - CLEAR OUTPUT - EXIT
Buttons
Output Options
The default output of VRP
reports:
- Whether the file is valid or not
- In case of errors the corresponding diagnostic messages
Additionally we can choose among the following options
- Debug: The Lexer will print the token
names and token values it creates.
- Verbose: Messages about the actions
performed by the VRP will be reported.
- Triples: The triples produced by the
parser for the input RDF descriptions will be printed
- Statements: The triples included in
the model produced by VRP will be printed.
This set of triples may differ from the set of triples created by the
parser (see Triples option), because the VRP model produced:
- does not contain duplicate statements,
- contains additional statements from external namespaces, if
the option 'External Namespaces' is enabled.
- contains additional statements from inference on domain/range
of subproperties
- Graph: Prints a textual
representation of the created RDF graph containing:
- The topological order (top down) of the Properties according
to the subPropertyOf statements.
- The topological order (top down) of the Classes according to
the subClassOf statements.
- The RDF Classes, Properties, Statements, Containers, and
Resources.
- Modification Warnings: VRP reports a
warning in case properties or classes are modified outside the
namespace they are defined in (e.g. adding a new rdfs:range
definition). Since in some areas this is often used, this warning
reports can be disabled.
- Statistics Options:
- Model:
- Number of schema and data resources:
Prints the number of triples, classes, properties, containers,
statements and resources found in output model
- SubClass Hierarchy: In VRP we
consider three types of class hierarchies, i.e, the schema class
hierarchy, the metaclass of classes hierarchy and the metaclass of
properties hierarchy whose root are the classes rdfs:Resource, rdfs:Class
and rdf:Property respectively. For each class hierarchy, 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 hierarchy 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 the input namespace
- parsing the external namespaces & for inheritance on
domain/range of properties
- semantic validation
- SVG:
- Interactive Browsing: Prints the
SVG Representation of the RDF descriptions included in the output model
in a file. The filename and the view size of the svg file is
defined using the button Options. The svg
representation produced is a graphical view of the RDF file, where the
user can browse with respect to the inheritance and the properties
of the resources.
- Schema Visualization: Creates a
general visualization for the class and/or property hierarchy of the
RDF schema defined in the input model. Through the Options button
the user can specify:
- the filename of the output svg file
- the view size of the svg visualization
- if the class hierarchy should be generated
- including properties
- including comments
- included root classes that have no children
- if the properties hierarchy should be generated
- including domain/range classes
- including comments
- included root properties that have no children
Choose
Namespaces Dialog
This dialog appears after the input file is
validated. It depicts the namespaces that have been parsed and
validated by the
VRP (see External
Namespaces option).
You select which of the those namespaces you wish to
be included in the output model returned by the VRP. Only the classes
and
properties of the selected namespaces will be included in th output
model. Note
that the output of the options statements, graph, svg and statistics is
influenced since it is based on the final output model.
* A namespace can be a local file or a URL.
** Namespace URIs should include the
complete filename of the
RDF file, with the extension (e.g. .rdf, .rdfs) if any. For example,
The example TestAPI.java
shows how you can use VRP APIs.
The java class Main
shows
the methods provided for VRP.
In case you want to process the Model returned
by VRP, see the methods of java class Model.
Last modified: May 23, 2004