Holger Knublauch

Start of NPD validation constraints

Progress on Upload/download SWP pages
*.ttl binary
......@@ -62,16 +62,26 @@
</select>
</div><br />
<div>
<div class="formHeader">3. Select Date:</div><input type="text" id="datepicker" />
<div class="formHeader">3. Select Date(s):</div>
<input type="text" id="datepicker1" name="date1" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" name="date2" style="width: 90px" />
<script>
$(function() {
$("#datepicker").datepicker();
$("#datepicker1").datepicker();
$("#datepicker2").datepicker();
});
</script>
&nbsp;
<input type="submit" value="Download" />
</div>
</td>
<td></td>
<td style="padding-left:20px; vertical-align: top">
<div>
<div class="formHeader">4. Select Format:</div>
<input type="radio" name="format" value="html" checked="checked"/>HTML<br />
<input type="radio" name="format" value="pdf" />PDF<br />
<input type="radio" name="format" value="xml" />XML<br />
</div><br />
<input type="submit" value="Download" />
</td>
</tr>
</table>
</form>
......
# baseURI: http://www.reportinghub.no/ep/spin/ddr-constraints
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/1.1/schema/npd
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
@prefix : <http://www.reportinghub.no/ep/spin/ddr-constraints#> .
@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/schema/ddr#Obj_drillReport>
spin:constraint
[ rdf:type sp:Ask ;
rdfs:comment "Unregistered well bore name"^^xsd:string ;
sp:where ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/schema/npd#name> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/schema/npd#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b2
])
]) ;
sp:graphNameNode <https://www.reportinghub.no/ep/data/npd>
])
] .
<http://www.reportinghub.no/ep/spin/ddr-constraints>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b2 sp:varName "wellBore"^^xsd:string .
_:b1 sp:varName "nameWellbore"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@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 visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
......@@ -4,19 +4,23 @@
<link href="lib/rh/rh.css" rel="stylesheet" type="text/css" />
</head>
<body>
<rhswp:Header />
<h3>Upload a Daily Drilling Report</h3>
<p>
Please select a DDR XML file:
</p>
<form action="ddrFileUpload" enctype="multipart/form-data" method="post">
<div>
<input name="file" type="file" />
<div id="wrapper">
<rhswp:Header />
<div id="content">
<h3>Upload a Daily Drilling Report</h3>
<p>
Please select a DDR XML file:
</p>
<form action="ddrFileUpload" enctype="multipart/form-data" method="post">
<div>
<input name="file" type="file" />
</div>
<br />
<input type="submit" value="Upload" />
</form>
</div>
<br />
<input type="submit" value="Upload" />
</form>
</div>
</body>
</html>
\ No newline at end of file
......