com.hp.hpl.jena.rdf.arp
Class NTriple

java.lang.Object
  |
  +--com.hp.hpl.jena.rdf.arp.NTriple
All Implemented Interfaces:
ARPErrorNumbers

public class NTriple
extends java.lang.Object
implements ARPErrorNumbers

A command line interface into ARP. Creates NTriple's or just error messages.

 java <class-path> com.hp.hpl.jena.arp.NTriple ( [ -[xstfu]][ -b xmlBase -[eiw] NNN[,NNN...] ] [ file ] [ url ] )...
 

<class-path> should contain arp.jar and xerces.jar or equivalents.

All options, files and URLs can be intemingled in any order. They are processed from left-to-right.
file
Converts (embedded) RDF in XML file into N-triples
url
Converts (embedded) RDF from URL into N-triples
-b uri
Sets XML Base to the absolute URI.
-r
Content is RDF (no embedding, rdf:RDF tag may be omitted).
-t
No n-triple output, error checking only.
-x
Lax mode - warnings are suppressed.
-s
Strict mode - most warnings are errors.
-u
Allow unqualified attributes (defaults to warning).
-f
All errors are fatal - report first one only.
-b url
Sets XML Base to the absolute url.
-e NNN[,NNN...]
Treats numbered warning conditions as errrors.
-w NNN[,NNN...]
Treats numbered error conditions as warnings.
-i NNN[,NNN...]
Ignores numbered error/warning conditions.

Author:
jjc

Fields inherited from interface com.hp.hpl.jena.rdf.arp.ARPErrorNumbers
EM_ERROR, EM_FATAL, EM_IGNORE, EM_WARNING, ERR_ABOUTEACH_NOT_TOPLEVEL, ERR_INTERNAL_ERROR, ERR_NOT_WHITESPACE, ERR_SYNTAX_ERROR, ERR_UNABLE_TO_RECOVER, IGN_PRIVATE_XMLLANG, IGN_XMLBASE_SIGNIFICANT, IGN_XMLBASE_USED, WARN_BAD_NAME, WARN_BAD_XML, WARN_BAD_XMLLANG, WARN_DEPRECATED_XMLLANG, WARN_EMPTY_ABOUT_EACH, WARN_LI_AS_TYPE, WARN_MALFORMED_URI, WARN_MALFORMED_XMLLANG, WARN_MINOR_INTERNAL_ERROR, WARN_REDEFINITION_OF_ID, WARN_RELATIVE_NAMESPACE_URI_DEPRECATED, WARN_UNKNOWN_PARSETYPE, WARN_UNKNOWN_RDF_ATTRIBUTE, WARN_UNKNOWN_RDF_ELEMENT, WARN_UNKNOWN_XML_ATTRIBUTE, WARN_UNQUALIFIED_ATTRIBUTE, WARN_UNQUALIFIED_ELEMENT, WARN_UNQUALIFIED_RDF_ATTRIBUTE, WARN_XMLBASE_MISSING
 
Constructor Summary
NTriple()
           
 
Method Summary
static void main(java.lang.String[] args)
          Starts an RDF/XML to NTriple converter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NTriple

public NTriple()
Method Detail

main

public static void main(java.lang.String[] args)
Starts an RDF/XML to NTriple converter.
Parameters:
args - The command-line arguments.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.