Interface: SparqlOsfqlLeaf
@kortexya/reasoninglayer / SparqlOsfqlLeaf
Interface: SparqlOsfqlLeaf
Section titled “Interface: SparqlOsfqlLeaf”Defined in: src/types/sparql.ts:294
One OSFQL statement a SPARQL query translates to (a plan fragment unless SparqlTranslation.complete).
Example
Section titled “Example”const leaf: SparqlOsfqlLeaf = { osfql: 'MATCH ?p : person(`foaf:name`: ?name);', sorts: ['foaf:Person'],};Properties
Section titled “Properties”osfql:
string
Defined in: src/types/sparql.ts:296
The OSFQL MATCH …; statement.
sorts:
string[]
Defined in: src/types/sparql.ts:298
The sort names the statement constrains on via rdf:type.