Update API Errors


RDF Suite      RSSDB      RDF Update API      Download UpdateAPI      Installation      API specification      Usage      Error Handling     



Update API methods return 1 if used in a valid way. In many cases, users give wrong parameters (for example, a string instead of a float, or a misspelled class name) or the specific actions are not valid for some database instances (for example, a specific resource is not stored in the database, therefore update_property cannot update a value on this resource). In that cases, update API methods return negative numbers, as shown bellow. Users are encouraged to hadle errors by usning the error information in this page.


Error name
id
Description
Unspecified error
0
Special type of error, probably a new bug. Please report it to updateAPI authors.
Class Not Fount
-1
This class is not stored in the database, or its name is not spelled correctly. You may use RQL to check if this class is stored and what is the correct name for it.
Property Not Found
-2
This property is not stored in the database, or its name is not spelled correctly. You may use RQL to check if this property is stored and what is the correct name for it.
Domain Error
-9
The source of the property is not stored, or it is not spelled correctly, or the property is not applicable to this resource (domain type is not a superclass of the resource type).
Range Error
-10
There is an error with the target value of the property. This might be because of a type mismatvh between the property range and the target value. In case the value is a resource, then the resource might not be stored, or it is not spelled correctly.
Statement Execution Error
-12
An error occured while executing a specific statement. Usually this is due to a database anomaly, or a new bug. If you believe it is a bug, please report is to updateAPI authors.
DB Representation Error
-13
Database representation is not valid! This error might occured while loading the RDF schema and/or data with RSSDB. Please, reload your schema and/or data. More information on RSSDB database representations can be found here.
Value Not Stored
-14
A literal value is not stored, allthough it was supposed to. For example, if you want to update a property value, the old value must be stored.
Invalid Resource Name
-15
The resource name is invalid. Usually this is due to a system anomaly or a bug. If you believe it is an updateAPI bug, please report it to updateAPI authors.
Invalid Namespace Name
-16
The namespace name is invalid. Usually this is due to a system anomaly or a bug. If you believe it is an updateAPI bug, please report it to updateAPI authors.
Invalid Class Name
-17
The class name is invalid. Usually this is due to a system anomaly or a bug. If you believe it is an updateAPI bug, please report it to updateAPI authors.
Invalid Property Name
-18
The property name is invalid. Usually this is due to a system anomaly or a bug. If you believe it is an updateAPI bug, please report it to updateAPI authors.
Namespace Error
-21
The namespace is not stored in the database, or it is not spelled correctly. You may use RQL to check if this namespace is stored and what is the correct name for it.