SWRLTab: A Development Environment for working with SWRL Rules In Protégé-OWL
Martin O’Connor Stanford Medical Informatics, Stanford University
SWRLTab: A Development Environment for working with SWRL Rules In - - PowerPoint PPT Presentation
SWRLTab: A Development Environment for working with SWRL Rules In Protg-OWL Martin OConnor Stanford Medical Informatics, Stanford University Talk Outline Introduction to SWRL Using SWRL as an OWL query language SWRLTab: a
Martin O’Connor Stanford Medical Informatics, Stanford University
2
3
4
5
6
– http://protege.cim3.net/cgi-bin/wiki.pl?SWRLLanguageFAQ
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
OWL KB + SWRL
SWRL Rule Engine Bridge Data Knowledge Rule Engine
GUI
42
43
44
45
46
47
48
49
50
51
52
53
package edu.stanford.smi.protegex.owl.swrl.bridge.builtins.swrlb; import edu.stanford.smi.protegex.owl.swrl.bridge.builtins.*; import edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.*; public class SWRLBuiltInLibraryImpl extends SWRLBuiltInLibrary { public SWRLBuiltInMethodsImpl() { …} public void reset() {…} public boolean stringEqualIgnoreCase(List arguments) throws BuiltInException { ... } .... } // SWRLBuiltInLibraryImpl
54
public boolean stringEqualIgnoreCase(List<Argument> arguments) throws BuiltInException { SWRLBuiltInUtil.checkNumberOfArgumentsEqualTo(2, arguments.size()); String argument1 = SWRLBuiltInUtil.getArgumentAsAString(1, arguments); String argument2 = SWRLBuiltInUtil.getArgumentAsAString(2, arguments); return argument1.equalsIgnoreCase(argument2); } // stringEqualIgnoreCase
55
56
60
61
62
63