W3C Documentation

RdfApp HOWTO

This document describes how to use the W3C-Perllib RdfApp module and interface. The module provides the interface for rdf_browser and the algae command line tool.

Command Line Syntax

RdfApp applications may rely on the module to handle command line arguments. The module supports the standard unix --help query and gives you something like this:

Usage: ./algae options:
-rdfns - rdf model and syntax URI ([http://www.w3.org/1999/02/22-rdf-syntax-ns#]) = http://www.w3.org/1999/02/22-rdf-syntax-ns#
-a - algae queries
-ns - namespace declarations
> - output to file
-d - rdf database (["W3C::Rdf::RdfDB" ()]) = "W3C::Rdf::RdfDB" ()
-p - XML parser ([W3C::SAX::PerlXmlParser]|W3C::SAX::ExpatXmlParser) = W3C::SAX::PerlXmlParser
-set - set variable
-s - source only (source only)
-ByPredicate - ByPredicate grammer (ByPredicate)
-BySubjectType - BySubjectType grammer (BySubjectType)
-BySubject - BySubject grammer (BySubject)
plus a list of files or URLs from which to read RDF

Eric Prud'hommeaux,
@(#) $Id: RdfApp-HOWTO.html,v 1.1 2000/10/27 15:20:05 eric Exp $ Valid HTML 4.0!