reteplayground
Motion

πŸ“ Where the follower is, by move

MoveSegmentsForward (m)+1
Basic step @en5510.2…
Enchufla @en1340.15…
Left turn @en1140.14…
Right turn @en3900.11…
Run this query β†’ no server Β· no download Β· no account
caviri.github.io/rete
Run this query in the playground β†’ 6 rows Β· 25 ms Β· no server, no download β€” the query runs in your browser.

The query

PREFIX dance: <https://w3id.org/rete/dance#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?move (COUNT(?seg) AS ?n) (ROUND(AVG(?fwd)*100)/100 AS ?forward_m) (ROUND(AVG(?left)*100)/100 AS ?left_m) WHERE { VALUES ?cls { dance:BasicStep dance:CrossBodyLead dance:Enchufla dance:ChangeOfDirection dance:RightTurn dance:LeftTurn } ?seg a ?cls ; dance:followerMeanForward ?fwd ; dance:followerMeanLeft ?left . ?cls rdfs:label ?move . } GROUP BY ?move ORDER BY DESC(?forward_m)

rete playground Β· documentation Β· github.com/caviri/rete