Standard BT Nodes - aantakli/AJAN-service GitHub Wiki
States: SUCCEEDED || RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#sequence
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Sequence Node (bt:Sequence) |
Class (rdfs:subClassOf) | Composite Node (bt:Composite) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Children (bt:hasChildren) | List of SBT-Nodes (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:SequenceX # Instance URI
a bt:Sequence ;
rdfs:label "some sequence"^^xsd:string ;
bt:hasChildren (
:ReachObject # some SBT node
:CarryObject # some SBT node
)
].
States: SUCCEEDED || RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#selector
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Priority Node (bt:Priority) |
Class (rdfs:subClassOf) | Composite Node (bt:Composite) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Children (bt:hasChildren) | List of SBT-Nodes (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:PriorityX # Instance URI
a bt:Priority ;
rdfs:label "some priority"^^xsd:string ;
bt:hasChildren (
:AtTightenTarget # some SBT node
:WalkToTightenObject # some SBT node
)
] .
States: SUCCEEDED || RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#parallel (Sequence Policy)
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Parallel Node (bt:Parallel) |
Class (rdfs:subClassOf) | Composite Node (bt:Composite) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Join Status (bt:join) | <boolean> ("true"^^xsd:boolean) |
Children (bt:hasChildren) | List of SBT-Nodes (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:PriorityX # Instance URI
a bt:Parallel;
rdfs:label "some parallel"^^xsd:string ;
bt:join "true"^^xsd:boolean;
bt:hasChildren (
# all executable child nodes
_:SomeNode1
_:SomeNode2
_:SomeNode3
)
] .
States: SUCCEEDED || RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#parallel (Selector Policy)
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Parallel Node (bt:Parallel) |
Class (rdfs:subClassOf) | Composite Node (bt:Composite) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Join Status (bt:join) | <boolean> ("true"^^xsd:boolean) |
Children (bt:hasChildren) | List of SBT-Nodes (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:PrioParallelX # Instance URI
a bt:PrioParallel;
rdfs:label "some parallel"^^xsd:string ;
bt:join "true"^^xsd:boolean;
bt:hasChildren (
# all executable child nodes
_:SomeNode1
_:SomeNode2
_:SomeNode3
)
] .
States: RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#decorator
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Repeate until Failure Node (bt:UntilFail) |
Class (rdfs:subClassOf) | Decorator Node (bt:Decorator) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Child (bt:hasChild) | SBT-Node to execute (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:UntilFailX # Instance URI
a bt:UntilFail ;
rdfs:label "some until fail"^^xsd:string ;
bt:hasChild :AtTightenTarget # some SBT node .
States: SUCCEEDED || RUNNING depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#decorator
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Repeate until success node (bt:UntilSuccess) |
Class (rdfs:subClassOf) | Decorator Node (bt:Decorator) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Child (bt:hasChild) | SBT-Node to execute (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:UntilSuccessX # Instance URI
a bt:UntilSuccess ;
rdfs:label "some until success"^^xsd:string ;
bt:hasChild :AtTightenTarget # some SBT node .
States: SUCCEEDED || RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#decorator
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Invert child result node (bt:Invert) |
Class (rdfs:subClassOf) | Decorator Node (bt:Decorator) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Child (bt:hasChild) | SBT-Node to execute (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:InvertX # Instance URI
a bt:Invert ;
rdfs:label "some Invert"^^xsd:string ;
bt:hasChild :AtTightenTarget # some SBT node .
States: SUCCEEDED || RUNNING || FAILED will be randomly chosen.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#decorator
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Random child result node (bt:Random) |
Class (rdfs:subClassOf) | Decorator Node (bt:Decorator) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Child (bt:hasChild) | SBT-Node to execute (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:RandomX # Instance URI
a bt:Random ;
rdfs:label "some Random"^^xsd:string ;
bt:hasChild :AtTightenTarget # some SBT node .
States: RUNNING || FAILED depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#decorator
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Child will always fail node (bt:IsFailing) |
Class (rdfs:subClassOf) | Decorator Node (bt:Decorator) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Child (bt:hasChild) | SBT-Node to execute (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:FailX # Instance URI
a bt:IsFailing ;
rdfs:label "some Fail"^^xsd:string ;
bt:hasChild :AtTightenTarget # some SBT node .
States: SUCCEEDED || RUNNING depending on child state.
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#decorator
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Child will always succeed node (bt:IsSucceeding) |
Class (rdfs:subClassOf) | Decorator Node (bt:Decorator) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Child (bt:hasChild) | SBT-Node to execute (bt:Task) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:SuccessX # Instance URI
a bt:IsSucceeding ;
rdfs:label "some Success"^^xsd:string ;
bt:hasChild :AtTightenTarget # some SBT node .
States: SUCCEEDED
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#leaf-tasks
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Child will always succeed node (bt:Succeess) |
Class (rdfs:subClassOf) | Leaf Node (bt:Leaf) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:SuccessX # Instance URI
a bt:Succeess ;
rdfs:label "some Success"^^xsd:string .
States: FAILED
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#leaf-tasks
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Will always fail node (bt:Fail) |
Class (rdfs:subClassOf) | Leaf Node (bt:Leaf) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:FailX # Instance URI
a bt:Fail ;
rdfs:label "some Fail"^^xsd:string .
States: SUCCEEDED || RUNNING
Description: Please visit for an node description: https://github.com/libgdx/gdx-ai/wiki/Behavior-Trees#leaf-tasks
Property (RDF) | Value (RDF) |
---|---|
Namespace (@prefix bt:) | URL (http://www.ajan.de/behavior/bt-ns#) |
Type (rdf:type) | Will wait node (bt:Wait) |
Class (rdfs:subClassOf) | Leaf Node (bt:Leaf) |
Label (rdfs:label) | <string> ("some label"^^xsd:string) |
Time (bt:milliseconds) | <integer> ("123"^^xsd:int) |
Example in Turtle/RDF (comments strat with: #)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bt: <http://www.ajan.de/behavior/bt-ns#> .
_:WaitX # Instance URI
a bt:Wait ;
rdfs:label "some Wait"^^xsd:string ;
bt:milliseconds "12345"^^xsd:int .