SCHEMA-reporting.ttl 5.82 KB
# baseURI: http://www.reportinghub.no/system/schema/reporting
# imports: http://purl.org/dc/terms/
# imports: http://www.reportinghub.no/np/schema/1.0/npd

# c14n-version: 3
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@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 report: <http://www.reportinghub.no/system/schema/reporting#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
sioc:id
  rdf:type owl:DatatypeProperty ;
  rdfs:label "id"^^xsd:string ;
.
<http://www.reportinghub.no/system/schema/reporting>
  rdf:type owl:Ontology ;
  rdfs:comment "The schema of metadata kept by the ReportingHub system to keep track of submitted reports. The starting point is the class foaf:Document."^^xsd:string ;
  owl:imports <http://purl.org/dc/terms/> ;
  owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> ;
  owl:versionInfo "0.2.0"^^xsd:string ;
.
report:AbstractDR
  rdf:type report:ReportClass ;
  rdfs:comment "Abstract base class for various types of daily reports."^^xsd:string ;
  rdfs:label "Daily report"^^xsd:string ;
  rdfs:subClassOf report:AbstractReport ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:allValuesFrom xsd:date ;
      owl:onProperty <http://purl.org/dc/terms/date> ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:allValuesFrom xsd:dateTime ;
      owl:onProperty <http://purl.org/dc/terms/created> ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:allValuesFrom xsd:string ;
      owl:onProperty sioc: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:cardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty <http://purl.org/dc/terms/date> ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty sioc:id ;
    ] ;
.
report:AbstractMPR
  rdf:type report:ReportClass ;
  rdfs:label "Monthly Production Report"^^xsd:string ;
  rdfs:subClassOf report:AbstractReport ;
.
report:AbstractReport
  rdf:type owl:Class ;
  rdfs:label "Any report"^^xsd:string ;
  rdfs:subClassOf foaf:Document ;
.
report:DDR
  rdf:type report:ReportClass ;
  rdfs:comment "The metadata about a Daily Drilling Report."^^xsd:string ;
  rdfs:label "DDR 1.1"^^xsd:string ;
  rdfs:subClassOf report:AbstractDR ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty report:wellBoreId ;
    ] ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty report:xml ;
    ] ;
.
report:DPR
  rdf:type report:ReportClass ;
  rdfs:comment "The metadata about a Daily Production Report."^^xsd:string ;
  rdfs:label "DPR 1.0"^^xsd:string ;
  rdfs:subClassOf report:AbstractDR ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:cardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty report:owner ;
    ] ;
.
report:DPR2
  rdf:type report:ReportClass ;
  rdfs:label "DPR 2.0"^^xsd:string ;
  rdfs:subClassOf report:AbstractDR ;
.
report:Format
  rdf:type owl:Class ;
  rdfs:label "Format"^^xsd:string ;
  rdfs:subClassOf owl:Thing ;
.
report:HTMLFormat
  rdf:type report:Format ;
  rdfs:label "HTMLFormat"^^xsd:string ;
.
report:MPRG
  rdf:type report:ReportClass ;
  rdfs:label "MPR Gov 1.0"^^xsd:string ;
  rdfs:subClassOf report:AbstractMPR ;
.
report:MPRP
  rdf:type report:ReportClass ;
  rdfs:label "MPR Partner 1.0"^^xsd:string ;
  rdfs:subClassOf report:AbstractMPR ;
.
report:NPTR
  rdf:type report:ReportClass ;
  rdfs:comment "Metadata about a Non-Productive Time Report."^^xsd:string ;
  rdfs:label "NPTR"^^xsd:string ;
  rdfs:subClassOf foaf:Document ;
.
report:PDFFormat
  rdf:type report:Format ;
  rdfs:label "PDFFormat"^^xsd:string ;
.
report:ReportClass
  rdf:type rdfs:Class ;
  rdfs:comment "Metaclass for the various report types."^^xsd:string ;
  rdfs:label "Report class"^^xsd:string ;
  rdfs:subClassOf owl:Class ;
.
report:WDR
  rdf:type report:ReportClass ;
  rdfs:comment "Metadata about a Weekly Drilling Report"^^xsd:string ;
  rdfs:label "WDR"^^xsd:string ;
  rdfs:subClassOf foaf:Document ;
.
report:XMLFormat
  rdf:type report:Format ;
  rdfs:label "XMLFormat"^^xsd:string ;
.
report:ZipFormat
  rdf:type report:Format ;
  rdfs:label "Zip format"^^xsd:string ;
.
report:containsParts
  rdf:type owl:DatatypeProperty ;
  rdfs:comment "Comma-separated list of names of the parts in alphabetical order (e.g. \"Cargo, Stock\")."^^xsd:string ;
  rdfs:domain report:MPRG ;
  rdfs:label "contains parts"^^xsd:string ;
  rdfs:range xsd:string ;
.
report:fieldName
  rdf:type owl:DatatypeProperty ;
  rdfs:domain report:AbstractMPR ;
  rdfs:label "field name"^^xsd:string ;
  rdfs:range xsd:string ;
.
report:format
  rdf:type owl:ObjectProperty ;
  rdfs:label "format"^^xsd:string ;
.
report:month
  rdf:type owl:DatatypeProperty ;
  rdfs:domain report:MPRG ;
  rdfs:label "month"^^xsd:string ;
  rdfs:range xsd:string ;
.
report:owner
  rdf:type owl:ObjectProperty ;
  rdfs:label "owner"^^xsd:string ;
  rdfs:range <http://www.reportinghub.no/np/schema/npd#Owner> ;
.
report:preliminary
  rdf:type owl:DatatypeProperty ;
  rdfs:domain report:MPRG ;
  rdfs:label "preliminary"^^xsd:string ;
  rdfs:range xsd:boolean ;
.
report:wellBoreId
  rdf:type owl:DatatypeProperty ;
  rdfs:label "well bore id"^^xsd:string ;
.
report:xml
  rdf:type owl:DatatypeProperty ;
  rdfs:comment "The XML code of a report."^^xsd:string ;
  rdfs:label "xml"^^xsd:string ;
  rdfs:range xsd:string ;
.
foaf:Document
  rdf:type rdfs:Class ;
  rdfs:label "Document"^^xsd:string ;
.