Error Variable p already declared them trying to copy relation

them i run this query:
MATCH (s)-[:sameAs]->(s2)
MATCH (s)-[p]->(o)
MERGE (s2)-[p]->(o)
i get this error:
Variable p already declared (line 4, column 13 (offset: 68))
"MERGE (s2)-[p]->(o)"
^
how can i fix this?

You defined s,s2,o,and p through your two matches. How can you create (s2)-[p]->(o) when p is the relationship between s and o? You could remove the p from each statement. Then you would be creating a relationship between s2 and o, where o is the same node that s is related to.

What are you trying to accomplish?

I am trying to translate this from sparql to cypher:
http://www.linkeddata.mobi/wp-content/uploads/2018/06/owl2rl-sparql.txt

Sorry...I am not familiar with sparql. Hopefully someone else can assist.