|
| 1 | +[ |
| 2 | + {"type":"Keyword","value":"let"}, |
| 3 | + {"type":"Text","value":"\n "}, |
| 4 | + {"type":"Name","value":"GetLabel"}, |
| 5 | + {"type":"Text","value":" "}, |
| 6 | + {"type":"Operator","value":"="}, |
| 7 | + {"type":"Text","value":" "}, |
| 8 | + {"type":"Punctuation","value":"("}, |
| 9 | + {"type":"Name","value":"subject"}, |
| 10 | + {"type":"Text","value":" "}, |
| 11 | + {"type":"Keyword","value":"as"}, |
| 12 | + {"type":"Text","value":" "}, |
| 13 | + {"type":"Name","value":"text"}, |
| 14 | + {"type":"Punctuation","value":")"}, |
| 15 | + {"type":"Text","value":" "}, |
| 16 | + {"type":"Keyword","value":"as"}, |
| 17 | + {"type":"Text","value":" "}, |
| 18 | + {"type":"Name","value":"nullable"}, |
| 19 | + {"type":"Text","value":" "}, |
| 20 | + {"type":"Name","value":"table"}, |
| 21 | + {"type":"Text","value":" "}, |
| 22 | + {"type":"Operator","value":"=\u003e"}, |
| 23 | + {"type":"Text","value":"\n "}, |
| 24 | + {"type":"Keyword","value":"let"}, |
| 25 | + {"type":"Text","value":" \n "}, |
| 26 | + {"type":"CommentSingle","value":"// Request Ntriples from the LDF Service\n"}, |
| 27 | + {"type":"Text","value":" "}, |
| 28 | + {"type":"Name","value":"Options"}, |
| 29 | + {"type":"Text","value":" "}, |
| 30 | + {"type":"Operator","value":"="}, |
| 31 | + {"type":"Text","value":" "}, |
| 32 | + {"type":"Punctuation","value":"["}, |
| 33 | + {"type":"Name","value":"Headers"}, |
| 34 | + {"type":"Text","value":" "}, |
| 35 | + {"type":"Operator","value":"="}, |
| 36 | + {"type":"Text","value":" "}, |
| 37 | + {"type":"Punctuation","value":"["}, |
| 38 | + {"type":"Name","value":"#\"Accept\""}, |
| 39 | + {"type":"Operator","value":"="}, |
| 40 | + {"type":"LiteralString","value":"\"text/csv\""}, |
| 41 | + {"type":"Punctuation","value":"]]"}, |
| 42 | + {"type":"Operator","value":","}, |
| 43 | + {"type":"Text","value":"\n "}, |
| 44 | + {"type":"Name","value":"FixedSubject"}, |
| 45 | + {"type":"Text","value":" "}, |
| 46 | + {"type":"Operator","value":"="}, |
| 47 | + {"type":"Text","value":" "}, |
| 48 | + {"type":"Keyword","value":"if"}, |
| 49 | + {"type":"Text","value":" "}, |
| 50 | + {"type":"Name","value":"Text.At"}, |
| 51 | + {"type":"Punctuation","value":"("}, |
| 52 | + {"type":"Name","value":"subject"}, |
| 53 | + {"type":"Operator","value":","}, |
| 54 | + {"type":"LiteralNumberInteger","value":"0"}, |
| 55 | + {"type":"Punctuation","value":")"}, |
| 56 | + {"type":"Text","value":" "}, |
| 57 | + {"type":"Operator","value":"\u003c\u003e"}, |
| 58 | + {"type":"Text","value":" "}, |
| 59 | + {"type":"LiteralString","value":"\"\u003c\""}, |
| 60 | + {"type":"Text","value":" "}, |
| 61 | + {"type":"Keyword","value":"then"}, |
| 62 | + {"type":"Text","value":" "}, |
| 63 | + {"type":"Name","value":"Text.Combine"}, |
| 64 | + {"type":"Punctuation","value":"({"}, |
| 65 | + {"type":"LiteralString","value":"\"\u003c\""}, |
| 66 | + {"type":"Operator","value":","}, |
| 67 | + {"type":"Name","value":"subject"}, |
| 68 | + {"type":"Operator","value":","}, |
| 69 | + {"type":"LiteralString","value":"\"\u003e\""}, |
| 70 | + {"type":"Punctuation","value":"})"}, |
| 71 | + {"type":"Text","value":" "}, |
| 72 | + {"type":"Keyword","value":"else"}, |
| 73 | + {"type":"Text","value":" "}, |
| 74 | + {"type":"Name","value":"subject"}, |
| 75 | + {"type":"Operator","value":","}, |
| 76 | + {"type":"Text","value":"\n "}, |
| 77 | + {"type":"Name","value":"Query"}, |
| 78 | + {"type":"Text","value":" "}, |
| 79 | + {"type":"Operator","value":"="}, |
| 80 | + {"type":"Text","value":" "}, |
| 81 | + {"type":"Name","value":"Text.Combine"}, |
| 82 | + {"type":"Punctuation","value":"({"}, |
| 83 | + {"type":"LiteralString","value":"\"SELECT ?label WHERE {\n SERVICE wikibase:label {\n bd:serviceParam wikibase:language \"\"en\"\" .\n \""}, |
| 84 | + {"type":"Operator","value":","}, |
| 85 | + {"type":"Name","value":"FixedSubject"}, |
| 86 | + {"type":"Operator","value":","}, |
| 87 | + {"type":"LiteralString","value":"\" \u003chttp://www.w3.org/2000/01/rdf-schema#label\u003e ?label\n }\n }\""}, |
| 88 | + {"type":"Punctuation","value":"})"}, |
| 89 | + {"type":"Operator","value":","}, |
| 90 | + {"type":"Text","value":"\n "}, |
| 91 | + {"type":"CommentMultiline","value":"/* this is a multiline comment, see https://docs.microsoft.com/en-us/powerquery-m/comments\n */"}, |
| 92 | + {"type":"Text","value":"\n "}, |
| 93 | + {"type":"Name","value":"url"}, |
| 94 | + {"type":"Text","value":" "}, |
| 95 | + {"type":"Operator","value":"="}, |
| 96 | + {"type":"Text","value":" "}, |
| 97 | + {"type":"Name","value":"Text.Combine"}, |
| 98 | + {"type":"Punctuation","value":"({"}, |
| 99 | + {"type":"LiteralString","value":"\"https://query.wikidata.org/sparql?\""}, |
| 100 | + {"type":"Operator","value":","}, |
| 101 | + {"type":"Name","value":"Uri.BuildQueryString"}, |
| 102 | + {"type":"Punctuation","value":"(["}, |
| 103 | + {"type":"Name","value":"query"}, |
| 104 | + {"type":"Operator","value":"="}, |
| 105 | + {"type":"Name","value":"Query"}, |
| 106 | + {"type":"Punctuation","value":"])})"}, |
| 107 | + {"type":"Operator","value":","}, |
| 108 | + {"type":"Text","value":"\n "}, |
| 109 | + {"type":"Name","value":"data"}, |
| 110 | + {"type":"Text","value":" "}, |
| 111 | + {"type":"Operator","value":"="}, |
| 112 | + {"type":"Text","value":" "}, |
| 113 | + {"type":"Name","value":"Csv.Document"}, |
| 114 | + {"type":"Punctuation","value":"("}, |
| 115 | + {"type":"Name","value":"Web.Contents"}, |
| 116 | + {"type":"Punctuation","value":"("}, |
| 117 | + {"type":"Name","value":"url"}, |
| 118 | + {"type":"Operator","value":","}, |
| 119 | + {"type":"Name","value":"Options"}, |
| 120 | + {"type":"Punctuation","value":"))"}, |
| 121 | + {"type":"Operator","value":","}, |
| 122 | + {"type":"Text","value":"\n "}, |
| 123 | + {"type":"Name","value":"promoted"}, |
| 124 | + {"type":"Text","value":" "}, |
| 125 | + {"type":"Operator","value":"="}, |
| 126 | + {"type":"Text","value":" "}, |
| 127 | + {"type":"Name","value":"Table.PromoteHeaders"}, |
| 128 | + {"type":"Punctuation","value":"("}, |
| 129 | + {"type":"Name","value":"data"}, |
| 130 | + {"type":"Operator","value":","}, |
| 131 | + {"type":"Text","value":" "}, |
| 132 | + {"type":"Punctuation","value":"["}, |
| 133 | + {"type":"Name","value":"PromoteAllScalars"}, |
| 134 | + {"type":"Operator","value":"="}, |
| 135 | + {"type":"Keyword","value":"true"}, |
| 136 | + {"type":"Punctuation","value":"])"}, |
| 137 | + {"type":"Text","value":"\n "}, |
| 138 | + {"type":"Keyword","value":"in"}, |
| 139 | + {"type":"Text","value":" \n "}, |
| 140 | + {"type":"Name","value":"promoted"}, |
| 141 | + {"type":"Text","value":" \n"}, |
| 142 | + {"type":"Keyword","value":"in"}, |
| 143 | + {"type":"Text","value":"\n "}, |
| 144 | + {"type":"Name","value":"GetLabel"}, |
| 145 | + {"type":"Text","value":" "} |
| 146 | +] |
0 commit comments