An action-based ontology of legal relations