Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
21
lexers/testdata/powerquery.actual
vendored
Normal file
21
lexers/testdata/powerquery.actual
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
let
|
||||
GetLabel = (subject as text) as nullable table =>
|
||||
let
|
||||
// Request Ntriples from the LDF Service
|
||||
Options = [Headers = [#"Accept"="text/csv"]],
|
||||
FixedSubject = if Text.At(subject,0) <> "<" then Text.Combine({"<",subject,">"}) else subject,
|
||||
Query = Text.Combine({"SELECT ?label WHERE {
|
||||
SERVICE wikibase:label {
|
||||
bd:serviceParam wikibase:language ""en"" .
|
||||
",FixedSubject," <http://www.w3.org/2000/01/rdf-schema#label> ?label
|
||||
}
|
||||
}"}),
|
||||
/* this is a multiline comment, see https://docs.microsoft.com/en-us/powerquery-m/comments
|
||||
*/
|
||||
url = Text.Combine({"https://query.wikidata.org/sparql?",Uri.BuildQueryString([query=Query])}),
|
||||
data = Csv.Document(Web.Contents(url,Options)),
|
||||
promoted = Table.PromoteHeaders(data, [PromoteAllScalars=true])
|
||||
in
|
||||
promoted
|
||||
in
|
||||
GetLabel
|
Loading…
Add table
Add a link
Reference in a new issue