4Suite API Documentation

Module Ft.Rdf._4rdf

Implementation of '4rdf' command (functions defined here are used by the Ft.Lib.CommandLine framework)
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 RdfCommandLineApp(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 = "4RDF command-line application\n Note: This is a ...pository, you may find '4ss rdf' more convenient."
name = '4rdf'
options = [[--dump], [--input-format=<FORMAT>], [--serialize=<FORMAT>], [--output=<PATH>], [--spring], [--graphviz=<PATH>], [--full-uris], [--driver=<DRIVER>], [--dbname=<DBNAME>], [--source-uri=<URI>]]
project_name = '4Suite-RDF'
project_url = 'http://4suite.org/'
project_version = '1.0b1'
summary = 'command-line tool for working with RDF documents and models'

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

commands, example, global_options

Functions

CheckLabel(model, text)
Run(options, args)

Globals

BASIC_RESOLVER = <Ft.Lib.Uri.FtUriResolver instance>
DAML_OIL_NS = 'http://www.w3.org/2001/10/daml+oil#'
DefaultFactory = <Ft.Xml.InputSource.InputSourceFactory instance>
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.
OLD_DAML_OIL_NS = 'http://www.daml.org/2001/03/daml+oil#'
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#'
g_anonCounter = 1
g_anonMapping = {}
g_labelCache = {'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property': '<rdf:Property>', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement': '<rdf:Statement>', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object': '<rdf:object>', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate': '<rdf:predicate>', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject': '<rdf:subject>', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type': '<rdf:type>', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value': '<rdf:value>', 'http://www.w3.org/2000/01/rdf-schema#Class': '<rdfs:Class>', 'http://www.w3.org/2000/01/rdf-schema#Literal': '<rdfs:Literal>', 'http://www.w3.org/2000/01/rdf-schema#Resource': '<rdfs:Resource>', ...}
g_nsMappings = {'daml': 'http://www.w3.org/2001/10/daml+oil#', 'dc': 'http://purl.org/dc/elements/1.1/', 'foaf': 'http://xmlns.com/foaf/0.1/', 'log': 'http://www.w3.org/2000/10/swap/log#', 'n3-reify': 'http://www.w3.org/2000/10/swap/reify#', 'old-daml': 'http://www.daml.org/2001/03/daml+oil#', '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#', 'rss': 'http://purl.org/rss/1.0/', ...}