rdf-test-suite
Version:
Executes the RDF and SPARQL test suites.
33 lines (32 loc) • 1.29 kB
TypeScript
import * as RDF from "@rdfjs/types";
import { Resource } from "rdf-object";
import { IFetchOptions } from "../../Util";
import { ITestCaseData } from "../ITestCase";
import { ITestCaseHandler } from "../ITestCaseHandler";
import { IParser } from "./IParser";
import { ITestCaseRdfSyntax } from "./ITestCaseRdfSyntax";
/**
* Test case handler for testing if two RDF serialization are isomorphic.
*/
export declare class TestCaseEvalHandler implements ITestCaseHandler<TestCaseEval> {
private shouldNormalizeUrl;
constructor(options?: {
normalizeUrl?: boolean;
});
resourceToTestCase(resource: Resource, testCaseData: ITestCaseData, options?: IFetchOptions): Promise<TestCaseEval>;
protected normalizeUrl(url: string): string;
}
export declare class TestCaseEval implements ITestCaseRdfSyntax {
readonly type = "rdfsyntax";
readonly approval: string;
readonly approvedBy: string;
readonly comment: string;
readonly types: string[];
readonly name: string;
readonly uri: string;
readonly data: string;
readonly expected: RDF.Quad[];
readonly baseIRI: string;
constructor(testCaseData: ITestCaseData, data: string, expected: RDF.Quad[], baseIRI: string);
test(parser: IParser, injectArguments: any): Promise<void>;
}