SCHEMA-logging.ttl 7.26 KB
# baseURI: http://www.reportinghub.no/system/schema/logging
# imports: http://purl.org/dc/terms/
# imports: http://rdfs.org/sioc/ns
# imports: http://www.reportinghub.no/system/schema/reporting

@prefix log:     <http://www.reportinghub.no/system/schema/logging#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

<http://www.reportinghub.no/system/schema/logging>
      rdf:type owl:Ontology ;
      owl:imports <http://www.reportinghub.no/system/schema/reporting> , <http://rdfs.org/sioc/ns> , <http://purl.org/dc/terms/> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

log:FactPagesUpdateEvent
      rdf:type owl:Class ;
      rdfs:label "Fact pages update event"^^xsd:string ;
      rdfs:subClassOf log:LogEvent .

log:LogEvent
      rdf:type owl:Class ;
      rdfs:label "Log event"^^xsd:string ;
      rdfs:subClassOf owl:Thing ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty rdfs:comment
              ] ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty <http://rdfs.org/sioc/ns#id>
              ] ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty <http://purl.org/dc/terms/created>
              ] ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:allValuesFrom xsd:string ;
                owl:onProperty <http://rdfs.org/sioc/ns#id>
              ] ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:allValuesFrom xsd:dateTime ;
                owl:onProperty <http://purl.org/dc/terms/created>
              ] .

log:NPDUploadEvent
      rdf:type owl:Class ;
      rdfs:comment "Represents the fact that a given XML file has been submitted to NPD."^^xsd:string ;
      rdfs:label "NPDUpload event"^^xsd:string ;
      rdfs:subClassOf log:ReportEvent ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty log:xml
              ] .

log:PasswordChangeEvent
      rdf:type owl:Class ;
      rdfs:label "Password change event"^^xsd:string ;
      rdfs:subClassOf log:LogEvent .

log:QueryEvent
      rdf:type owl:Class ;
      rdfs:label "Query event"^^xsd:string ;
      rdfs:subClassOf log:LogEvent .

log:ReportDownloadEvent
      rdf:type owl:Class ;
      rdfs:label "Report download event"^^xsd:string ;
      rdfs:subClassOf log:ReportEvent ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty <http://www.reportinghub.no/system/schema/reporting#wellBoreId>
              ] ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty <http://www.reportinghub.no/system/schema/reporting#format>
              ] .

log:ReportDownloadTriplesEvent
      rdf:type owl:Class ;
      rdfs:subClassOf log:ReportDownloadEvent .

log:ReportEvent
      rdf:type owl:Class ;
      rdfs:label "Report event"^^xsd:string ;
      rdfs:subClassOf log:LogEvent .

log:ReportUploadEvent
      rdf:type owl:Class ;
      rdfs:label "Report upload event"^^xsd:string ;
      rdfs:subClassOf log:ReportEvent ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:minCardinality "0"^^xsd:nonNegativeInteger ;
                owl:onProperty <http://www.reportinghub.no/system/schema/reporting#format>
              ] ;
      rdfs:subClassOf
              [ rdf:type owl:Restriction ;
                owl:cardinality "1"^^xsd:nonNegativeInteger ;
                owl:onProperty log:xml
              ] .

log:ReportValidationEvent
      rdf:type owl:Class ;
      rdfs:label "Report validation event"^^xsd:string ;
      rdfs:subClassOf log:ReportEvent .

log:dateFrom
      rdf:type owl:DatatypeProperty ;
      rdfs:domain log:ReportDownloadEvent ;
      rdfs:label "date from"^^xsd:string ;
      rdfs:range xsd:date .

log:dateTo
      rdf:type owl:DatatypeProperty ;
      rdfs:domain log:ReportDownloadEvent ;
      rdfs:label "date to"^^xsd:string ;
      rdfs:range xsd:date .

log:initiatedBy
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "The name of the user logged in."^^xsd:string ;
      rdfs:domain log:LogEvent ;
      rdfs:label "user"^^xsd:string ;
      rdfs:range xsd:string .

log:npdEntityName
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "Points to a well bore or field name that had the report uploaded."^^xsd:string ;
      rdfs:domain log:ReportUploadEvent ;
      rdfs:label "NPD entity name"^^xsd:string ;
      rdfs:range xsd:string .

log:onBehalfOf
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "The name of the company that the user has been logged in for."^^xsd:string ;
      rdfs:domain log:LogEvent ;
      rdfs:label "company"^^xsd:string ;
      rdfs:range xsd:string .

log:outcome
      rdf:type owl:DatatypeProperty ;
      rdfs:domain log:LogEvent ;
      rdfs:label "outcome"^^xsd:string ;
      rdfs:range
              [ rdf:type rdfs:Datatype ;
                owl:oneOf ("success"^^xsd:string "user-error"^^xsd:string "server-error"^^xsd:string)
              ] .

log:ownerId
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "The NPD id of the BAA or Licence."^^xsd:string ;
      rdfs:domain log:ReportDownloadEvent ;
      rdfs:label "owner id"^^xsd:string ;
      rdfs:range xsd:string .

log:processingTime
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "Number of milliseconds that a request took."^^xsd:string ;
      rdfs:domain log:ReportEvent ;
      rdfs:label "processing time (ms)"^^xsd:string ;
      rdfs:range xsd:integer .

log:reportType
      rdf:type owl:ObjectProperty ;
      rdfs:domain log:ReportEvent ;
      rdfs:label "report type"^^xsd:string ;
      rdfs:range <http://www.reportinghub.no/system/schema/reporting#ReportClass> .

log:reportingPeriodStart
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "The start date of the reporting period in the report."^^xsd:string ;
      rdfs:domain log:ReportUploadEvent ;
      rdfs:label "reporting period start"^^xsd:string ;
      rdfs:range xsd:date .

log:url
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "The URL of a query request."^^xsd:string ;
      rdfs:domain log:QueryEvent ;
      rdfs:label "url"^^xsd:string ;
      rdfs:range xsd:string .

log:xml
      rdf:type owl:DatatypeProperty ;
      rdfs:comment "The complete source of the submitted XML document."^^xsd:string ;
      rdfs:label "xml"^^xsd:string ;
      rdfs:range xsd:string .

<http://www.reportinghub.no/system/schema/reporting#format>
      rdfs:range <http://www.reportinghub.no/system/schema/reporting#Format> .

<http://www.reportinghub.no/system/schema/reporting#uploadedDocument>
      rdf:type owl:ObjectProperty ;
      rdfs:domain log:ReportUploadEvent ;
      rdfs:label "uploaded document"^^xsd:string .