bbcarchdev / twine

An RDF workflow engine
https://bbcarchdev.github.io/twine/
Apache License 2.0
8 stars 2 forks source link

spindle: Rulebase should be expressed as RDF that is loaded at startup #4

Closed nevali closed 9 years ago

nevali commented 9 years ago

Currently the proxy-generation rulebase is defined statically and compiled into spindle.so. It should be configurable, and expressed by way of an RDF serialisation in a file which can be loaded at startup.

Because the rule-base primarily concerns RDF classes and predicates, writing the rulebase as (for example) Turtle would feel a lot more natural than shoehorning it into an ini-style format.

Class example:

foaf:Person a spindle:Class ;
    olo:index 50 ;
    rdfs:label "Person"@en .

po:Person spindle:expressedAs foaf:Person .