reteplayground
Validate

🧪 Is the state coherent? (one zone per card)

SELECT ?instance (COUNT(?z) AS ?zones) WHERE {
  ?m a mtgg:ZoneMembership ; mtgg:inState <https://w3id.o…
} GROUP BY ?instance HAVING (COUNT(?z) != 1)
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → no server, no download — the query runs in your browser.

The query

PREFIX mtgg: <https://w3id.org/rete/mtg/game#> SELECT ?instance (COUNT(?z) AS ?zones) WHERE { ?m a mtgg:ZoneMembership ; mtgg:inState <https://w3id.org/rete/mtg/game/s1> ; mtgg:object ?instance ; mtgg:zone ?z . } GROUP BY ?instance HAVING (COUNT(?z) != 1)

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