I am trying to mitigate some models created by a peer in N3. They are mostly rules. I read in the history a thread entitled "
" from Feb 19, 2009 which looked like a partial discussion of the procedure for converting N3 to something TBC can read. Is it possible to import N3 rules into TBC?
{
?state a st:State; log:includes { ?anObject ex:locatedIn ex:FanLocation. }.
?anObject ex:name ?objectName; ex:id ?objectID.
}
=>
{
_:request http:methodName "POST";
http:reqBody ("{ 'actor' : { 'id': '
http://wot.siemens.com/reasoner', 'objectType': 'application' }, 'object': { 'displayName':'"?objectName"', 'id': '"?objectID"', 'objectType': 'product' }, 'verb': 'drying', 'designatedDevice': '
http://wot.siemens.com/fan', 'published': '2015-01-01T00:00:00.000Z', 'status': 'tentative' }").
[ a st:StateChange;
st:replaced { ?anObject ex:dried "true". };
st:parent ?state ].
}.