# cdk 2006-04-29 # # Usage: # cwm http://dig.csail.mit.edu/TAMI/cdk/scenario3/data.n3 http://dig.csail.mit.edu/TAMI/cdk/scenario3/schema.n3 http://people.csail.mit.edu/lkagal/tami/carlos-rules.n3 --think --filter="http://people.csail.mit.edu/lkagal/tami/carlos-filter.n3" @keywords is, of, a . @prefix rdf: . @prefix rdfs: . @prefix owl: . @prefix xsd: . @prefix foaf: . @prefix dc: . @prefix string: . @prefix u: . @prefix s: . @prefix c: . @prefix j: . @prefix emer: . @prefix int: . @prefix air: . @prefix log: . @prefix ts: . @prefix td: . @prefix tr: . @prefix : . ############################################ Transitive closure #################################### tr:star a rdf:Property ; rdfs:domain rdf:Property ; rdfs:range rdf:Property . {?r tr:star ?rstar. ?x ?r [?rstar ?y]. } => {?x ?rstar ?y. } . ts:partOf tr:star tr:partOfStar . ts:specializationOf tr:star tr:specializationOfStar . # the class information seems to be necessary {?x a ts:Organization. ?r tr:star ?rstar. } => {?x ?rstar ?x. } . {?x a ts:Activity. ?r tr:star ?rstar. } => {?x ?rstar ?x. } . ##################################################### rules #########################################################3 {?d a ts:Database. ?d ts:nature ts:Commercial } => {td:SFDB ts:allowedSource ?d} . #ends