| 1 |
# GPS schema -- Jos De Roo |
| 2 |
|
| 3 |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. |
| 4 |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. |
| 5 |
@prefix owl: <http://www.w3.org/2002/07/owl#>. |
| 6 |
@prefix log: <http://www.w3.org/2000/10/swap/log#>. |
| 7 |
@prefix e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>. |
| 8 |
@prefix gps: <https://eyereasoner.github.io/eye/reasoning/gps/gps-schema#>. |
| 9 |
|
| 10 |
### classes ### |
| 11 |
|
| 12 |
gps:Action a rdfs:Class; |
| 13 |
rdfs:comment "class of state transition actions"; |
| 14 |
rdfs:subClassOf rdfs:Resource. |
| 15 |
|
| 16 |
gps:Actions a rdfs:Class; |
| 17 |
rdfs:comment "class of sequences of state transition actions"; |
| 18 |
rdfs:subClassOf rdf:List; |
| 19 |
e:listType gps:Action. |
| 20 |
|
| 21 |
gps:Comfort a rdfs:Class; |
| 22 |
rdfs:comment "class of state transition comforts"; |
| 23 |
rdfs:subClassOf e:Number. |
| 24 |
|
| 25 |
gps:Cost a rdfs:Class; |
| 26 |
rdfs:comment "class of state transition costs"; |
| 27 |
rdfs:subClassOf e:Number. |
| 28 |
|
| 29 |
gps:Description a rdfs:Class; |
| 30 |
rdfs:comment "class of state transition descriptions"; |
| 31 |
rdfs:subClassOf e:Tuple; |
| 32 |
e:tupleTypes (gps:From gps:Transition gps:To gps:Action gps:Duration gps:Cost gps:Belief gps:Comfort). |
| 33 |
|
| 34 |
gps:Duration a rdfs:Class; |
| 35 |
rdfs:comment "class of state transition durations"; |
| 36 |
rdfs:subClassOf e:Number. |
| 37 |
|
| 38 |
gps:FindPath a rdfs:Class; |
| 39 |
rdfs:comment "class of gps findpath arguments"; |
| 40 |
rdfs:subClassOf e:Tuple; |
| 41 |
e:tupleTypes (gps:Goal gps:Actions gps:Duration gps:Cost gps:Belief gps:Comfort gps:Limits). |
| 42 |
|
| 43 |
gps:ValidatePath a rdfs:Class; |
| 44 |
rdfs:comment "class of gps validatepath arguments"; |
| 45 |
rdfs:subClassOf e:Tuple; |
| 46 |
e:tupleTypes (gps:Goal gps:Actions gps:Duration gps:Cost gps:Belief gps:Comfort gps:Limits). |
| 47 |
|
| 48 |
gps:From a rdfs:Class; |
| 49 |
rdfs:comment "class of state transition origin states"; |
| 50 |
rdfs:subClassOf log:Formula. |
| 51 |
|
| 52 |
gps:Goal a rdfs:Class; |
| 53 |
rdfs:comment "class of gps goals"; |
| 54 |
rdfs:subClassOf log:Formula. |
| 55 |
|
| 56 |
gps:Limits a rdfs:Class; |
| 57 |
rdfs:comment "class of gps limits"; |
| 58 |
rdfs:subClassOf e:Tuple; |
| 59 |
e:tupleTypes (gps:MaxDuration gps:MaxCost gps:MinBelief gps:MinComfort gps:MaxStagecount). |
| 60 |
|
| 61 |
gps:Map a rdfs:Class; |
| 62 |
rdfs:comment "class of gps maps"; |
| 63 |
rdfs:subClassOf rdfs:Resource. |
| 64 |
|
| 65 |
gps:MaxCost a rdfs:Class; |
| 66 |
rdfs:comment "class of maximum cost limits"; |
| 67 |
rdfs:subClassOf e:Number. |
| 68 |
|
| 69 |
gps:MaxDuration a rdfs:Class; |
| 70 |
rdfs:comment "class of maximum duration limits"; |
| 71 |
rdfs:subClassOf e:Number. |
| 72 |
|
| 73 |
gps:MaxStagecount a rdfs:Class; |
| 74 |
rdfs:comment "class of maximum stagecount limits (a stage is a sequence of steps in the same map)"; |
| 75 |
rdfs:subClassOf e:Number. |
| 76 |
|
| 77 |
gps:MinBelief a rdfs:Class; |
| 78 |
rdfs:comment "class of minimum success rate limits"; |
| 79 |
rdfs:subClassOf e:Number. |
| 80 |
|
| 81 |
gps:MinComfort a rdfs:Class; |
| 82 |
rdfs:comment "class of minimum comfort limits"; |
| 83 |
rdfs:subClassOf e:Number. |
| 84 |
|
| 85 |
gps:Path a rdfs:Class; |
| 86 |
rdfs:comment "class of gps paths"; |
| 87 |
rdfs:subClassOf e:Tuple; |
| 88 |
e:tupleTypes (gps:Actions gps:Duration gps:Cost gps:Belief gps:Comfort). |
| 89 |
|
| 90 |
gps:Belief a rdfs:Class; |
| 91 |
rdfs:comment "class of state transition success rates"; |
| 92 |
rdfs:subClassOf e:Number. |
| 93 |
|
| 94 |
gps:To a rdfs:Class; |
| 95 |
rdfs:comment "class of state transition destination states"; |
| 96 |
rdfs:subClassOf log:Formula. |
| 97 |
|
| 98 |
gps:Transition a rdfs:Class; |
| 99 |
rdfs:comment "class of state transition in between states"; |
| 100 |
rdfs:subClassOf log:Formula. |
| 101 |
|
| 102 |
### properties ### |
| 103 |
|
| 104 |
gps:description a rdf:Property; |
| 105 |
rdfs:comment "the state transition description"; |
| 106 |
rdfs:domain gps:Map; |
| 107 |
rdfs:range gps:Description. |
| 108 |
|
| 109 |
gps:findpath a rdf:Property, e:Component; |
| 110 |
rdfs:comment "the EYE component predicate to find a path in the state space from initial state to goal state"; |
| 111 |
rdfs:comment "a reference implementation can be found at https://eyereasoner.github.io/eye/reasoning/gps/gps-plugin.n3"; |
| 112 |
rdfs:domain e:Scope; |
| 113 |
rdfs:range gps:FindPath. |
| 114 |
|
| 115 |
gps:validatepath a rdf:Property, e:Component; |
| 116 |
rdfs:comment "the EYE component predicate to validate a path in the state space from initial state to goal state"; |
| 117 |
rdfs:domain e:Scope; |
| 118 |
rdfs:range gps:ValidatePath. |
| 119 |
|
| 120 |
gps:path a rdf:Property; |
| 121 |
rdfs:comment "the path in the state space from initial state to goal state"; |
| 122 |
rdfs:domain rdfs:Resource; |
| 123 |
rdfs:range gps:Path. |