Start of NPD validation constraints
Progress on Upload/download SWP pages
Showing
5 changed files
with
78 additions
and
4 deletions
.gitattributes
0 → 100755
| 1 | +*.ttl binary |
| ... | @@ -62,16 +62,26 @@ | ... | @@ -62,16 +62,26 @@ |
| 62 | </select> | 62 | </select> |
| 63 | </div><br /> | 63 | </div><br /> |
| 64 | <div> | 64 | <div> |
| 65 | - <div class="formHeader">3. Select Date:</div><input type="text" id="datepicker" /> | 65 | + <div class="formHeader">3. Select Date(s):</div> |
| 66 | + <input type="text" id="datepicker1" name="date1" style="width: 90px" /> - <input type="text" id="datepicker2" name="date2" style="width: 90px" /> | ||
| 66 | <script> | 67 | <script> |
| 67 | $(function() { | 68 | $(function() { |
| 68 | - $("#datepicker").datepicker(); | 69 | + $("#datepicker1").datepicker(); |
| 70 | + $("#datepicker2").datepicker(); | ||
| 69 | }); | 71 | }); |
| 70 | </script> | 72 | </script> |
| 71 | - | ||
| 72 | - <input type="submit" value="Download" /> | ||
| 73 | </div> | 73 | </div> |
| 74 | </td> | 74 | </td> |
| 75 | + <td></td> | ||
| 76 | + <td style="padding-left:20px; vertical-align: top"> | ||
| 77 | + <div> | ||
| 78 | + <div class="formHeader">4. Select Format:</div> | ||
| 79 | + <input type="radio" name="format" value="html" checked="checked"/>HTML<br /> | ||
| 80 | + <input type="radio" name="format" value="pdf" />PDF<br /> | ||
| 81 | + <input type="radio" name="format" value="xml" />XML<br /> | ||
| 82 | + </div><br /> | ||
| 83 | + <input type="submit" value="Download" /> | ||
| 84 | + </td> | ||
| 75 | </tr> | 85 | </tr> |
| 76 | </table> | 86 | </table> |
| 77 | </form> | 87 | </form> | ... | ... |
| 1 | +# baseURI: http://www.reportinghub.no/ep/spin/ddr-constraints | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.reportinghub.no/1.1/schema/npd | ||
| 4 | +# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr | ||
| 5 | + | ||
| 6 | +@prefix : <http://www.reportinghub.no/ep/spin/ddr-constraints#> . | ||
| 7 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 8 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 9 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 10 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 11 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 12 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 13 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 14 | + | ||
| 15 | +<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> | ||
| 16 | + spin:constraint | ||
| 17 | + [ rdf:type sp:Ask ; | ||
| 18 | + rdfs:comment "Unregistered well bore name"^^xsd:string ; | ||
| 19 | + sp:where ([ sp:object _:b1 ; | ||
| 20 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
| 21 | + sp:subject spin:_this | ||
| 22 | + ] [ rdf:type sp:NamedGraph ; | ||
| 23 | + sp:elements ([ rdf:type sp:NotExists ; | ||
| 24 | + sp:elements ([ sp:object _:b1 ; | ||
| 25 | + sp:predicate <http://www.reportinghub.no/schema/npd#name> ; | ||
| 26 | + sp:subject _:b2 | ||
| 27 | + ] [ sp:object <http://www.reportinghub.no/schema/npd#WellBore> ; | ||
| 28 | + sp:predicate rdf:type ; | ||
| 29 | + sp:subject _:b2 | ||
| 30 | + ]) | ||
| 31 | + ]) ; | ||
| 32 | + sp:graphNameNode <https://www.reportinghub.no/ep/data/npd> | ||
| 33 | + ]) | ||
| 34 | + ] . | ||
| 35 | + | ||
| 36 | +<http://www.reportinghub.no/ep/spin/ddr-constraints> | ||
| 37 | + rdf:type owl:Ontology ; | ||
| 38 | + owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://spinrdf.org/spin> ; | ||
| 39 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
| 40 | + | ||
| 41 | +_:b2 sp:varName "wellBore"^^xsd:string . | ||
| 42 | + | ||
| 43 | +_:b1 sp:varName "nameWellbore"^^xsd:string . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + composite:index "0"^^xsd:int | ||
| 16 | + ] . |
| ... | @@ -4,9 +4,11 @@ | ... | @@ -4,9 +4,11 @@ |
| 4 | <link href="lib/rh/rh.css" rel="stylesheet" type="text/css" /> | 4 | <link href="lib/rh/rh.css" rel="stylesheet" type="text/css" /> |
| 5 | </head> | 5 | </head> |
| 6 | <body> | 6 | <body> |
| 7 | + <div id="wrapper"> | ||
| 7 | 8 | ||
| 8 | <rhswp:Header /> | 9 | <rhswp:Header /> |
| 9 | 10 | ||
| 11 | + <div id="content"> | ||
| 10 | <h3>Upload a Daily Drilling Report</h3> | 12 | <h3>Upload a Daily Drilling Report</h3> |
| 11 | <p> | 13 | <p> |
| 12 | Please select a DDR XML file: | 14 | Please select a DDR XML file: |
| ... | @@ -18,5 +20,7 @@ | ... | @@ -18,5 +20,7 @@ |
| 18 | <br /> | 20 | <br /> |
| 19 | <input type="submit" value="Upload" /> | 21 | <input type="submit" value="Upload" /> |
| 20 | </form> | 22 | </form> |
| 23 | + </div> | ||
| 24 | + </div> | ||
| 21 | </body> | 25 | </body> |
| 22 | </html> | 26 | </html> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment