Person(?p) ^ hasMinSalary(?p, ?s) ^ hasAmount(?s, ?a) ^ swrlb:greaterThan(?a, 10000) -> query:select(?p)
Person -> Instance: Arne -> hasMinSalary -> has value (15000)
Person(?x) ^ hasMinSalary(?x,?p) ^ hasAmount(?p,?a) ^ swrlb:greaterThan(?a,90) -> sqwrl:slect(?x,?a)
Person(?p) ^ hasAge(?p, ?age) ^ swrlb:greaterThan(?age, 17) -> Adult(?p)
Can be easily turned in to a SQWRL query by replacing its consequent:
Person(?p) ^ hasAge(?p, ?age) ^ swrlb:greaterThan(?age, 17) -> sqwrl:select(?p, ?age)
Another alternative is to simply add a sqwrl:select clause at the end of a rule:
Person(?p) ^ hasAge(?p, ?age) ^ swrlb:greaterThan(?age, 17) -> Adult(?p) ^ sqwrl:select(?p, ?age)
how do I formulate that
by Martin
Two different modeling paradimgs:
What we want to use depends on the need of our ontology
Same structure:
The difference lies within the semantics….
OWL 1.0 (Protege 3.x)
Frames, OWL 2.0 (Protege 4.x)