load_custom_rule
Load a SPARQL CONSTRUCT rule to infer new triples in the SmartMemory knowledge graph, enabling custom logic-based reasoning.
Instructions
Loads a new custom SPARQL CONSTRUCT rule from text.
The rule should be a SPARQL CONSTRUCT query that infers new triples.
PREFIX declarations are optional - common prefixes (rdf, schema, foaf, etc.) will be auto-added if not present.
Example rule content: CONSTRUCT { ?person rdf:type :Engineer . } WHERE { ?person schema:worksFor :Company . }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | A unique ID for the new rule (lowercase, underscores only). | |
| description | No | A short description of what the rule does. | |
| rule_content | Yes | The SPARQL CONSTRUCT query (PREFIX declarations optional). |