com.hp.hpl.jena.rdf.arp
Interface ARPErrorNumbers

All Known Implementing Classes:
ARP, JenaReader, NTriple, ParseException

public interface ARPErrorNumbers

Error numbers used by ARP.

Author:
jjc

Field Summary
static int EM_ERROR
          Used as ErrorMode to abort processing of element, after reporting error.
static int EM_FATAL
          Used as ErrorMode to stop processing after reporting error.
static int EM_IGNORE
          Used as ErrorMode to not report an error.
static int EM_WARNING
          Used as ErrorMode to report warning and continue processing.
static int ERR_ABOUTEACH_NOT_TOPLEVEL
          Deprecated. No longer occurs. Any use of rdf:aboutEach is a syntax error.
static int ERR_BAD_RDF_ATTRIBUTE
          An attribute name in the RDF namespace has been used that is reserved as an RDF name, but not as an attribute.
static int ERR_BAD_RDF_ELEMENT
          An element is tagged rdf:XXX where XXX is an RDF attribute name, (E205).
static int ERR_ENCODING_MISMATCH
          ARP was called with an InputSteamReader or a FileReader which used an encoding differnt from that in the XML declaration.
static int ERR_INTERNAL_ERROR
          Should not happen.
static int ERR_LI_AS_TYPE
          rdf:li is being used in the typed node construction.
static int ERR_NOT_WHITESPACE
          Non-white character data has occurred where the RDF grammar does not permit it.
static int ERR_RESOLVING_URI_AGAINST_NULL_BASE
          A base URI was required but not given.
static int ERR_SAX_ERROR
          The SAX Parser generated an error.
static int ERR_SAX_FATAL_ERROR
          The SAX Parser generated a fatal error.
static int ERR_STRING_NOT_NORMAL_FORM_C
          String Literals in RDF must be in Unicode Normal Form C (E207).
static int ERR_SYNTAX_ERROR
          The attributes or element tags contravene the RDF grammar.
static int ERR_UNABLE_TO_RECOVER
          The error recovery code failed; this can occur.
static int ERR_URI_NOT_NORMAL_FORM_C
          Deprecated. WG decision on williams-01.
static int IGN_DAML_COLLECTION
          The use of rdf:parseType="daml:collection" does not conform with RDF2003.
static int IGN_NO_BASE_URI_SPECIFIED
          Indicates that no name is known for the current file being parsed..
static int IGN_PRIVATE_XMLLANG
          An xml:lang attribute uses one or more of the extension facilities in RFC3066 or ISO639.
static int IGN_XMLBASE_SIGNIFICANT
          Indicates that somewhere, an xml:base attribute has been used and changes the interpretation of some URI (either through a URI-reference or idSymbold production in the grammar).
static int IGN_XMLBASE_USED
          Indicates that somewhere, other than in an XML Literal an xml:base attribute has been used.
static int WARN_BAD_NAME
          An ID symbol or other grammar production that should be an XML name is malformed.
static int WARN_BAD_NAMESPACE_URI
          Some xmlns declaration has a non-URI as its right hand side.
static int WARN_BAD_RDF_NAMESPACE_URI
          Within RDF, it is not permitted to define an XML namespace that has a namespace URI with the RDF namespace URI as a proper prefix.
static int WARN_BAD_XML
          Deprecated.  
static int WARN_BAD_XML_NAMESPACE_URI
          Within RDF, it is not permitted to define an XML namespace that has a namespace URI with the XML namespace URI as a proper prefix.
static int WARN_BAD_XMLLANG
          The value of an xml:lang attribute while syntactically conforming to RFC3066 does not conform with other rules, possibly through not being listed in ISO639 or ISO3166 or the IANA language tag registry.
static int WARN_DEPRECATED_XMLLANG
          The value of an xml:lang attribute has been deprecated by IANA (W117).
static int WARN_ENCODING_MISMATCH
          ARP was called with an InputSteamReader or a FileReader which used an encoding differnt from that in the XML declaration.
static int WARN_IN_STRICT_MODE
          This is an internal only field, not intended for public use.
static int WARN_LEGAL_REUSE_OF_ID
          The same name has been used for more than one rdf:ID or rdf:bagID, in the context of different xml:bases.
static int WARN_MALFORMED_URI
          A URI reference does not conform to RFC2396.
static int WARN_MALFORMED_XMLLANG
          The value of an xml:lang attribute does not conform to the syntactic rules of RFC3066.
static int WARN_MINOR_INTERNAL_ERROR
          Should not happen.
static int WARN_PROCESSING_INSTRUCTION_IN_RDF
          An XML processing instruction occurred in RDF content.
static int WARN_QNAME_AS_ID
          Deprecated. Superceded by the more general WARN_BAD_NAME
static int WARN_RDF_NN_AS_TYPE
          rdf:_NNN is being used in the typed node construction.
static int WARN_REDEFINITION_OF_ID
          The same name has been used for more than one rdf:ID or rdf:bagID, in the context of the same xml:base (if any).
static int WARN_RELATIVE_NAMESPACE_URI_DEPRECATED
          A namespace, which has been declared with a relative URI, has been used in a qualified name.
static int WARN_RESOLVING_URI_AGAINST_EMPTY_BASE
          A base URI was required but "" was given.
static int WARN_SAX_WARNING
          The SAX Parser generated a warning.
static int WARN_STRING_COMPOSING_CHAR
          String Literals in RDF should not start with a composing char, as defined by the CharacterModel working draft.
static int WARN_UNKNOWN_PARSETYPE
          An unrecognised value for rdf:parseType has been found.
static int WARN_UNKNOWN_RDF_ATTRIBUTE
          An attribute name in the RDF namespace has been used that is not a reserved RDF attribute name.
static int WARN_UNKNOWN_RDF_ELEMENT
          An element is tagged rdf:XXX where XXX is not a recognised RDF element name.
static int WARN_UNKNOWN_XML_ATTRIBUTE
          An attribute from the xml namespace has been used that is not recognised.
static int WARN_UNQUALIFIED_ATTRIBUTE
          Some attribute that is not an RDF keyword is used in an unqualified fashion.
static int WARN_UNQUALIFIED_ELEMENT
          An element tag is not a qualified name.
static int WARN_UNQUALIFIED_RDF_ATTRIBUTE
          A standard rdf attribute like type or about is used without a namespace qualifier.
static int WARN_URI_COMPOSING_CHAR
          Deprecated. WG decision on williams-01.
static int WARN_XMLBASE_MISSING
          Deprecated. IGN_NO_BASE_URI_SPECIFIED
 

Field Detail

EM_IGNORE

public static final int EM_IGNORE
Used as ErrorMode to not report an error.

See Also:
ARP.setErrorMode(int, int), Constant Field Values

EM_WARNING

public static final int EM_WARNING
Used as ErrorMode to report warning and continue processing.

See Also:
ARP.setErrorMode(int, int), Constant Field Values

EM_ERROR

public static final int EM_ERROR
Used as ErrorMode to abort processing of element, after reporting error.

See Also:
ARP.setErrorMode(int, int), Constant Field Values

EM_FATAL

public static final int EM_FATAL
Used as ErrorMode to stop processing after reporting error.

See Also:
ARP.setErrorMode(int, int), Constant Field Values

IGN_PRIVATE_XMLLANG

public static final int IGN_PRIVATE_XMLLANG
An xml:lang attribute uses one or more of the extension facilities in RFC3066 or ISO639. In some way, the langauge specified is non-standard. In both default and strict modes this is ignored; a conservative application in verbose mode may wish to raise a warning. (W001)

See Also:
LanguageTagCodes.LT_PRIVATE_USE, LanguageTagCodes.LT_LOCAL_USE, LanguageTagCodes.LT_EXTRA, Constant Field Values

IGN_XMLBASE_USED

public static final int IGN_XMLBASE_USED
Indicates that somewhere, other than in an XML Literal an xml:base attribute has been used. This is ignored in default and strict mode. (W002)

See Also:
IGN_XMLBASE_SIGNIFICANT, Constant Field Values

IGN_XMLBASE_SIGNIFICANT

public static final int IGN_XMLBASE_SIGNIFICANT
Indicates that somewhere, an xml:base attribute has been used and changes the interpretation of some URI (either through a URI-reference or idSymbold production in the grammar). (W003) This is ignored in default and strict mode.

See Also:
IGN_XMLBASE_USED, Constant Field Values

IGN_DAML_COLLECTION

public static final int IGN_DAML_COLLECTION
The use of rdf:parseType="daml:collection" does not conform with RDF2003. (W004) This is ignored in default mode and an error in strict mode. Note: strictly speaking the conformant behaviour is to silently treat this as rdf:parseType="Literal".

See Also:
Constant Field Values

IGN_NO_BASE_URI_SPECIFIED

public static final int IGN_NO_BASE_URI_SPECIFIED
Indicates that no name is known for the current file being parsed.. (W005)

See Also:
Constant Field Values

WARN_XMLBASE_MISSING

public static final int WARN_XMLBASE_MISSING
Deprecated. IGN_NO_BASE_URI_SPECIFIED

(W100)

See Also:
Constant Field Values

WARN_UNQUALIFIED_RDF_ATTRIBUTE

public static final int WARN_UNQUALIFIED_RDF_ATTRIBUTE
A standard rdf attribute like type or about is used without a namespace qualifier. In default and strict mode ARP adds the rdf: qualifier and reports a warning. (W101).

See Also:
Constant Field Values

WARN_UNQUALIFIED_ATTRIBUTE

public static final int WARN_UNQUALIFIED_ATTRIBUTE
Some attribute that is not an RDF keyword is used in an unqualified fashion. In default mode, then the namespace of the enclosing element is used. Strict mode skips to the end of the enclosing element. (W102).

See Also:
Constant Field Values

WARN_UNKNOWN_RDF_ATTRIBUTE

public static final int WARN_UNKNOWN_RDF_ATTRIBUTE
An attribute name in the RDF namespace has been used that is not a reserved RDF attribute name. In default and strict modes, a statement is generated with the given name as property. In default and strict modes this is a warning. (W103).

See Also:
Constant Field Values

WARN_UNQUALIFIED_ELEMENT

public static final int WARN_UNQUALIFIED_ELEMENT
An element tag is not a qualified name. In default mode, a resource or property is generated with a malformed URI. Strict mode skips to the end of the enclosing element. (W104).

See Also:
Constant Field Values

WARN_REDEFINITION_OF_ID

public static final int WARN_REDEFINITION_OF_ID
The same name has been used for more than one rdf:ID or rdf:bagID, in the context of the same xml:base (if any). The default mode allows this with a warning. Strict mode skips to the end of the enclosing element of the second and subsequent occurrences. (W105).

See Also:
WARN_LEGAL_REUSE_OF_ID, Constant Field Values

WARN_UNKNOWN_PARSETYPE

public static final int WARN_UNKNOWN_PARSETYPE
An unrecognised value for rdf:parseType has been found. In strict mode, this error is ignored, and it is treated as rdf:parseType="Literal", in default mode a warning is issued. (W106)

See Also:
Constant Field Values

WARN_MALFORMED_URI

public static final int WARN_MALFORMED_URI
A URI reference does not conform to RFC2396. Use Exception.getMessage() for details. In default mode, the malformed URI is passed to the RDF processing application; strict mode skips to the end of the enclosing element. (W107)

See Also:
Constant Field Values

WARN_BAD_NAME

public static final int WARN_BAD_NAME
An ID symbol or other grammar production that should be an XML name is malformed. In default mode, the malformed string is passed to the RDF application. (W108) Strict mode skips to the end of the enclosing element.

See Also:
Constant Field Values

WARN_RELATIVE_NAMESPACE_URI_DEPRECATED

public static final int WARN_RELATIVE_NAMESPACE_URI_DEPRECATED
A namespace, which has been declared with a relative URI, has been used in a qualified name. Such relative URI namespaces have been deprecated. In default mode, the relative string is passed to the RDF application. Strict mode skips to the end of each enclosing element in which the namespace is used. (Note: this does not necessarily ignore the whole element in which the namespace was declared.) (W109)

See Also:
Constant Field Values

WARN_BAD_XML

public static final int WARN_BAD_XML
Deprecated.  

Just a double check that an error is reported when XML parsing fails for any reason. In strict mode this is ignored. (W111)

See Also:
Constant Field Values

WARN_MINOR_INTERNAL_ERROR

public static final int WARN_MINOR_INTERNAL_ERROR
Should not happen. But ARP has probably processed the file correctly even if it does. Please report any occurrences to jjc@hpl.hp.com, preferably with a test case. (W112)

See Also:
Constant Field Values

WARN_UNKNOWN_RDF_ELEMENT

public static final int WARN_UNKNOWN_RDF_ELEMENT
An element is tagged rdf:XXX where XXX is not a recognised RDF element name. The typed node or property element construction is matched. In both default and strict modes this is a warning. (W113).

See Also:
Constant Field Values

WARN_RDF_NN_AS_TYPE

public static final int WARN_RDF_NN_AS_TYPE
rdf:_NNN is being used in the typed node construction. In default mode this is a warning; in strict mode it is ignored.(W114)

See Also:
Constant Field Values

WARN_MALFORMED_XMLLANG

public static final int WARN_MALFORMED_XMLLANG
The value of an xml:lang attribute does not conform to the syntactic rules of RFC3066. In default mode this is a warning, in strict mode an error. (W115)

See Also:
Constant Field Values

WARN_BAD_XMLLANG

public static final int WARN_BAD_XMLLANG
The value of an xml:lang attribute while syntactically conforming to RFC3066 does not conform with other rules, possibly through not being listed in ISO639 or ISO3166 or the IANA language tag registry. The databases used of these registries was a snapshot of July 24, 2001. If you are using language tags that postdate this snapshot, you should ignore this condition. The use of a three letter tag instead of a two letter tag or use of the language tag "und" is also reported under this condition, see RFC3066. In default mode this is a warning, in strict mode an error. (W116)

See Also:
Constant Field Values

WARN_DEPRECATED_XMLLANG

public static final int WARN_DEPRECATED_XMLLANG
The value of an xml:lang attribute has been deprecated by IANA (W117). In strict and default mode this is a warning.

See Also:
Constant Field Values

WARN_UNKNOWN_XML_ATTRIBUTE

public static final int WARN_UNKNOWN_XML_ATTRIBUTE
An attribute from the xml namespace has been used that is not recognised. (W118). In default mode this is a warning; in strict mode it is ignored.

See Also:
Constant Field Values

WARN_PROCESSING_INSTRUCTION_IN_RDF

public static final int WARN_PROCESSING_INSTRUCTION_IN_RDF
An XML processing instruction occurred in RDF content. Such instructions are ignored, and are usually in error. (W119). In default mode this is a warning; in strict mode it is ignored.

See Also:
Constant Field Values

WARN_LEGAL_REUSE_OF_ID

public static final int WARN_LEGAL_REUSE_OF_ID
The same name has been used for more than one rdf:ID or rdf:bagID, in the context of different xml:bases. In default mode this is a warning; in strict mode it is ignored.

See Also:
WARN_REDEFINITION_OF_ID, Constant Field Values

WARN_STRING_COMPOSING_CHAR

public static final int WARN_STRING_COMPOSING_CHAR
String Literals in RDF should not start with a composing char, as defined by the CharacterModel working draft. This is particularly important if XML 1.1 compatibility is required. This is a warning in both default and strict modes (W121).

See Also:
Constant Field Values

WARN_QNAME_AS_ID

public static final int WARN_QNAME_AS_ID
Deprecated. Superceded by the more general WARN_BAD_NAME

The idSymbol production matched a string with a colon in it. This is, at best, unwise. This is a warning in default and an errror in strict mode (W122).

See Also:
Constant Field Values

WARN_URI_COMPOSING_CHAR

public static final int WARN_URI_COMPOSING_CHAR
Deprecated. WG decision on williams-01.

URI components in RDF should not start with a composing char, as defined by the CharacterModel working draft. ARP checks components that are the value of rdf:about attributes etc. This is particularly important if XML 1.1 compatibility is required. This is a warning in default mode and ignored in strict mode (W123).

See Also:
Constant Field Values

WARN_BAD_NAMESPACE_URI

public static final int WARN_BAD_NAMESPACE_URI
Some xmlns declaration has a non-URI as its right hand side. This currently permits non-ASCII characters, awaiting clarification from the namespace editor. This is a warning in default mode and an error in strict mode (W124).

See Also:
Constant Field Values

WARN_IN_STRICT_MODE

public static final int WARN_IN_STRICT_MODE
This is an internal only field, not intended for public use. In particular, specifically setting the error mode for this error should be avoided. Errors with this error code cannot happen. (W125) When this warning is treated as an error, the non-RDF compliant daml:collection production is surpressed.

See Also:
Constant Field Values

WARN_SAX_WARNING

public static final int WARN_SAX_WARNING
The SAX Parser generated a warning. Treated as a warning in both default and strict modes. (W126)

See Also:
Constant Field Values

WARN_BAD_RDF_NAMESPACE_URI

public static final int WARN_BAD_RDF_NAMESPACE_URI
Within RDF, it is not permitted to define an XML namespace that has a namespace URI with the RDF namespace URI as a proper prefix. (W127). A warning in default mode, an error in strict mode.

See Also:
Constant Field Values

WARN_BAD_XML_NAMESPACE_URI

public static final int WARN_BAD_XML_NAMESPACE_URI
Within RDF, it is not permitted to define an XML namespace that has a namespace URI with the XML namespace URI as a proper prefix. (W128). A warning in default mode,an error in strict mode.

See Also:
Constant Field Values

WARN_ENCODING_MISMATCH

public static final int WARN_ENCODING_MISMATCH
ARP was called with an InputSteamReader or a FileReader which used an encoding differnt from that in the XML declaration. The usual fix is to use an InputStream or a FileInputStream instead. (W129). A warning in default mode, an error in strict mode.

See Also:
ERR_ENCODING_MISMATCH, Constant Field Values

WARN_RESOLVING_URI_AGAINST_EMPTY_BASE

public static final int WARN_RESOLVING_URI_AGAINST_EMPTY_BASE
A base URI was required but "" was given. The RDF/XML input includes a relative URI, an rdf:ID or some other same document reference. (W130).

See Also:
Constant Field Values

ERR_INTERNAL_ERROR

public static final int ERR_INTERNAL_ERROR
Should not happen. Please report occurrence to jjc@hpl.hp.com with test case, if possible. (E200)

See Also:
Constant Field Values

ERR_SYNTAX_ERROR

public static final int ERR_SYNTAX_ERROR
The attributes or element tags contravene the RDF grammar. (XML syntax errors are not reported with this mechanism, but as SAXParseException's). The detailed error message indicates the nature of the contravention. (E201)

See Also:
Constant Field Values

ERR_NOT_WHITESPACE

public static final int ERR_NOT_WHITESPACE
Non-white character data has occurred where the RDF grammar does not permit it. This is a special case of ERR_SYNTAX_ERROR, which is detected differently. (E202)

See Also:
Constant Field Values

ERR_ABOUTEACH_NOT_TOPLEVEL

public static final int ERR_ABOUTEACH_NOT_TOPLEVEL
Deprecated. No longer occurs. Any use of rdf:aboutEach is a syntax error.

rdf:aboutEach may only occur in a top-level obj expansion, either an rdf:Description or a typed node. This is a special case of ERR_SYNTAX_ERROR, which is detected differently. (E203).

See Also:
Constant Field Values

ERR_LI_AS_TYPE

public static final int ERR_LI_AS_TYPE
rdf:li is being used in the typed node construction. (E204)

See Also:
Constant Field Values

ERR_BAD_RDF_ELEMENT

public static final int ERR_BAD_RDF_ELEMENT
An element is tagged rdf:XXX where XXX is an RDF attribute name, (E205).

See Also:
Constant Field Values

ERR_BAD_RDF_ATTRIBUTE

public static final int ERR_BAD_RDF_ATTRIBUTE
An attribute name in the RDF namespace has been used that is reserved as an RDF name, but not as an attribute. These are rdf:Description, rdf:aboutEach, rdf:aboutEachPrefix. The latter two are deprecated. (E206).

See Also:
Constant Field Values

ERR_STRING_NOT_NORMAL_FORM_C

public static final int ERR_STRING_NOT_NORMAL_FORM_C
String Literals in RDF must be in Unicode Normal Form C (E207).

See Also:
Constant Field Values

ERR_URI_NOT_NORMAL_FORM_C

public static final int ERR_URI_NOT_NORMAL_FORM_C
Deprecated. WG decision on williams-01.

URI references in RDF must be in Unicode Normal Form C (E208).

See Also:
Constant Field Values

ERR_SAX_ERROR

public static final int ERR_SAX_ERROR
The SAX Parser generated an error. Treated as an error in both default and strict modes. (E209)

See Also:
Constant Field Values

ERR_ENCODING_MISMATCH

public static final int ERR_ENCODING_MISMATCH
ARP was called with an InputSteamReader or a FileReader which used an encoding differnt from that in the XML declaration. Moreover, this was detected as probably significant (i.e. the document includes characters outside the ascii range). The usual fix is to use an InputStream or a FileInputStream instead. (E210).

See Also:
WARN_ENCODING_MISMATCH, Constant Field Values

ERR_RESOLVING_URI_AGAINST_NULL_BASE

public static final int ERR_RESOLVING_URI_AGAINST_NULL_BASE
A base URI was required but not given. The RDF/XML input includes a relative URI, an rdf:ID or some other same document reference. (E201).

See Also:
Constant Field Values

ERR_UNABLE_TO_RECOVER

public static final int ERR_UNABLE_TO_RECOVER
The error recovery code failed; this can occur. (E300)

See Also:
Constant Field Values

ERR_SAX_FATAL_ERROR

public static final int ERR_SAX_FATAL_ERROR
The SAX Parser generated a fatal error. Resetting this mode is not supported. Treated as a fatal error in both default and strict modes. (E301)

See Also:
Constant Field Values


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.