Holger Knublauch

Additional properties to store MPRG metadata

......@@ -2,6 +2,7 @@
# 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#> .
......@@ -9,175 +10,189 @@
@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 .
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/> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:versionInfo "0.2.0"^^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:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://purl.org/dc/terms/created>
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:allValuesFrom xsd:date ;
owl:onProperty <http://purl.org/dc/terms/date> ;
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:allValuesFrom xsd:dateTime ;
owl:onProperty <http://purl.org/dc/terms/created>
owl:onProperty <http://purl.org/dc/terms/created> ;
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
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/date>
owl:onProperty <http://purl.org/dc/terms/created> ;
] ;
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:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://purl.org/dc/terms/date> ;
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty sioc:id
owl:onProperty sioc:id ;
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:string ;
owl:onProperty sioc:id
] .
.
report:AbstractMPR
rdf:type report:ReportClass ;
rdfs:label "Monthly Production Report"^^xsd:string ;
rdfs:subClassOf report:AbstractReport .
rdfs:subClassOf report:AbstractReport ;
.
report:AbstractReport
rdf:type owl:Class ;
rdfs:label "Any report"^^xsd:string ;
rdfs:subClassOf foaf:Document .
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 ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:wellBoreId
owl:onProperty report:wellBoreId ;
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:xml
] .
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 ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:owner
] .
owl:onProperty report:owner ;
] ;
.
report:DPR2
rdf:type report:ReportClass ;
rdfs:label "DPR 2.0"^^xsd:string ;
rdfs:subClassOf report:AbstractDR .
rdfs:subClassOf report:AbstractDR ;
.
report:Format
rdf:type owl:Class ;
rdfs:label "Format"^^xsd:string ;
rdfs:subClassOf owl:Thing .
rdfs:subClassOf owl:Thing ;
.
report:HTMLFormat
rdf:type report:Format ;
rdfs:label "HTMLFormat"^^xsd:string .
rdfs:label "HTMLFormat"^^xsd:string ;
.
report:MPRG
rdf:type report:ReportClass ;
rdfs:label "MPR Gov 1.0"^^xsd:string ;
rdfs:subClassOf report:AbstractMPR .
rdfs:subClassOf report:AbstractMPR ;
.
report:MPRP
rdf:type report:ReportClass ;
rdfs:label "MPR Partner 1.0"^^xsd:string ;
rdfs:subClassOf report:AbstractMPR .
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 .
rdfs:subClassOf foaf:Document ;
.
report:PDFFormat
rdf:type report:Format ;
rdfs:label "PDFFormat"^^xsd:string .
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 .
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 .
rdfs:subClassOf foaf:Document ;
.
report:XMLFormat
rdf:type report:Format ;
rdfs:label "XMLFormat"^^xsd:string .
rdfs:label "XMLFormat"^^xsd:string ;
.
report:ZipFormat
rdf:type report:Format ;
rdfs:label "Zip format"^^xsd:string .
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 .
rdfs:range xsd:string ;
.
report:format
rdf:type owl:ObjectProperty ;
rdfs:label "format"^^xsd:string .
rdfs:label "format"^^xsd:string ;
.
report:month
rdf:type owl:DatatypeProperty ;
rdfs:domain report:MPRG ;
rdfs:label "month"^^xsd:string ;
rdfs:range 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> .
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 .
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 .
rdfs:range xsd:string ;
.
foaf:Document
rdf:type rdfs:Class ;
rdfs:label "Document"^^xsd:string .
rdfs:label "Document"^^xsd:string ;
.
......
......@@ -2,6 +2,7 @@
# imports: http://www.reportinghub.no/system/schema/reporting
# imports: http://www.reportinghub.no/system/swp/SWP-logging
# c14n-version: 3
@prefix arg: <http://spinrdf.org/arg#> .
@prefix default: <http://uispin.org/default#> .
@prefix html: <http://uispin.org/html#> .
......@@ -17,135 +18,166 @@
@prefix swa: <http://topbraid.org/swa#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
report:AbstractDR
ui:instanceView
[ rdf:type report:DRFormBody ;
ui:instanceView [
rdf:type report:DRFormBody ;
arg:resource spin:_this ;
ui:id "search"^^xsd:string
] .
ui:id "search"^^xsd:string ;
] ;
.
report:AbstractMPR
swa:keyProperties (<http://purl.org/dc/terms/created> rdf:type report:fieldName <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type report:MPRFormBody ;
swa:keyProperties (
<http://purl.org/dc/terms/created>
rdf:type
report:fieldName
<http://rdfs.org/sioc/ns#id>
) ;
ui:instanceView [
rdf:type report:MPRFormBody ;
arg:resource spin:_this ;
ui:id "search"^^xsd:string
] .
ui:id "search"^^xsd:string ;
] ;
.
report:AbstractReport
swa:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type <http://rdfs.org/sioc/ns#id>) .
swa:keyProperties (
<http://purl.org/dc/terms/created>
<http://purl.org/dc/terms/date>
rdf:type
<http://rdfs.org/sioc/ns#id>
) ;
.
report:DDR
swa:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type report:wellBoreId <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type ui:group ;
swa:keyProperties (
<http://purl.org/dc/terms/created>
<http://purl.org/dc/terms/date>
rdf:type
report:wellBoreId
<http://rdfs.org/sioc/ns#id>
) ;
ui:instanceView [
rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type report:DRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
] ;
ui:child
[ rdf:type swa:Object ;
ui:child [
rdf:type swa:Object ;
arg:label "Well bore id"^^xsd:string ;
arg:predicate report:wellBoreId ;
ui:childIndex 1
ui:childIndex 1 ;
] ;
ui:id "search"^^xsd:string
] .
ui:child [
rdf:type report:DRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0 ;
] ;
ui:id "search"^^xsd:string ;
] ;
.
report:DPR
swa:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type report:owner <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type ui:group ;
swa:keyProperties (
<http://purl.org/dc/terms/created>
<http://purl.org/dc/terms/date>
rdf:type
report:owner
<http://rdfs.org/sioc/ns#id>
) ;
ui:instanceView [
rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type report:DRFormBody ;
ui:child [
rdf:type report:DRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
ui:childIndex 0 ;
] ;
ui:id "search"^^xsd:string
] .
ui:id "search"^^xsd:string ;
] ;
.
report:DRFormBody
rdf:type ui:ResourceViewClass ;
rdfs:label "DRForm body"^^xsd:string ;
rdfs:subClassOf swa:FormBody ;
ui:prototype
[ rdf:type html:Div ;
default:subject
[ sp:varName "resource"^^xsd:string
ui:prototype [
rdf:type html:Div ;
default:subject [
sp:varName "resource"^^xsd:string ;
] ;
ui:child
[ rdf:type swa:ColumnLayout ;
ui:child [
rdf:type swa:ColumnLayout ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type swa:Object ;
ui:child [
rdf:type swa:Object ;
arg:label "Created"^^xsd:string ;
arg:predicate <http://purl.org/dc/terms/created> ;
ui:childIndex 0
ui:childIndex 0 ;
] ;
ui:child
[ rdf:type swa:Object ;
ui:child [
rdf:type swa:Object ;
arg:label "Date on Report"^^xsd:string ;
arg:predicate <http://purl.org/dc/terms/date> ;
ui:childIndex 1
ui:childIndex 1 ;
] ;
ui:childIndex 0
]
] .
ui:childIndex 0 ;
] ;
] ;
rdfs:label "DRForm body"^^xsd:string ;
rdfs:subClassOf swa:FormBody ;
.
report:MPRFormBody
rdf:type ui:ResourceViewClass ;
rdfs:label "MPR form body"^^xsd:string ;
rdfs:subClassOf swa:FormBody ;
ui:prototype
[ rdf:type html:Div ;
default:subject
[ sp:varName "resource"^^xsd:string
ui:prototype [
rdf:type html:Div ;
default:subject [
sp:varName "resource"^^xsd:string ;
] ;
ui:child
[ rdf:type swa:ColumnLayout ;
ui:child [
rdf:type swa:ColumnLayout ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type swa:Object ;
ui:child [
rdf:type swa:Object ;
arg:label "Created"^^xsd:string ;
arg:predicate <http://purl.org/dc/terms/created> ;
ui:childIndex 0
ui:childIndex 0 ;
] ;
ui:child
[ rdf:type swa:Object ;
ui:child [
rdf:type swa:Object ;
arg:label "Field name"^^xsd:string ;
arg:predicate report:fieldName ;
ui:childIndex 1
ui:childIndex 1 ;
] ;
ui:childIndex 0
]
] .
ui:childIndex 0 ;
] ;
] ;
rdfs:label "MPR form body"^^xsd:string ;
rdfs:subClassOf swa:FormBody ;
.
report:MPRG
swa:keyProperties (<http://purl.org/dc/terms/created> rdf:type report:fieldName report:month <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type ui:group ;
swa:keyProperties (
<http://purl.org/dc/terms/created>
rdf:type
report:fieldName
report:month
report:preliminary
report:containsParts
<http://rdfs.org/sioc/ns#id>
) ;
ui:instanceView [
rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type report:MPRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
] ;
ui:child
[ rdf:type swa:Object ;
ui:child [
rdf:type swa:Object ;
arg:label "Month (yyyy-MM)"^^xsd:string ;
arg:predicate report:month ;
ui:childIndex 1
ui:childIndex 1 ;
] ;
ui:id "search"^^xsd:string
] .
ui:child [
rdf:type report:MPRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0 ;
] ;
ui:id "search"^^xsd:string ;
] ;
.
<http://www.reportinghub.no/system/swp/reporting>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/system/schema/reporting> , <http://www.reportinghub.no/system/swp/SWP-logging> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:imports <http://www.reportinghub.no/system/schema/reporting> ;
owl:imports <http://www.reportinghub.no/system/swp/SWP-logging> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string ;
.
......