Holger Knublauch

Attempt to fix conflict

# Saved by TopBraid on Mon Aug 01 13:33:06 PDT 2011
# Saved by TopBraid on Thu Aug 04 15:07:45 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/core
# imports: http://www.linkedmodel.org/1.2/schema/vaem
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-core-1.1: <http://www.reportinghub.no/ep/schema/1.1/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -11,7 +13,7 @@
<http://www.reportinghub.no/ep/schema/1.1/core>
rdf:type owl:Ontology ;
owl:imports <http://www.linkedmodel.org/1.2/schema/vaem> ;
owl:imports <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> , <http://www.linkedmodel.org/1.2/schema/vaem> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-core:basisFor
......@@ -19,7 +21,7 @@ ep-core:basisFor
rdfs:label "basis for"^^xsd:string .
ep-core:derivedFrom
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:TransitiveProperty ;
rdfs:label "derived from"^^xsd:string .
ep-core:hasPart
......
This diff could not be displayed because it is too large.
# Saved by TopBraid on Tue Jul 26 22:48:40 CEST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/equipment
# Saved by TopBraid on Thu Aug 04 13:47:58 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/equipment
# imports: http://www.reportinghub.no/ep/schema/1.1/core
@prefix : <http://www.reportinghub.no/ep/schema/equipment#> .
@prefix ep-eqt: <http://www.reportinghub.no/ep/schema/equipment#> .
@prefix ep-eqt-1.1: <http://www.reportinghub.no/ep/schema/1.1/equipment#> .
@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/ep/schema/1.1/equipment>
<http://www.reportinghub.no/ep/schema/equipment>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Tue Jul 26 22:56:33 CEST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/report
# imports: http://www.reportinghub.no/ep/schema/1.1/activity
# Saved by TopBraid on Thu Aug 04 14:54:00 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/ep/schema/1.1/core
@prefix : <http://www.reportinghub.no/ep/schema/report#> .
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@prefix ep-report-1.1: <http://www.reportinghub.no/ep/schema/1.1/report#> .
@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/ep/schema/1.1/report>
<http://www.reportinghub.no/ep/schema/report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/activity> , <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-report:DailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:Report .
ep-report:FinalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:NormalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:PreliminaryDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:Report
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
......
# Saved by TopBraid on Mon Aug 01 13:33:39 PDT 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/well
# Saved by TopBraid on Thu Aug 04 14:29:37 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/well
# imports: http://www.reportinghub.no/ep/schema/1.1/core
@prefix : <http://www.reportinghub.no/ep/schema/well#> .
@prefix ep-well: <http://www.reportinghub.no/ep/schema/well#> .
@prefix ep-well-1.1: <http://www.reportinghub.no/ep/schema/1.1/well#> .
@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/ep/schema/1.1/well>
<http://www.reportinghub.no/ep/schema/well>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-well:AllOrPartOfTheLifeOfAWellBore
rdf:type owl:Class ;
rdfs:label "all or part of the life of a well bore"^^xsd:string .
ep-well:TemporalPartOfAWellBore
rdf:type owl:Class ;
rdfs:label "temporal part of a well bore"^^xsd:string ;
rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore .
ep-well:Well
rdf:type owl:Class ;
rdfs:label "Well"^^xsd:string ;
......@@ -31,8 +40,8 @@ ep-well:Well
ep-well:WellBore
rdf:type owl:Class ;
rdfs:label "Well bore"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:label "well bore"^^xsd:string ;
rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
......
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# Saved by TopBraid on Thu Aug 04 16:06:56 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
# Saved by TopBraid on Thu Aug 04 16:09:10 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@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 rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate rdfs:label ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdfs:label ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
sp:arg1 _:b4
] ;
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 _:b2
] ;
sp:variable _:b1
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b1 sp:varName "wellBore"^^xsd:string .
_:b2 sp:varName "nameWellBore"^^xsd:string .
_:b3 sp:varName "well"^^xsd:string .
_:b4 sp:varName "nameWell"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 14:25:22 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/activity
# imports: http://www.reportinghub.no/ep/schema/well
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
@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 sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/schema/activity> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/equipment> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Thu Aug 04 14:29:43 BST 2011
# baseURI: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/iso15926/nativeOWL
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://purl.org/dc/terms/
# imports: http://www.reportinghub.no/ep/schema/well
# imports: http://www.reportinghub.no/ep/schema/activity
@prefix : <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@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/ep/schema/well#AllOrPartOfTheLifeOfAWellBore>
rdfs:subClassOf iso15926:PossibleIndividual .
<http://www.reportinghub.no/iso15926/bindEP-NativeOWL>
rdf:type owl:Ontology ;
owl:imports <http://purl.org/dc/elements/1.1/> , <http://www.reportinghub.no/ep/schema/activity> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://www.w3.org/2004/02/skos/core> , <http://purl.org/dc/terms/> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/iso15926/nativeOWL> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 15:12:00 BST 2011
# baseURI: http://www.reportinghub.no/iso15926/nativeOWL
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://purl.org/dc/terms/
@prefix : <http://www.reportinghub.no/iso15926/nativeOWL#> .
@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/iso15926/nativeOWL>
rdf:type owl:Ontology ;
owl:imports <http://www.w3.org/2004/02/skos/core> , <http://purl.org/dc/terms/> , <http://purl.org/dc/elements/1.1/> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
:Activity
rdf:type owl:Class ;
rdfs:label "activity"^^xsd:string ;
rdfs:subClassOf :PossibleIndividual .
:PossibleIndividual
rdf:type owl:Class ;
rdfs:label "possible individual"^^xsd:string ;
rdfs:subClassOf owl:Thing .
:hasPart
rdf:type owl:TransitiveProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "has part"^^xsd:string ;
rdfs:range :PossibleIndividual ;
owl:inverseOf :partOf .
:hasTemporalPart
rdf:type owl:TransitiveProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "has temporal part"^^xsd:string ;
rdfs:range :PossibleIndividual ;
rdfs:subPropertyOf :hasPart ;
owl:inverseOf :temporalPartOf .
:partOf
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "part of"^^xsd:string ;
rdfs:range :PossibleIndividual ;
owl:inverseOf :hasPart .
:temporalPartOf
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "temporal part of"^^xsd:string ;
rdfs:range :PossibleIndividual ;
rdfs:subPropertyOf :partOf ;
owl:inverseOf :hasTemporalPart .
......@@ -14,6 +14,11 @@
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://spinrdf.org/arg#company>
rdf:type rdf:Property ;
rdfs:label "company"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://spinrdf.org/arg#id>
rdf:type rdf:Property ;
rdfs:label "id"^^xsd:string ;
......@@ -42,7 +47,7 @@
<http://www.reportinghub.no/spin/rh>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ;
owl:imports <http://topbraid.org/spin/spinmapl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/1.1/schema/npd> ;
owl:versionInfo "0.1.0"^^xsd:string .
rhspin:GetWellBoresOfWell
......@@ -118,6 +123,68 @@ rhspin:companyById
spl:valueType xsd:string
] .
rhspin:companyHasLicenceForWellBore
rdf:type spin:MagicProperty ;
rdfs:comment "A magic property that defines a relationship between companies (left side) and well bores (right side). It matches those well bores that the company currently holds a licence for. The query is optimized for the direction when the company is given and the well bores variable."^^xsd:string ;
rdfs:label "company has licence for well bore"^^xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:date ;
sp:arg1 [ rdf:type fn:substring ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 [ rdf:type sp:now
]
] ;
sp:arg2 1 ;
sp:arg3 10
]
] ;
sp:variable _:b4
] [ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/schema/npd#shareHolder> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/schema/npd#licenceShared> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/schema/npd#LS_Active> ;
sp:predicate <http://www.reportinghub.no/schema/npd#licenseStatus> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/schema/npd#startDate> ;
sp:subject _:b6
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:le ;
sp:arg1 _:b7 ;
sp:arg2 _:b4
]
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/schema/npd#endDate> ;
sp:subject _:b6
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:gt ;
sp:arg1 _:b8 ;
sp:arg2 _:b4
]
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/schema/npd#drilledInProductionLicence> ;
sp:subject _:b3
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The Company to match."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/schema/npd#Company>
] ;
spin:returnType <http://www.reportinghub.no/schema/npd#WellBore> .
rhspin:discoveryById
rdf:type spin:Function ;
rdfs:label "discovery by id"^^xsd:string ;
......@@ -214,7 +281,7 @@ rhspin:normalizeString
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b9) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
......@@ -222,67 +289,67 @@ rhspin:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b4
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b4
sp:arg1 _:b10
] ;
sp:variable _:b5
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b5
sp:arg1 _:b11
] ;
sp:variable _:b6
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b6 ;
sp:arg1 _:b12 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b7
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b7 ;
sp:arg1 _:b13 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b8
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b8 ;
sp:arg1 _:b14 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b9
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b9 ;
sp:arg1 _:b15 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b10
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b10 ;
sp:arg1 _:b16 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b11
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b11
sp:arg1 _:b17
]
] ;
sp:variable _:b3
sp:variable _:b9
])
] ;
spin:constraint
......@@ -401,26 +468,44 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/schema/npd#Well> .
_:b3 sp:varName "normalizedStr"^^xsd:string .
_:b3 sp:varName "wellBore"^^xsd:string .
_:b4 sp:varName "s1"^^xsd:string .
_:b8 sp:varName "endDate"^^xsd:string .
_:b5 sp:varName "s2"^^xsd:string .
_:b7 sp:varName "startDate"^^xsd:string .
_:b6 sp:varName "t0a"^^xsd:string .
_:b6 sp:varName "licence"^^xsd:string .
_:b7 sp:varName "t0b"^^xsd:string .
_:b5 sp:varName "share"^^xsd:string .
_:b8 sp:varName "t1"^^xsd:string .
_:b4 sp:varName "nowDate"^^xsd:string .
_:b9 sp:varName "t2"^^xsd:string .
_:b17
sp:varName "t4"^^xsd:string .
_:b10
_:b16
sp:varName "t3"^^xsd:string .
_:b15
sp:varName "t2"^^xsd:string .
_:b14
sp:varName "t1"^^xsd:string .
_:b13
sp:varName "t0b"^^xsd:string .
_:b12
sp:varName "t0a"^^xsd:string .
_:b11
sp:varName "t4"^^xsd:string .
sp:varName "s2"^^xsd:string .
_:b1 sp:varName "wellBoreName"^^xsd:string .
_:b10
sp:varName "s1"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b2 sp:varName "wellBore"^^xsd:string .
_:b1 sp:varName "wellBoreName"^^xsd:string .
......
<html>
<head>
<title>ReportingHub - Upload DDR</title>
<title>ReportingHub - Validate or Upload DDR</title>
<link href="lib/rh/rh.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="lib/rh/jquery/jquery.js"></script>
</head>
<body>
<div id="wrapper">
......@@ -9,16 +10,31 @@
<rhswp:Header />
<div id="content">
<h3>Upload a Daily Drilling Report</h3>
<h3>Validate or Upload a Daily Drilling Report</h3>
<p>
Please select a DDR XML file:
</p>
<form action="ddrFileUpload" enctype="multipart/form-data" method="post">
<form enctype="multipart/form-data" id="theForm" method="post">
<div>
<input name="file" type="file" />
</div>
<br />
<input type="submit" value="Upload" />
<input id="validateButton" type="radio" name="type" value="validate" checked="checked" />Validate only<br />
<input id="uploadButton" type="radio" name="type" value="upload" />Validate &amp; upload<br />
<script>
function updateAction() {
var newAction = $("#validateButton").attr("checked") ? "validate-report" : "submit-report";
$("#theForm").attr("action", newAction);
}
$("#validateButton").change(updateAction);
$("#uploadButton").change(updateAction);
updateAction();
</script>
<br />
<input type="submit" value="Submit" />
</form>
</div>
</div>
......