You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "rafsun42 (via GitHub)" <gi...@apache.org> on 2023/02/24 18:19:22 UTC

[GitHub] [age] rafsun42 opened a new issue, #717: Implement remove label from an entity

rafsun42 opened a new issue, #717:
URL: https://github.com/apache/age/issues/717

   **Is your feature request related to a problem? Please describe.**
   Currently Cypher query cannot remove a label from a vertex\edge.
   
   **Describe the solution you'd like**
   It can be achieved by implementing the remove clause:
   `REMOVE a:Label`
   
   **Describe alternatives you've considered**
   N/A
   
   **Additional context**
   N/A


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] jrgemignani commented on issue #717: Implement remove label from an entity

Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #717:
URL: https://github.com/apache/age/issues/717#issuecomment-1500582299

   @WendelLana In AGE, renaming is the process of migrating a vertex or edge from one label to another and possibly having to create the new label and remove the old label. Additionally, we're trying to bring labels in AGE more in line with labels in openCypher. That means, multiple labels. In that additional context, that means being able to remove labels from vertices or edges.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] WendelLana commented on issue #717: Implement remove label from an entity

Posted by "WendelLana (via GitHub)" <gi...@apache.org>.
WendelLana commented on issue #717:
URL: https://github.com/apache/age/issues/717#issuecomment-1498019463

   According to the Apache AGE documentation, which can be found [here](https://age.apache.org/age-manual/master/intro/types.html#labels), edges are required to have a label. Therefore, it would only be possible to rename an edge label
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] hammadsaleemm commented on issue #717: Implement remove label from an entity

Posted by "hammadsaleemm (via GitHub)" <gi...@apache.org>.
hammadsaleemm commented on issue #717:
URL: https://github.com/apache/age/issues/717#issuecomment-1506746321

   
   Indeed, Cypher currently does not have a built-in clause for removing labels from vertices and edges. This can be inconvenient in situations where you need to update the label of a node or edge.
   
   Your proposed solution of using the REMOVE clause to remove a label would be a great addition to the language. It would make it more flexible and allow for easier updating of graph data.
   
   As an alternative, you can use the SET clause to update the label of a node or edge. For example, to change the label of a node from "Label1" to "Label2", you can use the following query:
   
   ```
   MATCH (a:Label1)
   SET a:Label2
   REMOVE a:Label1
   ```
   This would add the "Label2" label to the node and remove the "Label1" label.
   
   However, this approach can become cumbersome if you have a large number of labels to update, so having a built-in REMOVE clause would definitely be useful.
   
   I hope this helps!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org