4Suite API Documentation

Module Ft.Rdf._4versa

Versa command-line application
Copyright 2006 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class VersaCommandLineApp(Ft.Lib.CommandLine.CommandLineApp.CommandLineApp)

Methods

run(self, options, arguments)
Overrides: run from class CommandLineApp

Methods inherited from class Ft.Lib.CommandLine.CommandLineApp.CommandLineApp

__init__, gen_command_tree, gen_usage, get_help_doc_info, main, parse_command_line, run_commands, validate_options

Methods inherited from class Ft.Lib.CommandLine.Command.Command

break_parent_relationship, build_parent_relationship, flatten_command_tree, validate_arguments

Members

arguments = [<Ft.Lib.CommandLine.Arguments.ZeroOrMoreArgument instance>]
description = "4Versa command-line query application\nNote: this...ry, you may find '4ss rdf versa' more convenient."
name = '4versa'
options = [[--driver=<DRIVER>], [--dbname=<DBNAME>], [--modelname=<MODELNAME>], [--scope=<SCOPE>], [--rdf-file=<URI>], [--input-format=<FORMAT>], [--qfile=<URI>]]
project_name = '4Suite-RDF'
project_url = 'http://4suite.org/'
project_version = '1.0b1'
summary = 'command-line tool for performing Versa queries'

Members inherited from class Ft.Lib.CommandLine.CommandLineApp.CommandLineApp

commands, example, global_options

Functions

PrettyPrintResults(results, indent=0)
ResultsToXml(result, stream, indent='')
Run(options, args)

Globals

BASE_NS_MAP = {'daml': 'http://www.daml.org/2001/03/daml+oil#', 'dc': 'http://purl.org/dc/elements/1.1/', 'log': 'http://www.w3.org/2000/10/swap/log#', 'n3-reify': 'http://www.w3.org/2000/10/swap/reify#', 'owl': 'http://www.w3.org/2002/07/owl#', 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'versa': 'http://rdfinference.org/versa/0/2/', 'vsort': 'http://rdfinference.org/versa/0/2/sort/', 'vtrav': 'http://rdfinference.org/versa/0/2/traverse/', ...}
INDENT = ' '
INVOKED_AS = 'setup.py'
NonvalidatingReader = <Ft.Xml.Domlette.NonvalidatingReaderBase instance>
The default non-validating reader instance, created from NonvalidatingReaderBase() with no constructor arguments.
Uses the default InputSource factory. If you need to change it,
reassign the inputSourceFactory attribute, or, preferably, just
create a new NonvalidatingReaderBase instance.
OWL_NS = 'http://www.w3.org/2002/07/owl#'
RDF_MS_BASE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
RDF_SCHEMA_BASE = 'http://www.w3.org/2000/01/rdf-schema#'
VERSA_NS = 'http://rdfinference.org/versa/0/2/'