Showing
9 changed files
with
177 additions
and
0 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
www.reportinghub.no/input/copex/COPEX.BNF
0 → 100644
| 1 | +# Keywords, block names and block level names in COPEX are case insensitive. | ||
| 2 | +# "~" is the repetition symbol and Void an alternative to the null string in COPEX. | ||
| 3 | + | ||
| 4 | +CopexFile ::= | ||
| 5 | + {BlankCharacter} | ||
| 6 | + ::COPEX:: _ {DataElement _ } {Block _} {::COPEX:: _ {DataElement _ } {Block _}} | ||
| 7 | + ::Goodbye:: | ||
| 8 | + {AnyCharacter} | ||
| 9 | + | ||
| 10 | +Block ::= | ||
| 11 | + BlockLevel _ BlockName {_ DataElement} {_ Block} | | ||
| 12 | + PrimaryKeyword _ PrimaryValue {_ DataElement} {_ Block} | | ||
| 13 | + Table(m,n) {_ Block} | ||
| 14 | + | ||
| 15 | +Table(m,n) ::= | ||
| 16 | + PrimaryColumnName _ {ColumnName _}(n-1) UnitRow {_ ColumnValue}(m*n) | ||
| 17 | + # m >= 1 and n >= 2 | ||
| 18 | + | ||
| 19 | +PrimaryColumnName ::= | ||
| 20 | + BlockLevel | PrimaryKeyword | ||
| 21 | + | ||
| 22 | +ColumnName ::= | ||
| 23 | + BlockLevel | PrimaryKeyword | Keyword | ||
| 24 | + | ||
| 25 | +UnitRow ::= | ||
| 26 | + Unit {_ Unit}(n-1) | NoUnits | ||
| 27 | + | ||
| 28 | +ColumnValue ::= | ||
| 29 | + BlockName | PrimaryValue | Value | ||
| 30 | + | ||
| 31 | +BlockLevel ::= | ||
| 32 | + BlockLevelName | BlockLevelFormat | ||
| 33 | + | ||
| 34 | +BlockLevelName ::= | ||
| 35 | + IdentifierLetter {IdentifierLetter | Digit | "_" | "." | "-"} ":" | ||
| 36 | + | ||
| 37 | +BlockLevelFormat ::= | ||
| 38 | + Integer {"." Integer} ":" | ||
| 39 | + # Number of integers in BlockLevelFormat gives the BlockLevel. | ||
| 40 | + | ||
| 41 | +BlockName ::= | ||
| 42 | + Text | "~" | ||
| 43 | + | ||
| 44 | +PrimaryValue ::= | ||
| 45 | + Text | "~" | ||
| 46 | + | ||
| 47 | +DataElement ::= | ||
| 48 | + Keyword _ Value [_ Unit] | ||
| 49 | + | ||
| 50 | +Keyword ::= | ||
| 51 | + IdentifierLetter {IdentifierLetter | Digit | "_" | "." | "-"} "=" | ||
| 52 | + | ||
| 53 | +PrimaryKeyword ::= | ||
| 54 | + IdentifierLetter {IdentifierLetter | Digit | "_" | "." | "-"} ":=" | ||
| 55 | + | ||
| 56 | +Unit ::= | ||
| 57 | + Text | Void | ||
| 58 | + | ||
| 59 | +Value :: = | ||
| 60 | + Text | Real | Void | "~" | ||
| 61 | + | ||
| 62 | +Comments ::= | ||
| 63 | + "/*" {AnyCharacter} "*/" | | ||
| 64 | + "#" { {VisibleCharacter | Space | CarriageReturn | Tabulator} [IgnoreNewLine] } | ||
| 65 | + NewLine | ||
| 66 | + | ||
| 67 | +Real ::= | ||
| 68 | + ["+" | "-"] Integer [DecimalSymbol Integer] [ScaleFactor] | ||
| 69 | + | ||
| 70 | +DecimalSymbol ::= | ||
| 71 | + "." | "," | ||
| 72 | + | ||
| 73 | +ScaleFactor ::= | ||
| 74 | + "E" ["+" | "-"] Integer | ||
| 75 | + | ||
| 76 | +Integer ::= | ||
| 77 | + Digit {Digit} | ||
| 78 | + | ||
| 79 | +Text ::= | ||
| 80 | + {VisibleCharacter} OrdinaryCharacter | | ||
| 81 | + """ { {BlankCharacter | VisibleCharacter | "'"} [IgnoreNewLine] } """ | | ||
| 82 | + "'" { {BlankCharacter | VisibleCharacter | """} [IgnoreNewLine] } "'" | ||
| 83 | + | ||
| 84 | +_ ::= | ||
| 85 | + BlankCharacter {Comments | BlankCharacter} | | ||
| 86 | + Comments {Comments | BlankCharacter} | ||
| 87 | + | ||
| 88 | +IgnoreNewLine ::= | ||
| 89 | + "\" NewLine | | ||
| 90 | + "\" CarriageReturn NewLine | ||
| 91 | + | ||
| 92 | +AnyCharacter ::= | ||
| 93 | + BlankCharacter | VisibleCharacter | QuotationMark | ||
| 94 | + | ||
| 95 | +BlankCharacter ::= | ||
| 96 | + Space | NewLine | CarriageReturn | Tabulator | ||
| 97 | + | ||
| 98 | +VisibleCharacter ::= | ||
| 99 | + OrdinaryCharacter | SpecialCharacter | ||
| 100 | + # VisibleCharacter does not contain QuotationMark. | ||
| 101 | + | ||
| 102 | +OrdinaryCharacter ::= | ||
| 103 | + Digit | IdentifierLetter | OtherCharacter | ||
| 104 | + | ||
| 105 | +SpecialCharacter ::= | ||
| 106 | + ":" | "=" | "~" | ||
| 107 | + | ||
| 108 | +QuotationMark ::= | ||
| 109 | + """ | "'" | ||
| 110 | + | ||
| 111 | +Digit ::= | ||
| 112 | + "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | ||
| 113 | + | ||
| 114 | +IdentifierLetter ::= | ||
| 115 | + "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | | ||
| 116 | + "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" | | ||
| 117 | + "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | | ||
| 118 | + "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | | ||
| 119 | + | ||
| 120 | +OtherCharacter ::= | ||
| 121 | + "!" | "#" | "$" | "%" | "&" | "(" | ")" | "*" | "+" | "," | "-" | "." | "/" | | ||
| 122 | + ";" | "<" | ">" | "?" | "@" | "[" | "\" | "]" | "^" | "_" | "`" | "{" | "|" | | ||
| 123 | + "}" | "¡" | "¢" | "£" | "¤" | "¥" | "¦" | "§" | "¨" | "©" | "ª" | "«" | "¬" | | ||
| 124 | + "" | "®" | "¯" | "°" | "±" | "²" | "³" | "´" | "µ" | "¶" | "·" | "¸" | "¹" | | ||
| 125 | + "º" | "»" | "¼" | "½" | "¾" | "¿" | "À" | "Á" | "Â" | "Ã" | "Ä" | "Å" | "Æ" | | ||
| 126 | + "Ç" | "È" | "É" | "Ê" | "Ë" | "Ì" | "Í" | "Î" | "Ï" | "Ð" | "Ñ" | "Ò" | "Ó" | | ||
| 127 | + "Ô" | "Õ" | "Ö" | "×" | "Ø" | "Ù" | "Ú" | "Û" | "Ü" | "Ý" | "Þ" | "ß" | "à" | | ||
| 128 | + "á" | "â" | "ã" | "ä" | "å" | "æ" | "ç" | "è" | "é" | "ê" | "ë" | "ì" | "í" | | ||
| 129 | + "î" | "ï" | "ð" | "ñ" | "ò" | "ó" | "ô" | "õ" | "ö" | "÷" | "ø" | "ù" | "ú" | | ||
| 130 | + "û" | "ü" | "ý" | "þ" | "ÿ" | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +# baseURI: http://www.reportinghub.no/input/copex/data-model | ||
| 2 | + | ||
| 3 | +@prefix copex-model: <http://www.reportinghub.no/input/copex/data-model#> . | ||
| 4 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 5 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 6 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 7 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 8 | + | ||
| 9 | +<http://www.reportinghub.no/input/copex/data-model> | ||
| 10 | + rdf:type owl:Ontology ; | ||
| 11 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: http://www.reportinghub.no/input/copex/ss-import | ||
| 2 | +# imports: file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls | ||
| 3 | +# imports: file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls | ||
| 4 | +# imports: file:///www.reportinghub.no/input/copex/COPEX-Properties.xls | ||
| 5 | + | ||
| 6 | +@prefix Head: <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#> . | ||
| 7 | +@prefix Model: <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#> . | ||
| 8 | +@prefix Prop: <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#> . | ||
| 9 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 10 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 11 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 12 | +@prefix ss-import: <http://www.reportinghub.no/input/copex/ss-import#> . | ||
| 13 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 14 | + | ||
| 15 | +<http://www.reportinghub.no/input/copex/ss-import> | ||
| 16 | + rdf:type owl:Ontology ; | ||
| 17 | + owl:imports <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls> , <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls> , <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls> ; | ||
| 18 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
This diff is collapsed. Click to expand it.
| 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 | + <http://spinrdf.org/spin#topSPINOptions> | ||
| 16 | + "singlePass" ; | ||
| 17 | + composite:index "0"^^xsd:int | ||
| 18 | + ] . |
-
Please register or login to post a comment