- All Known Implementing Classes:
AbsXMLContext
,AbsXMLLiteral
,ARPOptions
,AttributeLexer
,DOM2Model
,ElementLexer
,Frame
,InnerXMLLiteral
,LookingForRDF
,NTriple
,OuterXMLLiteral
,ParseException
,ParseException
,ParserSupport
,QNameLexer
,RDFCollection
,RDFXMLParser
,RDFXMLReader
,SAX2Model
,SAX2RDF
,SAX2RDFImpl
,StartStateRDForDescription
,URIReference
,WantDescription
,WantEmpty
,WantLiteralValueOrDescription
,WantPropertyElement
,WantTopLevelDescription
,WantTypedLiteral
,XMLBaselessContext
,XMLContext
,XMLHandler
public interface ARPErrorNumbers
Error numbers used by ARP.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Used as ErrorMode to report error, and not generate associated triples.static final int
Used as ErrorMode to stop processing after reporting error.static final int
Used as ErrorMode to not report an error.static final int
Used as ErrorMode to report warning and continue processing.static final int
Deprecated.No longer occurs.static final int
An attribute name in the RDF namespace has been used that is reserved as an RDF name, but not as an attribute.static final int
An element is tagged rdf:XXX where XXX is an RDF attribute name.static final int
ARP was called with an InputSteamReader or a FileReader which used an encoding differnt from that in the XML declaration.static final int
An IOException occurred.static final int
Deprecated.No longer used.static final int
The Thread was interrupted.static final int
rdf:li is being used in the typed node construction.static final int
Non-white character data has occurred where the RDF grammar does not permit it.static final int
Cannot resolve a relative URI, because base URI is malformed.static final int
Cannot resolve a relative URI, because base URI is relative.static final int
A base URI was required but not given.static final int
The SAX Parser generated an error.static final int
The SAX Parser generated a.error error.static final int
Deprecated.See 2nd Last Call docs * (E207).static final int
The attributes or element tags contravene the RDF grammar.static final int
Deprecated.Not used.static final int
Deprecated.WG decision on williams-01.static final int
The document claimed to be UTF-8 but was not.static final int
Indicates that no name is known for the current file being parsed.static final int
Indicates that somewhere, an xml:base attribute has been used and changes the interpretation of some URI (either through a relative URI-reference or rdf:ID).static final int
Indicates that somewhere, other than in an XML Literal an xml:base attribute has been used.static final int
An ID symbol or other grammar production that should be an XML name is malformed.static final int
Some xmlns declaration has a non-URI as its right hand side.static final int
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 final int
Deprecated.static final int
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 final int
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 final int
After 10000 rdf:ID attributes have been read, ARP no longer checks forWARN_REDEFINITION_OF_ID
.static final int
The value of an xml:lang attribute has been deprecated by IANA (W117).static final int
ARP was called with an InputSteamReader or a FileReader which used an encoding differnt from that in the XML declaration.static final int
This is an internal only field, not intended for public use.static final int
Deprecated.Last supported in Jena 2.1 - too expensive.static final int
A URI reference does not conform to the definition of RDF URI Reference.static final int
The value of an xml:lang attribute does not conform to the syntactic rules of RFC3066.static final int
Deprecated.No longer used.static final int
The character encoding in the XML declaration is not registered with IANA.static final int
The encoding in the XML declaration is an alias registered with IANA.static final int
It seems likely that the namespace for rdf: has a typo in it.static final int
An XML processing instruction occurred in RDF content.static final int
Deprecated.Superceded by the more generalWARN_BAD_NAME
static final int
rdf:_NNN is being used in the typed node construction.static final int
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 final int
A namespace has been declared with a relative URI.static final int
A URI reference which is a relative reference has been used either as the starting base URI or as the outcome of a URI resolution somehow.static final int
A base URI was required but "" was given.static final int
The SAX Parser generated a warning.static final int
String Literals in RDF should not start with a composing char, as defined by the CharacterModel working draft.static final int
String Literals in RDF should be in Unicode Normal Form C * (W131).static final int
An unrecognised value for rdf:parseType has been found.static final int
An attribute name in the RDF namespace has been used that is not a reserved RDF attribute name.static final int
An element is tagged rdf:XXX where XXX is not a recognised RDF element name.static final int
An attribute from the xml namespace has been used that is not recognised.static final int
Some attribute that is not an RDF keyword is used in an unqualified fashion.static final int
An element tag is not a qualified name.static final int
A standard rdf attribute like type or about is used without a namespace qualifier.static final int
The character encoding in the XML declaration is not fully supported.static final int
Deprecated.WG decision on williams-01.static final int
Deprecated.
-
Field Details
-
EM_IGNORE
static final int EM_IGNOREUsed as ErrorMode to not report an error. -
EM_WARNING
static final int EM_WARNINGUsed as ErrorMode to report warning and continue processing. -
EM_ERROR
static final int EM_ERRORUsed as ErrorMode to report error, and not generate associated triples. In the event of an error (i.e. a condition with this error mode), no further triples involving the resources and literals associated with the error are created. The precise definition of 'associated with' is deliberately undefined, and may change in future releases. When the file includes.error error conditions the parsing is aborted immediately after such an error. Otherwise, it is possible to see all the triples, including those involving resources and literals associated with any condition, by ensuring that the error mode of every error code is WARNING or IGNORE. (i.e. ARP optionally permits all errors to be downgraded to warnings, or to be ignored). In this case, the precise rules which ARP uses to generate triples for ill-formed input are not defined by any standard and are subject to change with future releases. For input involving no errors, ARP creates triples in accordance with the RDF/XML Syntax Revised Recommendation. -
EM_FATAL
static final int EM_FATALUsed as ErrorMode to stop processing after reporting error. -
IGN_XMLBASE_USED
static final int IGN_XMLBASE_USEDIndicates 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
static final int IGN_XMLBASE_SIGNIFICANTIndicates that somewhere, an xml:base attribute has been used and changes the interpretation of some URI (either through a relative URI-reference or rdf:ID). (W003) This is ignored in default and strict mode.- See Also:
-
IGN_NO_BASE_URI_SPECIFIED
static final int IGN_NO_BASE_URI_SPECIFIEDIndicates that no name is known for the current file being parsed. (W005)- See Also:
-
WARN_XMLBASE_MISSING
Deprecated.(W100)- See Also:
-
WARN_UNQUALIFIED_RDF_ATTRIBUTE
static final int WARN_UNQUALIFIED_RDF_ATTRIBUTEA 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:
-
WARN_UNQUALIFIED_ATTRIBUTE
static final int WARN_UNQUALIFIED_ATTRIBUTESome 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. In strict mode this is an error. (W102).- See Also:
-
WARN_UNKNOWN_RDF_ATTRIBUTE
static final int WARN_UNKNOWN_RDF_ATTRIBUTEAn 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:
-
WARN_UNQUALIFIED_ELEMENT
static final int WARN_UNQUALIFIED_ELEMENTAn element tag is not a qualified name. In default mode, a resource or property is generated with a malformed URI. Strict mode treats this as an error. (W104).- See Also:
-
WARN_REDEFINITION_OF_ID
static final int WARN_REDEFINITION_OF_IDThe 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. This check is expensive in memory. When processing very large files, it may be sensible to switch the check off by usingARPOptions.setErrorMode(int,int)
to ignore this condition. (W105).- See Also:
-
WARN_UNKNOWN_PARSETYPE
static final int WARN_UNKNOWN_PARSETYPEAn 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:
-
WARN_MALFORMED_URI
static final int WARN_MALFORMED_URIA URI reference does not conform to the definition of RDF URI Reference. Use Exception.getMessage() for details. In default mode, the malformed URI is passed to the RDF processing application; strict mode treats this as an error. (W107)- See Also:
-
WARN_BAD_NAME
static final int WARN_BAD_NAMEAn 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 treats this as an error.- See Also:
-
WARN_RELATIVE_NAMESPACE_URI_DEPRECATED
static final int WARN_RELATIVE_NAMESPACE_URI_DEPRECATEDA namespace has been declared with a relative URI. Such relative URI namespaces have been deprecated. This often results in relatedWARN_RELATIVE_URI
warnings. (W109)- See Also:
-
WARN_BAD_XML
Deprecated.No longer used. (W111)- See Also:
-
WARN_MINOR_INTERNAL_ERROR
Deprecated.No longer used.Should not happen. (W112)- See Also:
-
WARN_UNKNOWN_RDF_ELEMENT
static final int WARN_UNKNOWN_RDF_ELEMENTAn 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:
-
WARN_RDF_NN_AS_TYPE
static final int WARN_RDF_NN_AS_TYPErdf:_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:
-
WARN_MALFORMED_XMLLANG
static final int WARN_MALFORMED_XMLLANGThe 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:
-
WARN_BAD_XMLLANG
static final int WARN_BAD_XMLLANGThe 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:
-
WARN_UNKNOWN_XML_ATTRIBUTE
static final int WARN_UNKNOWN_XML_ATTRIBUTEAn 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:
-
WARN_PROCESSING_INSTRUCTION_IN_RDF
static final int WARN_PROCESSING_INSTRUCTION_IN_RDFAn 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:
-
WARN_LEGAL_REUSE_OF_ID
Deprecated.Last supported in Jena 2.1 - too expensive.No longer used.- See Also:
-
WARN_STRING_COMPOSING_CHAR
static final int WARN_STRING_COMPOSING_CHARString 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:
-
WARN_QNAME_AS_ID
Deprecated.Superceded by the more generalWARN_BAD_NAME
No longer used. (W122).- See Also:
-
WARN_URI_COMPOSING_CHAR
Deprecated.WG decision on williams-01.No longer used. (W123)- See Also:
-
WARN_BAD_NAMESPACE_URI
static final int WARN_BAD_NAMESPACE_URISome 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:
-
WARN_DEPRECATED_XMLLANG
static final int WARN_DEPRECATED_XMLLANGThe value of an xml:lang attribute has been deprecated by IANA (W117). In strict and default mode this is a warning.- See Also:
-
WARN_IN_STRICT_MODE
static final int WARN_IN_STRICT_MODEThis 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)- See Also:
-
WARN_SAX_WARNING
static final int WARN_SAX_WARNINGThe SAX Parser generated a warning. Treated as a warning in both default and strict modes. (W126)- See Also:
-
WARN_BAD_RDF_NAMESPACE_URI
static final int WARN_BAD_RDF_NAMESPACE_URIWithin 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:
-
WARN_BAD_XML_NAMESPACE_URI
static final int WARN_BAD_XML_NAMESPACE_URIWithin 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:
-
WARN_ENCODING_MISMATCH
static final int WARN_ENCODING_MISMATCHARP 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:
-
WARN_RESOLVING_URI_AGAINST_EMPTY_BASE
static final int WARN_RESOLVING_URI_AGAINST_EMPTY_BASEA 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:
-
WARN_STRING_NOT_NORMAL_FORM_C
static final int WARN_STRING_NOT_NORMAL_FORM_CString Literals in RDF should be in Unicode Normal Form C * (W131).- See Also:
-
WARN_UNSUPPORTED_ENCODING
static final int WARN_UNSUPPORTED_ENCODINGThe character encoding in the XML declaration is not fully supported. In particular, advice about the IANA registry entry, if any, is not available. This warning is only believed to be applicable to Java 1.4. Java 1.5 has more extensive support for this information, and so upgrading from Java 1.4 to Java 1.5 is a plausible response to this warning. (W132).- See Also:
-
WARN_NON_IANA_ENCODING
static final int WARN_NON_IANA_ENCODINGThe character encoding in the XML declaration is not registered with IANA. Hence the RDF/XML file is not appropriate for use on the Web, but only for private interactions, between parties agreeing on the character encoding. It may not be possible to read this file with superficially similar Jena installations, let alone with other RDF systems. (W133).- See Also:
-
WARN_NONCANONICAL_IANA_NAME
static final int WARN_NONCANONICAL_IANA_NAMEThe encoding in the XML declaration is an alias registered with IANA. Better interoperability is likely by replacing the encoding declaration with the canonical IANA name, provided in the warning message. (W134).- See Also:
-
WARN_NOT_RDF_NAMESPACE
static final int WARN_NOT_RDF_NAMESPACEIt seems likely that the namespace for rdf: has a typo in it. (W135)- See Also:
-
WARN_RELATIVE_URI
static final int WARN_RELATIVE_URIA URI reference which is a relative reference has been used either as the starting base URI or as the outcome of a URI resolution somehow. In strict mode this is an error. (W136)- See Also:
-
WARN_BIG_FILE
static final int WARN_BIG_FILEAfter 10000 rdf:ID attributes have been read, ARP no longer checks forWARN_REDEFINITION_OF_ID
. This warning is to inform the user that ARP behaviour has changed during parsing.- See Also:
-
ERR_INTERNAL_ERROR
Deprecated.No longer used.Should not happen. (E200)- See Also:
-
ERR_SYNTAX_ERROR
static final int ERR_SYNTAX_ERRORThe attributes or element tags contravene the RDF grammar. (XML syntax errors are not reported with this mechanism, but asSAXParseException
's). The detailed error message indicates the nature of the contravention. Future releases may specialize these codes, it is better to useParseException.isSyntaxError()
to check for syntax errors. (E201).- See Also:
-
ERR_NOT_WHITESPACE
static final int ERR_NOT_WHITESPACENon-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:
-
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:
-
ERR_LI_AS_TYPE
static final int ERR_LI_AS_TYPErdf:li is being used in the typed node construction. (E204)- See Also:
-
ERR_BAD_RDF_ELEMENT
static final int ERR_BAD_RDF_ELEMENTAn element is tagged rdf:XXX where XXX is an RDF attribute name. (E205)- See Also:
-
ERR_BAD_RDF_ATTRIBUTE
static final int ERR_BAD_RDF_ATTRIBUTEAn 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:
-
ERR_STRING_NOT_NORMAL_FORM_C
Deprecated.See 2nd Last Call docs * (E207).No longer used. -
ERR_URI_NOT_NORMAL_FORM_C
Deprecated.WG decision on williams-01.No longer used.(E208).- See Also:
-
ERR_SAX_ERROR
static final int ERR_SAX_ERRORThe SAX Parser generated an error. Treated as an error in both default and strict modes. (E209)- See Also:
-
ERR_ENCODING_MISMATCH
static final int ERR_ENCODING_MISMATCHARP 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:
-
ERR_RESOLVING_URI_AGAINST_NULL_BASE
static final int ERR_RESOLVING_URI_AGAINST_NULL_BASEA base URI was required but not given. The RDF/XML input includes a relative URI, an rdf:ID or some other same document reference. (E211).- See Also:
-
ERR_UTF_ENCODING
static final int ERR_UTF_ENCODINGThe document claimed to be UTF-8 but was not. It probably needs an xml declaration with an encoding attribute. (E212).- See Also:
-
ERR_GENERIC_IO
static final int ERR_GENERIC_IOAn IOException occurred. (E213).- See Also:
-
ERR_RESOLVING_AGAINST_MALFORMED_BASE
static final int ERR_RESOLVING_AGAINST_MALFORMED_BASECannot resolve a relative URI, because base URI is malformed. The base URI, specified in the API call, or with an xml:base was malformed, (seeWARN_MALFORMED_URI
). A relative URI needs to be resolved against it, and this cannot be done correctly. (E214)- See Also:
-
ERR_RESOLVING_AGAINST_RELATIVE_BASE
static final int ERR_RESOLVING_AGAINST_RELATIVE_BASECannot resolve a relative URI, because base URI is relative. The base URI, specified in the API call, or with an xml:base was relativeWARN_RELATIVE_URI
. A relative URI needs to be resolved against it, resulting in a relative URI. (E215)- See Also:
-
ERR_UNABLE_TO_RECOVER
Deprecated.Not used.No longer used. (E300)- See Also:
-
ERR_SAX_FATAL_ERROR
static final int ERR_SAX_FATAL_ERRORThe SAX Parser generated a.error error. Resetting this mode is not supported. Treated as a.error error in both default and strict modes. (E301)- See Also:
-
ERR_INTERRUPTED
static final int ERR_INTERRUPTEDThe Thread was interrupted. (E302)- See Also:
-