jena
Class rdfquery
java.lang.Object
jena.rdfquery
public class rdfquery
- extends Object
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.22 2004/12/06 13:50:20 andy_seaborne Exp $
- Author:
- Andy Seaborne
displayTime
public static boolean displayTime
messageLevel
public static int messageLevel
debug
public static boolean debug
dumpModel
public static boolean dumpModel
outputFormat
public static int outputFormat
rdfquery
public rdfquery()
main
public static void main(String[] argv)
doTests
public static void doTests(String testsFilename)
query
public static void query(String s,
String dataURL,
String language)
Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP