-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d2f9b8
commit c52eebd
Showing
12 changed files
with
667 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"applicationBugsUrl": "https://github.com/jitsedesmet/traqula/issues", | ||
"applicationDescription": "A transpiler for the SPARQL query language in TypeScript.", | ||
"applicationNameFull": "traqula", | ||
"applicationNameNpm": "traqula", | ||
"applicationHomepageUrl": "https://github.com/jitsedesmet/traqula", | ||
"applicationUri": "https://www.npmjs.com/package/traqula/", | ||
"authors": [ | ||
{ | ||
"homepage": "https://jitsedesmet.be/", | ||
"name": "Jitse De Smet <[email protected]>", | ||
"uri": "https://jitsedesmet.be/profile/#me" | ||
} | ||
], | ||
"licenseUri": "http://opensource.org/licenses/MIT", | ||
"reportUri": null, | ||
"specificationUris": [ | ||
"http://www.w3.org/TR/sparql11-query/", | ||
"http://www.w3.org/TR/sparql11-update/", | ||
"https://www.w3.org/TR/sparql12-query/" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ErrorSkipped, } from 'rdf-test-suite'; | ||
import { Sparql11Parser } from '../src' | ||
|
||
export async function parse(query: string, baseIRI: string) { | ||
const parser = new Sparql11Parser({ baseIRI }); | ||
parser.parse(query); | ||
} | ||
export function query() { | ||
return Promise.reject(new ErrorSkipped('Querying is not supported')); | ||
} | ||
|
||
export function update() { | ||
return Promise.reject(new ErrorSkipped('Updating is not supported')); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"queryType": "SELECT", | ||
"variables": [ | ||
{ | ||
"termType": "Wildcard" | ||
} | ||
], | ||
"where": [ | ||
{ | ||
"type": "bgp", | ||
"triples": [ | ||
{ | ||
"subject": { | ||
"termType": "Variable", | ||
"value": "s" | ||
}, | ||
"predicate": { | ||
"termType": "Variable", | ||
"value": "p" | ||
}, | ||
"object": { | ||
"termType": "Variable", | ||
"value": "o" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"type": "query", | ||
"prefixes": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT * | ||
{ | ||
{ | ||
{ :s :p ?Y } | ||
UNION | ||
{ :s :p ?Z } | ||
} | ||
BIND (1 AS ?Y) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.