meta-log-db
Version:
Native database package for Meta-Log (ProLog, DataLog, R5RS)
55 lines • 1.3 kB
TypeScript
import { ShaclShapes, ShaclValidationReport, RdfTriple } from '../types/index.js';
/**
* SHACL Validator with enhanced Turtle/RDF parsing
*/
export declare class ShaclValidator {
/**
* Load SHACL shapes from file
*/
loadShapes(path: string): Promise<ShaclShapes>;
/**
* Parse shapes from Turtle content
*/
private parseShapesFromTurtle;
/**
* Build shape from triples
*/
private buildShapeFromTriples;
/**
* Build property shape from triples
*/
private buildPropertyShape;
/**
* Extract constraints from triple
*/
private extractConstraints;
/**
* Parse shapes from content (simplified fallback)
*/
private parseShapesSimple;
/**
* Validate triples against shapes
*/
validate(shapes: ShaclShapes, triples: RdfTriple[]): Promise<ShaclValidationReport>;
/**
* Find nodes matching shape target
*/
private findTargetNodes;
/**
* Validate a property constraint
*/
private validateProperty;
/**
* Validate a constraint
*/
private validateConstraint;
/**
* Check datatype
*/
private checkDatatype;
/**
* Check constraint
*/
private checkConstraint;
}
//# sourceMappingURL=validator.d.ts.map