-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSQWRLExample.owl
101 lines (100 loc) · 4.63 KB
/
SQWRLExample.owl
1
2
3
4
5
6
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0"?>
<rdf:RDF
xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#"
xmlns:xsp="http://www.owl-ontologies.com/2005/08/07/xsp.owl#"
xmlns="http://swrl.stanford.edu/ontologies/tests/5.0/SQWRLExample.owl#"
xmlns:swrlx="http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl#"
xmlns:swrlm="http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl#"
xmlns:swrlb="http://www.w3.org/2003/11/swrlb#"
xmlns:temporal="http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:sqwrl="http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:swrl="http://www.w3.org/2003/11/swrl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:swrla="http://swrl.stanford.edu/ontologies/3.3/swrla.owl#"
xml:base="http://swrl.stanford.edu/ontologies/tests/5.0/SQWRLExample.owl">
<owl:Ontology rdf:about="">
<owl:imports rdf:resource="http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl"/>
<owl:imports rdf:resource="http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl"/>
<owl:imports rdf:resource="http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl"/>
<owl:imports rdf:resource="http://swrl.stanford.edu/ontologies/3.3/swrla.owl"/>
<owl:imports rdf:resource="http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl"/>
</owl:Ontology>
<owl:Class rdf:ID="C"/>
<owl:ObjectProperty rdf:ID="hasUncle"/>
<owl:ObjectProperty rdf:ID="hasTreatment"/>
<owl:ObjectProperty rdf:ID="hasDrug"/>
<owl:DatatypeProperty rdf:ID="hasHeight">
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
</owl:DatatypeProperty>
<owl:FunctionalProperty rdf:ID="hasDose">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
</owl:FunctionalProperty>
<swrl:Imp rdf:about="MyRuleName">
<swrl:body>
<swrl:AtomList>
<rdf:first>
<swrl:BuiltinAtom>
<swrl:builtin rdf:resource="http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl#add"/>
<swrl:arguments>
<rdf:List>
<rdf:first>
<swrl:Variable rdf:ID="startPlus10Minutes"/>
</rdf:first>
<rdf:rest>
<rdf:List>
<rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>2013-02-17T00:10:00.0</rdf:first>
<rdf:rest>
<rdf:List>
<rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
>10</rdf:first>
<rdf:rest>
<rdf:List>
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
<rdf:first rdf:resource="http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl#Minutes"/>
</rdf:List>
</rdf:rest>
</rdf:List>
</rdf:rest>
</rdf:List>
</rdf:rest>
</rdf:List>
</swrl:arguments>
</swrl:BuiltinAtom>
</rdf:first>
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
</swrl:AtomList>
</swrl:body>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Another RDFS comment</rdfs:comment>
<swrl:head>
<swrl:AtomList>
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
<rdf:first>
<swrl:BuiltinAtom>
<swrl:builtin rdf:resource="http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl#select"/>
<swrl:arguments>
<rdf:List>
<rdf:first rdf:resource="#startPlus10Minutes"/>
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
</rdf:List>
</swrl:arguments>
</swrl:BuiltinAtom>
</rdf:first>
</swrl:AtomList>
</swrl:head>
<swrla:isRuleEnabled rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean"
>true</swrla:isRuleEnabled>
</swrl:Imp>
<swrla:Entity rdf:ID="c2"/>
<swrl:Variable rdf:ID="start"/>
<C rdf:ID="i1"/>
<swrla:Entity rdf:ID="c1"/>
<swrl:Variable rdf:ID="r"/>
<swrl:Variable rdf:ID="p"/>
<C rdf:ID="i2"/>
</rdf:RDF>
<!-- Created with Protege (with OWL Plugin 3.5, Build 663) http://protege.stanford.edu -->