jena
Klasse rdfquery

public class rdfquery
A program to execute queries from the command line. Queries can specify the source file so this can be used as a simple script engine for RDQL.
Usage: [--xml|--ntriple] [--data URL] [queryString | --query file]") ;
--query file         Read one query from a file
--rdfs               Use an RDFS reasoner around the data
--reasoner URI       Set the reasoner URI explicitly.
--vocab URL | File   Specify a separate vocabulary (may also be in the data)
--xml                Data source is XML (default)
--ntriple            Data source is n-triple
--n3                 Data source is N3
--data URL | File    Data source (can also be part of query)
--time               Print some time information
--test [file]        Run the test suite
--format FMT         One of text, html, tuples, dump or none
--verbose            Verbose - more messages
--quiet              Quiet - less messages
Options for data and format override the query specified source.
Version:
$Id: rdfquery.java,v 1.24 2005/04/06 08:38:28 chris-dollin Exp $
Author:
Andy Seaborne