PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rlog: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

rlog:StatusCode a rdfs:Class ;
  rdfs:label "Status Code"@en ;
  rdfs: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."@en .

rlog:codeId a rdf:Property ;
  rdfs:label "code id"@en ;
  rdfs:comment "The numerical value of the code, e.g. 200, 404 or 42."@en ;
  rdfs:domain rlog:StatusCode ;
  rdfs:range <https://w3id.org/linkml/Any> .

rlog:Entry a rdfs:Class ;
  rdfs:label "Log Entry"@en ;
  rdfs:comment "An entry in a log."@en .

rlog:date a rdf:Property ;
  rdfs:label "Logging datetime (or just date)"@en ;
  rdfs:domain rlog:Entry ;
  rdfs:range xsd:dateTime .

rlog:resource a rdf:Property ;
  rdfs:label "an associated resource"@en ;
  rdfs: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. "@en ;
  rdfs:domain rlog:Entry ;
  rdfs:range <https://w3id.org/linkml/Any> .

rlog:message a rdf:Property ;
  rdfs:label "Logging message"@en ;
  rdfs:domain rlog:Entry ;
  rdfs:range <https://w3id.org/linkml/Any> .

rlog:level a rdf:Property ;
  rdfs:label "logLevel"@en ;
  rdfs:domain rlog:Entry ;
  rdfs:range rlog:Level .

rlog:hasCode a rdf:Property ;
  rdfs:label "has code"@en ;
  rdfs:comment "Links a log message to a status code."@en ;
  rdfs:domain rlog:Entry ;
  rdfs:range rlog:StatusCode .

rlog:className a rdf:Property ;
  rdfs:label "class name"@en ;
  rdfs:comment "Outputs the fully qualified class name of the caller issuing the logging request."@en ;
  rdfs:domain rlog:Entry ;
  rdfs:range <https://w3id.org/linkml/Any> .

rlog:Level a rdfs:Class ;
  rdfs:label "Log Level"@en ;
  rdfs:comment "look here: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html "@en .

rlog:priority a rdf:Property ;
  rdfs:label "logLevel"@en ;
  rdfs:comment "Attention: the ids here can change, they are just used to define an order over the levels!"@en ;
  rdfs:domain rlog:Level ;
  rdfs:range xsd:int .

<https://w3id.org/linkml/Any> a rdfs:Class ;
  rdfs:comment "An unconstrained type or object"@en .
