RLOG - an RDF Logging Ontology
type: Ontology
preferred namespace prefix: rlog
changes: rlog
version info: 1.1.0
version IRI: rlog.ttl
license: http://creativecommons.org/licenses/by/3.0/
license: LICENSE-2.0
comment: This is a helper ontology for NIF 2.0 to be able to log errors and warning messages.
creator: Sebastian Hellmann
contributor: TODO
publisher: AKSW, University Leipzig
rights: This ontology is licensed under Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) and CC-BY (http://creativecommons.org/licenses/by/3.0/)
description: We built this ontology by looking at log4j version 1.2 and version 2 beta: http://logging.apache.org/log4j/2.x/manual/layouts.html, http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html Is this complete? No! But it will be sufficient for most use cases, please feel free to extend and adapt the ontology, if you need more. Loglevels: TRACE, DEBUG, INFO, WARN, ERROR and FATAL Feedback If you'd like to leave feedback, please open an issue on GitHub (https://github.com/NLP2RDF/ontologies/issues) and read the README (https://github.com/NLP2RDF/ontologies#readme) or write an email to the mailing list: http://lists.informatik.uni-leipzig.de/mailman/listinfo/nlp2rdf Versioning process is explained here: http://persistence.uni-leipzig.org/nlp2rdf/specification/version.html Changelog: * 1.0.0 initial version * 1.0.1 added Error Code class and errcode property * 1.1.0 change Error Code class to Status Code

Log Entry
type: Class
comment: An entry in a log.

Log Level
type: Class
comment: look here: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html

Status Code
type: Class
comment: A status code which can occur in an application. Instances of this class must put the name of the status as rdfs:label and describe it with rdfs:comment.

class name
type: DatatypeProperty
domain: Log Entry
comment: Outputs the fully qualified class name of the caller issuing the logging request.

an associated resource
type: ObjectProperty
domain: Log Entry
comment: If we mix normal and log output, this can be used to refer to the resource in the RDF the error is connected to.

has code
type: ObjectProperty
domain: Log Entry
range: Status Code
comment: Links a log message to a status code.

code id
type: DatatypeProperty
domain: Status Code
comment: The numerical value of the code, e.g. 200, 404 or 42.

Logging message
type: DatatypeProperty
domain: Log Entry

Logging datetime (or just date)
type: DatatypeProperty
domain: Log Entry
range: dateTime

logLevel
type: ObjectProperty
domain: Log Entry
range: Log Level

logLevel
type: DatatypeProperty
domain: Log Level
range: int
comment: Attention: the ids here can change, they are just used to define an order over the levels!

ALL
type: Log Level
type: NamedIndividual
logLevel: 0
comment: The ALL has the lowest possible rank and is intended to turn on all logging.

TRACE
type: Log Level
type: NamedIndividual
logLevel: 1
comment: The TRACE Level designates finer-grained informational events than the DEBUG.

DEBUG
type: Log Level
type: NamedIndividual
logLevel: 2
comment: The DEBUG Level designates fine-grained informational events that are most useful to debug an application.

INFO
type: Log Level
type: NamedIndividual
logLevel: 3
comment: The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.

WARN
type: Log Level
type: NamedIndividual
logLevel: 4
comment: The WARN level designates potentially harmful situations.

ERROR
type: Log Level
type: NamedIndividual
logLevel: 5
comment: The ERROR level designates error events that might still allow the application to continue running.

FATAL
type: Log Level
type: NamedIndividual
logLevel: 6
comment: The FATAL level designates very severe error events that will presumably lead the application to abort.

OFF
type: Log Level
type: NamedIndividual
logLevel: 7
comment: The OFF has the highest possible rank and is intended to turn off logging.

mylog1
type: Log Entry
logLevel: INFO
Logging datetime (or just date): 2013-06-08T17:00:00Z
class name: org.nlp2rdf.core.SPARQLValidator
an associated resource: aResourceRelatedToThisLogEntry
Logging message: Example log message, put whatever you want.