The Triceratops won't attack you unless you attack it first. Once angered, it will charge at you, however, it isn't the fastest creature, making it relatively easy to outrun.

More Triceratops Encountering Tips